{"version":3,"sources":["vendor/ember-cli/app-prefix.js","apollo/adapters/application.js","apollo/app.js","apollo/authenticators/custom.js","apollo/cldrs/cs.js","apollo/cldrs/de.js","apollo/cldrs/en.js","apollo/cldrs/es.js","apollo/cldrs/fr.js","apollo/cldrs/it.js","apollo/cldrs/pl.js","apollo/cldrs/tr.js","apollo/components/basic-dropdown.js","apollo/components/basic-dropdown/content-element.js","apollo/components/basic-dropdown/content.js","apollo/components/basic-dropdown/trigger.js","apollo/components/draggable-object-target.js","apollo/components/draggable-object.js","apollo/components/ember-flatpickr.js","apollo/components/ember-modal-dialog-positioned-container.js","apollo/components/ember-modal-dialog/-basic-dialog.js","apollo/components/ember-modal-dialog/-in-place-dialog.js","apollo/components/ember-modal-dialog/-liquid-dialog.js","apollo/components/ember-modal-dialog/-liquid-tether-dialog.js","apollo/components/ember-modal-dialog/-tether-dialog.js","apollo/components/ember-popover.js","apollo/components/ember-tooltip.js","apollo/components/ember-wormhole.js","apollo/components/modal-dialog.js","apollo/components/models-table-server-paginated.js","apollo/components/models-table.js","apollo/components/models-table/cell-column-summary.js","apollo/components/models-table/cell-content-display.js","apollo/components/models-table/cell-content-edit.js","apollo/components/models-table/cell-edit-toggle.js","apollo/components/models-table/cell.js","apollo/components/models-table/columns-dropdown.js","apollo/components/models-table/columns-hidden.js","apollo/components/models-table/data-group-by-select.js","apollo/components/models-table/footer.js","apollo/components/models-table/global-filter.js","apollo/components/models-table/group-summary-row.js","apollo/components/models-table/grouped-header.js","apollo/components/models-table/no-data.js","apollo/components/models-table/page-size-select.js","apollo/components/models-table/pagination-numeric.js","apollo/components/models-table/pagination-simple.js","apollo/components/models-table/row-expand.js","apollo/components/models-table/row-filtering-cell.js","apollo/components/models-table/row-filtering.js","apollo/components/models-table/row-group-toggle.js","apollo/components/models-table/row-grouping.js","apollo/components/models-table/row-sorting-cell.js","apollo/components/models-table/row-sorting.js","apollo/components/models-table/row.js","apollo/components/models-table/select.js","apollo/components/models-table/summary.js","apollo/components/models-table/table-body.js","apollo/components/models-table/table-footer.js","apollo/components/models-table/table-header.js","apollo/components/models-table/table.js","apollo/components/models-table/themes/bootstrap4/columns-dropdown.js","apollo/components/models-table/themes/bootstrap4/data-group-by-select.js","apollo/components/models-table/themes/bootstrap4/global-filter.js","apollo/components/models-table/themes/bootstrap4/row-filtering-cell.js","apollo/components/models-table/themes/ember-bootstrap-v3/columns-dropdown.js","apollo/components/models-table/themes/ember-bootstrap-v3/data-group-by-select.js","apollo/components/models-table/themes/ember-bootstrap-v3/global-filter.js","apollo/components/models-table/themes/ember-bootstrap-v3/row-filtering-cell.js","apollo/components/models-table/themes/ember-bootstrap-v3/summary.js","apollo/components/models-table/themes/ember-bootstrap-v4/columns-dropdown.js","apollo/components/models-table/themes/ember-bootstrap-v4/data-group-by-select.js","apollo/components/models-table/themes/ember-bootstrap-v4/global-filter.js","apollo/components/models-table/themes/ember-bootstrap-v4/row-filtering-cell.js","apollo/components/models-table/themes/ember-bootstrap-v4/summary.js","apollo/components/models-table/themes/ember-semanticui/row-filtering-cell.js","apollo/components/models-table/themes/ember-semanticui/select.js","apollo/components/models-table/themes/semanticui/columns-dropdown.js","apollo/components/models-table/themes/semanticui/data-group-by-select.js","apollo/components/models-table/themes/semanticui/global-filter.js","apollo/components/models-table/themes/semanticui/pagination-numeric.js","apollo/components/models-table/themes/semanticui/pagination-simple.js","apollo/components/models-table/themes/semanticui/row-filtering-cell.js","apollo/components/models-table/themes/semanticui/select.js","apollo/components/object-bin.js","apollo/components/pell-editor.js","apollo/components/power-select-multiple.js","apollo/components/power-select-multiple/trigger.js","apollo/components/power-select.js","apollo/components/power-select/before-options.js","apollo/components/power-select/options.js","apollo/components/power-select/placeholder.js","apollo/components/power-select/power-select-group.js","apollo/components/power-select/search-message.js","apollo/components/power-select/trigger.js","apollo/components/sortable-objects.js","apollo/components/spectrum-color-picker.js","apollo/components/welcome-page.js","apollo/controllers/application.js","apollo/formats.js","apollo/helpers/-clear-element.js","apollo/helpers/add.js","apollo/helpers/and.js","apollo/helpers/app-version.js","apollo/helpers/append.js","apollo/helpers/array.js","apollo/helpers/can-edit-user.js","apollo/helpers/cancel-all.js","apollo/helpers/checkpoint-confirmator-name.js","apollo/helpers/chunk.js","apollo/helpers/compact.js","apollo/helpers/company-disabled-icon.js","apollo/helpers/compute.js","apollo/helpers/contains.js","apollo/helpers/dec.js","apollo/helpers/disable-company-field.js","apollo/helpers/document-icon.js","apollo/helpers/drop.js","apollo/helpers/each-indexed.js","apollo/helpers/ember-power-select-is-group.js","apollo/helpers/ember-power-select-is-selected.js","apollo/helpers/ember-power-select-true-string-if-present.js","apollo/helpers/eq.js","apollo/helpers/exists-in.js","apollo/helpers/fa-icon.js","apollo/helpers/filter-by.js","apollo/helpers/filter.js","apollo/helpers/find-by.js","apollo/helpers/find-proper-notification.js","apollo/helpers/flatten.js","apollo/helpers/format-calendar.js","apollo/helpers/format-date.js","apollo/helpers/format-message.js","apollo/helpers/format-number.js","apollo/helpers/format-relative.js","apollo/helpers/format-time.js","apollo/helpers/get-schedule-day-name-with-timezone-offset.js","apollo/helpers/get-timezone-abbreviation.js","apollo/helpers/group-by.js","apollo/helpers/group-components.js","apollo/helpers/gt.js","apollo/helpers/gte.js","apollo/helpers/has-authority-to-route.js","apollo/helpers/has-next.js","apollo/helpers/has-previous.js","apollo/helpers/has-role.js","apollo/helpers/hour-is-between.js","apollo/helpers/href-to.js","apollo/helpers/html-safe.js","apollo/helpers/ignore-children.js","apollo/helpers/inc.js","apollo/helpers/intersect.js","apollo/helpers/invoke.js","apollo/helpers/is-after.js","apollo/helpers/is-array.js","apollo/helpers/is-before.js","apollo/helpers/is-between.js","apollo/helpers/is-empty.js","apollo/helpers/is-equal.js","apollo/helpers/is-in-list.js","apollo/helpers/is-same-or-after.js","apollo/helpers/is-same-or-before.js","apollo/helpers/is-same.js","apollo/helpers/join.js","apollo/helpers/last-weight-task.js","apollo/helpers/lt.js","apollo/helpers/lte.js","apollo/helpers/map-by.js","apollo/helpers/map.js","apollo/helpers/match-translation.js","apollo/helpers/moment-add.js","apollo/helpers/moment-calendar.js","apollo/helpers/moment-diff.js","apollo/helpers/moment-duration.js","apollo/helpers/moment-format.js","apollo/helpers/moment-from-now.js","apollo/helpers/moment-from.js","apollo/helpers/moment-subtract.js","apollo/helpers/moment-to-date.js","apollo/helpers/moment-to-now.js","apollo/helpers/moment-to.js","apollo/helpers/moment-unix.js","apollo/helpers/moment.js","apollo/helpers/my-format-date.js","apollo/helpers/next.js","apollo/helpers/not-eq.js","apollo/helpers/not.js","apollo/helpers/now.js","apollo/helpers/object-at.js","apollo/helpers/odd-even.js","apollo/helpers/optional.js","apollo/helpers/or.js","apollo/helpers/perform.js","apollo/helpers/pipe-action.js","apollo/helpers/pipe.js","apollo/helpers/place-button-style.js","apollo/helpers/pluralize.js","apollo/helpers/previous.js","apollo/helpers/queue.js","apollo/helpers/range.js","apollo/helpers/reduce.js","apollo/helpers/reject-by.js","apollo/helpers/repeat.js","apollo/helpers/reverse.js","apollo/helpers/setting-translation.js","apollo/helpers/shuffle.js","apollo/helpers/singularize.js","apollo/helpers/slice.js","apollo/helpers/sort-by.js","apollo/helpers/statute-url.js","apollo/helpers/step-translation-key-label.js","apollo/helpers/stringify.js","apollo/helpers/t.js","apollo/helpers/table-column-style.js","apollo/helpers/take.js","apollo/helpers/task.js","apollo/helpers/toggle-action.js","apollo/helpers/toggle.js","apollo/helpers/trunc-string.js","apollo/helpers/union.js","apollo/helpers/unix.js","apollo/helpers/utc.js","apollo/helpers/warehouse-net-weight.js","apollo/helpers/warehouse-weights.js","apollo/helpers/without.js","apollo/helpers/xor.js","apollo/initializers/add-modals-container.js","apollo/initializers/app-version.js","apollo/initializers/container-debug-adapter.js","apollo/initializers/coordinator-setup.js","apollo/initializers/ember-concurrency.js","apollo/initializers/ember-data-change-tracker.js","apollo/initializers/ember-data.js","apollo/initializers/ember-simple-auth.js","apollo/initializers/emt-themes.js","apollo/initializers/export-application-global.js","apollo/initializers/hide-popovers.js","apollo/initializers/jquery-ui-touch-punch.js","apollo/initializers/locale-timezone-holder.js","apollo/initializers/model-locale.js","apollo/initializers/moment.js","apollo/initializers/older-browsers.js","apollo/initializers/site-24-initializer.js","apollo/instance-initializers/ember-data.js","apollo/instance-initializers/ember-href-to.js","apollo/instance-initializers/ember-intl.js","apollo/instance-initializers/ember-simple-auth.js","apollo/instance-initializers/emt-inject.js","apollo/mixins/adjust-page-content-mixin.js","apollo/mixins/advice-utils-mixin.js","apollo/mixins/attachment-mixin.js","apollo/mixins/change-serializer.js","apollo/mixins/checkpoint-mixin.js","apollo/mixins/company-mixin.js","apollo/mixins/document-mixin.js","apollo/mixins/error-utils-mixin.js","apollo/mixins/form-utils-mixin.js","apollo/mixins/invitations-mixin.js","apollo/mixins/menu-mixin.js","apollo/mixins/model-validator.js","apollo/mixins/object-validator.js","apollo/mixins/persistence-mixin.js","apollo/mixins/queues-access-mixin.js","apollo/mixins/ramps-access-mixin.js","apollo/mixins/response-util-mixin.js","apollo/mixins/schedule-mixin.js","apollo/mixins/section-mixin.js","apollo/mixins/serializer-mixin.js","apollo/mixins/step-mixin.js","apollo/mixins/touch-mixin.js","apollo/mixins/transport-form-mixin.js","apollo/mixins/transports-mixin.js","apollo/mixins/user-utils-mixin.js","apollo/models/checkpoint-confirmation-modal-params.js","apollo/models/checkpoint-confirmation-modal.js","apollo/models/coordinator.js","apollo/models/custom-field-pair.js","apollo/models/obj-hash.js","apollo/models/packages-table-column-model.js","apollo/models/relations-wizard-view-model.js","apollo/models/schedule-action-select-model.js","apollo/pods/address-unloading-time/model.js","apollo/pods/address/model.js","apollo/pods/addresses/index/controller.js","apollo/pods/addresses/index/route.js","apollo/pods/addresses/index/template.js","apollo/pods/advice/modals/create-advice/controller.js","apollo/pods/advice/modals/create-advice/template.js","apollo/pods/advice/model.js","apollo/pods/algorithm-setting/model.js","apollo/pods/algorithm-settings/create/route.js","apollo/pods/algorithm-settings/edit/controller.js","apollo/pods/algorithm-settings/edit/route.js","apollo/pods/algorithm-settings/edit/template.js","apollo/pods/algorithm-settings/index/controller.js","apollo/pods/algorithm-settings/index/route.js","apollo/pods/algorithm-settings/index/template.js","apollo/pods/amount-of-cover/model.js","apollo/pods/amount-of-cover/serializer.js","apollo/pods/announcement/model.js","apollo/pods/announcements/create/controller.js","apollo/pods/announcements/create/route.js","apollo/pods/announcements/create/template.js","apollo/pods/announcements/edit/route.js","apollo/pods/announcements/index/controller.js","apollo/pods/announcements/index/route.js","apollo/pods/announcements/index/template.js","apollo/pods/announcements/manage/controller.js","apollo/pods/announcements/manage/route.js","apollo/pods/announcements/manage/template.js","apollo/pods/anti-corruption-section/model.js","apollo/pods/api-integration-log/model.js","apollo/pods/applies-setting/model.js","apollo/pods/applies-settings/index/controller.js","apollo/pods/applies-settings/index/route.js","apollo/pods/applies-settings/index/template.js","apollo/pods/artr-api-log/model.js","apollo/pods/artr-setting/model.js","apollo/pods/assortment-group/model.js","apollo/pods/assortment-groups/create/controller.js","apollo/pods/assortment-groups/create/route.js","apollo/pods/assortment-groups/create/template.js","apollo/pods/assortment-groups/edit/route.js","apollo/pods/auction-setting/model.js","apollo/pods/auction/model.js","apollo/pods/auctions/modals/auction-details-form/controller.js","apollo/pods/auctions/modals/auction-details-form/template.js","apollo/pods/auctions/modals/auction-form/controller.js","apollo/pods/auctions/modals/auction-form/template.js","apollo/pods/auth/activate-account/controller.js","apollo/pods/auth/activate-account/route.js","apollo/pods/auth/activate-account/template.js","apollo/pods/auth/login/controller.js","apollo/pods/auth/login/route.js","apollo/pods/auth/login/template.js","apollo/pods/auth/remind/controller.js","apollo/pods/auth/remind/route.js","apollo/pods/auth/remind/template.js","apollo/pods/auth/reset-password/controller.js","apollo/pods/auth/reset-password/route.js","apollo/pods/auth/reset-password/template.js","apollo/pods/authorities/aggregate/controller.js","apollo/pods/authorities/aggregate/route.js","apollo/pods/authorities/aggregate/template.js","apollo/pods/authorities/create/controller.js","apollo/pods/authorities/create/route.js","apollo/pods/authorities/create/template.js","apollo/pods/authorities/index/controller.js","apollo/pods/authorities/index/route.js","apollo/pods/authorities/index/template.js","apollo/pods/authorities/others/controller.js","apollo/pods/authorities/others/route.js","apollo/pods/authorities/others/template.js","apollo/pods/authority-group/model.js","apollo/pods/authority-restriction/model.js","apollo/pods/authority-restrictions/create/route.js","apollo/pods/authority-restrictions/edit/controller.js","apollo/pods/authority-restrictions/edit/route.js","apollo/pods/authority-restrictions/edit/template.js","apollo/pods/authority/model.js","apollo/pods/base-recurring-transport/model.js","apollo/pods/blockade/model.js","apollo/pods/carriers/index/route.js","apollo/pods/checkpoint-confirmation-modal/controller.js","apollo/pods/checkpoint-confirmation-modal/template.js","apollo/pods/checkpoint-rejection-modal/controller.js","apollo/pods/checkpoint-rejection-modal/template.js","apollo/pods/checkpoint/model.js","apollo/pods/classification-resource/assign-queue-validator/model.js","apollo/pods/classification-resource/model.js","apollo/pods/classification-resources/index/controller.js","apollo/pods/classification-resources/index/route.js","apollo/pods/classification-resources/index/template.js","apollo/pods/cmr-setting/model.js","apollo/pods/columns-access-command/model.js","apollo/pods/combining-relations-wizard/index/controller.js","apollo/pods/combining-relations-wizard/index/route.js","apollo/pods/combining-relations-wizard/index/template.js","apollo/pods/companies/allowed-domains/controller.js","apollo/pods/companies/allowed-domains/route.js","apollo/pods/companies/allowed-domains/template.js","apollo/pods/companies/create/controller.js","apollo/pods/companies/create/route.js","apollo/pods/companies/create/template.js","apollo/pods/companies/index/controller.js","apollo/pods/companies/index/route.js","apollo/pods/companies/index/template.js","apollo/pods/companies/invite/route.js","apollo/pods/companies/modals/add-driver/controller.js","apollo/pods/companies/modals/add-driver/template.js","apollo/pods/companies/modals/add-partnership/controller.js","apollo/pods/companies/modals/add-partnership/template.js","apollo/pods/companies/modals/add-truck/controller.js","apollo/pods/companies/modals/add-truck/template.js","apollo/pods/companies/modals/add-worker/controller.js","apollo/pods/companies/modals/add-worker/template.js","apollo/pods/companies/modals/edit-address/controller.js","apollo/pods/companies/modals/edit-address/template.js","apollo/pods/companies/ramp-edition/controller.js","apollo/pods/companies/ramp-edition/route.js","apollo/pods/companies/ramp-edition/template.js","apollo/pods/companies/show/controller.js","apollo/pods/companies/show/route.js","apollo/pods/companies/show/template.js","apollo/pods/company-config/model.js","apollo/pods/company-email-domain/model.js","apollo/pods/company-ramp/model.js","apollo/pods/company/adapter.js","apollo/pods/company/model.js","apollo/pods/company/serializer.js","apollo/pods/components/address-add-new/component.js","apollo/pods/components/address-add-new/template.js","apollo/pods/components/address-auto-complete/component.js","apollo/pods/components/advice-button/component.js","apollo/pods/components/advice-button/create-advice-button/template.js","apollo/pods/components/advice-button/create-window-button/template.js","apollo/pods/components/advice-handler/component.js","apollo/pods/components/advice-handler/template.js","apollo/pods/components/aggregated-authority-table/component.js","apollo/pods/components/aggregated-authority-table/role-group-checkbox/component.js","apollo/pods/components/aggregated-authority-table/role-group-checkbox/template.js","apollo/pods/components/aggregated-authority-table/template.js","apollo/pods/components/amount-of-cover-section/component.js","apollo/pods/components/amount-of-cover-section/template.js","apollo/pods/components/announcements-nav-header/component.js","apollo/pods/components/announcements-nav-header/template.js","apollo/pods/components/auction/auction-cell/component.js","apollo/pods/components/auction/auction-cell/template.js","apollo/pods/components/auction/auction-details-button/component.js","apollo/pods/components/auction/auction-details-button/template.js","apollo/pods/components/auction/auction-header/component.js","apollo/pods/components/auction/auction-header/template.js","apollo/pods/components/auction/auction-panel/component.js","apollo/pods/components/auction/auction-panel/template.js","apollo/pods/components/auction/bid-auction-button/component.js","apollo/pods/components/auction/bid-auction-button/template.js","apollo/pods/components/auction/create-auction-button/component.js","apollo/pods/components/auction/create-auction-button/template.js","apollo/pods/components/auction/offers-table/component.js","apollo/pods/components/auction/offers-table/template.js","apollo/pods/components/authorities-nav-header/template.js","apollo/pods/components/authority-table/authority-row/component.js","apollo/pods/components/authority-table/authority-row/template.js","apollo/pods/components/authority-table/component.js","apollo/pods/components/authority-table/template.js","apollo/pods/components/awaiting-invitation-table/component.js","apollo/pods/components/awaiting-invitation-table/template.js","apollo/pods/components/button-with-confirmation/component.js","apollo/pods/components/by-whom/component.js","apollo/pods/components/by-whom/template.js","apollo/pods/components/checkpoint-blockade-message/component.js","apollo/pods/components/checkpoint-blockade-message/template.js","apollo/pods/components/checkpoint-blockade-reason-modal/controller.js","apollo/pods/components/checkpoint-blockade-reason-modal/template.js","apollo/pods/components/checkpoint/confirm-status-button/component.js","apollo/pods/components/checkpoint/confirm-status-button/default/template.js","apollo/pods/components/checkpoint/confirm-status-button/guard/template.js","apollo/pods/components/checkpoint/reject-status-button/component.js","apollo/pods/components/checkpoint/reject-status-button/template.js","apollo/pods/components/checkpoint/rejection-date-text/component.js","apollo/pods/components/checkpoint/rejection-date-text/template.js","apollo/pods/components/checkpoint/weight-input/component.js","apollo/pods/components/checkpoint/weight-input/template.js","apollo/pods/components/classification-resource/place-assignment/component.js","apollo/pods/components/classification-resource/place-assignment/template.js","apollo/pods/components/companies/apply-form/anti-corruption-data-section/component.js","apollo/pods/components/companies/apply-form/anti-corruption-data-section/template.js","apollo/pods/components/companies/apply-form/blockade-section/component.js","apollo/pods/components/companies/apply-form/blockade-section/template.js","apollo/pods/components/companies/apply-form/component.js","apollo/pods/components/companies/apply-form/contractors-group-section/component.js","apollo/pods/components/companies/apply-form/contractors-group-section/template.js","apollo/pods/components/companies/apply-form/history-section/component.js","apollo/pods/components/companies/apply-form/history-section/partnership-log/component.js","apollo/pods/components/companies/apply-form/history-section/partnership-log/template.js","apollo/pods/components/companies/apply-form/history-section/template.js","apollo/pods/components/companies/apply-form/insurance-section/component.js","apollo/pods/components/companies/apply-form/insurance-section/template.js","apollo/pods/components/companies/apply-form/licences-section/component.js","apollo/pods/components/companies/apply-form/licences-section/template.js","apollo/pods/components/companies/apply-form/main-data-section/component.js","apollo/pods/components/companies/apply-form/main-data-section/template.js","apollo/pods/components/companies/apply-form/secondary-data-section/component.js","apollo/pods/components/companies/apply-form/secondary-data-section/template.js","apollo/pods/components/companies/apply-form/template.js","apollo/pods/components/companies/companies-table/company-row/component.js","apollo/pods/components/companies/companies-table/company-row/template.js","apollo/pods/components/companies/registration-form/component.js","apollo/pods/components/companies/registration-form/template.js","apollo/pods/components/company-auto-complete/component.js","apollo/pods/components/company-nav-header/component.js","apollo/pods/components/company-nav-header/template.js","apollo/pods/components/company-representative/component.js","apollo/pods/components/company-representative/template.js","apollo/pods/components/company-transport-limit/component.js","apollo/pods/components/company-transport-limit/template.js","apollo/pods/components/confirm-statuses/component.js","apollo/pods/components/confirm-statuses/default/template.js","apollo/pods/components/confirm-statuses/guard/template.js","apollo/pods/components/create-transport-button/component.js","apollo/pods/components/create-transport-button/template.js","apollo/pods/components/custom-auto-complete/component.js","apollo/pods/components/custom-auto-complete/template.js","apollo/pods/components/custom-field-auto-complete/component.js","apollo/pods/components/custom-field-default-option/component.js","apollo/pods/components/custom-field-default-option/template.js","apollo/pods/components/custom-field-definition-automatic-value/component.js","apollo/pods/components/custom-field-definition-automatic-value/template.js","apollo/pods/components/custom-field-dependency/component.js","apollo/pods/components/custom-field-dependency/template.js","apollo/pods/components/custom-field-option-dependency-modal/controller.js","apollo/pods/components/custom-field-option-dependency-modal/template.js","apollo/pods/components/custom-field-options-table/component.js","apollo/pods/components/custom-field-options-table/template.js","apollo/pods/components/custom-field-value-formatted/component.js","apollo/pods/components/custom-field-value-formatted/template.js","apollo/pods/components/custom-modal/component.js","apollo/pods/components/custom-modal/template.js","apollo/pods/components/custom-popover/component.js","apollo/pods/components/custom-popover/template.js","apollo/pods/components/custom-switch/component.js","apollo/pods/components/custom-switch/template.js","apollo/pods/components/date-formatter-test/component.js","apollo/pods/components/date-formatter-test/template.js","apollo/pods/components/delivery-panel/component.js","apollo/pods/components/delivery-panel/template.js","apollo/pods/components/documents-applies/document-form/component.js","apollo/pods/components/documents-applies/document-form/template.js","apollo/pods/components/documents-applies/show-document-button/component.js","apollo/pods/components/documents-applies/show-document-button/template.js","apollo/pods/components/documents-transport/add-document-button/component.js","apollo/pods/components/documents-transport/add-document-button/template.js","apollo/pods/components/driver-auto-complete/component.js","apollo/pods/components/drivers/drivers-list/component.js","apollo/pods/components/drivers/drivers-list/template.js","apollo/pods/components/dummy-input-plug/component.js","apollo/pods/components/dummy-input-plug/template.js","apollo/pods/components/errors-alert/component.js","apollo/pods/components/errors-alert/template.js","apollo/pods/components/expandable-panel/component.js","apollo/pods/components/expandable-panel/template.js","apollo/pods/components/field-error-message/component.js","apollo/pods/components/field-error-message/template.js","apollo/pods/components/file-upload/component.js","apollo/pods/components/file-upload/template.js","apollo/pods/components/files-server-table/component.js","apollo/pods/components/files-server-table/template.js","apollo/pods/components/free-subsequent-spots/component.js","apollo/pods/components/free-subsequent-spots/template.js","apollo/pods/components/iframe-component/template.js","apollo/pods/components/index-quantity-type-table/component.js","apollo/pods/components/index-quantity-type-table/template.js","apollo/pods/components/inspection-modal/controller.js","apollo/pods/components/inspection-modal/template.js","apollo/pods/components/invitation-section/template.js","apollo/pods/components/link-to/component.js","apollo/pods/components/loading-spinner/component.js","apollo/pods/components/loading-spinner/template.js","apollo/pods/components/locale-aware-flatpickr/component.js","apollo/pods/components/locale-aware-flatpickr/template.js","apollo/pods/components/log-api-request/component.js","apollo/pods/components/log-api-request/template.js","apollo/pods/components/log-change/component.js","apollo/pods/components/log-change/template.js","apollo/pods/components/log-group-change/template.js","apollo/pods/components/log-label/component.js","apollo/pods/components/log-label/template.js","apollo/pods/components/login-page-logo-section/template.js","apollo/pods/components/logs-section/component.js","apollo/pods/components/logs-section/template.js","apollo/pods/components/max-pallet/component.js","apollo/pods/components/max-pallet/template.js","apollo/pods/components/modals/address-unloading-time/component.js","apollo/pods/components/modals/address-unloading-time/template.js","apollo/pods/components/modals/remove-transport-relation/component.js","apollo/pods/components/modals/remove-transport-relation/template.js","apollo/pods/components/modals/schedule-action-select/component.js","apollo/pods/components/modals/schedule-action-select/template.js","apollo/pods/components/modals/transaction-invoice-form/component.js","apollo/pods/components/modals/transaction-invoice-form/template.js","apollo/pods/components/mode-of-transportations/table/row/component.js","apollo/pods/components/mode-of-transportations/table/row/template.js","apollo/pods/components/multiple-time-windows-modal/component.js","apollo/pods/components/multiple-time-windows-modal/template.js","apollo/pods/components/notification-bell/component.js","apollo/pods/components/notification-bell/template.js","apollo/pods/components/notification-section/component.js","apollo/pods/components/notification-section/template.js","apollo/pods/components/packages-table/component.js","apollo/pods/components/packages-table/template.js","apollo/pods/components/packages-table/templates/package-stacking-factor-row/component.js","apollo/pods/components/packages-table/templates/package-stacking-factor-row/template.js","apollo/pods/components/packages-table/templates/package-type-row/component.js","apollo/pods/components/packages-table/templates/package-type-row/template.js","apollo/pods/components/pagination-buttons/component.js","apollo/pods/components/pagination-buttons/template.js","apollo/pods/components/paid-feature-info/component.js","apollo/pods/components/paid-feature-info/template.js","apollo/pods/components/partnership-table/component.js","apollo/pods/components/partnership-table/row/component.js","apollo/pods/components/partnership-table/row/template.js","apollo/pods/components/partnership-table/template.js","apollo/pods/components/paste-area/component.js","apollo/pods/components/paste-area/template.js","apollo/pods/components/patron-auto-complete/component.js","apollo/pods/components/periodic-transport-form/template.js","apollo/pods/components/phone-prefix/component.js","apollo/pods/components/phone-prefix/template.js","apollo/pods/components/planning/custom-fields-section/custom-field/component.js","apollo/pods/components/planning/custom-fields-section/custom-field/template.js","apollo/pods/components/planning/custom-fields-section/template.js","apollo/pods/components/planning/delivery-step-section/component.js","apollo/pods/components/planning/delivery-step-section/template.js","apollo/pods/components/planning/delivery-table/component.js","apollo/pods/components/planning/delivery-table/delivery-row/component.js","apollo/pods/components/planning/delivery-table/delivery-row/template.js","apollo/pods/components/planning/delivery-table/template.js","apollo/pods/components/planning/modals/add-transport/controller.js","apollo/pods/components/planning/modals/add-transport/template.js","apollo/pods/components/planning/not-planned-panel/component.js","apollo/pods/components/planning/not-planned-panel/template.js","apollo/pods/components/planning/planned-panel/component.js","apollo/pods/components/planning/planned-panel/template.js","apollo/pods/components/planning/planned-panel/transport-panel/component.js","apollo/pods/components/planning/planned-panel/transport-panel/template.js","apollo/pods/components/planning/table-nav/component.js","apollo/pods/components/planning/table-nav/template.js","apollo/pods/components/popup-dialog/component.js","apollo/pods/components/popup-dialog/template.js","apollo/pods/components/popup-message/component.js","apollo/pods/components/popup-message/template.js","apollo/pods/components/price-list/route-offers-table/component.js","apollo/pods/components/price-list/route-offers-table/template.js","apollo/pods/components/price-list/routes-table-nav/component.js","apollo/pods/components/price-list/routes-table-nav/template.js","apollo/pods/components/price-list/routes-table/component.js","apollo/pods/components/price-list/routes-table/route-filter-select/component.js","apollo/pods/components/price-list/routes-table/route-filter-select/template.js","apollo/pods/components/price-list/routes-table/route/component.js","apollo/pods/components/price-list/routes-table/route/template.js","apollo/pods/components/price-list/routes-table/template.js","apollo/pods/components/product-auto-complete/component.js","apollo/pods/components/queue-status/modals/send-sms/component.js","apollo/pods/components/queue-status/modals/send-sms/template.js","apollo/pods/components/radio-button-group/component.js","apollo/pods/components/radio-button-group/template.js","apollo/pods/components/ramp-schedule/component.js","apollo/pods/components/ramp-schedule/template.js","apollo/pods/components/ramps-checkboxes/template.js","apollo/pods/components/recurring-transport-form/component.js","apollo/pods/components/recurring-transport-form/template.js","apollo/pods/components/refresh-button/component.js","apollo/pods/components/refresh-button/template.js","apollo/pods/components/related-to-labels-has-to-wait/component.js","apollo/pods/components/related-to-labels-has-to-wait/template.js","apollo/pods/components/related-to-labels-plain/template.js","apollo/pods/components/related-to-labels/component.js","apollo/pods/components/related-to-labels/template.js","apollo/pods/components/remove-relation-button/component.js","apollo/pods/components/remove-relation-button/template.js","apollo/pods/components/render-field-errors/component.js","apollo/pods/components/render-field-errors/template.js","apollo/pods/components/role-group-invitation-restriction/component.js","apollo/pods/components/role-group-invitation-restriction/template.js","apollo/pods/components/role-group-notification-settings/component.js","apollo/pods/components/role-group-notification-settings/template.js","apollo/pods/components/role-group-statistics-report/component.js","apollo/pods/components/role-group-statistics-report/template.js","apollo/pods/components/route/form/route-address-section/component.js","apollo/pods/components/route/form/route-address-section/template.js","apollo/pods/components/route/form/route-custom-fields-section/component.js","apollo/pods/components/route/form/route-custom-fields-section/template.js","apollo/pods/components/route/route-template-select/component.js","apollo/pods/components/route/route-template-select/template.js","apollo/pods/components/schedule-legend/component.js","apollo/pods/components/schedule-legend/template.js","apollo/pods/components/schedule/current-hour-frame/component.js","apollo/pods/components/schedule/current-hour-frame/template.js","apollo/pods/components/schedule/handle-transport-alert/component.js","apollo/pods/components/schedule/handle-transport-alert/template.js","apollo/pods/components/schedule/schedule-header/component.js","apollo/pods/components/schedule/schedule-header/template.js","apollo/pods/components/schedule/time-bar/component.js","apollo/pods/components/schedule/time-bar/template.js","apollo/pods/components/schedule/warehouse-zone-header/component.js","apollo/pods/components/schedule/warehouse-zone-header/template.js","apollo/pods/components/sections/document-section/component.js","apollo/pods/components/sections/document-section/document-form/component.js","apollo/pods/components/sections/document-section/document-form/template.js","apollo/pods/components/sections/document-section/document-section-manager/component.js","apollo/pods/components/sections/document-section/document-section-manager/template.js","apollo/pods/components/sections/document-section/document-state-buttons/component.js","apollo/pods/components/sections/document-section/document-state-buttons/template.js","apollo/pods/components/sections/document-section/template.js","apollo/pods/components/sections/reject-section-button/component.js","apollo/pods/components/sections/reject-section-button/template.js","apollo/pods/components/sections/section-state/component.js","apollo/pods/components/sections/section-state/template.js","apollo/pods/components/sections/upload-file/component.js","apollo/pods/components/sections/upload-file/template.js","apollo/pods/components/serial-transports-form/template.js","apollo/pods/components/server-table/component.js","apollo/pods/components/server-table/filters/date-filter/component.js","apollo/pods/components/server-table/filters/date-filter/template.js","apollo/pods/components/server-table/filters/date-range-filter/component.js","apollo/pods/components/server-table/filters/date-range-filter/template.js","apollo/pods/components/server-table/filters/date-time-filter/component.js","apollo/pods/components/server-table/filters/date-time-filter/template.js","apollo/pods/components/show-courier-price-details/component.js","apollo/pods/components/show-courier-price-details/template.js","apollo/pods/components/show-delivery-invoice-details/component.js","apollo/pods/components/show-delivery-invoice-details/template.js","apollo/pods/components/show-docs/component.js","apollo/pods/components/show-docs/template.js","apollo/pods/components/show-manuals/component.js","apollo/pods/components/show-manuals/template.js","apollo/pods/components/show-notes/component.js","apollo/pods/components/show-notes/template.js","apollo/pods/components/show-statuses/blocked-reject-button/template.js","apollo/pods/components/show-statuses/component.js","apollo/pods/components/show-statuses/reject-button/component.js","apollo/pods/components/show-statuses/reject-button/template.js","apollo/pods/components/show-statuses/template.js","apollo/pods/components/show-warehouse-checkbox/component.js","apollo/pods/components/show-warehouse-checkbox/template.js","apollo/pods/components/slider-component/component.js","apollo/pods/components/slider-component/template.js","apollo/pods/components/square-section/component.js","apollo/pods/components/square-section/template.js","apollo/pods/components/statistics-report-nav-header/component.js","apollo/pods/components/statistics-report-nav-header/template.js","apollo/pods/components/success-message/component.js","apollo/pods/components/success-message/template.js","apollo/pods/components/synchronise-carrier-data-button/component.js","apollo/pods/components/synchronise-carrier-data-button/template.js","apollo/pods/components/table-column-settings/component.js","apollo/pods/components/table-column-settings/template.js","apollo/pods/components/table-columns/component.js","apollo/pods/components/table-columns/template.js","apollo/pods/components/task-confirmation-date-form/component.js","apollo/pods/components/task-confirmation-date-form/template.js","apollo/pods/components/task-custom-modals/default-modal/controller.js","apollo/pods/components/task-custom-modals/default-modal/template.js","apollo/pods/components/task-custom-modals/mowi-conditional-tasks-modal/controller.js","apollo/pods/components/task-custom-modals/mowi-conditional-tasks-modal/template.js","apollo/pods/components/tasks-sortable-table/component.js","apollo/pods/components/tasks-sortable-table/task-sortable-row/component.js","apollo/pods/components/tasks-sortable-table/task-sortable-row/template.js","apollo/pods/components/tasks-sortable-table/template.js","apollo/pods/components/tax-id-number-field/component.js","apollo/pods/components/tax-id-number-field/template.js","apollo/pods/components/template-loop/component.js","apollo/pods/components/template-loop/template.js","apollo/pods/components/temporary-account-alert/component.js","apollo/pods/components/temporary-account-alert/template.js","apollo/pods/components/time-window-tooltip-arrival-dates/component.js","apollo/pods/components/time-window-tooltip-arrival-dates/template.js","apollo/pods/components/time-window/component.js","apollo/pods/components/time-window/template.js","apollo/pods/components/toggle-section/component.js","apollo/pods/components/toggle-section/template.js","apollo/pods/components/transaction-price-label-translation/component.js","apollo/pods/components/transaction-price-label-translation/template.js","apollo/pods/components/transaction/accept-transaction-button/component.js","apollo/pods/components/transaction/accept-transaction-button/template.js","apollo/pods/components/transaction/auto-transaction-button/component.js","apollo/pods/components/transaction/auto-transaction-button/template.js","apollo/pods/components/transaction/courier-transaction-button/component.js","apollo/pods/components/transaction/courier-transaction-button/template.js","apollo/pods/components/transaction/create-transaction-button/component.js","apollo/pods/components/transaction/create-transaction-button/template.js","apollo/pods/components/transport-and-deliveries-custom-fields/component.js","apollo/pods/components/transport-and-deliveries-custom-fields/template.js","apollo/pods/components/transport-costs-string/component.js","apollo/pods/components/transport-costs-string/template.js","apollo/pods/components/transport-modal-header/component.js","apollo/pods/components/transport-modal-header/template.js","apollo/pods/components/transport-modal/component.js","apollo/pods/components/transport-modal/template.js","apollo/pods/components/transport-row-delivery-innvoice/component.js","apollo/pods/components/transport-row-delivery-innvoice/delivery-invoice-data/component.js","apollo/pods/components/transport-row-delivery-innvoice/delivery-invoice-data/template.js","apollo/pods/components/transport-row-delivery-innvoice/template.js","apollo/pods/components/transport-row-invoice-data/component.js","apollo/pods/components/transport-row-invoice-data/template.js","apollo/pods/components/transport-types-nav-header/component.js","apollo/pods/components/transport-types-nav-header/template.js","apollo/pods/components/transport-types/package-type-settings-form/component.js","apollo/pods/components/transport-types/package-type-settings-form/template.js","apollo/pods/components/transport/add-indexes-section/component.js","apollo/pods/components/transport/add-indexes-section/template.js","apollo/pods/components/transport/advice-date-restrictions-section/component.js","apollo/pods/components/transport/advice-date-restrictions-section/template.js","apollo/pods/components/transport/contractor-section/component.js","apollo/pods/components/transport/contractor-section/template.js","apollo/pods/components/transport/courier-invoice-section/component.js","apollo/pods/components/transport/courier-invoice-section/template.js","apollo/pods/components/transport/courier/add-packages-section/component.js","apollo/pods/components/transport/courier/add-packages-section/template.js","apollo/pods/components/transport/courier/packages-section/component.js","apollo/pods/components/transport/courier/packages-section/template.js","apollo/pods/components/transport/couriers-section/component.js","apollo/pods/components/transport/couriers-section/template.js","apollo/pods/components/transport/create-delivery-from-transport/component.js","apollo/pods/components/transport/create-delivery-from-transport/create-delivery-from-transport-form/component.js","apollo/pods/components/transport/create-delivery-from-transport/create-delivery-from-transport-form/template.js","apollo/pods/components/transport/create-delivery-from-transport/template.js","apollo/pods/components/transport/custom-fields-filters/component.js","apollo/pods/components/transport/custom-fields-filters/template.js","apollo/pods/components/transport/custom-fields-section/component.js","apollo/pods/components/transport/custom-fields-section/custom-field/component.js","apollo/pods/components/transport/custom-fields-section/custom-field/template.js","apollo/pods/components/transport/custom-fields-section/template.js","apollo/pods/components/transport/delivery-section/add-delivery-packaging-button/component.js","apollo/pods/components/transport/delivery-section/add-delivery-packaging-button/template.js","apollo/pods/components/transport/delivery-section/component.js","apollo/pods/components/transport/delivery-section/delivery-additional-data-section/component.js","apollo/pods/components/transport/delivery-section/delivery-additional-data-section/template.js","apollo/pods/components/transport/delivery-section/delivery-packaging-form/controller.js","apollo/pods/components/transport/delivery-section/delivery-packaging-form/template.js","apollo/pods/components/transport/delivery-section/delivery-packaging-section/component.js","apollo/pods/components/transport/delivery-section/delivery-packaging-section/template.js","apollo/pods/components/transport/delivery-section/delivery-top-section/component.js","apollo/pods/components/transport/delivery-section/delivery-top-section/template.js","apollo/pods/components/transport/delivery-section/template.js","apollo/pods/components/transport/detach-all-deliveries/controller.js","apollo/pods/components/transport/detach-all-deliveries/template.js","apollo/pods/components/transport/discrepancy-report-section/component.js","apollo/pods/components/transport/discrepancy-report-section/template.js","apollo/pods/components/transport/documents-section/component.js","apollo/pods/components/transport/documents-section/template.js","apollo/pods/components/transport/driver-section/component.js","apollo/pods/components/transport/driver-section/template.js","apollo/pods/components/transport/export-indexes-button/component.js","apollo/pods/components/transport/export-indexes-button/template.js","apollo/pods/components/transport/get-couriers-quotes/component.js","apollo/pods/components/transport/get-couriers-quotes/template.js","apollo/pods/components/transport/indexes-section/component.js","apollo/pods/components/transport/indexes-section/template.js","apollo/pods/components/transport/messages-section/component.js","apollo/pods/components/transport/messages-section/template.js","apollo/pods/components/transport/step-additional-data/template.js","apollo/pods/components/transport/step-header/component.js","apollo/pods/components/transport/step-header/template.js","apollo/pods/components/transport/step-package-type-data/component.js","apollo/pods/components/transport/step-package-type-data/template.js","apollo/pods/components/transport/step-section/component.js","apollo/pods/components/transport/step-section/template.js","apollo/pods/components/transport/step-user-group-select/component.js","apollo/pods/components/transport/step-user-group-select/template.js","apollo/pods/components/transport/steps-section/component.js","apollo/pods/components/transport/steps-section/template.js","apollo/pods/components/transport/surcharges-section/component.js","apollo/pods/components/transport/surcharges-section/modal/controller.js","apollo/pods/components/transport/surcharges-section/modal/template.js","apollo/pods/components/transport/surcharges-section/table/component.js","apollo/pods/components/transport/surcharges-section/table/template.js","apollo/pods/components/transport/surcharges-section/template.js","apollo/pods/components/transport/time-window-section/component.js","apollo/pods/components/transport/time-window-section/template.js","apollo/pods/components/transport/transport-package-steps-section/component.js","apollo/pods/components/transport/transport-package-steps-section/template.js","apollo/pods/components/transport/transport-packages-section/component.js","apollo/pods/components/transport/transport-packages-section/modal/component.js","apollo/pods/components/transport/transport-packages-section/modal/template.js","apollo/pods/components/transport/transport-packages-section/template.js","apollo/pods/components/transport/transport-packages-table/component.js","apollo/pods/components/transport/transport-packages-table/template.js","apollo/pods/components/transport/warehouse-zone-section/component.js","apollo/pods/components/transport/warehouse-zone-section/template.js","apollo/pods/components/transport/weight-section/component.js","apollo/pods/components/transport/weight-section/template.js","apollo/pods/components/transports/choose-type/component.js","apollo/pods/components/transports/choose-type/template.js","apollo/pods/components/transports/netpc-report-button/component.js","apollo/pods/components/transports/netpc-report-button/template.js","apollo/pods/components/transports/save-filters-switch/component.js","apollo/pods/components/transports/save-filters-switch/template.js","apollo/pods/components/transports/search-transports/component.js","apollo/pods/components/transports/search-transports/scan-barcode-modal/controller.js","apollo/pods/components/transports/search-transports/scan-barcode-modal/scanner-input-field/component.js","apollo/pods/components/transports/search-transports/scan-barcode-modal/template.js","apollo/pods/components/transports/search-transports/template.js","apollo/pods/components/transports/transports-table/action-progress-toast/component.js","apollo/pods/components/transports/transports-table/action-progress-toast/template.js","apollo/pods/components/transports/transports-table/add-relations-button/component.js","apollo/pods/components/transports/transports-table/add-relations-button/template.js","apollo/pods/components/transports/transports-table/column-names/component.js","apollo/pods/components/transports/transports-table/column-names/template.js","apollo/pods/components/transports/transports-table/component.js","apollo/pods/components/transports/transports-table/intable-column-names/component.js","apollo/pods/components/transports/transports-table/intable-column-names/template.js","apollo/pods/components/transports/transports-table/load-more/component.js","apollo/pods/components/transports/transports-table/load-more/template.js","apollo/pods/components/transports/transports-table/multi-archive-button/component.js","apollo/pods/components/transports/transports-table/multi-archive-button/template.js","apollo/pods/components/transports/transports-table/template.js","apollo/pods/components/transports/transports-table/transport-filters/component.js","apollo/pods/components/transports/transports-table/transport-filters/filter/component.js","apollo/pods/components/transports/transports-table/transport-filters/filter/template.js","apollo/pods/components/transports/transports-table/transport-filters/template.js","apollo/pods/components/transports/transports-table/transport-header/component.js","apollo/pods/components/transports/transports-table/transport-header/template.js","apollo/pods/components/transports/transports-table/transport-row/component.js","apollo/pods/components/transports/transports-table/transport-row/guard-checkpoint-fields/component.js","apollo/pods/components/transports/transports-table/transport-row/guard-checkpoint-fields/confirmed-checkpoint-text/component.js","apollo/pods/components/transports/transports-table/transport-row/guard-checkpoint-fields/confirmed-checkpoint-text/template.js","apollo/pods/components/transports/transports-table/transport-row/guard-checkpoint-fields/guard-checkpoint-button/component.js","apollo/pods/components/transports/transports-table/transport-row/guard-checkpoint-fields/guard-checkpoint-button/template.js","apollo/pods/components/transports/transports-table/transport-row/guard-checkpoint-fields/template.js","apollo/pods/components/transports/transports-table/transport-row/template.js","apollo/pods/components/transports/transports-table/transport-row/transaction-icon/component.js","apollo/pods/components/transports/transports-table/transport-row/transaction-icon/template.js","apollo/pods/components/transports/transports-table/transport-sorter/component.js","apollo/pods/components/transports/transports-table/transport-sorter/template.js","apollo/pods/components/transports/transports-table/transport-title/component.js","apollo/pods/components/transports/transports-table/transport-title/template.js","apollo/pods/components/trim-long-text/component.js","apollo/pods/components/trim-long-text/template.js","apollo/pods/components/trucks/main-data-section/component.js","apollo/pods/components/trucks/main-data-section/template.js","apollo/pods/components/trucks/truck-type-helper-text/component.js","apollo/pods/components/trucks/truck-type-helper-text/template.js","apollo/pods/components/trucks/truck-type-select/component.js","apollo/pods/components/trucks/truck-type-select/template.js","apollo/pods/components/trucks/trucks-list/component.js","apollo/pods/components/trucks/trucks-list/template.js","apollo/pods/components/unit-amount-type-select/component.js","apollo/pods/components/unit-amount-type-select/template.js","apollo/pods/components/user-edit-form-outlet/component.js","apollo/pods/components/user-edit-form-outlet/template.js","apollo/pods/components/user-nav-header/component.js","apollo/pods/components/user-nav-header/template.js","apollo/pods/components/users/rodo-information/component.js","apollo/pods/components/users/rodo-information/template.js","apollo/pods/components/users/users-extended-list/template.js","apollo/pods/components/voivodeship-select/component.js","apollo/pods/components/voivodeship-select/template.js","apollo/pods/components/warehouse-location/multiple-select/component.js","apollo/pods/components/warehouse-location/multiple-select/template.js","apollo/pods/components/warehouse-zone-nav-header/template.js","apollo/pods/components/warehouse/assortment-group-section/component.js","apollo/pods/components/warehouse/assortment-group-section/template.js","apollo/pods/components/warehouse/warehouse-location-multi-select/component.js","apollo/pods/components/warehouse/warehouse-location-multi-select/template.js","apollo/pods/components/warehouse/warehouse-location-section/component.js","apollo/pods/components/warehouse/warehouse-location-section/template.js","apollo/pods/conditional-rate/model.js","apollo/pods/contractors-group-type/model.js","apollo/pods/contractors-group/modals/create-contractors-group/controller.js","apollo/pods/contractors-group/modals/create-contractors-group/template.js","apollo/pods/contractors-group/model.js","apollo/pods/contractors-group/serializer.js","apollo/pods/country/model.js","apollo/pods/courier-invoice/model.js","apollo/pods/courier-order-error/model.js","apollo/pods/courier-order/model.js","apollo/pods/courier-package/model.js","apollo/pods/courier-pricing-error/model.js","apollo/pods/courier-pricing-error/serializer.js","apollo/pods/courier-pricing-success/model.js","apollo/pods/courier-pricing-success/serializer.js","apollo/pods/courier-pricing/model.js","apollo/pods/courier-pricing/serializer.js","apollo/pods/courier-setting/model.js","apollo/pods/courier/modals/package-form/controller.js","apollo/pods/courier/modals/package-form/template.js","apollo/pods/currency/model.js","apollo/pods/custom-field-definition/adapter.js","apollo/pods/custom-field-definition/model.js","apollo/pods/custom-field-definition/serializer.js","apollo/pods/custom-field-definitions/edit/controller.js","apollo/pods/custom-field-definitions/edit/route.js","apollo/pods/custom-field-definitions/edit/template.js","apollo/pods/custom-field-definitions/index/route.js","apollo/pods/custom-field-definitions/index/template.js","apollo/pods/custom-field-definitions/modals/decimal-format-hint/controller.js","apollo/pods/custom-field-definitions/modals/decimal-format-hint/template.js","apollo/pods/custom-field-option/model.js","apollo/pods/custom-field-option/serializer.js","apollo/pods/custom-field-value/model.js","apollo/pods/default-transports/route.js","apollo/pods/delivery-custom-field-value/model.js","apollo/pods/delivery-packaging/model.js","apollo/pods/delivery-setting/adapter.js","apollo/pods/delivery-setting/model.js","apollo/pods/delivery-setting/serializer.js","apollo/pods/delivery/modals/edit-invoice/controller.js","apollo/pods/delivery/modals/edit-invoice/template.js","apollo/pods/delivery/model.js","apollo/pods/delivery/serializer.js","apollo/pods/dialogs/message-popup-dialog/template.js","apollo/pods/dialogs/window-details-dialog/controller.js","apollo/pods/dialogs/window-details-dialog/template.js","apollo/pods/discrepancy-report/model.js","apollo/pods/document-type/model.js","apollo/pods/document-validation/model.js","apollo/pods/document/model.js","apollo/pods/documents/modals/document-form-modal/controller.js","apollo/pods/documents/modals/document-form-modal/template.js","apollo/pods/documents/modals/document-list-modal/controller.js","apollo/pods/documents/modals/document-list-modal/template.js","apollo/pods/documents/modals/document-modal/controller.js","apollo/pods/documents/modals/document-modal/template.js","apollo/pods/driver/model.js","apollo/pods/drivers/index/route.js","apollo/pods/drivers/index/template.js","apollo/pods/email-advice/model.js","apollo/pods/file-set/model.js","apollo/pods/file-sets/status/controller.js","apollo/pods/file-sets/status/route.js","apollo/pods/file-sets/status/template.js","apollo/pods/file/model.js","apollo/pods/files/index/controller.js","apollo/pods/files/index/route.js","apollo/pods/files/index/template.js","apollo/pods/forbidden/route.js","apollo/pods/forbidden/template.js","apollo/pods/gate/model.js","apollo/pods/gates/create/controller.js","apollo/pods/gates/create/route.js","apollo/pods/gates/create/template.js","apollo/pods/gates/edit/route.js","apollo/pods/groups-settings/index/controller.js","apollo/pods/groups-settings/index/route.js","apollo/pods/groups-settings/index/template.js","apollo/pods/index-quantity-type/model.js","apollo/pods/index-quantity/model.js","apollo/pods/index-setting/model.js","apollo/pods/index/model.js","apollo/pods/indexes/modals/index-form/controller.js","apollo/pods/indexes/modals/index-form/template.js","apollo/pods/indexes/modals/indexes-details/controller.js","apollo/pods/indexes/modals/indexes-details/template.js","apollo/pods/invitation-ramp/model.js","apollo/pods/invitation/model.js","apollo/pods/invitations/create/controller.js","apollo/pods/invitations/create/route.js","apollo/pods/invitations/create/template.js","apollo/pods/invitations/handle/controller.js","apollo/pods/invitations/handle/route.js","apollo/pods/invitations/handle/template.js","apollo/pods/invitations/index/controller.js","apollo/pods/invitations/index/route.js","apollo/pods/invitations/index/template.js","apollo/pods/invitations/review/controller.js","apollo/pods/invitations/review/route.js","apollo/pods/invitations/review/template.js","apollo/pods/invitations/show/controller.js","apollo/pods/invitations/show/route.js","apollo/pods/invitations/show/template.js","apollo/pods/ldm-packaging/model.js","apollo/pods/main-section/model.js","apollo/pods/main-section/serializer.js","apollo/pods/managable-job/model.js","apollo/pods/manual-notification/model.js","apollo/pods/max-pallet/modals/create/controller.js","apollo/pods/max-pallet/modals/create/template.js","apollo/pods/max-pallet/model.js","apollo/pods/mixins/jqui-widget.js","apollo/pods/mode-of-transportation/create/controller.js","apollo/pods/mode-of-transportation/create/route.js","apollo/pods/mode-of-transportation/create/template.js","apollo/pods/mode-of-transportation/edit/route.js","apollo/pods/mode-of-transportation/index/controller.js","apollo/pods/mode-of-transportation/index/route.js","apollo/pods/mode-of-transportation/index/template.js","apollo/pods/no-accessible-transport-types/route.js","apollo/pods/no-accessible-transport-types/template.js","apollo/pods/note/model.js","apollo/pods/notification-log/model.js","apollo/pods/notification/model.js","apollo/pods/notifications/create/controller.js","apollo/pods/notifications/create/route.js","apollo/pods/notifications/create/template.js","apollo/pods/notifications/edit/route.js","apollo/pods/notifications/index/controller.js","apollo/pods/notifications/index/route.js","apollo/pods/notifications/index/template.js","apollo/pods/offer/adapter.js","apollo/pods/offer/model.js","apollo/pods/offer/serializer.js","apollo/pods/offers/modals/offer-form/controller.js","apollo/pods/offers/modals/offer-form/template.js","apollo/pods/operator/model.js","apollo/pods/package-type-transport-type/model.js","apollo/pods/package-type/model.js","apollo/pods/packaging/model.js","apollo/pods/parameter/model.js","apollo/pods/partnership-contractors-group/model.js","apollo/pods/partnership-type/model.js","apollo/pods/partnership/model.js","apollo/pods/partnership/serializer.js","apollo/pods/partnerships/index/controller.js","apollo/pods/partnerships/index/route.js","apollo/pods/partnerships/index/template.js","apollo/pods/periodic-transport/model.js","apollo/pods/person-queue/model.js","apollo/pods/place/model.js","apollo/pods/places/add-place/route.js","apollo/pods/places/create/controller.js","apollo/pods/places/create/route.js","apollo/pods/places/create/template.js","apollo/pods/places/edit/route.js","apollo/pods/planning/index/controller.js","apollo/pods/planning/index/route.js","apollo/pods/planning/index/template.js","apollo/pods/planning/modals/create-from-transport/controller.js","apollo/pods/planning/modals/create-from-transport/template.js","apollo/pods/planning/modals/create/controller.js","apollo/pods/planning/modals/create/template.js","apollo/pods/port/model.js","apollo/pods/price-list-setting/model.js","apollo/pods/price-list/index/controller.js","apollo/pods/price-list/index/route.js","apollo/pods/price-list/index/template.js","apollo/pods/price-list/modals/rate-form/conditional-rates-panel/component.js","apollo/pods/price-list/modals/rate-form/conditional-rates-panel/template.js","apollo/pods/price-list/modals/rate-form/controller.js","apollo/pods/price-list/modals/rate-form/template.js","apollo/pods/principal-contractors-group-type/model.js","apollo/pods/principal-contractors-group-type/serializer.js","apollo/pods/product-setting/model.js","apollo/pods/product/model.js","apollo/pods/products/create/route.js","apollo/pods/products/edit/controller.js","apollo/pods/products/edit/route.js","apollo/pods/products/edit/template.js","apollo/pods/products/index/controller.js","apollo/pods/products/index/route.js","apollo/pods/products/index/template.js","apollo/pods/queue-status/index/controller.js","apollo/pods/queue-status/index/route.js","apollo/pods/queue-status/index/template.js","apollo/pods/queue/model.js","apollo/pods/queues/add-queue/route.js","apollo/pods/queues/create/controller.js","apollo/pods/queues/create/route.js","apollo/pods/queues/create/template.js","apollo/pods/queues/edit/route.js","apollo/pods/queues/index/controller.js","apollo/pods/queues/index/route.js","apollo/pods/queues/index/template.js","apollo/pods/ramp/model.js","apollo/pods/ramp/serializer.js","apollo/pods/ramps/create/controller.js","apollo/pods/ramps/create/route.js","apollo/pods/ramps/create/template.js","apollo/pods/ramps/edit/route.js","apollo/pods/reset-password/controller.js","apollo/pods/reset-password/route.js","apollo/pods/reset-password/template.js","apollo/pods/role-group-authority/model.js","apollo/pods/role-group-invitation-restriction/model.js","apollo/pods/role-group-statistics-report/model.js","apollo/pods/role-group/model.js","apollo/pods/role-groups/create/controller.js","apollo/pods/role-groups/create/route.js","apollo/pods/role-groups/create/template.js","apollo/pods/role/model.js","apollo/pods/route-address/model.js","apollo/pods/route-custom-field/model.js","apollo/pods/route-offer/model.js","apollo/pods/route-offer/serializer.js","apollo/pods/route/adapter.js","apollo/pods/route/model.js","apollo/pods/route/serializer.js","apollo/pods/routes/modals/route-form/show/controller.js","apollo/pods/routes/modals/route-form/show/template.js","apollo/pods/routes/modals/route-form/template/component.js","apollo/pods/routes/modals/route-form/template/template.js","apollo/pods/schedule-setting/model.js","apollo/pods/secondary-section/model.js","apollo/pods/secondary-section/serializer.js","apollo/pods/section-action/model.js","apollo/pods/section/model.js","apollo/pods/sections/modals/rejection-modal/controller.js","apollo/pods/sections/modals/rejection-modal/template.js","apollo/pods/sent-notification/model.js","apollo/pods/sent-notification/serializer.js","apollo/pods/serial-transport/model.js","apollo/pods/setting/model.js","apollo/pods/settings/create/controller.js","apollo/pods/settings/create/route.js","apollo/pods/settings/create/template.js","apollo/pods/settings/edit/controller.js","apollo/pods/settings/edit/route.js","apollo/pods/settings/edit/template.js","apollo/pods/settings/index/controller.js","apollo/pods/settings/index/route.js","apollo/pods/settings/index/template.js","apollo/pods/special-field-option/model.js","apollo/pods/square-setting/model.js","apollo/pods/square-settings/edit/controller.js","apollo/pods/square-settings/edit/route.js","apollo/pods/square-settings/edit/template.js","apollo/pods/square/model.js","apollo/pods/squares/create/controller.js","apollo/pods/squares/create/route.js","apollo/pods/squares/create/template.js","apollo/pods/squares/edit/route.js","apollo/pods/statistics-report/index/controller.js","apollo/pods/statistics-report/index/route.js","apollo/pods/statistics-report/index/template.js","apollo/pods/statistics-report/model.js","apollo/pods/step-package-type/model.js","apollo/pods/step-warehouse-location/model.js","apollo/pods/step/model.js","apollo/pods/step/serializer.js","apollo/pods/super-admin/create/controller.js","apollo/pods/super-admin/create/route.js","apollo/pods/super-admin/create/template.js","apollo/pods/super-admin/index/controller.js","apollo/pods/super-admin/index/route.js","apollo/pods/super-admin/index/template.js","apollo/pods/surcharge-definition/model.js","apollo/pods/surcharge-definitions/index/controller.js","apollo/pods/surcharge-definitions/index/route.js","apollo/pods/surcharge-definitions/index/template.js","apollo/pods/surcharge-definitions/modals/form/controller.js","apollo/pods/surcharge-definitions/modals/form/template.js","apollo/pods/surcharge-value/model.js","apollo/pods/table-column/model.js","apollo/pods/task/model.js","apollo/pods/task/serializer.js","apollo/pods/tasks/edit/controller.js","apollo/pods/tasks/edit/route.js","apollo/pods/tasks/edit/template.js","apollo/pods/temporary-account-modal/controller.js","apollo/pods/temporary-account-modal/template.js","apollo/pods/terms-of-service/model.js","apollo/pods/terms/review/controller.js","apollo/pods/terms/review/route.js","apollo/pods/terms/review/template.js","apollo/pods/themes/table-theme.js","apollo/pods/time-window/modals/window-note/controller.js","apollo/pods/time-window/modals/window-note/template.js","apollo/pods/time-window/model.js","apollo/pods/time-windows-summary-modal/controller.js","apollo/pods/time-windows-summary-modal/template.js","apollo/pods/transaction-setting/model.js","apollo/pods/transaction-unit-amount-type/model.js","apollo/pods/transaction-unit-amount-types/index/controller.js","apollo/pods/transaction-unit-amount-types/index/route.js","apollo/pods/transaction-unit-amount-types/index/template.js","apollo/pods/transaction-unit-amount-types/modals/form/controller.js","apollo/pods/transaction-unit-amount-types/modals/form/template.js","apollo/pods/transaction/adapter.js","apollo/pods/transaction/modals/choose-carrier/controller.js","apollo/pods/transaction/modals/choose-carrier/template.js","apollo/pods/transaction/modals/choose-carrier/transaction-prices-section/delivery-price-labels/template.js","apollo/pods/transaction/modals/choose-carrier/transaction-prices-section/price-label/template.js","apollo/pods/transaction/modals/choose-carrier/transaction-prices-section/template.js","apollo/pods/transaction/modals/choose-courier/controller.js","apollo/pods/transaction/modals/choose-courier/template.js","apollo/pods/transaction/modals/courier-errors/controller.js","apollo/pods/transaction/modals/courier-errors/template.js","apollo/pods/transaction/modals/edit-freight/controller.js","apollo/pods/transaction/modals/edit-freight/template.js","apollo/pods/transaction/model.js","apollo/pods/transaction/serializer.js","apollo/pods/transport-log/model.js","apollo/pods/transport-order-setting/model.js","apollo/pods/transport-packaging/model.js","apollo/pods/transport-relation/model.js","apollo/pods/transport-transport-relation/model.js","apollo/pods/transport-type-role-group-table-column/model.js","apollo/pods/transport-type-schedule-setting/model.js","apollo/pods/transport-type/model.js","apollo/pods/transport-type/serializer.js","apollo/pods/transport-types/artr-settings/controller.js","apollo/pods/transport-types/artr-settings/route.js","apollo/pods/transport-types/artr-settings/template.js","apollo/pods/transport-types/auction-settings/controller.js","apollo/pods/transport-types/auction-settings/route.js","apollo/pods/transport-types/auction-settings/template.js","apollo/pods/transport-types/cmr-settings/controller.js","apollo/pods/transport-types/cmr-settings/route.js","apollo/pods/transport-types/cmr-settings/template.js","apollo/pods/transport-types/courier-settings/controller.js","apollo/pods/transport-types/courier-settings/route.js","apollo/pods/transport-types/courier-settings/template.js","apollo/pods/transport-types/create-definition/route.js","apollo/pods/transport-types/create/controller.js","apollo/pods/transport-types/create/route.js","apollo/pods/transport-types/create/template.js","apollo/pods/transport-types/delivery-settings/controller.js","apollo/pods/transport-types/delivery-settings/route.js","apollo/pods/transport-types/delivery-settings/template.js","apollo/pods/transport-types/edit/controller.js","apollo/pods/transport-types/edit/route.js","apollo/pods/transport-types/edit/template.js","apollo/pods/transport-types/index-settings/controller.js","apollo/pods/transport-types/index-settings/route.js","apollo/pods/transport-types/index-settings/template.js","apollo/pods/transport-types/package-type-settings/controller.js","apollo/pods/transport-types/package-type-settings/route.js","apollo/pods/transport-types/package-type-settings/template.js","apollo/pods/transport-types/price-list-settings/controller.js","apollo/pods/transport-types/price-list-settings/route.js","apollo/pods/transport-types/price-list-settings/template.js","apollo/pods/transport-types/schedule-settings/controller.js","apollo/pods/transport-types/schedule-settings/route.js","apollo/pods/transport-types/schedule-settings/template.js","apollo/pods/transport-types/settings/controller.js","apollo/pods/transport-types/settings/route.js","apollo/pods/transport-types/settings/template.js","apollo/pods/transport-types/transaction-settings/controller.js","apollo/pods/transport-types/transaction-settings/route.js","apollo/pods/transport-types/transaction-settings/template.js","apollo/pods/transport-types/transport-order-settings/controller.js","apollo/pods/transport-types/transport-order-settings/route.js","apollo/pods/transport-types/transport-order-settings/template.js","apollo/pods/transport/adapter.js","apollo/pods/transport/model.js","apollo/pods/transport/serializer.js","apollo/pods/transports/archive/controller.js","apollo/pods/transports/archive/route.js","apollo/pods/transports/archive/template.js","apollo/pods/transports/index/controller.js","apollo/pods/transports/index/route.js","apollo/pods/transports/index/template.js","apollo/pods/transports/modals/create-similar-multiple/controller.js","apollo/pods/transports/modals/create-similar-multiple/template.js","apollo/pods/transports/modals/create-transport/controller.js","apollo/pods/transports/modals/create-transport/template.js","apollo/pods/transports/modals/email-advice/controller.js","apollo/pods/transports/modals/email-advice/template.js","apollo/pods/transports/modals/loading-data/template.js","apollo/pods/transports/modals/transport-relations/controller.js","apollo/pods/transports/modals/transport-relations/template.js","apollo/pods/transports/modals/transport-types-to-excel/controller.js","apollo/pods/transports/modals/transport-types-to-excel/template.js","apollo/pods/transports/modals/warehouses-to-excel/controller.js","apollo/pods/transports/modals/warehouses-to-excel/template.js","apollo/pods/transports/print/route.js","apollo/pods/truck-type-meta/model.js","apollo/pods/truck-type/model.js","apollo/pods/truck-type/serializer.js","apollo/pods/truck-types/index/controller.js","apollo/pods/truck-types/index/route.js","apollo/pods/truck-types/index/template.js","apollo/pods/truck-types/modals/form/controller.js","apollo/pods/truck-types/modals/form/template.js","apollo/pods/truck/model.js","apollo/pods/trucks/index/route.js","apollo/pods/trucks/index/template.js","apollo/pods/user-group/model.js","apollo/pods/user-groups/create/controller.js","apollo/pods/user-groups/create/route.js","apollo/pods/user-groups/create/template.js","apollo/pods/user-groups/edit/route.js","apollo/pods/user-groups/index/controller.js","apollo/pods/user-groups/index/route.js","apollo/pods/user-groups/index/template.js","apollo/pods/user-notification/model.js","apollo/pods/user/model.js","apollo/pods/user/serializer.js","apollo/pods/users/activity/controller.js","apollo/pods/users/activity/route.js","apollo/pods/users/activity/template.js","apollo/pods/users/create/controller.js","apollo/pods/users/create/route.js","apollo/pods/users/create/template.js","apollo/pods/users/edit/route.js","apollo/pods/users/index/controller.js","apollo/pods/users/index/route.js","apollo/pods/users/index/template.js","apollo/pods/users/notifications/controller.js","apollo/pods/users/notifications/route.js","apollo/pods/users/notifications/template.js","apollo/pods/users/queues/controller.js","apollo/pods/users/queues/route.js","apollo/pods/users/queues/template.js","apollo/pods/users/ramps/controller.js","apollo/pods/users/ramps/route.js","apollo/pods/users/ramps/template.js","apollo/pods/users/show/controller.js","apollo/pods/users/show/route.js","apollo/pods/users/show/template.js","apollo/pods/vehicle-main-section/model.js","apollo/pods/vehicle-main-section/serializer.js","apollo/pods/voivodeship/model.js","apollo/pods/warehouse-location/model.js","apollo/pods/warehouse-locations/create/controller.js","apollo/pods/warehouse-locations/create/route.js","apollo/pods/warehouse-locations/create/template.js","apollo/pods/warehouse-locations/edit/route.js","apollo/pods/warehouse-zone-transport-type/model.js","apollo/pods/warehouse-zone/model.js","apollo/pods/warehouse-zones/add-zone/route.js","apollo/pods/warehouse-zones/create/controller.js","apollo/pods/warehouse-zones/create/route.js","apollo/pods/warehouse-zones/create/template.js","apollo/pods/warehouse-zones/edit/route.js","apollo/pods/warehouse/model.js","apollo/pods/warehouse/serializer.js","apollo/pods/warehouses/add-ramp/route.js","apollo/pods/warehouses/combined-schedule/route.js","apollo/pods/warehouses/create/controller.js","apollo/pods/warehouses/create/route.js","apollo/pods/warehouses/create/template.js","apollo/pods/warehouses/edit/route.js","apollo/pods/warehouses/hd/route.js","apollo/pods/warehouses/schedule/controller.js","apollo/pods/warehouses/schedule/route.js","apollo/pods/warehouses/schedule/template.js","apollo/pods/warehouses/template/controller.js","apollo/pods/warehouses/template/route.js","apollo/pods/warehouses/template/template.js","apollo/pods/weight-log/model.js","apollo/pods/weight/model.js","apollo/pods/weight/serializer.js","apollo/pods/worker/model.js","apollo/pods/workers/index/controller.js","apollo/pods/workers/index/route.js","apollo/pods/workers/index/template.js","apollo/pods/workflow/model.js","apollo/pods/workflow/serializer.js","apollo/pods/workflows/edit/controller.js","apollo/pods/workflows/edit/route.js","apollo/pods/workflows/edit/template.js","apollo/resolver.js","apollo/router.js","apollo/routes/application.js","apollo/serializers/application.js","apollo/services/action-progress-service.js","apollo/services/address-unload-time-service.js","apollo/services/aggregated-authority-service.js","apollo/services/ajax-service.js","apollo/services/ajax.js","apollo/services/amount-of-cover-service.js","apollo/services/api/apollo-api-service.js","apollo/services/api/checkpoint-api-service.js","apollo/services/api/weight-api-service.js","apollo/services/application-tab-active-service.js","apollo/services/authority/authority-checker-service.js","apollo/services/checkpoint-service.js","apollo/services/classification-resource-pooling-service.js","apollo/services/config-service.js","apollo/services/cookies.js","apollo/services/currency-exchange-service.js","apollo/services/date-utils.js","apollo/services/date/date-formatter-service.js","apollo/services/date/locale-timezone-holder-service.js","apollo/services/delivery-service.js","apollo/services/drag-and-drop-service.js","apollo/services/drag-coordinator.js","apollo/services/ember-data/record-manager.js","apollo/services/ember-data/simple-model-mapper.js","apollo/services/enum-service.js","apollo/services/error-service.js","apollo/services/fresh-widget.js","apollo/services/grouping-log-service.js","apollo/services/gus-service.js","apollo/services/indexes-service.js","apollo/services/intl.js","apollo/services/language-service.js","apollo/services/language/ui-language-service.js","apollo/services/modal-dialog.js","apollo/services/modal-service.js","apollo/services/moment.js","apollo/services/multi-archive-tracker-service.js","apollo/services/operator-service.js","apollo/services/polling/notification-service.js","apollo/services/polling/planning-service.js","apollo/services/polling/schedule-service.js","apollo/services/port-service.js","apollo/services/rounding-service.js","apollo/services/route-service.js","apollo/services/route-transport-mapper-service.js","apollo/services/scanner-input-service.js","apollo/services/schedule/warehouse-zone-transport-type-service.js","apollo/services/sent-notification-service.js","apollo/services/session-account.js","apollo/services/session.js","apollo/services/surcharge-value-service.js","apollo/services/text-measurer.js","apollo/services/time-window-service.js","apollo/services/translation-service.js","apollo/services/transport-copy-service.js","apollo/services/transport-packaging-service.js","apollo/services/transport-relations/relation-sequence-service.js","apollo/services/transport-relations/relations-combiner.js","apollo/services/transport-relations/relations-tracker.js","apollo/services/transport-service.js","apollo/services/transport-type-settings-service.js","apollo/services/truck-type-service.js","apollo/services/user-access-service.js","apollo/services/uuid-service.js","apollo/services/validation-service.js","apollo/services/websocket-api.js","apollo/services/websocket.js","apollo/services/weight-service.js","apollo/session-stores/application.js","apollo/templates/application.js","apollo/templates/components/draggable-object-target.js","apollo/templates/components/draggable-object.js","apollo/templates/components/object-bin.js","apollo/templates/components/sortable-objects.js","apollo/templates/users/loading.js","apollo/themes/bootstrap3.js","apollo/themes/bootstrap4.js","apollo/themes/default.js","apollo/themes/ember-bootstrap-v3.js","apollo/themes/ember-bootstrap-v4.js","apollo/themes/ember-semanticui.js","apollo/themes/semanticui.js","apollo/transforms/json.js","apollo/transforms/list.js","apollo/transforms/object.js","apollo/transforms/raw.js","apollo/utils/date-formatter.js","apollo/utils/fmt.js","apollo/utils/functions/add-leading-zeros.js","apollo/utils/functions/date/add-hours.js","apollo/utils/functions/date/add-milliseconds.js","apollo/utils/functions/date/add-minutes.js","apollo/utils/functions/date/add-seconds.js","apollo/utils/functions/date/constants.js","apollo/utils/functions/date/get-offset-relative-to.js","apollo/utils/functions/date/get-offset.js","apollo/utils/functions/date/get-timezone-abbreviation.js","apollo/utils/functions/date/is-valid-iana-zone.js","apollo/utils/functions/generate-time-objects.js","apollo/utils/functions/get-warehouse-start-stop.js","apollo/utils/intl/missing-message.js","apollo/utils/objects/AggregatedAuthority.js","apollo/utils/objects/ArchiveTableFilters.js","apollo/utils/objects/Filter.js","apollo/utils/objects/Result.js","apollo/utils/objects/TransportsTableFilters.js","apollo/utils/objects/groupedLog.js","apollo/utils/parsers/numberParsers.js","apollo/utils/validators/regex-helper.js","apollo/utils/validators/registration-number-validator.js","apollo/utils/validators/step-dates-validator.js","apollo/utils/validators/windowFitsToScheduleValidator.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(\"apollo/adapters/application\", [\"exports\", \"ember-data\", \"ember-simple-auth/mixins/data-adapter-mixin\", \"apollo/config/environment\"], function (_exports, _emberData, _dataAdapterMixin, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  $.support.cors = true;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n\n  var _default = _emberData.default.JSONAPIAdapter.extend(_dataAdapterMixin.default, _emberData.default.BuildURLMixin, {\n    sessionAccount: service('session-account'),\n    host: _environment.default.serverURL,\n\n    authorize(xhr) {\n      const token = this.get('sessionAccount').get('token');\n\n      if (!token) {\n        return;\n      }\n\n      xhr.setRequestHeader('Authorization', `Bearer ${token}`);\n    },\n\n    updateRecord: function (store, type, snapshot) {\n      const data = {};\n      const serializer = store.serializerFor(type.modelName);\n      serializer.serializeIntoHash(data, type, snapshot);\n      const id = snapshot.id;\n      const url = this.buildURL(type.modelName, id, snapshot, 'updateRecord');\n      return this.ajax(url, \"PUT\", {\n        data: data\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/app\", [\"exports\", \"apollo/resolver\", \"apollo/config/environment\", \"ember-load-initializers\"], function (_exports, _resolver, _environment, _emberLoadInitializers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  Ember.MODEL_FACTORY_INJECTIONS = true;\n  const App = Ember.Application.extend({\n    modulePrefix: _environment.default.modulePrefix,\n    podModulePrefix: _environment.default.podModulePrefix,\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    customEvents: {\n      paste: 'paste'\n    },\n    Resolver: _resolver.default\n  });\n  Ember.RSVP.configure('onerror', function (e) {\n    console.error(e.message);\n    console.error(e.stack);\n  });\n  (0, _emberLoadInitializers.default)(App, _environment.default.modulePrefix);\n  var _default = App;\n  _exports.default = _default;\n});","define(\"apollo/authenticators/custom\", [\"exports\", \"ember-simple-auth/authenticators/base\", \"apollo/config/environment\", \"apollo/app\"], function (_exports, _base, _environment, _app) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n\n  var _default = _base.default.extend({\n    sessionAccount: service('session-account'),\n    session: service('session'),\n    store: service(),\n\n    restore(data) {\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        if (!Ember.isEmpty(data.token)) {\n          Ember.run(function () {\n            resolve({\n              token: data.token,\n              username: data.username\n            });\n          });\n        } else {\n          reject();\n        }\n      });\n    },\n\n    authenticate(credentials, endpoint) {\n      const tokenEndpoint = _environment.default.serverURL + endpoint;\n      const data = {\n        username: credentials.identification,\n        password: credentials.password\n      };\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        Ember.$.support.cors = true; // TODO :: apollo-api-service\n\n        Ember.$.ajax({\n          url: tokenEndpoint,\n          type: 'POST',\n          data: JSON.stringify(data),\n          contentType: 'application/json'\n        }).then(function (response) {\n          Ember.run(function () {\n            resolve({\n              token: response.access_token,\n              username: response.username\n            });\n          });\n        }, function (xhr) {\n          const responseText = xhr.responseText || xhr.statusText;\n          const status = xhr.status;\n          Ember.run(function () {\n            reject({\n              responseText,\n              status\n            });\n          });\n        });\n      });\n    },\n\n    invalidate() {\n      const self = this;\n      const token = this.get('sessionAccount').get('token');\n      const currentUser = this.get('sessionAccount').get('currentUser');\n      const username = currentUser ? currentUser.get('username') : '';\n      const logoutEndpoint = _environment.default.serverURL + `/logout?currentUser=${username}`;\n      return new Ember.RSVP.Promise(function (resolve) {\n        // TODO :: apollo-api-service\n        Ember.$.ajax({\n          url: logoutEndpoint,\n          type: 'POST',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(() => {\n          self.clearPrincipalCookie();\n          resolve();\n        }, response => {\n          self.clearPrincipalCookie();\n\n          if (response.status === 403) {\n            localStorage.setItem('logoutByConcurrentSession', 'true');\n          } else if (response.status === 404) {\n            localStorage.setItem('logoutByService', 'true');\n          }\n\n          resolve();\n        });\n      });\n    },\n\n    clearPrincipalCookie() {\n      localStorage.removeItem('previousPrincipalId');\n      localStorage.setItem('previousPrincipalId', localStorage.getItem('principalId'));\n      localStorage.removeItem('principalId');\n      console.log(`A 'principalId' cleared.`);\n    },\n\n    actions: {\n      sessionAuthenticationFailed: function (error) {\n        console.log(\"sessionAuthenticationFailed..\");\n        this.controllerFor('application').set('loginErrorMessage', error.message);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/cldrs/cs\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /*jslint eqeq: true*/\n  var _default = [{\n    \"locale\": \"cs\",\n    \"pluralRuleFunction\": function (n, ord) {\n      var s = String(n).split(\".\"),\n          i = s[0],\n          v0 = !s[1];\n      if (ord) return \"other\";\n      return n == 1 && v0 ? \"one\" : i >= 2 && i <= 4 && v0 ? \"few\" : !v0 ? \"many\" : \"other\";\n    },\n    \"fields\": {\n      \"year\": {\n        \"displayName\": \"rok\",\n        \"relative\": {\n          \"0\": \"tento rok\",\n          \"1\": \"příští rok\",\n          \"-1\": \"minulý rok\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"za {0} rok\",\n            \"few\": \"za {0} roky\",\n            \"many\": \"za {0} roku\",\n            \"other\": \"za {0} let\"\n          },\n          \"past\": {\n            \"one\": \"před {0} rokem\",\n            \"few\": \"před {0} lety\",\n            \"many\": \"před {0} rokem\",\n            \"other\": \"před {0} lety\"\n          }\n        }\n      },\n      \"month\": {\n        \"displayName\": \"měsíc\",\n        \"relative\": {\n          \"0\": \"tento měsíc\",\n          \"1\": \"příští měsíc\",\n          \"-1\": \"minulý měsíc\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"za {0} měsíc\",\n            \"few\": \"za {0} měsíce\",\n            \"many\": \"za {0} měsíce\",\n            \"other\": \"za {0} měsíců\"\n          },\n          \"past\": {\n            \"one\": \"před {0} měsícem\",\n            \"few\": \"před {0} měsíci\",\n            \"many\": \"před {0} měsícem\",\n            \"other\": \"před {0} měsíci\"\n          }\n        }\n      },\n      \"day\": {\n        \"displayName\": \"den\",\n        \"relative\": {\n          \"0\": \"dnes\",\n          \"1\": \"zítra\",\n          \"2\": \"pozítří\",\n          \"-2\": \"předevčírem\",\n          \"-1\": \"včera\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"za {0} den\",\n            \"few\": \"za {0} dny\",\n            \"many\": \"za {0} dne\",\n            \"other\": \"za {0} dní\"\n          },\n          \"past\": {\n            \"one\": \"před {0} dnem\",\n            \"few\": \"před {0} dny\",\n            \"many\": \"před {0} dnem\",\n            \"other\": \"před {0} dny\"\n          }\n        }\n      },\n      \"hour\": {\n        \"displayName\": \"hodina\",\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"za {0} hodinu\",\n            \"few\": \"za {0} hodiny\",\n            \"many\": \"za {0} hodiny\",\n            \"other\": \"za {0} hodin\"\n          },\n          \"past\": {\n            \"one\": \"před {0} hodinou\",\n            \"few\": \"před {0} hodinami\",\n            \"many\": \"před {0} hodinou\",\n            \"other\": \"před {0} hodinami\"\n          }\n        }\n      },\n      \"minute\": {\n        \"displayName\": \"minuta\",\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"za {0} minutu\",\n            \"few\": \"za {0} minuty\",\n            \"many\": \"za {0} minuty\",\n            \"other\": \"za {0} minut\"\n          },\n          \"past\": {\n            \"one\": \"před {0} minutou\",\n            \"few\": \"před {0} minutami\",\n            \"many\": \"před {0} minutou\",\n            \"other\": \"před {0} minutami\"\n          }\n        }\n      },\n      \"second\": {\n        \"displayName\": \"sekunda\",\n        \"relative\": {\n          \"0\": \"nyní\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"za {0} sekundu\",\n            \"few\": \"za {0} sekundy\",\n            \"many\": \"za {0} sekundy\",\n            \"other\": \"za {0} sekund\"\n          },\n          \"past\": {\n            \"one\": \"před {0} sekundou\",\n            \"few\": \"před {0} sekundami\",\n            \"many\": \"před {0} sekundou\",\n            \"other\": \"před {0} sekundami\"\n          }\n        }\n      }\n    }\n  }, {\n    \"locale\": \"cs-cs\",\n    \"parentLocale\": \"cs\"\n  }];\n  _exports.default = _default;\n});","define(\"apollo/cldrs/de\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /*jslint eqeq: true*/\n  var _default = [{\n    \"locale\": \"de\",\n    \"pluralRuleFunction\": function (n, ord) {\n      var s = String(n).split(\".\"),\n          v0 = !s[1];\n      if (ord) return \"other\";\n      return n == 1 && v0 ? \"one\" : \"other\";\n    },\n    \"fields\": {\n      \"year\": {\n        \"displayName\": \"Jahr\",\n        \"relative\": {\n          \"0\": \"dieses Jahr\",\n          \"1\": \"nächstes Jahr\",\n          \"-1\": \"letztes Jahr\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"in {0} Jahr\",\n            \"other\": \"in {0} Jahren\"\n          },\n          \"past\": {\n            \"one\": \"vor {0} Jahr\",\n            \"other\": \"vor {0} Jahren\"\n          }\n        }\n      },\n      \"month\": {\n        \"displayName\": \"Monat\",\n        \"relative\": {\n          \"0\": \"diesen Monat\",\n          \"1\": \"nächsten Monat\",\n          \"-1\": \"letzten Monat\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"in {0} Monat\",\n            \"other\": \"in {0} Monaten\"\n          },\n          \"past\": {\n            \"one\": \"vor {0} Monat\",\n            \"other\": \"vor {0} Monaten\"\n          }\n        }\n      },\n      \"day\": {\n        \"displayName\": \"Tag\",\n        \"relative\": {\n          \"0\": \"heute\",\n          \"1\": \"morgen\",\n          \"2\": \"übermorgen\",\n          \"-2\": \"vorgestern\",\n          \"-1\": \"gestern\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"in {0} Tag\",\n            \"other\": \"in {0} Tagen\"\n          },\n          \"past\": {\n            \"one\": \"vor {0} Tag\",\n            \"other\": \"vor {0} Tagen\"\n          }\n        }\n      },\n      \"hour\": {\n        \"displayName\": \"Stunde\",\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"in {0} Stunde\",\n            \"other\": \"in {0} Stunden\"\n          },\n          \"past\": {\n            \"one\": \"vor {0} Stunde\",\n            \"other\": \"vor {0} Stunden\"\n          }\n        }\n      },\n      \"minute\": {\n        \"displayName\": \"Minute\",\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"in {0} Minute\",\n            \"other\": \"in {0} Minuten\"\n          },\n          \"past\": {\n            \"one\": \"vor {0} Minute\",\n            \"other\": \"vor {0} Minuten\"\n          }\n        }\n      },\n      \"second\": {\n        \"displayName\": \"Sekunde\",\n        \"relative\": {\n          \"0\": \"jetzt\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"in {0} Sekunde\",\n            \"other\": \"in {0} Sekunden\"\n          },\n          \"past\": {\n            \"one\": \"vor {0} Sekunde\",\n            \"other\": \"vor {0} Sekunden\"\n          }\n        }\n      }\n    }\n  }, {\n    \"locale\": \"de-de\",\n    \"parentLocale\": \"de\"\n  }];\n  _exports.default = _default;\n});","define(\"apollo/cldrs/en\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /*jslint eqeq: true*/\n  var _default = [{\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      \"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      \"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      \"hour\": {\n        \"displayName\": \"hour\",\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      \"minute\": {\n        \"displayName\": \"minute\",\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      \"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    }\n  }, {\n    \"locale\": \"en-US\",\n    \"parentLocale\": \"en\"\n  }, {\n    \"locale\": \"en-CA\",\n    \"parentLocale\": \"en-001\"\n  }, {\n    \"locale\": \"en-001\",\n    \"parentLocale\": \"en\"\n  }];\n  _exports.default = _default;\n});","define(\"apollo/cldrs/es\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /*jslint eqeq: true*/\n  var _default = [{\n    \"locale\": \"es\",\n    \"pluralRuleFunction\": function (n, ord) {\n      if (ord) return \"other\";\n      return n == 1 ? \"one\" : \"other\";\n    },\n    \"fields\": {\n      \"year\": {\n        \"displayName\": \"año\",\n        \"relative\": {\n          \"0\": \"este año\",\n          \"1\": \"el próximo año\",\n          \"-1\": \"el año pasado\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"dentro de {0} año\",\n            \"other\": \"dentro de {0} años\"\n          },\n          \"past\": {\n            \"one\": \"hace {0} año\",\n            \"other\": \"hace {0} años\"\n          }\n        }\n      },\n      \"month\": {\n        \"displayName\": \"mes\",\n        \"relative\": {\n          \"0\": \"este mes\",\n          \"1\": \"el próximo mes\",\n          \"-1\": \"el mes pasado\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"dentro de {0} mes\",\n            \"other\": \"dentro de {0} meses\"\n          },\n          \"past\": {\n            \"one\": \"hace {0} mes\",\n            \"other\": \"hace {0} meses\"\n          }\n        }\n      },\n      \"day\": {\n        \"displayName\": \"día\",\n        \"relative\": {\n          \"0\": \"hoy\",\n          \"1\": \"mañana\",\n          \"2\": \"pasado mañana\",\n          \"-2\": \"anteayer\",\n          \"-1\": \"ayer\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"dentro de {0} día\",\n            \"other\": \"dentro de {0} días\"\n          },\n          \"past\": {\n            \"one\": \"hace {0} día\",\n            \"other\": \"hace {0} días\"\n          }\n        }\n      },\n      \"hour\": {\n        \"displayName\": \"hora\",\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"dentro de {0} hora\",\n            \"other\": \"dentro de {0} horas\"\n          },\n          \"past\": {\n            \"one\": \"hace {0} hora\",\n            \"other\": \"hace {0} horas\"\n          }\n        }\n      },\n      \"minute\": {\n        \"displayName\": \"minuto\",\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"dentro de {0} minuto\",\n            \"other\": \"dentro de {0} minutos\"\n          },\n          \"past\": {\n            \"one\": \"hace {0} minuto\",\n            \"other\": \"hace {0} minutos\"\n          }\n        }\n      },\n      \"second\": {\n        \"displayName\": \"segundo\",\n        \"relative\": {\n          \"0\": \"ahora\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"dentro de {0} segundo\",\n            \"other\": \"dentro de {0} segundos\"\n          },\n          \"past\": {\n            \"one\": \"hace {0} segundo\",\n            \"other\": \"hace {0} segundos\"\n          }\n        }\n      }\n    }\n  }, {\n    \"locale\": \"es-es\",\n    \"parentLocale\": \"es\"\n  }];\n  _exports.default = _default;\n});","define(\"apollo/cldrs/fr\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /*jslint eqeq: true*/\n  var _default = [{\n    \"locale\": \"fr-fr\",\n    \"parentLocale\": \"fr\"\n  }, {\n    \"locale\": \"fr\",\n    \"pluralRuleFunction\": function (n, ord) {\n      if (ord) return n == 1 ? \"one\" : \"other\";\n      return n >= 0 && n < 2 ? \"one\" : \"other\";\n    },\n    \"fields\": {\n      \"year\": {\n        \"displayName\": \"année\",\n        \"relative\": {\n          \"0\": \"cette année\",\n          \"1\": \"l’année prochaine\",\n          \"-1\": \"l’année dernière\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"dans {0} an\",\n            \"other\": \"dans {0} ans\"\n          },\n          \"past\": {\n            \"one\": \"il y a {0} an\",\n            \"other\": \"il y a {0} ans\"\n          }\n        }\n      },\n      \"month\": {\n        \"displayName\": \"mois\",\n        \"relative\": {\n          \"0\": \"ce mois-ci\",\n          \"1\": \"le mois prochain\",\n          \"-1\": \"le mois dernier\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"dans {0} mois\",\n            \"other\": \"dans {0} mois\"\n          },\n          \"past\": {\n            \"one\": \"il y a {0} mois\",\n            \"other\": \"il y a {0} mois\"\n          }\n        }\n      },\n      \"day\": {\n        \"displayName\": \"jour\",\n        \"relative\": {\n          \"0\": \"aujourd’hui\",\n          \"1\": \"demain\",\n          \"2\": \"après-demain\",\n          \"-2\": \"avant-hier\",\n          \"-1\": \"hier\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"dans {0} jour\",\n            \"other\": \"dans {0} jours\"\n          },\n          \"past\": {\n            \"one\": \"il y a {0} jour\",\n            \"other\": \"il y a {0} jours\"\n          }\n        }\n      },\n      \"hour\": {\n        \"displayName\": \"heure\",\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"dans {0} heure\",\n            \"other\": \"dans {0} heures\"\n          },\n          \"past\": {\n            \"one\": \"il y a {0} heure\",\n            \"other\": \"il y a {0} heures\"\n          }\n        }\n      },\n      \"minute\": {\n        \"displayName\": \"minute\",\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"dans {0} minute\",\n            \"other\": \"dans {0} minutes\"\n          },\n          \"past\": {\n            \"one\": \"il y a {0} minute\",\n            \"other\": \"il y a {0} minutes\"\n          }\n        }\n      },\n      \"second\": {\n        \"displayName\": \"seconde\",\n        \"relative\": {\n          \"0\": \"maintenant\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"dans {0} seconde\",\n            \"other\": \"dans {0} secondes\"\n          },\n          \"past\": {\n            \"one\": \"il y a {0} seconde\",\n            \"other\": \"il y a {0} secondes\"\n          }\n        }\n      }\n    }\n  }];\n  _exports.default = _default;\n});","define(\"apollo/cldrs/it\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /*jslint eqeq: true*/\n  var _default = [{\n    \"locale\": \"it\",\n    \"pluralRuleFunction\": function (n, ord) {\n      var s = String(n).split(\".\"),\n          v0 = !s[1];\n      if (ord) return n == 11 || n == 8 || n == 80 || n == 800 ? \"many\" : \"other\";\n      return n == 1 && v0 ? \"one\" : \"other\";\n    },\n    \"fields\": {\n      \"year\": {\n        \"displayName\": \"anno\",\n        \"relative\": {\n          \"0\": \"quest’anno\",\n          \"1\": \"anno prossimo\",\n          \"-1\": \"anno scorso\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"tra {0} anno\",\n            \"other\": \"tra {0} anni\"\n          },\n          \"past\": {\n            \"one\": \"{0} anno fa\",\n            \"other\": \"{0} anni fa\"\n          }\n        }\n      },\n      \"month\": {\n        \"displayName\": \"mese\",\n        \"relative\": {\n          \"0\": \"questo mese\",\n          \"1\": \"mese prossimo\",\n          \"-1\": \"mese scorso\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"tra {0} mese\",\n            \"other\": \"tra {0} mesi\"\n          },\n          \"past\": {\n            \"one\": \"{0} mese fa\",\n            \"other\": \"{0} mesi fa\"\n          }\n        }\n      },\n      \"day\": {\n        \"displayName\": \"giorno\",\n        \"relative\": {\n          \"0\": \"oggi\",\n          \"1\": \"domani\",\n          \"2\": \"dopodomani\",\n          \"-2\": \"l’altro ieri\",\n          \"-1\": \"ieri\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"tra {0} giorno\",\n            \"other\": \"tra {0} giorni\"\n          },\n          \"past\": {\n            \"one\": \"{0} giorno fa\",\n            \"other\": \"{0} giorni fa\"\n          }\n        }\n      },\n      \"hour\": {\n        \"displayName\": \"ora\",\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"tra {0} ora\",\n            \"other\": \"tra {0} ore\"\n          },\n          \"past\": {\n            \"one\": \"{0} ora fa\",\n            \"other\": \"{0} ore fa\"\n          }\n        }\n      },\n      \"minute\": {\n        \"displayName\": \"minuto\",\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"tra {0} minuto\",\n            \"other\": \"tra {0} minuti\"\n          },\n          \"past\": {\n            \"one\": \"{0} minuto fa\",\n            \"other\": \"{0} minuti fa\"\n          }\n        }\n      },\n      \"second\": {\n        \"displayName\": \"Secondo\",\n        \"relative\": {\n          \"0\": \"ora\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"tra {0} secondo\",\n            \"other\": \"tra {0} secondi\"\n          },\n          \"past\": {\n            \"one\": \"{0} secondo fa\",\n            \"other\": \"{0} secondi fa\"\n          }\n        }\n      }\n    }\n  }, {\n    \"locale\": \"it-it\",\n    \"parentLocale\": \"it\"\n  }];\n  _exports.default = _default;\n});","define(\"apollo/cldrs/pl\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /*jslint eqeq: true*/\n  var _default = [{\n    \"locale\": \"pl\",\n    \"pluralRuleFunction\": function (n, ord) {\n      var s = String(n).split(\".\"),\n          i = s[0],\n          v0 = !s[1],\n          i10 = i.slice(-1),\n          i100 = i.slice(-2);\n      if (ord) return \"other\";\n      return n == 1 && v0 ? \"one\" : v0 && i10 >= 2 && i10 <= 4 && (i100 < 12 || i100 > 14) ? \"few\" : v0 && i != 1 && (i10 == 0 || i10 == 1) || v0 && i10 >= 5 && i10 <= 9 || v0 && i100 >= 12 && i100 <= 14 ? \"many\" : \"other\";\n    },\n    \"fields\": {\n      \"year\": {\n        \"displayName\": \"rok\",\n        \"relative\": {\n          \"0\": \"w tym roku\",\n          \"1\": \"w przyszłym roku\",\n          \"-1\": \"w zeszłym roku\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"za {0} rok\",\n            \"few\": \"za {0} lata\",\n            \"many\": \"za {0} lat\",\n            \"other\": \"za {0} roku\"\n          },\n          \"past\": {\n            \"one\": \"{0} rok temu\",\n            \"few\": \"{0} lata temu\",\n            \"many\": \"{0} lat temu\",\n            \"other\": \"{0} roku temu\"\n          }\n        }\n      },\n      \"month\": {\n        \"displayName\": \"miesiąc\",\n        \"relative\": {\n          \"0\": \"w tym miesiącu\",\n          \"1\": \"w przyszłym miesiącu\",\n          \"-1\": \"w zeszłym miesiącu\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"za {0} miesiąc\",\n            \"few\": \"za {0} miesiące\",\n            \"many\": \"za {0} miesięcy\",\n            \"other\": \"za {0} miesiąca\"\n          },\n          \"past\": {\n            \"one\": \"{0} miesiąc temu\",\n            \"few\": \"{0} miesiące temu\",\n            \"many\": \"{0} miesięcy temu\",\n            \"other\": \"{0} miesiąca temu\"\n          }\n        }\n      },\n      \"day\": {\n        \"displayName\": \"dzień\",\n        \"relative\": {\n          \"0\": \"dzisiaj\",\n          \"1\": \"jutro\",\n          \"2\": \"pojutrze\",\n          \"-2\": \"przedwczoraj\",\n          \"-1\": \"wczoraj\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"za {0} dzień\",\n            \"few\": \"za {0} dni\",\n            \"many\": \"za {0} dni\",\n            \"other\": \"za {0} dnia\"\n          },\n          \"past\": {\n            \"one\": \"{0} dzień temu\",\n            \"few\": \"{0} dni temu\",\n            \"many\": \"{0} dni temu\",\n            \"other\": \"{0} dnia temu\"\n          }\n        }\n      },\n      \"hour\": {\n        \"displayName\": \"godzina\",\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"za {0} godzinę\",\n            \"few\": \"za {0} godziny\",\n            \"many\": \"za {0} godzin\",\n            \"other\": \"za {0} godziny\"\n          },\n          \"past\": {\n            \"one\": \"{0} godzinę temu\",\n            \"few\": \"{0} godziny temu\",\n            \"many\": \"{0} godzin temu\",\n            \"other\": \"{0} godziny temu\"\n          }\n        }\n      },\n      \"minute\": {\n        \"displayName\": \"minuta\",\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"za {0} minutę\",\n            \"few\": \"za {0} minuty\",\n            \"many\": \"za {0} minut\",\n            \"other\": \"za {0} minuty\"\n          },\n          \"past\": {\n            \"one\": \"{0} minutę temu\",\n            \"few\": \"{0} minuty temu\",\n            \"many\": \"{0} minut temu\",\n            \"other\": \"{0} minuty temu\"\n          }\n        }\n      },\n      \"second\": {\n        \"displayName\": \"sekunda\",\n        \"relative\": {\n          \"0\": \"teraz\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"za {0} sekundę\",\n            \"few\": \"za {0} sekundy\",\n            \"many\": \"za {0} sekund\",\n            \"other\": \"za {0} sekundy\"\n          },\n          \"past\": {\n            \"one\": \"{0} sekundę temu\",\n            \"few\": \"{0} sekundy temu\",\n            \"many\": \"{0} sekund temu\",\n            \"other\": \"{0} sekundy temu\"\n          }\n        }\n      }\n    }\n  }, {\n    \"locale\": \"pl-pl\",\n    \"parentLocale\": \"pl\"\n  }];\n  _exports.default = _default;\n});","define(\"apollo/cldrs/tr\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /*jslint eqeq: true*/\n  var _default = [{\n    \"locale\": \"tr\",\n    \"pluralRuleFunction\": function (n, ord) {\n      if (ord) return \"other\";\n      return n == 1 ? \"one\" : \"other\";\n    },\n    \"fields\": {\n      \"year\": {\n        \"displayName\": \"Yıl\",\n        \"relative\": {\n          \"0\": \"bu yıl\",\n          \"1\": \"gelecek yıl\",\n          \"-1\": \"geçen yıl\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"{0} yıl sonra\",\n            \"other\": \"{0} yıl sonra\"\n          },\n          \"past\": {\n            \"one\": \"{0} yıl önce\",\n            \"other\": \"{0} yıl önce\"\n          }\n        }\n      },\n      \"month\": {\n        \"displayName\": \"Ay\",\n        \"relative\": {\n          \"0\": \"bu ay\",\n          \"1\": \"gelecek ay\",\n          \"-1\": \"geçen ay\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"{0} ay sonra\",\n            \"other\": \"{0} ay sonra\"\n          },\n          \"past\": {\n            \"one\": \"{0} ay önce\",\n            \"other\": \"{0} ay önce\"\n          }\n        }\n      },\n      \"day\": {\n        \"displayName\": \"Gün\",\n        \"relative\": {\n          \"0\": \"bugün\",\n          \"1\": \"yarın\",\n          \"2\": \"öbür gün\",\n          \"-2\": \"evvelsi gün\",\n          \"-1\": \"dün\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"{0} gün sonra\",\n            \"other\": \"{0} gün sonra\"\n          },\n          \"past\": {\n            \"one\": \"{0} gün önce\",\n            \"other\": \"{0} gün önce\"\n          }\n        }\n      },\n      \"hour\": {\n        \"displayName\": \"Saat\",\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"{0} saat sonra\",\n            \"other\": \"{0} saat sonra\"\n          },\n          \"past\": {\n            \"one\": \"{0} saat önce\",\n            \"other\": \"{0} saat önce\"\n          }\n        }\n      },\n      \"minute\": {\n        \"displayName\": \"Dakika\",\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"{0} dakika sonra\",\n            \"other\": \"{0} dakika sonra\"\n          },\n          \"past\": {\n            \"one\": \"{0} dakika önce\",\n            \"other\": \"{0} dakika önce\"\n          }\n        }\n      },\n      \"second\": {\n        \"displayName\": \"Saniye\",\n        \"relative\": {\n          \"0\": \"şimdi\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"{0} saniye sonra\",\n            \"other\": \"{0} saniye sonra\"\n          },\n          \"past\": {\n            \"one\": \"{0} saniye önce\",\n            \"other\": \"{0} saniye önce\"\n          }\n        }\n      }\n    }\n  }, {\n    \"locale\": \"tr-tr\",\n    \"parentLocale\": \"tr\"\n  }];\n  _exports.default = _default;\n});","define(\"apollo/components/basic-dropdown\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown\"], function (_exports, _basicDropdown) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _basicDropdown.default;\n    }\n  });\n});","define(\"apollo/components/basic-dropdown/content-element\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown/content-element\"], function (_exports, _contentElement) {\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 _contentElement.default;\n    }\n  });\n});","define(\"apollo/components/basic-dropdown/content\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown/content\"], function (_exports, _content) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _content.default;\n    }\n  });\n});","define(\"apollo/components/basic-dropdown/trigger\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown/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(\"apollo/components/draggable-object-target\", [\"exports\", \"ember-drag-drop/components/draggable-object-target\"], function (_exports, _draggableObjectTarget) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _draggableObjectTarget.default;\n  _exports.default = _default;\n});","define(\"apollo/components/draggable-object\", [\"exports\", \"ember-drag-drop/components/draggable-object\"], function (_exports, _draggableObject) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _draggableObject.default;\n  _exports.default = _default;\n});","define(\"apollo/components/ember-flatpickr\", [\"exports\", \"ember-flatpickr/components/ember-flatpickr\"], function (_exports, _emberFlatpickr) {\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 _emberFlatpickr.default;\n    }\n  });\n});","define(\"apollo/components/ember-modal-dialog-positioned-container\", [\"exports\", \"ember-modal-dialog/components/positioned-container\"], function (_exports, _positionedContainer) {\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 _positionedContainer.default;\n    }\n  });\n});","define(\"apollo/components/ember-modal-dialog/-basic-dialog\", [\"exports\", \"ember-modal-dialog/components/basic-dialog\"], function (_exports, _basicDialog) {\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 _basicDialog.default;\n    }\n  });\n});","define(\"apollo/components/ember-modal-dialog/-in-place-dialog\", [\"exports\", \"ember-modal-dialog/components/in-place-dialog\"], function (_exports, _inPlaceDialog) {\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 _inPlaceDialog.default;\n    }\n  });\n});","define(\"apollo/components/ember-modal-dialog/-liquid-dialog\", [\"exports\", \"ember-modal-dialog/components/liquid-dialog\"], function (_exports, _liquidDialog) {\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 _liquidDialog.default;\n    }\n  });\n});","define(\"apollo/components/ember-modal-dialog/-liquid-tether-dialog\", [\"exports\", \"ember-modal-dialog/components/liquid-tether-dialog\"], function (_exports, _liquidTetherDialog) {\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 _liquidTetherDialog.default;\n    }\n  });\n});","define(\"apollo/components/ember-modal-dialog/-tether-dialog\", [\"exports\", \"ember-modal-dialog/components/tether-dialog\"], function (_exports, _tetherDialog) {\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 _tetherDialog.default;\n    }\n  });\n});","define(\"apollo/components/ember-popover\", [\"exports\", \"ember-tooltips/components/ember-popover\"], function (_exports, _emberPopover) {\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 _emberPopover.default;\n    }\n  });\n});","define(\"apollo/components/ember-tooltip\", [\"exports\", \"ember-tooltips/components/ember-tooltip\"], function (_exports, _emberTooltip) {\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 _emberTooltip.default;\n    }\n  });\n});","define(\"apollo/components/ember-wormhole\", [\"exports\", \"ember-wormhole/components/ember-wormhole\"], function (_exports, _emberWormhole) {\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 _emberWormhole.default;\n    }\n  });\n});","define(\"apollo/components/modal-dialog\", [\"exports\", \"ember-modal-dialog/components/modal-dialog\"], function (_exports, _modalDialog) {\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 _modalDialog.default;\n    }\n  });\n});","define(\"apollo/components/models-table-server-paginated\", [\"exports\", \"ember-models-table/components/models-table-server-paginated\"], function (_exports, _modelsTableServerPaginated) {\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 _modelsTableServerPaginated.default;\n    }\n  });\n});","define(\"apollo/components/models-table\", [\"exports\", \"ember-models-table/components/models-table\"], function (_exports, _modelsTable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _modelsTable.default;\n  _exports.default = _default;\n});","define(\"apollo/components/models-table/cell-column-summary\", [\"exports\", \"ember-models-table/components/models-table/cell-column-summary\"], function (_exports, _cellColumnSummary) {\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 _cellColumnSummary.default;\n    }\n  });\n});","define(\"apollo/components/models-table/cell-content-display\", [\"exports\", \"ember-models-table/components/models-table/cell-content-display\"], function (_exports, _cellContentDisplay) {\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 _cellContentDisplay.default;\n    }\n  });\n});","define(\"apollo/components/models-table/cell-content-edit\", [\"exports\", \"ember-models-table/components/models-table/cell-content-edit\"], function (_exports, _cellContentEdit) {\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 _cellContentEdit.default;\n    }\n  });\n});","define(\"apollo/components/models-table/cell-edit-toggle\", [\"exports\", \"ember-models-table/components/models-table/cell-edit-toggle\"], function (_exports, _cellEditToggle) {\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 _cellEditToggle.default;\n    }\n  });\n});","define(\"apollo/components/models-table/cell\", [\"exports\", \"ember-models-table/components/models-table/cell\"], function (_exports, _cell) {\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 _cell.default;\n    }\n  });\n});","define(\"apollo/components/models-table/columns-dropdown\", [\"exports\", \"ember-models-table/components/models-table/columns-dropdown\"], function (_exports, _columnsDropdown) {\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 _columnsDropdown.default;\n    }\n  });\n});","define(\"apollo/components/models-table/columns-hidden\", [\"exports\", \"ember-models-table/components/models-table/columns-hidden\"], function (_exports, _columnsHidden) {\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 _columnsHidden.default;\n    }\n  });\n});","define(\"apollo/components/models-table/data-group-by-select\", [\"exports\", \"ember-models-table/components/models-table/data-group-by-select\"], function (_exports, _dataGroupBySelect) {\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 _dataGroupBySelect.default;\n    }\n  });\n});","define(\"apollo/components/models-table/footer\", [\"exports\", \"ember-models-table/components/models-table/footer\"], function (_exports, _footer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _footer.default;\n    }\n  });\n});","define(\"apollo/components/models-table/global-filter\", [\"exports\", \"ember-models-table/components/models-table/global-filter\"], function (_exports, _globalFilter) {\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 _globalFilter.default;\n    }\n  });\n});","define(\"apollo/components/models-table/group-summary-row\", [\"exports\", \"ember-models-table/components/models-table/group-summary-row\"], function (_exports, _groupSummaryRow) {\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 _groupSummaryRow.default;\n    }\n  });\n});","define(\"apollo/components/models-table/grouped-header\", [\"exports\", \"ember-models-table/components/models-table/grouped-header\"], function (_exports, _groupedHeader) {\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 _groupedHeader.default;\n    }\n  });\n});","define(\"apollo/components/models-table/no-data\", [\"exports\", \"ember-models-table/components/models-table/no-data\"], function (_exports, _noData) {\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 _noData.default;\n    }\n  });\n});","define(\"apollo/components/models-table/page-size-select\", [\"exports\", \"ember-models-table/components/models-table/page-size-select\"], function (_exports, _pageSizeSelect) {\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 _pageSizeSelect.default;\n    }\n  });\n});","define(\"apollo/components/models-table/pagination-numeric\", [\"exports\", \"ember-models-table/components/models-table/pagination-numeric\"], function (_exports, _paginationNumeric) {\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 _paginationNumeric.default;\n    }\n  });\n});","define(\"apollo/components/models-table/pagination-simple\", [\"exports\", \"ember-models-table/components/models-table/pagination-simple\"], function (_exports, _paginationSimple) {\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 _paginationSimple.default;\n    }\n  });\n});","define(\"apollo/components/models-table/row-expand\", [\"exports\", \"ember-models-table/components/models-table/row-expand\"], function (_exports, _rowExpand) {\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 _rowExpand.default;\n    }\n  });\n});","define(\"apollo/components/models-table/row-filtering-cell\", [\"exports\", \"ember-models-table/components/models-table/row-filtering-cell\"], function (_exports, _rowFilteringCell) {\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 _rowFilteringCell.default;\n    }\n  });\n});","define(\"apollo/components/models-table/row-filtering\", [\"exports\", \"ember-models-table/components/models-table/row-filtering\"], function (_exports, _rowFiltering) {\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 _rowFiltering.default;\n    }\n  });\n});","define(\"apollo/components/models-table/row-group-toggle\", [\"exports\", \"ember-models-table/components/models-table/row-group-toggle\"], function (_exports, _rowGroupToggle) {\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 _rowGroupToggle.default;\n    }\n  });\n});","define(\"apollo/components/models-table/row-grouping\", [\"exports\", \"ember-models-table/components/models-table/row-grouping\"], function (_exports, _rowGrouping) {\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 _rowGrouping.default;\n    }\n  });\n});","define(\"apollo/components/models-table/row-sorting-cell\", [\"exports\", \"ember-models-table/components/models-table/row-sorting-cell\"], function (_exports, _rowSortingCell) {\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 _rowSortingCell.default;\n    }\n  });\n});","define(\"apollo/components/models-table/row-sorting\", [\"exports\", \"ember-models-table/components/models-table/row-sorting\"], function (_exports, _rowSorting) {\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 _rowSorting.default;\n    }\n  });\n});","define(\"apollo/components/models-table/row\", [\"exports\", \"ember-models-table/components/models-table/row\"], function (_exports, _row) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _row.default;\n    }\n  });\n});","define(\"apollo/components/models-table/select\", [\"exports\", \"ember-models-table/components/models-table/select\"], function (_exports, _select) {\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 _select.default;\n    }\n  });\n});","define(\"apollo/components/models-table/summary\", [\"exports\", \"ember-models-table/components/models-table/summary\"], function (_exports, _summary) {\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 _summary.default;\n    }\n  });\n});","define(\"apollo/components/models-table/table-body\", [\"exports\", \"ember-models-table/components/models-table/table-body\"], function (_exports, _tableBody) {\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 _tableBody.default;\n    }\n  });\n});","define(\"apollo/components/models-table/table-footer\", [\"exports\", \"ember-models-table/components/models-table/table-footer\"], function (_exports, _tableFooter) {\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 _tableFooter.default;\n    }\n  });\n});","define(\"apollo/components/models-table/table-header\", [\"exports\", \"ember-models-table/components/models-table/table-header\"], function (_exports, _tableHeader) {\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 _tableHeader.default;\n    }\n  });\n});","define(\"apollo/components/models-table/table\", [\"exports\", \"ember-models-table/components/models-table/table\"], function (_exports, _table) {\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 _table.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/bootstrap4/columns-dropdown\", [\"exports\", \"ember-models-table/components/models-table/themes/bootstrap4/columns-dropdown\"], function (_exports, _columnsDropdown) {\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 _columnsDropdown.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/bootstrap4/data-group-by-select\", [\"exports\", \"ember-models-table/components/models-table/themes/bootstrap4/data-group-by-select\"], function (_exports, _dataGroupBySelect) {\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 _dataGroupBySelect.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/bootstrap4/global-filter\", [\"exports\", \"ember-models-table/components/models-table/themes/bootstrap4/global-filter\"], function (_exports, _globalFilter) {\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 _globalFilter.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/bootstrap4/row-filtering-cell\", [\"exports\", \"ember-models-table/components/models-table/themes/bootstrap4/row-filtering-cell\"], function (_exports, _rowFilteringCell) {\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 _rowFilteringCell.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/ember-bootstrap-v3/columns-dropdown\", [\"exports\", \"ember-models-table/components/models-table/themes/ember-bootstrap-v3/columns-dropdown\"], function (_exports, _columnsDropdown) {\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 _columnsDropdown.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/ember-bootstrap-v3/data-group-by-select\", [\"exports\", \"ember-models-table/components/models-table/themes/ember-bootstrap-v3/data-group-by-select\"], function (_exports, _dataGroupBySelect) {\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 _dataGroupBySelect.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/ember-bootstrap-v3/global-filter\", [\"exports\", \"ember-models-table/components/models-table/themes/ember-bootstrap-v3/global-filter\"], function (_exports, _globalFilter) {\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 _globalFilter.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/ember-bootstrap-v3/row-filtering-cell\", [\"exports\", \"ember-models-table/components/models-table/themes/ember-bootstrap-v3/row-filtering-cell\"], function (_exports, _rowFilteringCell) {\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 _rowFilteringCell.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/ember-bootstrap-v3/summary\", [\"exports\", \"ember-models-table/components/models-table/themes/ember-bootstrap-v3/summary\"], function (_exports, _summary) {\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 _summary.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/ember-bootstrap-v4/columns-dropdown\", [\"exports\", \"ember-models-table/components/models-table/themes/ember-bootstrap-v4/columns-dropdown\"], function (_exports, _columnsDropdown) {\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 _columnsDropdown.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/ember-bootstrap-v4/data-group-by-select\", [\"exports\", \"ember-models-table/components/models-table/themes/ember-bootstrap-v4/data-group-by-select\"], function (_exports, _dataGroupBySelect) {\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 _dataGroupBySelect.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/ember-bootstrap-v4/global-filter\", [\"exports\", \"ember-models-table/components/models-table/themes/ember-bootstrap-v4/global-filter\"], function (_exports, _globalFilter) {\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 _globalFilter.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/ember-bootstrap-v4/row-filtering-cell\", [\"exports\", \"ember-models-table/components/models-table/themes/ember-bootstrap-v4/row-filtering-cell\"], function (_exports, _rowFilteringCell) {\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 _rowFilteringCell.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/ember-bootstrap-v4/summary\", [\"exports\", \"ember-models-table/components/models-table/themes/ember-bootstrap-v4/summary\"], function (_exports, _summary) {\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 _summary.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/ember-semanticui/row-filtering-cell\", [\"exports\", \"ember-models-table/components/models-table/themes/ember-semanticui/row-filtering-cell\"], function (_exports, _rowFilteringCell) {\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 _rowFilteringCell.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/ember-semanticui/select\", [\"exports\", \"ember-models-table/components/models-table/themes/ember-semanticui/select\"], function (_exports, _select) {\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 _select.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/semanticui/columns-dropdown\", [\"exports\", \"ember-models-table/components/models-table/themes/semanticui/columns-dropdown\"], function (_exports, _columnsDropdown) {\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 _columnsDropdown.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/semanticui/data-group-by-select\", [\"exports\", \"ember-models-table/components/models-table/themes/semanticui/data-group-by-select\"], function (_exports, _dataGroupBySelect) {\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 _dataGroupBySelect.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/semanticui/global-filter\", [\"exports\", \"ember-models-table/components/models-table/themes/semanticui/global-filter\"], function (_exports, _globalFilter) {\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 _globalFilter.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/semanticui/pagination-numeric\", [\"exports\", \"ember-models-table/components/models-table/themes/semanticui/pagination-numeric\"], function (_exports, _paginationNumeric) {\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 _paginationNumeric.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/semanticui/pagination-simple\", [\"exports\", \"ember-models-table/components/models-table/themes/semanticui/pagination-simple\"], function (_exports, _paginationSimple) {\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 _paginationSimple.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/semanticui/row-filtering-cell\", [\"exports\", \"ember-models-table/components/models-table/themes/semanticui/row-filtering-cell\"], function (_exports, _rowFilteringCell) {\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 _rowFilteringCell.default;\n    }\n  });\n});","define(\"apollo/components/models-table/themes/semanticui/select\", [\"exports\", \"ember-models-table/components/models-table/themes/semanticui/select\"], function (_exports, _select) {\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 _select.default;\n    }\n  });\n});","define(\"apollo/components/object-bin\", [\"exports\", \"ember-drag-drop/components/object-bin\"], function (_exports, _objectBin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _objectBin.default;\n  _exports.default = _default;\n});","define(\"apollo/components/pell-editor\", [\"exports\", \"ember-pell/components/pell-editor\"], function (_exports, _pellEditor) {\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 _pellEditor.default;\n    }\n  });\n});","define(\"apollo/components/power-select-multiple\", [\"exports\", \"ember-power-select/components/power-select-multiple\"], function (_exports, _powerSelectMultiple) {\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 _powerSelectMultiple.default;\n    }\n  });\n});","define(\"apollo/components/power-select-multiple/trigger\", [\"exports\", \"ember-power-select/components/power-select-multiple/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(\"apollo/components/power-select\", [\"exports\", \"ember-power-select/components/power-select\"], function (_exports, _powerSelect) {\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 _powerSelect.default;\n    }\n  });\n});","define(\"apollo/components/power-select/before-options\", [\"exports\", \"ember-power-select/components/power-select/before-options\"], function (_exports, _beforeOptions) {\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 _beforeOptions.default;\n    }\n  });\n});","define(\"apollo/components/power-select/options\", [\"exports\", \"ember-power-select/components/power-select/options\"], function (_exports, _options) {\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 _options.default;\n    }\n  });\n});","define(\"apollo/components/power-select/placeholder\", [\"exports\", \"ember-power-select/components/power-select/placeholder\"], function (_exports, _placeholder) {\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 _placeholder.default;\n    }\n  });\n});","define(\"apollo/components/power-select/power-select-group\", [\"exports\", \"ember-power-select/components/power-select/power-select-group\"], function (_exports, _powerSelectGroup) {\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 _powerSelectGroup.default;\n    }\n  });\n});","define(\"apollo/components/power-select/search-message\", [\"exports\", \"ember-power-select/components/power-select/search-message\"], function (_exports, _searchMessage) {\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 _searchMessage.default;\n    }\n  });\n});","define(\"apollo/components/power-select/trigger\", [\"exports\", \"ember-power-select/components/power-select/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(\"apollo/components/sortable-objects\", [\"exports\", \"ember-drag-drop/components/sortable-objects\"], function (_exports, _sortableObjects) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _sortableObjects.default;\n  _exports.default = _default;\n});","define(\"apollo/components/spectrum-color-picker\", [\"exports\", \"ember-spectrum-color-picker/components/spectrum-color-picker\"], function (_exports, _spectrumColorPicker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _spectrumColorPicker.default;\n  _exports.default = _default;\n});","define(\"apollo/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(\"apollo/controllers/application\", [\"exports\", \"apollo/config/environment\", \"jquery\", \"ember-concurrency\", \"apollo/app\"], function (_exports, _environment, _jquery, _emberConcurrency, _app) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    session: Ember.inject.service('session'),\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    intl: Ember.inject.service('intl'),\n    appTabActiveService: Ember.inject.service('application-tab-active-service'),\n    languageService: Ember.inject.service('language-service'),\n    websocketService: Ember.inject.service('websocket'),\n    createTransportController: Ember.inject.controller('transports/modals/create-transport'),\n    scheduleController: Ember.inject.controller('warehouses/schedule'),\n    transportsController: Ember.inject.controller('transports/index'),\n    weightService: Ember.inject.service(),\n    hdMode: false,\n\n    init() {\n      this._super(...arguments);\n    },\n\n    initAppTabActiveService: Ember.on('init', function () {\n      this.get('appTabActiveService').initialize();\n    }),\n    initAnnouncementCounterUpdates: function () {\n      if (!this.get('sessionAccount').hasRole('ROLE_ANNOUNCEMENTS_TAB')) {\n        return;\n      }\n\n      this.set('pollAnnouncementsUpdatesInterval', this.get('sessionAccount').getSettingValue('ANNOUNCEMENTS_COUNTER_POLL_INTERVAL') || 60000);\n      this.set('announcementsLastPoll', moment());\n      this.get('pollAnnouncementCounter').perform();\n    },\n    initLocalDelta: Ember.on('init', function () {\n      // inicjalizujemy domyślną liczbę dni w harmonogramie wyciągając ją z localStorage\n      const delta = localStorage.getItem('delta');\n\n      if (delta) {\n        this.set('localDelta', delta);\n      }\n    }),\n    pollAnnouncementCounter: (0, _emberConcurrency.task)(function* () {\n      const pollUpdatesInterval = this.get('pollAnnouncementsUpdatesInterval');\n\n      try {\n        while (true) {\n          yield (0, _emberConcurrency.timeout)(pollUpdatesInterval);\n          yield this.refreshAnnouncementCounter();\n        }\n      } catch (e) {\n        console.error(e);\n      }\n    }).restartable(),\n    refreshAnnouncementCounter: function () {\n      const self = this;\n      const path = this.get('apolloApiService').APOLLO_API.ANNOUNCEMENTS.UPDATES;\n      this.get('apolloApiService').callApolloApi(path).then(response => response.json()).then(json => {\n        self.set('sessionAccount.currentUser.unreadAnnouncementsCount', json.unreadAnnouncementsCount);\n      });\n    },\n    principal: Ember.computed(function () {\n      const principalId = localStorage.getItem('principalId');\n      const principalCompany = this.get('store').peekRecord('company', principalId);\n\n      if (!principalCompany) {\n        console.debug('Principal company not found - invalidating session..');\n        this.send('invalidateSession');\n        return;\n      }\n\n      console.log(`Principal company is set to ${principalCompany.get('name')}.`);\n      return principalCompany;\n    }),\n    transportTypeAvailableInArchive: Ember.computed('principal.transportTypes.[]', function () {\n      console.log('principal.id:' + this.get('principal.id')); // to nie jest do niczego potrzebne tylko do rozwiązania A-1472\n\n      const availableTransportTypes = this.get('principal.transportTypes').filterBy('canBeSeenInArchiveByRoleGroup');\n      return availableTransportTypes.get('firstObject');\n    }),\n    isAuthPage: Ember.computed('target.currentRouteName', function () {\n      const currentRoute = this.getActiveRoute();\n      return currentRoute.search('auth') > -1;\n    }),\n    getPrincipalAliasFromLocalStorage: function () {\n      try {\n        return localStorage.getItem('principalAlias') || window.name; // window.name - w przypadku iframe'ów\n      } catch (e) {\n        if (e instanceof DOMException) {\n          console.error(e);\n          return window.name;\n        }\n\n        throw e;\n      }\n    },\n    loginBackgroundStyle: Ember.computed(function () {\n      const principalAlias = this.getPrincipalAliasFromLocalStorage();\n      let backgroundSize = 'cover';\n      let backgroundColor = 'white';\n\n      if (principalAlias === 'neuca') {\n        backgroundSize = 'initial';\n        backgroundColor = '#83d0f5';\n      }\n\n      const backgroundImage = `${_environment.default.serverURL}/loginPage/background?companyAlias=${principalAlias}`;\n      return Ember.String.htmlSafe(`background-image: url(${backgroundImage}); background-size: ${backgroundSize}; background-color: ${backgroundColor};`);\n    }),\n    canPlanTransports: Ember.computed('principal.transportTypes.@each.canBeCreatedByRoleGroup', 'sessionAccount.currentUser.statuteAccepted', function () {\n      if (!this.get('sessionAccount.currentUser.statuteAccepted')) {\n        return false;\n      }\n\n      return this.get('principal').get('transportTypes').findBy('canBeCreatedByRoleGroup', true);\n    }),\n    showPrincipalSwitch: Ember.computed('sessionAccount.principalsWhereUserHasRole.length', function () {\n      return this.get('sessionAccount.principalsWhereUserHasRole.length') > 1;\n    }),\n    today: Ember.computed(function () {\n      if (this.get('numberOfDaysInSchedule') === 7) {\n        const shift = this.get('sessionAccount').getSettingValue('WEEK_SCHEDULE_START_DATE_SHIFT');\n        return moment(new Date()).add(shift || 0, 'days').toDate();\n      }\n\n      return new Date();\n    }).readOnly(),\n    warehouseDate: Ember.computed('today', 'createTransportController.dateOfAdvice', 'scheduleController.transportToHandle', function () {\n      const transport = this.get('scheduleController.transportToHandle');\n      return transport && this.get('createTransportController.dateOfAdvice') ? this.get('createTransportController.dateOfAdvice') : this.get('today');\n    }),\n    defaultWarehouse: Ember.computed('sessionAccount.currentUser.warehouse', 'scheduleController.transportToHandle', function () {\n      const transport = this.get('scheduleController.transportToHandle');\n      const transportWarehouse = transport ? transport.get('warehouse') : undefined;\n      return transportWarehouse || this.get('sessionAccount.currentUser.warehouse');\n    }),\n    setLocalDelta: function (delta) {\n      if (!delta) {\n        return;\n      } // Ustawiamy w localStorage ostatni wybrany widok harmonogramu\n\n\n      localStorage.setItem('delta', `${delta}`); // Ustawiamy w zmiennej controllera, żeby móc na niej słuchać\n\n      this.set('localDelta', delta);\n    },\n    numberOfDaysInSchedule: Ember.computed('localDelta', 'defaultWarehouse', function () {\n      const delta = this.get('localDelta');\n\n      if (delta) {\n        return Number(delta);\n      }\n\n      const defaultWarehouseId = this.get('defaultWarehouse.id');\n      let count = 0;\n      this.get('sessionAccount.currentUser.ramps').map(ramp => {\n        const warehouseId = ramp.get('warehouse.id');\n\n        if (warehouseId === defaultWarehouseId) {\n          count = count + 1;\n        }\n      });\n      return count > 3 ? 1 : 7;\n    }),\n    shouldDisplayAllTypes: Ember.computed('', function () {\n      return this.get('sessionAccount').getSettingValue('SHOULD_RENDER_ALL_TRANSPORT_TYPES') === 'true';\n    }),\n\n    /**\n     * Ustawia się w momencie wybrania typu transportu w tabeli\n     */\n    transportTypeModeToRedirectTo: Ember.computed('transportTypeMode', 'transportTypeAvailableInArchive.alias', function () {\n      if (this.get('transportTypeMode')) {\n        return this.get('transportTypeMode');\n      }\n\n      const transportTypeFromLocalStorage = localStorage.getItem('LastVisitedTransportType');\n      const transportTypes = this.get('store').peekAll('transportType');\n      const isTransportTypeFromLocalStorageInAvalibleTransportTypes = transportTypes.filterBy('canBeSeenByRoleGroup').any(tt => tt.alias === transportTypeFromLocalStorage);\n\n      if (isTransportTypeFromLocalStorageInAvalibleTransportTypes || transportTypeFromLocalStorage === 'ALL') {\n        return transportTypeFromLocalStorage;\n      }\n\n      const transportTypeToRedirectTo = transportTypes ? transportTypes.filterBy('canBeSeenByRoleGroup').get('firstObject.alias') : undefined;\n      return this.get('shouldDisplayAllTypes') ? 'ALL' : transportTypeToRedirectTo;\n    }),\n    transportTypeModeForPriceList: Ember.computed('sessionAccount.currentUser', function () {\n      const availableType = this.get('store').peekAll('transportType').find(transportType => {\n        return transportType.canBeSeenByRoleGroup && transportType.allowsPriceList;\n      });\n      return availableType ? availableType.get('alias') : 'UNAVAILABLE';\n    }),\n    transportTypeModeForPlanning: Ember.computed('sessionAccount.currentUser', function () {\n      const availableType = this.get('store').peekAll('transportType').find(transportType => {\n        return transportType.canBeSeenByRoleGroup && transportType.usedForDeliveries;\n      });\n      return availableType ? availableType.get('alias') : 'UNAVAILABLE';\n    }),\n    maxRowsInPriceListTable: Ember.computed('currentRouteName', function () {\n      return localStorage.getItem('MAX_ROWS_IN_PRICE_LIST_TABLE') || 10;\n    }),\n    initResizeObserver: Ember.on('init', function () {\n      $(window).on('resize', this.resize.bind(this));\n    }),\n    resize: function () {\n      this.set('windowSize', $(window).width());\n    },\n\n    /**\n     * Sekcja 'Więcej' w panelu nawigacyjnym powinna się pojawić, jeśli użytkownik ma dostęp do co najmniej 6 zakładek\n     * oraz rozmiar ekranu jest odpowiednio mały\n     */\n    responsiveView: Ember.computed('sessionAccount.currentUser.roleNames.length', 'windowSize', function () {\n      const numberOfTabs = this.get('sessionAccount.currentUser.roleNames').filter(rn => {\n        // Nazwy uprawnień związanych z zakładkami kończą się na '_TAB',\n        // za wyjątkiem zakładki 'Admin' -- która jest zależna od uprawnienia 'ROLE_SUPER_USER'\n        return /_TAB$/.test(rn) || rn === 'ROLE_SUPER_USER';\n      }).length;\n      const minScreenWidth = 1200;\n      const maxScreenWidth = 1750;\n      console.debug(`Użytkownik ma dostęp do ${numberOfTabs} uprawnień związanych z zakładkami.`);\n      return numberOfTabs >= 6 && $(window).width() > minScreenWidth && $(window).width() < maxScreenWidth;\n    }),\n    printView: Ember.computed('routesAsPrintView', 'target.currentRouteName', function () {\n      return this.get('routesAsPrintView').includes(this.get('target.currentRouteName'));\n    }),\n    checkWeightsToSynchronize: Ember.on('init', function () {\n      return Ember.run.later(() => this.get('weightService').synchronizeWeights(), 5000);\n    }),\n    footer: Ember.computed('', function () {\n      return this.get('sessionAccount').getSettingValue('FOOTER');\n    }),\n    hyperlinkToLogoOnNavbar: Ember.computed('', function () {\n      return this.get('sessionAccount').getSettingValue('HYPERLINK_TO_LOGO_ON_NAVBAR');\n    }),\n    logoOnNavBar: Ember.computed('', function () {\n      return this.get('sessionAccount').getSettingValue('LOGO_ON_NAVBAR');\n    }),\n    getActiveRoute: function () {\n      return this.get('currentRouteName');\n    },\n    transportsTabLabel: Ember.computed('', function () {\n      const properKey = this.get('languageService').findProperLanguageVersion('TRANSPORTS_LIST_LABEL', 'TRANSPORTS_LIST_LABEL_EN');\n      const setting = this.get('sessionAccount').getSettingValue(properKey);\n      return setting || this.get('intl').t('tabs.transports');\n    }),\n    currentYear: Ember.computed('', function () {\n      return new Date().getFullYear();\n    }),\n    actions: {\n      collapseNavbar() {\n        $('.navbar-collapse').collapse('hide');\n      },\n\n      invalidateSession() {\n        console.log('User logged out.');\n        const socketApi = this.websocketService.getSocketApi();\n\n        if (socketApi) {\n          socketApi.disconnect();\n        }\n\n        this.get('session').invalidate().then(() => {\n          /*\n              A-10687 Czyszczenie data store ember'a przy wylogowaniu użytkownika\n              Zdecydowałem się na window.location do czyszczenia data store, danych w kontrolerach, serwisach\n              i route'ach. Automaty odrzuciły rozwiązania z store.unloadAll() i App.reset()\n           */\n          window.location = '/';\n        });\n      },\n\n      /**\n       * Do serwera zostanie wysłana informacja o zmianie pryncypała\n       * a po odświeżeniu strony ustawione zostanie nowe ciasteczko\n       * oraz lista uprawnień, powiadomień, itp. użytkownika w przestrzeni wybranego pryncypała.\n       *\n       * @param principal\n       */\n      changePrincipalSpace(principal) {\n        console.debug(`Ustawiamy pryncypała ${principal.get('name')}..`);\n        const self = this;\n        const username = this.get('sessionAccount.currentUser.username');\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        _jquery.default.ajax({\n          url: _environment.default.serverURL + '/users/' + username + '/currentPrincipal/' + principal.get('id'),\n          type: 'PUT',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(() => {\n          localStorage.removeItem('principalId');\n          localStorage.removeItem('principalAlias');\n          self.get('transportsController').set('content', null);\n          self.send('goToTransportTab');\n        }, function (response) {\n          self.set('errors', response.errors);\n        });\n      },\n\n      goToTransportTab() {\n        this.send('goToTab', 'transports');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/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 = {\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      PLN: {\n        style: 'currency',\n        currency: 'PLN',\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  _exports.default = _default;\n});","define(\"apollo/helpers/-clear-element\", [\"exports\", \"ember-in-element-polyfill/helpers/-clear-element\"], function (_exports, _clearElement) {\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 _clearElement.default;\n    }\n  });\n  Object.defineProperty(_exports, \"clearElement\", {\n    enumerable: true,\n    get: function () {\n      return _clearElement.clearElement;\n    }\n  });\n});","define(\"apollo/helpers/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.add = add;\n  _exports.default = void 0;\n\n  function add(params) {\n    const number = params[0];\n    const increment = params[1] || 1;\n    return number + increment;\n  }\n\n  var _default = Ember.Helper.helper(add);\n\n  _exports.default = _default;\n});","define(\"apollo/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, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _and.default;\n    }\n  });\n  Object.defineProperty(_exports, \"and\", {\n    enumerable: true,\n    get: function () {\n      return _and.and;\n    }\n  });\n});","define(\"apollo/helpers/app-version\", [\"exports\", \"apollo/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\n  function appVersion(_, hash = {}) {\n    const version = _environment.default.APP.version; // e.g. 1.0.0-alpha.1+4jds75hf\n    // Allow use of 'hideSha' and 'hideVersion' For backwards compatibility\n\n    let versionOnly = hash.versionOnly || hash.hideSha;\n    let shaOnly = hash.shaOnly || hash.hideVersion;\n    let match = null;\n\n    if (versionOnly) {\n      if (hash.showExtended) {\n        match = version.match(_regexp.versionExtendedRegExp); // 1.0.0-alpha.1\n      } // Fallback to just version\n\n\n      if (!match) {\n        match = version.match(_regexp.versionRegExp); // 1.0.0\n      }\n    }\n\n    if (shaOnly) {\n      match = version.match(_regexp.shaRegExp); // 4jds75hf\n    }\n\n    return match ? match[0] : version;\n  }\n\n  var _default = Ember.Helper.helper(appVersion);\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/append\", [\"exports\", \"ember-composable-helpers/helpers/append\"], function (_exports, _append) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _append.default;\n    }\n  });\n  Object.defineProperty(_exports, \"append\", {\n    enumerable: true,\n    get: function () {\n      return _append.append;\n    }\n  });\n});","define(\"apollo/helpers/array\", [\"exports\", \"ember-composable-helpers/helpers/array\"], function (_exports, _array) {\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 _array.default;\n    }\n  });\n  Object.defineProperty(_exports, \"array\", {\n    enumerable: true,\n    get: function () {\n      return _array.array;\n    }\n  });\n});","define(\"apollo/helpers/can-edit-user\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.extend({\n    sessionAccount: Ember.inject.service(),\n    ROLE_EDIT_ALL_USERS: \"ROLE_EDIT_ALL_USERS\",\n    ROLES_TO_EDIT: [\"ROLE_EDIT_USERS_MAIN_DATA\", \"ROLE_EDIT_USERS_NOTIFICATION\", \"ROLE_EDIT_USERS_RAMP\"],\n    hasAnyRoleToEdit: function () {\n      return this.ROLES_TO_EDIT.some(role => this.get('sessionAccount').hasRole(role));\n    },\n\n    // X może edytować użytkownika, jeśli X:\n    // - posiada którąś z ról \"ROLE_EDIT_USERS_MAIN_DATA\", \"ROLE_EDIT_USERS_NOTIFICATION\", \"ROLE_EDIT_USERS_RAMP\"\n    // - użytkownik jest z tej samej firmy lub X ma rolę \"ROLE_EDIT_ALL_USERS\"\n    compute(params, nameArgs) {\n      const companyId = nameArgs.companyId;\n      const principalInDifferentSpace = nameArgs.principalInDifferentSpace;\n      const currentUserCompanyId = this.get('sessionAccount.currentUser.company.id');\n      const hasRoleToEditAllUsers = this.get('sessionAccount').hasRole(this.ROLE_EDIT_ALL_USERS);\n      const hasRoleToEdit = nameArgs.role ? this.get('sessionAccount').hasRole(nameArgs.role) : this.hasAnyRoleToEdit();\n      return !principalInDifferentSpace && hasRoleToEdit && (companyId === currentUserCompanyId || hasRoleToEditAllUsers);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/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(\"apollo/helpers/checkpoint-confirmator-name\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.extend({\n    intl: Ember.inject.service(),\n\n    compute(params, nameArgs) {\n      const checkpoint = nameArgs.checkpoint;\n      const confirmatorName = checkpoint.get('confirmator.name');\n      const confirmatorRoleGroupName = checkpoint.get('confirmator.roleGroup').get('name'); // W przypadku statusu potwierdzanego przez awizację mailową, podajemy adres e-mail użytkownik przypisanego do awizacji mailowej.\n      // Zakładamy również, że bierzemy pod uwage ostatnio wysłaną awizacje, bo w momencie zatwierdzania statusu\n      // ostatnia musi byc aktywna, a dzieki temu gdu transport będzie zakończony (wszystkie tokeny nieaktwne) bedzie to rownie dzialac\n      // Na razie mamy tylko 2 rodzaje EmailAdvice, po zadaniu A-10351 można ew. dodać tu warunek na sprawdzanie nowej flagi dla CF_DATA\n\n      if (confirmatorRoleGroupName === 'E-MAIL_ADVICE') {\n        let emailAdviceEmails = '';\n\n        if (checkpoint.get('task.shouldBeApprovedWithAdvice')) {\n          emailAdviceEmails = checkpoint.get('transport').get('emailAdvices').filter(ea => {\n            return ea && ea.get('type') === 'ADVICE_DATA';\n          });\n        } else {\n          emailAdviceEmails = checkpoint.get('transport').get('emailAdvices').filter(ea => {\n            return ea && ea.get('type') === 'CF_DATA';\n          });\n        }\n\n        const emailAdviceEmail = emailAdviceEmails.sortBy('dateCreated').reverse().get('firstObject').get('email');\n        return this.get('intl').t('checkpoints.confirmedMessageBy', {\n          person: emailAdviceEmail\n        });\n      }\n\n      if (confirmatorRoleGroupName === 'SUPER_USER' && checkpoint.get('task.canBeConfirmedWithSms')) {\n        // Potwierdzenie statusu przez SMS - jako osobę potiwerdzającą przypisujemy super-admina danego pryncypała,\n        // ale chcemy wyświetlić imię oraz nazwisko kierowcy\n        return this.get('intl').t('checkpoints.confirmedMessageBy', {\n          person: checkpoint.get('transport.advice.driverName')\n        });\n      }\n\n      return this.get('intl').t('checkpoints.confirmedMessageBy', {\n        person: confirmatorName\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/chunk\", [\"exports\", \"ember-composable-helpers/helpers/chunk\"], function (_exports, _chunk) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _chunk.default;\n    }\n  });\n  Object.defineProperty(_exports, \"chunk\", {\n    enumerable: true,\n    get: function () {\n      return _chunk.chunk;\n    }\n  });\n});","define(\"apollo/helpers/compact\", [\"exports\", \"ember-composable-helpers/helpers/compact\"], function (_exports, _compact) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _compact.default;\n    }\n  });\n});","define(\"apollo/helpers/company-disabled-icon\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.extend({\n    amountOfCoverService: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    DISABLED_TAG: '<i class=\"fa fa-ban\"></i>',\n    INSURANCE_TOO_LOW_TAG: function (aocTitle) {\n      return `<i class=\"fa fa-thumbs-down\" title=\"${aocTitle}\"></i>`;\n    },\n\n    _getIconTag(transport, company) {\n      let iconTag;\n      let aocNotEnough;\n      let aocTitle;\n\n      if (transport.get('transportType.checkAmountOfCover')) {\n        if (!company.get('activeOCPInsurance.amount') && !company.get('activeOCSInsurance.amount')) {\n          aocNotEnough = true;\n          aocTitle = this.intl.t('companyDisabledIcon.bothInsurancesMissing');\n        } else {\n          aocNotEnough = !this.amountOfCoverService.hasEnoughAmountOfCover(transport, company);\n\n          if (aocNotEnough) {\n            const aocTitleSuffix = company.get('activeOCPInsurance.amount') ? 'OCP: ' + company.get('activeOCPInsurance.amount') + ' ' + company.get('activeOCPInsurance.currency.symbol') : 'OCS: ' + company.get('activeOCSInsurance.amount') + ' ' + company.get('activeOCSInsurance.currency.symbol');\n            aocTitle = this.intl.t('companyDisabledIcon.insuranceAmountTooLow') + aocTitleSuffix;\n          }\n        }\n      }\n\n      if (company.get('disabled') && aocNotEnough) {\n        iconTag = `${this.DISABLED_TAG} ${this.INSURANCE_TOO_LOW_TAG(aocTitle)}`;\n      } else if (company.get('disabled')) {\n        iconTag = this.DISABLED_TAG;\n      } else if (aocNotEnough) {\n        iconTag = this.INSURANCE_TOO_LOW_TAG(aocTitle);\n      } else {\n        iconTag = '';\n      }\n\n      return iconTag;\n    },\n\n    compute(params) {\n      const company = params[0];\n      const transport = params[1];\n\n      if (!transport.get('id') || !company.get('id')) {\n        return;\n      }\n\n      return Ember.String.htmlSafe(this._getIconTag(transport, company));\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/compute\", [\"exports\", \"ember-composable-helpers/helpers/compute\"], function (_exports, _compute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _compute.default;\n    }\n  });\n  Object.defineProperty(_exports, \"compute\", {\n    enumerable: true,\n    get: function () {\n      return _compute.compute;\n    }\n  });\n});","define(\"apollo/helpers/contains\", [\"exports\", \"ember-composable-helpers/helpers/contains\"], function (_exports, _contains) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _contains.default;\n    }\n  });\n  Object.defineProperty(_exports, \"contains\", {\n    enumerable: true,\n    get: function () {\n      return _contains.contains;\n    }\n  });\n});","define(\"apollo/helpers/dec\", [\"exports\", \"ember-composable-helpers/helpers/dec\"], function (_exports, _dec) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _dec.default;\n    }\n  });\n  Object.defineProperty(_exports, \"dec\", {\n    enumerable: true,\n    get: function () {\n      return _dec.dec;\n    }\n  });\n});","define(\"apollo/helpers/disable-company-field\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    // Poziomy blokady:\n    // - SIMPLE: zwykłe pole, podstawowe warunki do blokady\n    // - OWN_COMPANY: jeśli użytkownik ma rolę `ROLE_EDIT_COMPANY` może edytować dowolną firmę, jeśli ma `ROLE_EDIT_MY_OWN_COMPANY` - tylko swoją\n    // - SENSITIVE: SIMPLE + uprawnienie do edycji pól wrażliwych (\"ROLE_FULL_EDIT_COMPANY\")\n    // - SPECIAL: szczególny zestaw ograniczeń, specyficzny dla danego pola\n    BLOCKADE_LEVELS: {\n      SIMPLE: [\"patron\", \"allowsPeriodicTransport\"],\n      OWN_COMPANY: [\"addAddress\", \"shortName\", \"street\", \"city\", \"postal\", \"country\", \"contractorNumber\"],\n      SENSITIVE: [\"taxIdNumber\", \"regon\", \"krs\", \"legalStatus\"],\n      SPECIAL: [\"name\", \"pricingPlan\", \"maxNumberOfAccounts\", \"adviceVerification\", \"adviceVerificationInterval\"]\n    },\n\n    // Parametry:\n    // - firma do blokady: company (obiekt)\n    // - czy blokujemy firmę z applies: forApplies (true/false)\n    // - nazwa pola, które chcemy zablokować: fieldName (string)\n    // - czy rejestracja w toku (state) - NIE JEST WYKORZYSTYWANE, ale musimy to przekazać, żeby helper po zmianie stanu\n    //   potrafił się przeliczyć - przy zmianie stanu obiket `company` się nie zmienia, więc musimy niestety sztucznie przekazać stan\n    compute(params, nameArgs) {\n      const company = nameArgs.company;\n      const forApplies = nameArgs.forApplies;\n      const fieldName = nameArgs.fieldName;\n      const blockadeLevel = this.findBlockadeLevel(fieldName);\n      const disableFunc = this.findDisableFunction(blockadeLevel, fieldName);\n      return disableFunc(this, company, forApplies);\n    },\n\n    findBlockadeLevel: function (fieldName) {\n      const levels = Object.keys(this.BLOCKADE_LEVELS);\n      return levels.find(level => {\n        const fields = this.BLOCKADE_LEVELS[level];\n        return fields.includes(fieldName);\n      }) || 'SENSITIVE';\n    },\n    findDisableFunction: function (blockadeLevel, fieldName) {\n      switch (blockadeLevel) {\n        case \"SIMPLE\":\n          return this.simpleDisableFunc;\n\n        case \"OWN_COMPANY\":\n          return this.ownCompanyDisableFunc;\n\n        case \"SENSITIVE\":\n          return this.sensitiveDisableFunc;\n\n        case \"SPECIAL\":\n          return this.findSpecialDisableFunction(fieldName);\n\n        default:\n          return this.disableAllFunc;\n      }\n    },\n    findSpecialDisableFunction: function (fieldName) {\n      switch (fieldName) {\n        case \"name\":\n          return this.nameDisableFunc;\n\n        case \"pricingPlan\":\n          return this.pricingPlanDisableFunc;\n\n        case \"maxNumberOfAccounts\":\n          return this.maxNumberOfAccountsDisableFunc;\n\n        case \"adviceVerification\":\n        case \"adviceVerificationInterval\":\n          return this.adviceVerificationDisableFunc;\n\n        default:\n          return this.disableAllFunc;\n      }\n    },\n    simpleDisableFunc: function (self, company, forApplies) {\n      // W przypadku applies i zgłoszenia w trakcie rejestracji nie blokujemy pola\n      if (forApplies && company.get('registrationInProgress')) {\n        return false;\n      } // zalogowany użytkownik jest pryncypałem\n\n\n      const isCurrentPrincipal = self.get('sessionAccount.currentUser.company.isPrincipal'); // zalogowany użytkownik musi posiadać role \"ROLE_EDIT_COMPANY\" LUB \"ROLE_EDIT_MY_OWN_COMPANY\" (gdy edytuje własną firmę)\n\n      const hasProperRole = self.get('sessionAccount').hasRole(\"ROLE_EDIT_COMPANY\") || Number(company.get('id')) === Number(self.get('sessionAccount.currentUser.companyId')) && self.get('sessionAccount').hasRole(\"ROLE_EDIT_MY_OWN_COMPANY\");\n      return !isCurrentPrincipal || !hasProperRole;\n    },\n    ownCompanyDisableFunc: function (self, company, forApplies) {\n      // jeśli użytkownik ma ogólne uprawnienie do edycji, może edytować dowolną firmę\n      if (self.get('sessionAccount').hasRole(\"ROLE_EDIT_COMPANY\")) {\n        return false;\n      } // w przypadku applies i zgłoszenia w trakcie rejestracji nie blokujemy pola\n      // w przypadku firmy nie z appliesów - blokujemy zawsze\n\n\n      const hasProperStatus = forApplies && company.get('registrationInProgress'); // jeśli ma uprawnienie do edycji swojej firmy i próbuje edytować swoją firmę, to może\n\n      const hasProperRole = Number(company.get('id')) === Number(self.get('sessionAccount.currentUser.company.id')) && self.get('sessionAccount').hasRole(\"ROLE_EDIT_MY_OWN_COMPANY\");\n      return !hasProperStatus || !hasProperRole;\n    },\n    sensitiveDisableFunc: function (self, company, forApplies) {\n      // W przypadku applies i zgłoszenia w trakcie rejestracji nie blokujemy pola\n      if (forApplies && company.get('registrationInProgress')) {\n        return false;\n      } // musza być spełnione minimalne warunki na edycję - rola do edycji + user od aktualnego pryncypała\n\n\n      const simpleDisable = self.simpleDisableFunc(self, company, forApplies); // zalogowany użytkownik musi posiadać dodatkowo rolę \"ROLE_FULL_EDIT_COMPANY\"\n\n      const hasProperRole = self.get('sessionAccount').hasRole(\"ROLE_FULL_EDIT_COMPANY\");\n      return simpleDisable || !hasProperRole;\n    },\n    nameDisableFunc: function (self, company, forApplies) {\n      // przy zapisie nowej firmy blokujemy pole z nazwą tylko jeśli został wybrany kraj PL i nie został uzupełniony nr NIP\n      if (!company.get('id')) {\n        return company.get('country.ibanSymbol') === 'PL' && !company.get('taxIdNumber');\n      } // w przypadku edycji:\n      // muszą być spełnione warunki na edycję wrażliwych danych\n\n\n      const sensitiveDisable = self.sensitiveDisableFunc(self, company, forApplies); // jeśli firma jest zweryfikowana w GUS - także uprawnienie \"ROLE_EDIT_GUS_DATA\"\n\n      const gusConstraint = !company.get('gusVerified') || self.get('sessionAccount').hasRole(\"ROLE_EDIT_GUS_DATA\");\n      return sensitiveDisable || !gusConstraint;\n    },\n    pricingPlanDisableFunc: function (self, company, forApplies) {\n      return self.simpleDisableFunc(self, company, forApplies) || !self.get('sessionAccount').hasRole(\"ROLE_MANAGE_COMPANY_PRICING_PLAN\");\n    },\n    maxNumberOfAccountsDisableFunc: function (self, company, forApplies) {\n      return self.simpleDisableFunc(self, company, forApplies) || !self.get('sessionAccount').hasRole(\"ROLE_MANAGE_MAX_COMPANY_ACCOUNT_NUMBER\");\n    },\n    adviceVerificationDisableFunc: function (self, company, forApplies) {\n      return self.simpleDisableFunc(self, company, forApplies) || !self.get('sessionAccount').hasRole(\"ROLE_MANAGE_ADVICE_VERIFICATION_MAIL\");\n    },\n    disableAllFunc: function () {\n      return true;\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/document-icon\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.extend({\n    compute(params, nameArgs) {\n      const documentTypeName = nameArgs.documentTypeName;\n\n      if (documentTypeName && documentTypeName.search('LICENCE') > -1) {\n        return 'fa fa-id-card';\n      }\n\n      switch (documentTypeName) {\n        case 'INSURANCE_OCS':\n        case 'SUMMER_MAPPING':\n        case 'WINTER_MAPPING':\n          return 'fa fa-file-text';\n\n        case 'INSURANCE_OC':\n          return 'fa fa-file';\n\n        default:\n          return 'fa fa-file-text';\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/drop\", [\"exports\", \"ember-composable-helpers/helpers/drop\"], function (_exports, _drop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _drop.default;\n    }\n  });\n});","define(\"apollo/helpers/each-indexed\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function eachIndexedHelper(path, options) {\n    var keywordName = 'item',\n        fn; // Process arguments (either #earchIndexed bar, or #earchIndexed foo in bar)\n\n    if (arguments.length === 4) {\n      Ember.assert('If you pass more than one argument to the eachIndexed helper, it must be in the form #eachIndexed foo in bar', arguments[1] === 'in');\n      Ember.assert(arguments[0] + ' is a reserved word in #eachIndexed', $.inArray(arguments[0], ['index', 'index+1', 'even', 'odd']));\n      keywordName = arguments[0];\n      options = arguments[3];\n      path = arguments[2];\n      options.hash.keyword = keywordName;\n\n      if (path === '') {\n        path = 'this';\n      }\n    }\n\n    if (arguments.length === 1) {\n      options = path;\n      path = 'this';\n    } // Wrap the callback function in our own that sets the index value\n\n\n    fn = options.fn;\n\n    function eachFn() {\n      var keywords = arguments[1].data.keywords,\n          view = arguments[1].data.view,\n          index = view.contentIndex,\n          list = view._parentView.get('content') || [],\n          len = list.length; // Set indexes\n\n      keywords['index'] = index; //keywords['index_1'] = index + 1;  //na razie zakomentowane, zeby nie zamulalo\n      //keywords['first'] = (index === 0);\n      //keywords['last'] = (index + 1 === len);\n\n      keywords['even'] = index % 2 === 0;\n      keywords['odd'] = !keywords['even'];\n      arguments[1].data.keywords = keywords;\n      return fn.apply(this, arguments);\n    }\n\n    options.fn = eachFn; // Render\n\n    options.hash.dataSourceBinding = path;\n\n    if (options.data.insideGroup && !options.hash.groupedRows && !options.hash.itemViewClass) {\n      new Ember.Handlebars.GroupedEach(this, path, options).render();\n    } else {\n      return Ember.Handlebars.helpers.collection.call(this, 'Ember.Handlebars.EachView', options);\n    }\n  }\n\n  var _default = eachIndexedHelper;\n  _exports.default = _default;\n});","define(\"apollo/helpers/ember-power-select-is-group\", [\"exports\", \"ember-power-select/helpers/ember-power-select-is-group\"], function (_exports, _emberPowerSelectIsGroup) {\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 _emberPowerSelectIsGroup.default;\n    }\n  });\n  Object.defineProperty(_exports, \"emberPowerSelectIsGroup\", {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectIsGroup.emberPowerSelectIsGroup;\n    }\n  });\n});","define(\"apollo/helpers/ember-power-select-is-selected\", [\"exports\", \"ember-power-select/helpers/ember-power-select-is-selected\"], function (_exports, _emberPowerSelectIsSelected) {\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 _emberPowerSelectIsSelected.default;\n    }\n  });\n  Object.defineProperty(_exports, \"emberPowerSelectIsSelected\", {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectIsSelected.emberPowerSelectIsSelected;\n    }\n  });\n});","define(\"apollo/helpers/ember-power-select-true-string-if-present\", [\"exports\", \"ember-power-select/helpers/ember-power-select-true-string-if-present\"], function (_exports, _emberPowerSelectTrueStringIfPresent) {\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 _emberPowerSelectTrueStringIfPresent.default;\n    }\n  });\n  Object.defineProperty(_exports, \"emberPowerSelectTrueStringIfPresent\", {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectTrueStringIfPresent.emberPowerSelectTrueStringIfPresent;\n    }\n  });\n});","define(\"apollo/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(\"apollo/helpers/exists-in\", [\"exports\", \"ember-models-table/helpers/exists-in\"], function (_exports, _existsIn) {\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 _existsIn.default;\n    }\n  });\n  Object.defineProperty(_exports, \"existsIn\", {\n    enumerable: true,\n    get: function () {\n      return _existsIn.existsIn;\n    }\n  });\n});","define(\"apollo/helpers/fa-icon\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.faIcon = faIcon;\n  _exports.default = void 0;\n\n  function faIcon([icon, type], namedArgs) {\n    const styleType = !type || type === '' ? 'solid' : type;\n    const additionalClass = namedArgs.class === undefined ? '' : namedArgs.class;\n    return Ember.String.htmlSafe(`<i class=\"fa-${styleType} fa-${icon} ${additionalClass}\"></i>`);\n  }\n\n  var _default = Ember.Helper.helper(faIcon);\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/filter-by\", [\"exports\", \"ember-composable-helpers/helpers/filter-by\"], function (_exports, _filterBy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _filterBy.default;\n    }\n  });\n});","define(\"apollo/helpers/filter\", [\"exports\", \"ember-composable-helpers/helpers/filter\"], function (_exports, _filter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _filter.default;\n    }\n  });\n});","define(\"apollo/helpers/find-by\", [\"exports\", \"ember-composable-helpers/helpers/find-by\"], function (_exports, _findBy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _findBy.default;\n    }\n  });\n});","define(\"apollo/helpers/find-proper-notification\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.extend({\n    compute(params, nameArgs) {\n      const notifications = nameArgs.notifications;\n      const transportTypeId = nameArgs.transportTypeId;\n      return notifications.filter(n => n.content.get('transportType.id') === transportTypeId);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/flatten\", [\"exports\", \"ember-composable-helpers/helpers/flatten\"], function (_exports, _flatten) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _flatten.default;\n    }\n  });\n  Object.defineProperty(_exports, \"flatten\", {\n    enumerable: true,\n    get: function () {\n      return _flatten.flatten;\n    }\n  });\n});","define(\"apollo/helpers/format-calendar\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatCalendar = formatCalendar;\n  _exports.default = void 0;\n\n  function formatCalendar(params) {\n    const date = params[0];\n    let dateIsValidDate = date && Object.prototype.toString.call(date) === '[object Date]';\n\n    if (!dateIsValidDate) {\n      return '';\n    }\n\n    return moment(date).calendar();\n  }\n\n  var _default = Ember.Helper.helper(formatCalendar);\n\n  _exports.default = _default;\n});","define(\"apollo/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(\"apollo/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(\"apollo/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(\"apollo/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(\"apollo/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(\"apollo/helpers/get-schedule-day-name-with-timezone-offset\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.extend({\n    compute(params, hash) {\n      const [dayOffset, day] = params;\n\n      if (dayOffset === 0) {\n        return day.name;\n      }\n\n      if (dayOffset === -1) {\n        return day.nameMinusOneDay;\n      }\n\n      if (dayOffset === 1) {\n        return day.namePlusOneDay;\n      }\n\n      return day.name;\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/get-timezone-abbreviation\", [\"exports\", \"apollo/utils/functions/date/is-valid-iana-zone\", \"apollo/utils/functions/date/get-timezone-abbreviation\"], function (_exports, _isValidIanaZone, _getTimezoneAbbreviation) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.extend({\n    compute(params, hash) {\n      const [ianaTimezone] = params;\n\n      if (!(0, _isValidIanaZone.isValidIanaZone)(ianaTimezone)) {\n        return 'Invalid time zone';\n      }\n\n      return (0, _getTimezoneAbbreviation.getTimezoneAbbreviation)(ianaTimezone);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/group-by\", [\"exports\", \"ember-composable-helpers/helpers/group-by\"], function (_exports, _groupBy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _groupBy.default;\n    }\n  });\n});","define(\"apollo/helpers/group-components\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var get = Ember.get,\n      set = Ember.set,\n      EmberHandlebars = Ember.Handlebars;\n\n  function groupComponentsHelper(options) {\n    var data = options.data,\n        fn = options.fn,\n        view = data.view,\n        childView;\n    childView = view.createChildView(Ember._MetamorphView, {\n      context: get(view, 'context'),\n      template: function (context, options) {\n        options.data.insideGroup = true;\n        return fn(context, options);\n      }\n    });\n    view.appendChild(childView);\n  }\n\n  var _default = groupComponentsHelper;\n  _exports.default = _default;\n});","define(\"apollo/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(\"apollo/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(\"apollo/helpers/has-authority-to-route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n\n    compute(params) {\n      const permission = params[0];\n      const transportTypeId = params[1].get('transportType.id');\n      return this.get('sessionAccount').hasAuthorityInTransportType(permission, transportTypeId);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/has-next\", [\"exports\", \"ember-composable-helpers/helpers/has-next\"], function (_exports, _hasNext) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _hasNext.default;\n    }\n  });\n  Object.defineProperty(_exports, \"hasNext\", {\n    enumerable: true,\n    get: function () {\n      return _hasNext.hasNext;\n    }\n  });\n});","define(\"apollo/helpers/has-previous\", [\"exports\", \"ember-composable-helpers/helpers/has-previous\"], function (_exports, _hasPrevious) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _hasPrevious.default;\n    }\n  });\n  Object.defineProperty(_exports, \"hasPrevious\", {\n    enumerable: true,\n    get: function () {\n      return _hasPrevious.hasPrevious;\n    }\n  });\n});","define(\"apollo/helpers/has-role\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Helper.extend({\n    sessionAccount: service('session-account'),\n\n    compute(params) {\n      this.set('value', params[0]);\n      return this.get('content');\n    },\n\n    valueDidChange: Ember.observer('value', function () {\n      let value = this.get('value');\n\n      if (Ember.isEmpty(value)) {\n        Ember.defineProperty(this, 'content', false);\n        return;\n      }\n\n      let self = this;\n      Ember.defineProperty(this, 'content', Ember.computed('value', function () {\n        let value = self.get('value');\n        let sessionAccount = self.get('sessionAccount');\n        return !!sessionAccount.get('currentUser').get('roles').findBy('name', value);\n      }));\n    }),\n    contentDidChange: Ember.observer('content', function () {\n      this.recompute();\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/hour-is-between\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.hourIsBetween = hourIsBetween;\n  _exports.default = void 0;\n\n  function hourIsBetween(params) {\n    const currentHour = moment(params[0], 'HH:mm').add(1, 's');\n    const startTime = moment({\n      hour: params[1].hour,\n      minute: params[1].minutes\n    });\n    const endTime = moment({\n      hour: params[1].hour,\n      minute: params[1].minutes\n    }).add(params[2], 'minutes');\n    return currentHour.isBetween(startTime, endTime);\n  }\n\n  var _default = Ember.Helper.helper(hourIsBetween);\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/href-to\", [\"exports\", \"ember-href-to/helpers/href-to\"], function (_exports, _hrefTo) {\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 _hrefTo.default;\n    }\n  });\n  Object.defineProperty(_exports, \"hrefTo\", {\n    enumerable: true,\n    get: function () {\n      return _hrefTo.hrefTo;\n    }\n  });\n});","define(\"apollo/helpers/html-safe\", [\"exports\", \"ember-models-table/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  Object.defineProperty(_exports, \"htmlSafe\", {\n    enumerable: true,\n    get: function () {\n      return _htmlSafe.htmlSafe;\n    }\n  });\n});","define(\"apollo/helpers/ignore-children\", [\"exports\", \"ember-ignore-children-helper/helpers/ignore-children\"], function (_exports, _ignoreChildren) {\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 _ignoreChildren.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ignoreChildren\", {\n    enumerable: true,\n    get: function () {\n      return _ignoreChildren.ignoreChildren;\n    }\n  });\n});","define(\"apollo/helpers/inc\", [\"exports\", \"ember-composable-helpers/helpers/inc\"], function (_exports, _inc) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _inc.default;\n    }\n  });\n  Object.defineProperty(_exports, \"inc\", {\n    enumerable: true,\n    get: function () {\n      return _inc.inc;\n    }\n  });\n});","define(\"apollo/helpers/intersect\", [\"exports\", \"ember-composable-helpers/helpers/intersect\"], function (_exports, _intersect) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _intersect.default;\n    }\n  });\n});","define(\"apollo/helpers/invoke\", [\"exports\", \"ember-composable-helpers/helpers/invoke\"], function (_exports, _invoke) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _invoke.default;\n    }\n  });\n  Object.defineProperty(_exports, \"invoke\", {\n    enumerable: true,\n    get: function () {\n      return _invoke.invoke;\n    }\n  });\n});","define(\"apollo/helpers/is-after\", [\"exports\", \"ember-moment/helpers/is-after\"], function (_exports, _isAfter) {\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 _isAfter.default;\n    }\n  });\n});","define(\"apollo/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(\"apollo/helpers/is-before\", [\"exports\", \"ember-moment/helpers/is-before\"], function (_exports, _isBefore) {\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 _isBefore.default;\n    }\n  });\n});","define(\"apollo/helpers/is-between\", [\"exports\", \"ember-moment/helpers/is-between\"], function (_exports, _isBetween) {\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 _isBetween.default;\n    }\n  });\n});","define(\"apollo/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(\"apollo/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(\"apollo/helpers/is-in-list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isInList = isInList;\n  _exports.default = void 0;\n\n  function isInList(params) {\n    const element = params[0];\n    const list = params[1];\n\n    if (list === undefined) {\n      return false;\n    }\n\n    return list.indexOf(element) >= 0;\n  }\n\n  var _default = Ember.Helper.helper(isInList);\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/is-same-or-after\", [\"exports\", \"ember-moment/helpers/is-same-or-after\"], function (_exports, _isSameOrAfter) {\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 _isSameOrAfter.default;\n    }\n  });\n});","define(\"apollo/helpers/is-same-or-before\", [\"exports\", \"ember-moment/helpers/is-same-or-before\"], function (_exports, _isSameOrBefore) {\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 _isSameOrBefore.default;\n    }\n  });\n});","define(\"apollo/helpers/is-same\", [\"exports\", \"ember-moment/helpers/is-same\"], function (_exports, _isSame) {\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 _isSame.default;\n    }\n  });\n});","define(\"apollo/helpers/join\", [\"exports\", \"ember-composable-helpers/helpers/join\"], function (_exports, _join) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _join.default;\n    }\n  });\n});","define(\"apollo/helpers/last-weight-task\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.extend({\n    compute(params, nameArgs) {\n      const transport = nameArgs.transport;\n      const weight = nameArgs.weight;\n      const lastConfirmedCheckpointWithWeighingIncluded = nameArgs.checkpoint;\n      const currentWeight = lastConfirmedCheckpointWithWeighingIncluded ? lastConfirmedCheckpointWithWeighingIncluded.get('currentWeight') : null;\n      return currentWeight ? currentWeight.get('id') === weight.get('id') : transport.get('enabledWeights').length === 1;\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/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(\"apollo/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(\"apollo/helpers/map-by\", [\"exports\", \"ember-composable-helpers/helpers/map-by\"], function (_exports, _mapBy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _mapBy.default;\n    }\n  });\n});","define(\"apollo/helpers/map\", [\"exports\", \"ember-composable-helpers/helpers/map\"], function (_exports, _map) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _map.default;\n    }\n  });\n});","define(\"apollo/helpers/match-translation\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.extend({\n    intl: Ember.inject.service(),\n\n    compute(params, nameArgs) {\n      const self = this;\n      const key = nameArgs.key;\n      const propertyName = nameArgs.propertyName;\n      return function (option, searchTerm) {\n        if (!option) {\n          return -1;\n        }\n\n        const propertyKey = option.get(propertyName);\n        const translation = self.get('intl').t(`${key}.${propertyKey}`).toLowerCase();\n        return translation.indexOf(searchTerm.toLowerCase());\n      };\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/moment-add\", [\"exports\", \"ember-moment/helpers/moment-add\"], function (_exports, _momentAdd) {\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 _momentAdd.default;\n    }\n  });\n});","define(\"apollo/helpers/moment-calendar\", [\"exports\", \"ember-moment/helpers/moment-calendar\"], function (_exports, _momentCalendar) {\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 _momentCalendar.default;\n    }\n  });\n});","define(\"apollo/helpers/moment-diff\", [\"exports\", \"ember-moment/helpers/moment-diff\"], function (_exports, _momentDiff) {\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 _momentDiff.default;\n    }\n  });\n});","define(\"apollo/helpers/moment-duration\", [\"exports\", \"ember-moment/helpers/moment-duration\"], function (_exports, _momentDuration) {\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 _momentDuration.default;\n    }\n  });\n});","define(\"apollo/helpers/moment-format\", [\"exports\", \"ember-moment/helpers/moment-format\"], function (_exports, _momentFormat) {\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 _momentFormat.default;\n    }\n  });\n});","define(\"apollo/helpers/moment-from-now\", [\"exports\", \"ember-moment/helpers/moment-from-now\"], function (_exports, _momentFromNow) {\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 _momentFromNow.default;\n    }\n  });\n});","define(\"apollo/helpers/moment-from\", [\"exports\", \"ember-moment/helpers/moment-from\"], function (_exports, _momentFrom) {\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 _momentFrom.default;\n    }\n  });\n});","define(\"apollo/helpers/moment-subtract\", [\"exports\", \"ember-moment/helpers/moment-subtract\"], function (_exports, _momentSubtract) {\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 _momentSubtract.default;\n    }\n  });\n});","define(\"apollo/helpers/moment-to-date\", [\"exports\", \"ember-moment/helpers/moment-to-date\"], function (_exports, _momentToDate) {\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 _momentToDate.default;\n    }\n  });\n});","define(\"apollo/helpers/moment-to-now\", [\"exports\", \"ember-moment/helpers/moment-to-now\"], function (_exports, _momentToNow) {\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 _momentToNow.default;\n    }\n  });\n});","define(\"apollo/helpers/moment-to\", [\"exports\", \"ember-moment/helpers/moment-to\"], function (_exports, _momentTo) {\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 _momentTo.default;\n    }\n  });\n});","define(\"apollo/helpers/moment-unix\", [\"exports\", \"ember-moment/helpers/unix\"], function (_exports, _unix) {\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 _unix.default;\n    }\n  });\n});","define(\"apollo/helpers/moment\", [\"exports\", \"ember-moment/helpers/moment\"], function (_exports, _moment) {\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 _moment.default;\n    }\n  });\n});","define(\"apollo/helpers/my-format-date\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n   * Usage examples:\n   *\n   * {{my-format-date model.dateCreated 'full'}}\n   * {{my-format-date model.lastUpdated 'short' fallback=\"Oops!\"}}\n   * {{my-format-date model.arrivalDate 'medium' locale=\"fr-FR\"}}\n   * {{my-format-date model.arrivalDate 'fullDateTime' timeZone='America/Chihuahua'}}\n   * {{my-format-date model.dateCreated 'custom' hour=\"numeric\" minute=\"numeric\" hourCycle=\"h24\"}}\n   */\n  var _default = Ember.Helper.extend({\n    dateFormatterService: Ember.inject.service('date.date-formatter-service'),\n\n    /**\n     * @returns string\n     */\n    compute(params, hash) {\n      const [date, style = 'medium'] = params;\n\n      if (!date) {\n        return '';\n      }\n\n      const {\n        locale,\n        timeZone,\n        ...formatOptions\n      } = hash;\n      const options = {};\n\n      if (locale) {\n        options.locale = locale;\n      }\n\n      if (timeZone) {\n        options.timeZone = timeZone;\n      }\n\n      let result;\n\n      switch (style) {\n        case 'full':\n          result = this.dateFormatterService.formatFullDate(date, options);\n          break;\n\n        case 'short':\n          result = this.dateFormatterService.formatShortDate(date, options);\n          break;\n\n        case 'fullTime':\n          result = this.dateFormatterService.formatFullTime(date, options);\n          break;\n\n        case 'shortTime':\n          result = this.dateFormatterService.formatShortTime(date, options);\n          break;\n\n        case 'fullDateTime':\n          result = this.dateFormatterService.formatFullDateTime(date, options);\n          break;\n\n        case 'defaultDateTime':\n          result = this.dateFormatterService.formatDefaultDateTime(date, options);\n          break;\n\n        case 'custom':\n          result = this.dateFormatterService.formatCustom(date, formatOptions, options);\n          break;\n\n        case 'medium':\n        default:\n          result = this.dateFormatterService.formatMediumDate(date, options);\n      }\n\n      return result;\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/next\", [\"exports\", \"ember-composable-helpers/helpers/next\"], function (_exports, _next) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _next.default;\n    }\n  });\n  Object.defineProperty(_exports, \"next\", {\n    enumerable: true,\n    get: function () {\n      return _next.next;\n    }\n  });\n});","define(\"apollo/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(\"apollo/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(\"apollo/helpers/now\", [\"exports\", \"ember-moment/helpers/now\"], function (_exports, _now) {\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 _now.default;\n    }\n  });\n});","define(\"apollo/helpers/object-at\", [\"exports\", \"ember-composable-helpers/helpers/object-at\"], function (_exports, _objectAt) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _objectAt.default;\n    }\n  });\n  Object.defineProperty(_exports, \"objectAt\", {\n    enumerable: true,\n    get: function () {\n      return _objectAt.objectAt;\n    }\n  });\n});","define(\"apollo/helpers/odd-even\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.oddEven = oddEven;\n  _exports.default = void 0;\n\n  function oddEven(number) {\n    if (number % 2) {\n      return 'odd';\n    } else {\n      return 'even';\n    }\n  }\n\n  var _default = Ember.Helper.helper(oddEven);\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/optional\", [\"exports\", \"ember-composable-helpers/helpers/optional\"], function (_exports, _optional) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _optional.default;\n    }\n  });\n  Object.defineProperty(_exports, \"optional\", {\n    enumerable: true,\n    get: function () {\n      return _optional.optional;\n    }\n  });\n});","define(\"apollo/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(\"apollo/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(\"apollo/helpers/pipe-action\", [\"exports\", \"ember-composable-helpers/helpers/pipe-action\"], function (_exports, _pipeAction) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pipeAction.default;\n    }\n  });\n});","define(\"apollo/helpers/pipe\", [\"exports\", \"ember-composable-helpers/helpers/pipe\"], function (_exports, _pipe) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pipe.default;\n    }\n  });\n  Object.defineProperty(_exports, \"pipe\", {\n    enumerable: true,\n    get: function () {\n      return _pipe.pipe;\n    }\n  });\n});","define(\"apollo/helpers/place-button-style\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.placeButtonStyle = placeButtonStyle;\n  _exports.default = void 0;\n\n  function placeButtonStyle(params, namedArgs) {\n    const resource = namedArgs.resource;\n    const place = namedArgs.place;\n    const transportBackgroundColor = resource.get('transport.backgroundColorStyle');\n    const isResourceActive = resource.get('active');\n    const currentPlaceIsAssigned = resource.get('place.id') === place.get('id');\n    const hasTransport = resource.get('transport.id');\n\n    if (!resource.get('transport.id') && resource.get('place.id') === place.get('id')) {\n      return Ember.String.htmlSafe('background-color: steelblue;');\n    } else if ((currentPlaceIsAssigned || isResourceActive) && hasTransport) {\n      return transportBackgroundColor;\n    } else {\n      return Ember.String.htmlSafe('background-color: lightgray;');\n    }\n  }\n\n  var _default = Ember.Helper.helper(placeButtonStyle);\n\n  _exports.default = _default;\n});","define(\"apollo/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 = _pluralize.default;\n  _exports.default = _default;\n});","define(\"apollo/helpers/previous\", [\"exports\", \"ember-composable-helpers/helpers/previous\"], function (_exports, _previous) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _previous.default;\n    }\n  });\n  Object.defineProperty(_exports, \"previous\", {\n    enumerable: true,\n    get: function () {\n      return _previous.previous;\n    }\n  });\n});","define(\"apollo/helpers/queue\", [\"exports\", \"ember-composable-helpers/helpers/queue\"], function (_exports, _queue) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _queue.default;\n    }\n  });\n  Object.defineProperty(_exports, \"queue\", {\n    enumerable: true,\n    get: function () {\n      return _queue.queue;\n    }\n  });\n});","define(\"apollo/helpers/range\", [\"exports\", \"ember-composable-helpers/helpers/range\"], function (_exports, _range) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _range.default;\n    }\n  });\n  Object.defineProperty(_exports, \"range\", {\n    enumerable: true,\n    get: function () {\n      return _range.range;\n    }\n  });\n});","define(\"apollo/helpers/reduce\", [\"exports\", \"ember-composable-helpers/helpers/reduce\"], function (_exports, _reduce) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _reduce.default;\n    }\n  });\n});","define(\"apollo/helpers/reject-by\", [\"exports\", \"ember-composable-helpers/helpers/reject-by\"], function (_exports, _rejectBy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _rejectBy.default;\n    }\n  });\n});","define(\"apollo/helpers/repeat\", [\"exports\", \"ember-composable-helpers/helpers/repeat\"], function (_exports, _repeat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _repeat.default;\n    }\n  });\n  Object.defineProperty(_exports, \"repeat\", {\n    enumerable: true,\n    get: function () {\n      return _repeat.repeat;\n    }\n  });\n});","define(\"apollo/helpers/reverse\", [\"exports\", \"ember-composable-helpers/helpers/reverse\"], function (_exports, _reverse) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _reverse.default;\n    }\n  });\n});","define(\"apollo/helpers/setting-translation\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.extend({\n    translationService: Ember.inject.service('translation-service'),\n\n    compute(params, nameArgs) {\n      const settingClass = nameArgs.settingClass;\n      const labelName = nameArgs.labelName;\n      const transportType = nameArgs.transportType;\n      return this.get('translationService').getTranslation(settingClass, labelName, transportType);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/shuffle\", [\"exports\", \"ember-composable-helpers/helpers/shuffle\"], function (_exports, _shuffle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _shuffle.default;\n    }\n  });\n  Object.defineProperty(_exports, \"shuffle\", {\n    enumerable: true,\n    get: function () {\n      return _shuffle.shuffle;\n    }\n  });\n});","define(\"apollo/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 = _singularize.default;\n  _exports.default = _default;\n});","define(\"apollo/helpers/slice\", [\"exports\", \"ember-composable-helpers/helpers/slice\"], function (_exports, _slice) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _slice.default;\n    }\n  });\n});","define(\"apollo/helpers/sort-by\", [\"exports\", \"ember-composable-helpers/helpers/sort-by\"], function (_exports, _sortBy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _sortBy.default;\n    }\n  });\n});","define(\"apollo/helpers/statute-url\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.statueUrl = statueUrl;\n  _exports.default = void 0;\n\n  function statueUrl() {\n    return `${_environment.default.serverURL}/statutes/current`;\n  }\n\n  var _default = Ember.Helper.helper(statueUrl);\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/step-translation-key-label\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.extend({\n    intl: Ember.inject.service(),\n\n    compute(params, nameArgs) {\n      const label = nameArgs.label;\n      const translationKeyName = label + 'TranslationKey';\n      const transportType = nameArgs.transportType;\n      const translationKey = transportType.get(translationKeyName);\n\n      if (!translationKey) {\n        return this.get('intl').t('step.' + label + '.DEFAULT.label');\n      }\n\n      return this.get('intl').t('step.' + label + '.' + translationKey + '.label');\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/stringify\", [\"exports\", \"ember-models-table/helpers/stringify\"], function (_exports, _stringify) {\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 _stringify.default;\n    }\n  });\n  Object.defineProperty(_exports, \"stringify\", {\n    enumerable: true,\n    get: function () {\n      return _stringify.stringify;\n    }\n  });\n});","define(\"apollo/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(\"apollo/helpers/table-column-style\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.extend({\n    store: Ember.inject.service(),\n\n    compute(params, namedArgs) {\n      const columnName = namedArgs.columnName;\n      let style = '';\n      const transportTypeRoleGroupTableColumn = this.get('store').peekAll('transportTypeRoleGroupTableColumn').find(ttrgtc => {\n        return ttrgtc.get('tableColumn.name') === columnName;\n      });\n\n      if (transportTypeRoleGroupTableColumn && transportTypeRoleGroupTableColumn.get('isHighlighted')) {\n        style = 'highlighted';\n      }\n\n      return Ember.String.htmlSafe(style);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/take\", [\"exports\", \"ember-composable-helpers/helpers/take\"], function (_exports, _take) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _take.default;\n    }\n  });\n});","define(\"apollo/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(\"apollo/helpers/toggle-action\", [\"exports\", \"ember-composable-helpers/helpers/toggle-action\"], function (_exports, _toggleAction) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _toggleAction.default;\n    }\n  });\n});","define(\"apollo/helpers/toggle\", [\"exports\", \"ember-composable-helpers/helpers/toggle\"], function (_exports, _toggle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _toggle.default;\n    }\n  });\n  Object.defineProperty(_exports, \"toggle\", {\n    enumerable: true,\n    get: function () {\n      return _toggle.toggle;\n    }\n  });\n});","define(\"apollo/helpers/trunc-string\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.truncString = truncString;\n  _exports.default = void 0;\n\n  function truncString(params, namedArgs) {\n    const string = params[0];\n    const n = params[1] || 16;\n    const hellip = namedArgs.hellip;\n\n    if (!string) {\n      return null;\n    }\n\n    let truncatedString = string;\n\n    if (n > 0 && string.length > Math.abs(n)) {\n      // n > 0 => tniemy normalnie z prawej\n      truncatedString = hellip ? `${string.substr(0, n - 1).trim()}&hellip;` : `${string.substr(0, n - 1).trim()}`;\n    } else if (n < 0 && string.length > Math.abs(n)) {\n      // n < 0 => tniemy z lewej\n      truncatedString = hellip ? `&hellip;${string.substr(string.length + n, string.length).trim()}` : `${string.substr(string.length + n, string.length).trim()}`;\n    } // n == 0 =? nie tniemy\n\n\n    return Ember.String.htmlSafe(truncatedString);\n  }\n\n  var _default = Ember.Helper.helper(truncString);\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/union\", [\"exports\", \"ember-composable-helpers/helpers/union\"], function (_exports, _union) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _union.default;\n    }\n  });\n});","define(\"apollo/helpers/unix\", [\"exports\", \"ember-moment/helpers/unix\"], function (_exports, _unix) {\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 _unix.default;\n    }\n  });\n});","define(\"apollo/helpers/utc\", [\"exports\", \"ember-moment/helpers/utc\"], function (_exports, _utc) {\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 _utc.default;\n    }\n  });\n  Object.defineProperty(_exports, \"utc\", {\n    enumerable: true,\n    get: function () {\n      return _utc.utc;\n    }\n  });\n});","define(\"apollo/helpers/warehouse-net-weight\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.extend({\n    compute(params, nameArgs) {\n      const warehouse = nameArgs.warehouse;\n      const weightsArgs = nameArgs.weights;\n\n      if (!warehouse || !weightsArgs) {\n        return 'NaN';\n      }\n\n      const weights = weightsArgs.filter(w => w.get('warehouse.id') === warehouse.get('id'));\n\n      if (weights.length < 2) {\n        return 'NaN';\n      } else {\n        const firstWeight = weights.shift();\n        return Math.abs(firstWeight.get('readOut') - weights.getEach('readOut').reduce((a, b) => a + b, 0));\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/warehouse-weights\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Helper.extend({\n    compute(params, nameArgs) {\n      const warehouse = nameArgs.warehouse;\n      const weights = nameArgs.weights;\n      return weights.filter(w => w.get('enabled') && (w.get('id') || w.get('notSynchronized')) && w.get('warehouse.id') === warehouse.get('id'));\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/helpers/without\", [\"exports\", \"ember-composable-helpers/helpers/without\"], function (_exports, _without) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _without.default;\n    }\n  });\n  Object.defineProperty(_exports, \"without\", {\n    enumerable: true,\n    get: function () {\n      return _without.without;\n    }\n  });\n});","define(\"apollo/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(\"apollo/initializers/add-modals-container\", [\"exports\", \"ember-modal-dialog/initializers/add-modals-container\"], function (_exports, _addModalsContainer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    name: 'add-modals-container',\n    initialize: _addModalsContainer.default\n  };\n  _exports.default = _default;\n});","define(\"apollo/initializers/app-version\", [\"exports\", \"ember-cli-app-version/initializer-factory\", \"apollo/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\n  if (_environment.default.APP) {\n    name = _environment.default.APP.name;\n    version = _environment.default.APP.version;\n  }\n\n  var _default = {\n    name: 'App Version',\n    initialize: (0, _initializerFactory.default)(name, version)\n  };\n  _exports.default = _default;\n});","define(\"apollo/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 = {\n    name: 'container-debug-adapter',\n\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  };\n  _exports.default = _default;\n});","define(\"apollo/initializers/coordinator-setup\", [\"exports\", \"apollo/models/coordinator\"], function (_exports, _coordinator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    name: \"setup coordinator\",\n    initialize: function () {\n      let app = arguments[1] || arguments[0];\n      app.register(\"drag:coordinator\", _coordinator.default);\n      app.inject(\"component\", \"coordinator\", \"drag:coordinator\");\n    }\n  };\n  _exports.default = _default;\n});","define(\"apollo/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(\"apollo/initializers/ember-data-change-tracker\", [\"exports\", \"ember-data-change-tracker\"], function (_exports, _emberDataChangeTracker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    name: 'ember-data-change-tracker',\n    after: 'ember-data',\n    initialize: _emberDataChangeTracker.initializer\n  };\n  _exports.default = _default;\n});","define(\"apollo/initializers/ember-data\", [\"exports\", \"ember-data/setup-container\", \"ember-data\"], function (_exports, _setupContainer, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /*\n  \n    This code initializes Ember-Data onto an Ember application.\n  \n    If an Ember.js developer defines a subclass of DS.Store on their application,\n    as `App.StoreService` (or via a module system that resolves to `service:store`)\n    this code will automatically instantiate it and make it available on the\n    router.\n  \n    Additionally, after an application's controllers have been injected, they will\n    each have the store made available to them.\n  \n    For example, imagine an Ember.js application with the following classes:\n  \n    ```app/services/store.js\n    import DS from 'ember-data';\n  \n    export default DS.Store.extend({\n      adapter: 'custom'\n    });\n    ```\n  \n    ```app/controllers/posts.js\n    import { Controller } from '@ember/controller';\n  \n    export default Controller.extend({\n      // ...\n    });\n  \n    When the application is initialized, `ApplicationStore` will automatically be\n    instantiated, and the instance of `PostsController` will have its `store`\n    property set to that instance.\n  \n    Note that this code will only be run if the `ember-application` package is\n    loaded. If Ember Data is being used in an environment other than a\n    typical application (e.g., node.js where only `ember-runtime` is available),\n    this code will be ignored.\n  */\n  var _default = {\n    name: 'ember-data',\n    initialize: _setupContainer.default\n  };\n  _exports.default = _default;\n});","define(\"apollo/initializers/ember-simple-auth\", [\"exports\", \"apollo/config/environment\", \"ember-simple-auth/configuration\", \"ember-simple-auth/initializers/setup-session\", \"ember-simple-auth/initializers/setup-session-service\", \"ember-simple-auth/initializers/setup-session-restoration\"], function (_exports, _environment, _configuration, _setupSession, _setupSessionService, _setupSessionRestoration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    name: 'ember-simple-auth',\n\n    initialize(registry) {\n      const config = _environment.default['ember-simple-auth'] || {};\n      config.rootURL = _environment.default.rootURL || _environment.default.baseURL;\n\n      _configuration.default.load(config);\n\n      (0, _setupSession.default)(registry);\n      (0, _setupSessionService.default)(registry);\n      (0, _setupSessionRestoration.default)(registry);\n    }\n\n  };\n  _exports.default = _default;\n});","define(\"apollo/initializers/emt-themes\", [\"exports\", \"ember-models-table/initializers/emt-themes\"], function (_exports, _emtThemes) {\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 _emtThemes.default;\n    }\n  });\n  Object.defineProperty(_exports, \"initialize\", {\n    enumerable: true,\n    get: function () {\n      return _emtThemes.initialize;\n    }\n  });\n});","define(\"apollo/initializers/export-application-global\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.initialize = initialize;\n  _exports.default = void 0;\n\n  function initialize() {\n    var application = arguments[1] || arguments[0];\n\n    if (_environment.default.exportApplicationGlobal !== false) {\n      var theGlobal;\n\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\n      var value = _environment.default.exportApplicationGlobal;\n      var globalName;\n\n      if (typeof value === 'string') {\n        globalName = value;\n      } else {\n        globalName = Ember.String.classify(_environment.default.modulePrefix);\n      }\n\n      if (!theGlobal[globalName]) {\n        theGlobal[globalName] = application;\n        application.reopen({\n          willDestroy: function () {\n            this._super.apply(this, arguments);\n\n            delete theGlobal[globalName];\n          }\n        });\n      }\n    }\n  }\n\n  var _default = {\n    name: 'export-application-global',\n    initialize: initialize\n  };\n  _exports.default = _default;\n});","define(\"apollo/initializers/hide-popovers\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.initialize = initialize;\n  _exports.default = void 0;\n\n  function initialize() {\n    const destroyPopovers = function () {\n      $(\"[data-toggle='popover']\").popover('destroy');\n    };\n\n    $('html').on('mouseup', function (e) {\n      if (!$(e.target).closest('.popover').length && $(e.target).data('toggle') !== 'popover') {\n        destroyPopovers();\n      }\n    });\n    $(document).keyup(function (e) {\n      if (e.keyCode === 27) {\n        // Esc key event\n        if (!$(e.target).closest('.popover').length) {\n          destroyPopovers();\n        }\n      }\n    });\n  }\n\n  var _default = {\n    name: 'hide-popovers',\n    initialize\n  };\n  _exports.default = _default;\n});","define(\"apollo/initializers/jquery-ui-touch-punch\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.initialize = initialize;\n  _exports.default = void 0;\n\n  function initialize() {\n    /*!\n    * jQuery UI Touch Punch 0.2.3\n    *\n    * Copyright 2011–2014, Dave Furfero\n    * Dual licensed under the MIT or GPL Version 2 licenses.\n    *\n    * Depends:\n    *  jquery.ui.widget.js\n    *  jquery.ui.mouse.js\n    */\n    (function ($) {\n      // Detect touch support\n      $.support.touch = 'ontouchend' in document; // Ignore browsers without touch support\n\n      if (!$.support.touch) {\n        return;\n      }\n\n      var mouseProto = $.ui.mouse.prototype,\n          _mouseInit = mouseProto._mouseInit,\n          _mouseDestroy = mouseProto._mouseDestroy,\n          touchHandled;\n      /**\n       * Simulate a mouse event based on a corresponding touch event\n       * @param {Object} event A touch event\n       * @param {String} simulatedType The corresponding mouse event\n       */\n\n      function simulateMouseEvent(event, simulatedType) {\n        // Ignore multi-touch events\n        if (event.originalEvent.touches.length > 1) {\n          return;\n        }\n\n        var touch = event.originalEvent.changedTouches[0],\n            simulatedEvent = document.createEvent('MouseEvents'); //https://stackoverflow.com/a/31932093 -,-\n\n        if ($(touch.target).is(\"input\") || $(touch.target).is(\"textarea\") || $(touch.target).is(\"button\") || $(touch.target).attr(\"class\").search(\"ember-power-select\") > -1) {\n          event.stopPropagation();\n          return;\n        } else {\n          event.preventDefault();\n        } // Initialize the simulated mouse event using the touch event's coordinates\n\n\n        simulatedEvent.initMouseEvent(simulatedType, // type\n        true, // bubbles\n        true, // cancelable\n        window, // view\n        1, // detail\n        touch.screenX, // screenX\n        touch.screenY, // screenY\n        touch.clientX, // clientX\n        touch.clientY, // clientY\n        false, // ctrlKey\n        false, // altKey\n        false, // shiftKey\n        false, // metaKey\n        0, // button\n        null // relatedTarget\n        ); // Dispatch the simulated event to the target element\n\n        event.target.dispatchEvent(simulatedEvent);\n      }\n      /**\n       * Handle the jQuery UI widget's touchstart events\n       * @param {Object} event The widget element's touchstart event\n       */\n\n\n      mouseProto._touchStart = function (event) {\n        var self = this; // Ignore the event if another widget is already being handled\n\n        if (touchHandled || !self._mouseCapture(event.originalEvent.changedTouches[0])) {\n          return;\n        } // Set the flag to prevent other widgets from inheriting the touch event\n\n\n        touchHandled = true; // Track movement to determine if interaction was a click\n\n        self._touchMoved = false; // Simulate the mouseover event\n\n        simulateMouseEvent(event, 'mouseover'); // Simulate the mousemove event\n\n        simulateMouseEvent(event, 'mousemove'); // Simulate the mousedown event\n\n        simulateMouseEvent(event, 'mousedown');\n      };\n      /**\n       * Handle the jQuery UI widget's touchmove events\n       * @param {Object} event The document's touchmove event\n       */\n\n\n      mouseProto._touchMove = function (event) {\n        // Ignore event if not handled\n        if (!touchHandled) {\n          return;\n        } // Interaction was not a click\n\n\n        this._touchMoved = true; // Simulate the mousemove event\n\n        simulateMouseEvent(event, 'mousemove');\n      };\n      /**\n       * Handle the jQuery UI widget's touchend events\n       * @param {Object} event The document's touchend event\n       */\n\n\n      mouseProto._touchEnd = function (event) {\n        // Ignore event if not handled\n        if (!touchHandled) {\n          return;\n        } // Simulate the mouseup event\n\n\n        simulateMouseEvent(event, 'mouseup'); // Simulate the mouseout event\n\n        simulateMouseEvent(event, 'mouseout'); // If the touch interaction did not move, it should trigger a click\n\n        if (!this._touchMoved) {\n          // Simulate the click event\n          simulateMouseEvent(event, 'click');\n        } // Unset the flag to allow other widgets to inherit the touch event\n\n\n        touchHandled = false;\n      };\n      /**\n       * A duck punch of the $.ui.mouse _mouseInit method to support touch events.\n       * This method extends the widget with bound touch event handlers that\n       * translate touch events to mouse events and pass them to the widget's\n       * original mouse event handling methods.\n       */\n\n\n      mouseProto._mouseInit = function () {\n        var self = this; // Delegate the touch handlers to the widget's element\n\n        self.element.bind({\n          touchstart: $.proxy(self, '_touchStart'),\n          touchmove: $.proxy(self, '_touchMove'),\n          touchend: $.proxy(self, '_touchEnd')\n        }); // Call the original $.ui.mouse init method\n\n        _mouseInit.call(self);\n      };\n      /**\n       * Remove the touch event handlers\n       */\n\n\n      mouseProto._mouseDestroy = function () {\n        var self = this; // Delegate the touch handlers to the widget's element\n\n        self.element.unbind({\n          touchstart: $.proxy(self, '_touchStart'),\n          touchmove: $.proxy(self, '_touchMove'),\n          touchend: $.proxy(self, '_touchEnd')\n        }); // Call the original $.ui.mouse destroy method\n\n        _mouseDestroy.call(self);\n      };\n    })(jQuery);\n  }\n\n  var _default = {\n    name: 'jquery-ui-touch-punch',\n    initialize: initialize\n  };\n  _exports.default = _default;\n});","define(\"apollo/initializers/locale-timezone-holder\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.initialize = initialize;\n  _exports.default = void 0;\n\n  function initialize(application) {\n    application.inject('route', 'localeTimezoneHolder', 'service:date.locale-timezone-holder-service');\n    application.inject('controller', 'localeTimezoneHolder', 'service:date.locale-timezone-holder-service');\n    application.inject('component', 'localeTimezoneHolder', 'service:date.locale-timezone-holder-service');\n  }\n\n  var _default = {\n    name: 'localeTimezoneHolder',\n    initialize\n  };\n  _exports.default = _default;\n});","define(\"apollo/initializers/model-locale\", [\"exports\", \"ember-model-validator/initializers/model-locale\"], function (_exports, _modelLocale) {\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 _modelLocale.default;\n    }\n  });\n  Object.defineProperty(_exports, \"initialize\", {\n    enumerable: true,\n    get: function () {\n      return _modelLocale.initialize;\n    }\n  });\n});","define(\"apollo/initializers/moment\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.initialize = initialize;\n  _exports.default = void 0;\n\n  function initialize() {\n    moment.updateLocale('pl', {\n      calendar: {\n        sameDay: '[dziś o] LT',\n        nextDay: '[jutro o] LT',\n        nextWeek: 'dddd [o] LT',\n        lastDay: '[wczoraj o] LT',\n        lastWeek: 'L HH:mm',\n        sameElse: 'L HH:mm'\n      }\n    });\n\n    try {\n      moment.tz.setDefault('Europe/Warsaw');\n    } catch (e) {\n      console.error(e);\n    }\n  }\n\n  var _default = {\n    name: 'moment',\n    initialize: initialize\n  };\n  _exports.default = _default;\n});","define(\"apollo/initializers/older-browsers\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.initialize = initialize;\n  _exports.default = void 0;\n\n  function initialize()\n  /* container, application */\n  {\n    if (Ember.$('html').is('.polyfill')) {\n      // Uwaga: To ustawienie sprawia, że jQuery do każdego zapytania GET doda na końcu timestamp, np.:\n      // https://apollo-test.logintegra.com:8090/apollo/api/user-groups?principalCompanyId=121528818&_=1652968121793\n      // To \"&_=1652968121793\" powoduje natomiast, że przeglądarka za każdym razem musi wysłać\n      // zapytanie preflight (https://stackoverflow.com/questions/29954037/why-is-an-options-request-sent-and-can-i-disable-it),\n      // co znowu bardzo negatywnie wpływa na wydajność.\n      // O ile więc jakieś konkretne zapytanie nie będzie powodować problemów, lepiej tej opcji nie włączać globalnie.\n      // TODO :: apollo-api-service\n      Ember.$.ajaxSetup({\n        cache: false\n      }); // trim function for IE8\n\n      String.prototype.trim = function () {\n        return this.replace(/^\\s+|\\s+$/g, '');\n      }; // simple Object.keys polyfill that could work\n\n\n      if (!Object.keys) {\n        Object.keys = function (obj) {\n          var keys = [];\n\n          for (var i in obj) {\n            if (obj.hasOwnProperty(i)) {\n              keys.push(i);\n            }\n          }\n\n          return keys;\n        };\n      }\n\n      if (typeof console === \"undefined\" || typeof console.log === \"undefined\") {\n        // eslint-disable-next-line\n        console = {};\n\n        console.log = function (msg) {};\n\n        console.error = function (msg) {};\n\n        console.debug = function (msg) {};\n\n        console.warn = function (msg) {};\n\n        console.info = function (msg) {};\n      }\n    } // https://stackoverflow.com/a/36213464/2224598\n\n\n    if (!String.prototype.startsWith) {\n      String.prototype.startsWith = function (searchString, position) {\n        position = position || 0;\n        return this.substr(position, searchString.length) === searchString;\n      };\n    }\n\n    if (typeof console.table === \"undefined\") {\n      console.table = console.log;\n    }\n  }\n\n  var _default = {\n    name: 'older-browsers',\n    initialize: initialize\n  };\n  _exports.default = _default;\n});","define(\"apollo/initializers/site-24-initializer\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.initialize = initialize;\n  _exports.default = void 0;\n\n  function initialize() {\n    const integrationEnabled = _environment.default.APP.integrations.site24;\n    const key = _environment.default.APP.integrations.site24Key;\n    const address = _environment.default.APP.integrations.site24Address;\n\n    if (!integrationEnabled) {\n      return console.log('Integracja z RUM Site24 jest wyłączona.');\n    }\n\n    console.log('Inicjujemy RUM Site24...'); // Skrypt pochodzi od Site24 -> https://www.site24x7.com/help/apm/rum/add-rum-monitor.html\n\n    (function (w, d, s, r, k, h, m) {\n      if (w.performance && w.performance.timing && w.performance.navigation) {\n        w[r] = w[r] || function () {\n          (w[r].q = w[r].q || []).push(arguments);\n        };\n\n        h = d.createElement('script');\n        h.async = true;\n        h.setAttribute('src', s + k);\n        d.getElementsByTagName('head')[0].appendChild(h);\n        m = window.onerror, window.onerror = function (b, c, d, f, g) {\n          m && m(b, c, d, f, g), g || (g = new Error(b)), (w[r].q = w[r].q || []).push(['captureException', g]);\n        };\n      }\n    })(window, document, address, 's247r', key);\n  }\n\n  var _default = {\n    name: 'site24Initializer',\n    initialize\n  };\n  _exports.default = _default;\n});","define(\"apollo/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 = {\n    name: 'ember-data',\n    initialize: _initializeStoreService.default\n  };\n  _exports.default = _default;\n});","define(\"apollo/instance-initializers/ember-href-to\", [\"exports\", \"ember-href-to/href-to\"], function (_exports, _hrefTo) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function closestLink(el) {\n    if (el.closest) {\n      return el.closest('a');\n    } else {\n      el = el.parentElement;\n\n      while (el && el.tagName !== 'A') {\n        el = el.parentElement;\n      }\n\n      return el;\n    }\n  }\n\n  var _default = {\n    name: 'ember-href-to',\n\n    initialize(applicationInstance) {\n      // we only want this to run in the browser, not in fastboot\n      if (typeof FastBoot === \"undefined\") {\n        let hrefToClickHandler = function _hrefToClickHandler(e) {\n          let link = e.target.tagName === 'A' ? e.target : closestLink(e.target);\n\n          if (link) {\n            let hrefTo = new _hrefTo.default(applicationInstance, e, link);\n            hrefTo.maybeHandle();\n          }\n        };\n\n        document.body.addEventListener('click', hrefToClickHandler); // Teardown on app destruction: clean up the event listener to avoid\n        // memory leaks.\n\n        applicationInstance.reopen({\n          willDestroy() {\n            document.body.removeEventListener('click', hrefToClickHandler);\n            return this._super(...arguments);\n          }\n\n        });\n      }\n    }\n\n  };\n  _exports.default = _default;\n});","define(\"apollo/instance-initializers/ember-intl\", [\"exports\", \"ember-intl/initializer\"], function (_exports, _initializer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"instanceInitializer\", {\n    enumerable: true,\n    get: function () {\n      return _initializer.instanceInitializer;\n    }\n  });\n  _exports.default = void 0;\n\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n  var _default = _initializer.default;\n  _exports.default = _default;\n});","define(\"apollo/instance-initializers/ember-simple-auth\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // This is only needed for backwards compatibility and will be removed in the\n  // next major release of ember-simple-auth. Unfortunately, there is no way to\n  // deprecate this without hooking into Ember's internals…\n  var _default = {\n    name: 'ember-simple-auth',\n\n    initialize() {}\n\n  };\n  _exports.default = _default;\n});","define(\"apollo/instance-initializers/emt-inject\", [\"exports\", \"ember-models-table/instance-initializers/emt-inject\"], function (_exports, _emtInject) {\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 _emtInject.default;\n    }\n  });\n  Object.defineProperty(_exports, \"initialize\", {\n    enumerable: true,\n    get: function () {\n      return _emtInject.initialize;\n    }\n  });\n});","define(\"apollo/mixins/adjust-page-content-mixin\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    adjustPageContent(element, selectors) {\n      const heights = selectors.map(selector => (0, _jquery.default)(selector).height());\n      const summaryHeight = heights.reduce((a, b) => a + b, 0); // 15 - taki offset, żeby nie było \"na styk\"\n\n      (0, _jquery.default)(element).css(\"margin-top\", summaryHeight + 15);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/advice-utils-mixin\", [\"exports\", \"apollo/mixins/persistence-mixin\"], function (_exports, _persistenceMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create(_persistenceMixin.default, {\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n\n    setRodoValue(advice) {\n      console.debug(`Advice has changes in properties: ${advice.get('isDirty')}.`);\n      console.debug(`Advice has changes in relationships: ${advice.get('hasDirtyRelations')}.`); // log naprawia A-1753\n\n      if (advice.get('content')) {\n        console.debug(advice.get('content').modelChanges());\n      }\n\n      if (advice.get('rodoAcceptanceChangedManually') || !advice.get('content')) {\n        return;\n      }\n\n      if (!advice.get('id')) {\n        advice.set('rodoAccepted', false);\n        return;\n      }\n\n      const adviceModel = this.get('store').peekRecord('advice', advice.get('id'));\n\n      if (!adviceModel) {\n        return;\n      }\n\n      const didDriverLanguageChanged = adviceModel.get('didDriverLanguageChanged');\n      const changes = adviceModel.modelChanges();\n      const hasChanges = Object.keys(changes).filter(k => {\n        return !['rodoAccepted', 'dateCreated', 'creator', 'driverLanguage'].includes(k);\n      }).length > 0;\n      advice.set('rodoAccepted', !(hasChanges || didDriverLanguageChanged));\n    },\n\n    removeWhiteSpacesAndSetUpperCase: function (e) {\n      const driverMobilePhoneNumberLength = e.get('driverMobilePhoneNumber.length');\n      const carRegistrationNumberLength = e.get('carRegistrationNumber.length');\n      const trailerRegistrationNumberLength = e.get('trailerRegistrationNumber.length');\n      const documentNumberLength = e.get('documentNumber.length');\n\n      if (driverMobilePhoneNumberLength > 0) {\n        e.set('driverMobilePhoneNumber', e.get('driverMobilePhoneNumber').replace(/\\s+/g, ''));\n      }\n\n      if (carRegistrationNumberLength > 0) {\n        e.set('carRegistrationNumber', e.get('carRegistrationNumber').toUpperCase().replace(/\\s+/g, ''));\n      }\n\n      if (trailerRegistrationNumberLength > 0) {\n        e.set('trailerRegistrationNumber', e.get('trailerRegistrationNumber').toUpperCase().replace(/\\s+/g, ''));\n      }\n\n      if (documentNumberLength > 0) {\n        e.set('documentNumber', e.get('documentNumber').replace(/\\s+/g, ''));\n      }\n\n      return e;\n    },\n    updateAllFuturePeriodicTransports: function (transport) {\n      return transport.get('id') && transport.get('periodicTransport.id') && this.get('sessionAccount').hasRole('ROLE_EDIT_MULTIPLE_PERIODIC_TRANSPORTS') && confirm(this.get('intl').t('periodicTransport.updateAllConfirmMsg'));\n    },\n    unloadRedundantTimeWindows: function (transport) {\n      const timeWindowsCopy = transport.get('timeWindows').slice(0);\n      timeWindowsCopy.forEach(tw => {\n        if (tw && !tw.get('id')) {\n          console.debug(`Unloading redundant time window for newly saved advice of transport ${transport.get('id')}..`);\n          transport.get('timeWindows').removeObject(tw);\n          tw.unloadRecord();\n\n          if (transport && transport.get('masterTransports.firstObject.id')) {\n            transport.get('masterTransports.firstObject.timeWindows').forEach(tw => {\n              tw.unloadRecord(tw);\n            });\n          }\n        }\n      });\n    },\n    handleTransportReload: function (transport, scheduleController) {\n      this.unloadDeletedRecords('transport', transport.get('id'), 'checkpoint');\n      this.handleStepsUpdate(transport);\n      transport.get('timeWindows').forEach(tw => {\n        if (!tw) {\n          return;\n        }\n\n        scheduleController.pushTimeWindow(tw.get('id'));\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/attachment-mixin\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    ajaxService: Ember.inject.service('ajax-service'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    uploadAttachment: function (id, token) {\n      const self = this;\n      const attachments = this.get('attachments');\n      const transport = this.get('store').findRecord('transport', id);\n\n      if (Ember.isEmpty(attachments)) {\n        return;\n      }\n\n      const fileNames = attachments.map(a => a.name);\n      const promises = attachments.map(a => this.readFile(a));\n      Ember.RSVP.Promise.all(promises).then(files => {\n        const data = JSON.stringify({\n          transportId: id,\n          files: {\n            result: files\n          },\n          filesNames: fileNames\n        });\n        this.get('apolloApiService').callApolloApi(self.get('apolloApiService').APOLLO_API.FILES.SAVE, null, {\n          body: data\n        }).then(() => transport.reload());\n      });\n    },\n    readFile: function (file) {\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        const reader = new FileReader();\n        reader.readAsDataURL(file);\n\n        reader.onload = () => resolve(reader.result);\n\n        reader.onerror = error => reject(error);\n      });\n    },\n\n    deleteFile(fileId) {\n      console.log(`deleteFile: ${fileId}`);\n      this.get('store').findRecord('file', fileId, {\n        reload: true\n      }).then(f => {\n        f.destroyRecord();\n      });\n    },\n\n    actions: {\n      addFiles: function () {\n        const attachments = this.get('attachments'); // obiekty plików są przechowywane w inpucie w tym przypadki w inpucie o id `upload-files`\n        // pliki zwracane są w formie `FileList`, która działa podobnie do tablicy ale nie działają\n        // na niej metody emberowe dlatego po niej iterujemy i wrzucamy pliki do emberowej tablicy\n\n        const filesFromInput = $('#upload-files')[0].files;\n        const files = Ember.A();\n\n        for (const file of filesFromInput) {\n          files.pushObject(file);\n        }\n\n        files.forEach(function (file) {\n          if (!attachments.findBy('name', file.name)) {\n            attachments.pushObject(file);\n          }\n        });\n      },\n      removeFile: function (file) {\n        const attachments = this.get('attachments');\n        this.set('attachments', attachments.rejectBy('name', file.name));\n      },\n\n      removeExistingFile(file) {\n        console.log('removeExistingFile..');\n        this.get('existingFilesToRemove').push(file.get('id'));\n        (0, _jquery.default)('#file-' + file.get('id')).css('text-decoration', 'line-through');\n      },\n\n      generateXLS() {\n        this.send('hideModal');\n        alert(this.get('intl').t('transportsToExcel.XLSGenerateMessage'));\n        const url = '/reports/transports?token=' + this.get('sessionAccount').get('token');\n        const params = {\n          // do przemyślenia czy cały ten obiekt nie powinien być wymieniany między komponentami zamiast tylko searchParams\n          query: this.get('searchParams.query'),\n          archived: this.get('archived'),\n          exportType: this.get('exportType'),\n          exportActiveOrders: this.get('exportActiveOrders'),\n          transportTypeIds: this.get('checkedTransportTypes').getEach('id').join(','),\n          principalId: localStorage.getItem('principalId'),\n          start: this.get('searchParams.start') ? moment(this.get('searchParams.start')).format() : '',\n          stop: this.get('searchParams.stop') ? moment(this.get('searchParams.stop')).format() : '',\n          dateFilterProperty: this.get('searchParams.dateFilterProperty'),\n          filters: JSON.stringify(this.get('searchParams.filters')) // TODO: rozszyfrować działanie i zrezygnować z ajaxService\n\n        };\n        this.get('ajaxService').send(url, 'GET', params).then(() => {}).catch(response => {\n          if (response.status === 404) {\n            alert(this.get('intl').t('transportsToExcel.errors.XLSGenerateEmailErrorMessage'));\n            return;\n          }\n\n          if (response.status === 504) {\n            return;\n          }\n\n          if (response.status === 400) {\n            alert(this.get('intl').t('transportsToExcel.errors.DaysLimitExceededMessage'));\n          }\n\n          alert(this.get('intl').t('transportsToExcel.errors.XLSGenerateErrorMessage'));\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/change-serializer\", [\"exports\", \"ember-data-change-tracker/mixins/keep-only-changed\"], function (_exports, _keepOnlyChanged) {\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 _keepOnlyChanged.default;\n    }\n  });\n});","define(\"apollo/mixins/checkpoint-mixin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  // eslint-disable-next-line ember/no-new-mixins\n  var _default = Ember.Mixin.create({\n    intl: Ember.inject.service(),\n\n    showCustomFieldsModal(checkpoint, transport, actionType, hide) {\n      if (hide) {\n        hide();\n      }\n\n      checkpoint.set('actionType', actionType);\n\n      if (transport.get('hasCustomFieldsInitialized')) {\n        transport.set('hasCustomFieldsInitialized', false);\n      }\n\n      this.send('showModal', 'custom-field-definitions.modals.form', checkpoint);\n    },\n\n    showBlockadeReasonModal(checkpoint, transport, actionType, hide) {\n      if (hide) {\n        hide();\n      }\n\n      checkpoint.set('actionType', actionType);\n      this.send('showModal', 'components.checkpoint-blockade-reason-modal', checkpoint);\n    },\n\n    confirmRejection() {\n      const msg = this.get('intl').t('checkpoint.rejectConfirm');\n      return confirm(msg);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/company-mixin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    trimCompany: function (company) {\n      [\"taxIdNumber\", \"name\", \"shortName\", \"partnershipWithPrincipal.contractorNumber\", \"partnershipWithPrincipal.contractorShortName\"].forEach(property => {\n        if (company.get(property)) {\n          company.set(property, company.get(property).trim());\n\n          if (property === \"taxIdNumber\") {\n            company.set(property, company.get(property).replaceAll(' ', ''));\n          }\n        }\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/document-mixin\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    showAddDocumentButton: Ember.computed('transport.transportType', function () {\n      if (!this.get('transport')) {\n        return false;\n      }\n\n      return this.get('transport').actionCanBePerformed('ADD_DOCUMENTS');\n    }),\n    showDeleteDocumentButton: Ember.computed('transport.transportType', function () {\n      return this.get('transport').actionCanBePerformed('DELETE_DOCUMENTS');\n    }),\n    actions: {\n      downloadDiscrepancyReport(discrepancyReportId) {\n        const self = this;\n        Ember.run.once(this, function () {\n          window.open(_environment.default.serverURL + '/discrepancy-reports/' + discrepancyReportId + '/download?token=' + self.get(\"sessionAccount\").get(\"token\"), \"_blank\");\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/error-utils-mixin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Mixin.create({\n    store: service(),\n    handleErrors: function (errors, modelName) {\n      const self = this;\n      jQuery.each(errors, function (key, val) {\n        const model = self.get('store').peekRecord(modelName, key);\n        model.send('becomeDirty');\n        model.get('errors').add(key, val);\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/form-utils-mixin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    languageService: Ember.inject.service('language-service'),\n\n    clearBootstrapError(el) {\n      $(el).closest(\".has-error\").removeClass(\"has-error\");\n    },\n\n    erpIdentifierColumnLabel: Ember.computed('column-names', function () {\n      const properSetting = this.get('languageService').findProperLanguageVersion('ERP_IDENTIFIER_LABEL', 'ERP_IDENTIFIER_LABEL_EN');\n      return this.get('sessionAccount').getSettingValue(properSetting);\n    }),\n    altIdentifierColumnLabel: Ember.computed('column-names', function () {\n      const properSetting = this.get('languageService').findProperLanguageVersion('ALT_IDENTIFIER_LABEL', 'ALT_IDENTIFIER_LABEL_EN');\n      return this.get('sessionAccount').getSettingValue(properSetting);\n    }),\n    contractorNumberLabel: Ember.computed('column-names', function () {\n      const properSetting = this.get('languageService').findProperLanguageVersion('CONTRACTOR_NUMBER_LABEL', 'CONTRACTOR_NUMBER_LABEL_EN');\n      return this.get('sessionAccount').getSettingValue(properSetting);\n    }),\n    warehouseZoneLabel: Ember.computed('column-names', function () {\n      const properKey = this.get('languageService').findProperLanguageVersion('WAREHOUSE_ZONE_LABEL', 'WAREHOUSE_ZONE_LABEL_EN');\n      const setting = this.get('sessionAccount').getSettingValue(properKey);\n      return setting ? setting : this.get('intl').t('warehouseZone.label');\n    }),\n\n    setDateOfPeriodicAdvice(date, propertyName) {\n      if (this.get('transport.periodicTransportActive')) {\n        this.set(propertyName, date[0]);\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/invitations-mixin\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Mixin.create({\n    sessionAccount: service('session-account'),\n    actions: {\n      accept(id) {\n        const self = this;\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        Ember.$.ajax({\n          url: _environment.default.serverURL + `/invitations/${id}/accept`,\n          type: 'PUT',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(function () {\n          console.log(`Invitation ${id} accepted.`);\n          self.get('store').findRecord('invitation', id).then(() => {\n            self.get('sessionAccount').get('currentUser').reload();\n            self.transitionToRoute('invitations.show', id);\n          });\n        });\n      },\n\n      reject(id) {\n        const self = this;\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        Ember.$.ajax({\n          url: _environment.default.serverURL + `/invitations/${id}/reject`,\n          type: 'PUT',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(function () {\n          console.log(`Invitation ${id} rejected.`);\n          self.get('store').findRecord('invitation', id).then(() => {\n            self.get('sessionAccount').get('currentUser').reload();\n            self.transitionToRoute('invitations.show', id);\n          });\n        });\n      },\n\n      delete(invitation) {\n        const self = this;\n        invitation.destroyRecord().then(() => {\n          self.transitionToRoute('invitations');\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/menu-mixin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    activateCurrentTab: function (tabName) {\n      $(\"#navbar li\").removeClass(\"menu-element-active\");\n      $(\"#navbar\").find(\"[data-tab-name='\" + tabName + \"']\").addClass(\"menu-element-active\");\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/model-validator\", [\"exports\", \"ember-model-validator/mixins/model-validator\"], function (_exports, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _modelValidator.default;\n  _exports.default = _default;\n});","define(\"apollo/mixins/object-validator\", [\"exports\", \"ember-model-validator/mixins/object-validator\"], function (_exports, _objectValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _objectValidator.default;\n  _exports.default = _default;\n});","define(\"apollo/mixins/persistence-mixin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  // TODO!! A-12801\n  // eslint-disable-next-line ember/no-new-mixins\n  var _default = Ember.Mixin.create({\n    session: Ember.inject.service('session'),\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    ajaxService: Ember.inject.service('ajax-service'),\n\n    /**\n     * Ember-data nie potrafi automatycznie usunąć obiektów z relacji, jeśli te zostaną\n     * usunięte po stronie serwera - musimy więc to zrobić ręcznie.\n     * Poniższa metoda zapyta serwer o aktualne relacje dla podanego modelu i usunie te\n     * obiektu, które już nie istnieją.\n     *\n     * Uwaga: serwer musi potrafić obsłużyć konkretne zapytanie ajax.\n     *\n     * @param modelName - nazwa modelu; np. 'transport' lub 'timeWindow'\n     * @param modelId - id modelu\n     * @param childModelName - nazwa modelu relacji zdefiniowana jako DS.hasMany; np. 'checkpoint' lub 'timeWindow'\n     */\n    unloadDeletedRecords(modelName, modelId, childModelName) {\n      const self = this;\n      return new Ember.RSVP.Promise(function (resolve) {\n        let store = self.store;\n\n        if (!store.peekRecord) {\n          store = self.get('store');\n        }\n\n        const model = store.peekRecord(modelName, modelId);\n\n        if (!model) {\n          resolve();\n        } // TODO: Jakaś mądrzejsza pluralizacja, jeśli będzie potrzeba.\n\n\n        const relationship = childModelName + 's';\n        model.get(relationship).then(currentRecords => {\n          self.get('ajaxService').send(`/${modelName}s/` + modelId + `/${relationship}`, 'GET').then(function (json) {\n            currentRecords.map(r => {\n              return parseInt(r.id);\n            }).forEach(currentId => {\n              if (!json[relationship].filterBy('id', currentId).length) {\n                const r = store.peekRecord('checkpoint', currentId);\n                model.get(relationship).removeObject(r);\n                r.destroyRecord().then(() => {\n                  r.unloadRecord();\n                  console.debug(`Unloaded ${childModelName} #${r.id} from ${modelName} #${modelId}.`);\n                });\n              }\n            });\n            resolve();\n          });\n        });\n      });\n    },\n\n    /**\n     * Ember-data czasem wczytuje do sesji zduplikowane rekordy w przypadku relacji has-many.\n     * Poniższa metoda usuwa nadmiarowe rekordy.\n     *\n     * @param parentModel\n     * @param relationshipName\n     */\n    removeDuplicateRecords(parentModel, relationshipName) {\n      const ids = [];\n      const duplicatedModels = [];\n      parentModel.get(relationshipName).forEach(m => {\n        if (ids.includes(m.id)) {\n          duplicatedModels.push(m);\n        } else {\n          ids.push(m.id);\n        }\n      });\n      duplicatedModels.forEach(r => {\n        console.debug(`Deleted duplicated record: #${r.id}`);\n        parentModel.get(relationshipName).removeObject(r);\n      });\n    },\n\n    // https://stackoverflow.com/questions/4465244/compare-2-json-objects\n    deepEquals: function (o1, o2) {\n      const self = this;\n\n      if (o1 === null || o2 === null) {\n        return;\n      }\n\n      const k1 = Object.keys(o1).sort();\n      const k2 = Object.keys(o2).sort();\n\n      if (k1.length !== k2.length) {\n        return false;\n      }\n\n      return k1.map(function (keyPair) {\n        if (typeof o1[keyPair] === 'object' && typeof o2[keyPair] === 'object') {\n          return self.deepEquals(o1[keyPair], o2[keyPair]);\n        } else {\n          if (o1[keyPair] !== o2[keyPair]) {\n            return false;\n          }\n\n          return o1[keyPair] === o2[keyPair];\n        }\n      });\n    },\n\n    /**\n     * Metoda, która zapamiętuje \"brudne\" custom field option\n     * (podczas przeładowywania transportu zmiany były usuwane)\n     */\n    getPreviousCustomFieldValuesMap: function (transportId) {\n      const prevCustomFieldValues = [];\n      const transport = this.get('store').peekRecord('transport', transportId);\n\n      if (transport === null) {\n        return prevCustomFieldValues;\n      }\n\n      transport.get('customFields').forEach(cf => {\n        prevCustomFieldValues.push({\n          id: cf.get('id'),\n          isSelect: cf.get('definition.isSelectType'),\n          option: cf.get('option'),\n          value: cf.get('value'),\n          prevValue: cf.get('prevValue'),\n          isDirty: cf.get('hasDirtyAttributes'),\n          lastUpdated: cf.get('lastUpdated')\n        });\n      });\n      return prevCustomFieldValues;\n    },\n\n    /**\n     * Metoda, która przywraca usunięte podczas przeładowywania\n     * custom field options\n     */\n    markDirtyCustomFieldValues: function (transport, prevCustomFieldValues, newCustomFieldValues) {\n      console.debug(`Próbujemy przywrócić usunięte podczas przeładowywania (np. okna czasowego) custom fields w transporcie ${transport.get('logString')}...`);\n      const currentCustomFields = transport.get('customFields');\n      const newCustomFields = currentCustomFields.filter(ccf => !prevCustomFieldValues.map(pcf => pcf.id).includes(ccf.get('id')));\n      prevCustomFieldValues.forEach(dcf => {\n        const cf = currentCustomFields.find(cf => cf.get('id') && cf.get('id') === dcf.id);\n\n        if (!cf) {\n          const prevValueString = dcf.isSelect ? dcf.option ? dcf.option.get('nameInAppropriateLanguage') : '-' : dcf.value;\n          this.setCfMessageAndPrevValue(cf, 'formChanges.valueRemoved', {\n            value: prevValueString\n          }, prevValueString, true);\n          return;\n        }\n\n        const propertyName = dcf.isSelect ? 'option' : 'value';\n        const prevValue = dcf.isSelect ? dcf.option ? dcf.option.get('id') : null : dcf.value;\n        const correspondingValue = newCustomFieldValues.find(x => parseInt(x.id) === parseInt(dcf.id));\n        const newValue = dcf.isSelect ? cf.get('option.id') : correspondingValue ? correspondingValue.value : '';\n        const hasBeenUpdated = dcf.lastUpdated !== cf.get('lastUpdated');\n        const valueChanged = prevValue !== newValue;\n\n        if (!valueChanged) {\n          return;\n        }\n\n        const prevValueString = dcf.isSelect ? dcf.option ? dcf.option.get('nameInAppropriateLanguage') : '-' : dcf.value;\n        const newValueString = dcf.isSelect ? cf.get('option.nameInAppropriateLanguage') : newValue;\n\n        if (dcf.isDirty) {\n          // przypadek, kiedy użytkownik zmieni wartość w CF i przyjdzie aktualizacja z serwera dotycząca tego pola:\n          // - przywracamy zmiany wprowadzone przez użytkownika\n          // - ustawiamy komunikat o równoczesnej edycji\n          this.setCfMessageAndPrevValue(cf, 'formChanges.dirtyValueChanged', {\n            yourValue: prevValueString,\n            newValue: newValueString\n          }, prevValueString, hasBeenUpdated);\n\n          if (hasBeenUpdated) {\n            cf.set('transport.sureToSaveMessage', true);\n          }\n\n          cf.set(propertyName, dcf[propertyName]);\n        } else {\n          // przypadek, kiedy przyszła aktualizacja pola z serwera - ustawiamy komunikat z informacją\n          this.setCfMessageAndPrevValue(cf, 'formChanges.valueChanged', {\n            oldValue: prevValueString,\n            newValue: newValueString\n          }, prevValueString, hasBeenUpdated);\n        }\n      });\n      newCustomFields.forEach(ncf => {\n        // nie mieliśmy tego CF, ale przyszedł update z serwera i ktoś go uzupełnił\n        const newValue = ncf.get('definition.isSelectType') ? ncf.get('option.nameInAppropriateLanguage') : ncf.get('value');\n        this.setCfMessageAndPrevValue(ncf, 'formChanges.newValue', {\n          value: newValue\n        }, null, true);\n      });\n    },\n    setCfMessageAndPrevValue: function (cf, msgCode, msgArgs, prevValueString, hasBeenUpdated) {\n      if (!cf || !hasBeenUpdated) {\n        return;\n      }\n\n      const message = this.get('intl').t(msgCode, msgArgs);\n      cf.set('prevValue', prevValueString);\n      cf.set('changeMessage', message);\n    },\n\n    /**\n     * Metoda, która usuwa stare obiekty `step` po edycji\n     * -> ember-data nie nadpisuje stepów po otrzymaniu odpowiedzi z serwera tylko dodaje nowe, więc stare usuwamy ręcznie\n     */\n    handleStepsUpdate(transport) {\n      const stepsCopy = transport.get('steps').slice(0);\n      stepsCopy.forEach(function (s) {\n        s.set('didWarehouseChange', false);\n\n        if (s !== undefined && s.get('address') !== undefined && s.get('address.content')) {\n          if (!s.get('address.id') && s.get('address').unloadRecord) {\n            console.log(`Unloading redundant advice for newly saved transport ${transport.get('id')}..`);\n            s.get('address').unloadRecord();\n          }\n        }\n\n        if (s !== undefined && !s.get('id') && s.unloadRecord) {\n          console.debug(`Unloading redundant step for newly saved transport ${transport.get('id')}..`);\n          transport.get('steps').removeObject(s);\n          s.unloadRecord();\n        }\n\n        s.get('stepWarehouseLocations').forEach(swh => {\n          if (swh !== undefined && !swh.get('id') && !swh.get('isFilled') && swh.unloadRecord) {\n            swh.unloadRecord();\n          }\n        });\n      });\n    },\n\n    removeUnsavedTimeWindows(transport) {\n      if (!transport.get('timeWindows.length')) {\n        return;\n      }\n\n      const timeWindowsCopy = transport.get('timeWindows').slice(0);\n      timeWindowsCopy.forEach(function (tw) {\n        if (tw !== undefined && !tw.get('id') && tw.unloadRecord) {\n          console.debug(`Unloading redundant timeWindow for transport ${transport.get('id')}..`);\n          tw.get('step').set('timeWindow', null);\n          transport.get('timeWindows').removeObject(tw);\n          tw.unloadRecord();\n        }\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/queues-access-mixin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    squares: Ember.computed('', function () {\n      return this.store.peekAll('square').filter(square => {\n        return !Ember.isEmpty(square.get('queues.content.currentState'));\n      });\n    }),\n    // http://www.poeticsystems.com/blog/ember-checkboxes-and-you\n    proxiedSquares: Ember.computed('squares.@each', 'proxiedQueues.@each', function () {\n      const self = this;\n      return this.get('squares').map(s => {\n        const proxiedQueues = self.get('proxiedQueues').filter(q => {\n          return q.get('square.id') === s.get('id');\n        });\n        return Ember.ObjectProxy.create({\n          content: s,\n          proxiedQueues: proxiedQueues,\n          checked: true\n        });\n      });\n    }),\n    accessibleQueues: function () {\n      if (this.get('sessionAccount').hasRole('ROLE_ACCESS_ALL_QUEUES')) {\n        return this.get('store').peekAll('queue').filterBy('enabled');\n      }\n\n      return this.get('sessionAccount.currentUser.queues');\n    }.property('sessionAccount.currentUser.queues.@each'),\n    proxiedQueues: Ember.computed.map('accessibleQueues', function (model) {\n      return Ember.ObjectProxy.create({\n        content: model,\n        checked: true\n      });\n    }),\n    proxiedCheckedQueues: Ember.computed.filterBy('proxiedQueues', 'checked', true),\n    checkedQueues: Ember.computed.mapBy('proxiedCheckedQueues', 'content')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/ramps-access-mixin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    //todo: nie lepiej byłoby przerobić to na component?\n    sessionAccount: Ember.inject.service('session-account'),\n    warehouses: Ember.computed('sessionAccount.currentUser.accessibleWarehouses.@each', 'model.defaultCompanyWarehouses.@each', function () {\n      return !this.get('model.defaultCompanyWarehouses') || this.get('SHOW_ALL_WAREHOUSES') ? this.get('sessionAccount.currentUser.accessibleWarehouses') : this.get('model.defaultCompanyWarehouses').uniqBy('id');\n    }),\n    // http://www.poeticsystems.com/blog/ember-checkboxes-and-you\n    proxiedWarehouses: Ember.computed('warehouses.@each', 'proxiedRamps.@each', function () {\n      const self = this;\n      const defaultChecked = this.get(\"CHECKBOXES_DEFAULT_CHECKED\") !== undefined ? this.get(\"CHECKBOXES_DEFAULT_CHECKED\") : true;\n      const defaultCompanyWarehouses = this.get('model.defaultCompanyWarehouses');\n      return this.get('warehouses').map(w => {\n        const proxiedRamps = self.get('proxiedRamps').filter(r => {\n          return r.get('warehouse.id') === w.get('id');\n        });\n        return Ember.ObjectProxy.create({\n          content: w,\n          proxiedRamps: proxiedRamps,\n          checked: this.get('model.defaultCompanyWarehouses') && this.get('SHOW_ALL_WAREHOUSES') ? this.get('model.defaultCompanyWarehouses').getEach('id').includes(w.get('id')) : defaultChecked\n        });\n      });\n    }),\n    accessibleRamps: Ember.computed('sessionAccount.currentUser.accessibleRamps.@each', 'model.defaultCompanyRamps.@each', function () {\n      return !this.get('model.defaultCompanyRamps') || this.get('SHOW_ALL_WAREHOUSES') ? this.get('sessionAccount.currentUser.accessibleRamps') : this.get('model.defaultCompanyRamps');\n    }),\n    proxiedRamps: Ember.computed.map('accessibleRamps', function (model) {\n      const defaultChecked = this.get(\"CHECKBOXES_DEFAULT_CHECKED\") !== undefined ? this.get(\"CHECKBOXES_DEFAULT_CHECKED\") : true;\n      return Ember.ObjectProxy.create({\n        content: model,\n        checked: this.get('model.defaultCompanyWarehouses') && this.get('SHOW_ALL_WAREHOUSES') ? false : defaultChecked\n      });\n    }),\n    proxiedCheckedRamps: Ember.computed.filterBy('proxiedRamps', 'checked', true),\n    checkedRamps: Ember.computed.mapBy('proxiedCheckedRamps', 'content'),\n    actions: {\n      toggleWarehouse: function (warehouse) {\n        this.get('proxiedWarehouses').forEach(w => {\n          if (w.get('id') === warehouse.get('id')) {\n            w.set('checked', !w.get('checked'));\n            const isWarehouseChecked = w.get('checked');\n            w.get('proxiedRamps').forEach(r => r.set('checked', isWarehouseChecked));\n          }\n        });\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/response-util-mixin\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    intl: Ember.inject.service(),\n    handleSuccessResponse: function (self) {\n      self.send('refreshModel');\n      const msg = self.get('intl').t('common.saveSuccessMessage');\n      self.set('successMessage', msg);\n      (0, _jquery.default)(\"html, body\").animate({\n        scrollTop: 0\n      }, \"slow\");\n    },\n    handleErrorResponse: function (self, response) {\n      self.set('errors', response.errors);\n      (0, _jquery.default)(\"html, body\").animate({\n        scrollTop: 0\n      }, \"slow\");\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/schedule-mixin\", [\"exports\", \"apollo/config/environment\", \"apollo/mixins/persistence-mixin\", \"apollo/mixins/advice-utils-mixin\", \"jquery\", \"apollo/utils/functions/get-warehouse-start-stop\"], function (_exports, _environment, _persistenceMixin, _adviceUtilsMixin, _jquery, _getWarehouseStartStop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  // eslint-disable-next-line ember/no-new-mixins\n  var _default = Ember.Mixin.create(_persistenceMixin.default, _adviceUtilsMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    dateUtils: Ember.inject.service('date-utils'),\n    websocketService: Ember.inject.service('websocket'),\n    localeTimezoneHolder: Ember.inject.service('date.locale-timezone-holder-service'),\n    windows: Ember.A([]),\n    showMultipleTimeWindowsModal: Ember.computed('transportToHandle', {\n      get(key) {\n        return !!this.get('transportToHandle') && this.get('transportToHandle.stepsWithWarehouse').length > 1;\n      },\n\n      set(key, value) {\n        return value;\n      }\n\n    }),\n    scheduleStartDateFormatted: Ember.computed('scheduleStartDate', function () {\n      return moment(this.get('scheduleStartDate')).format('YYYY-MM-DD');\n    }),\n    // eslint-disable-next-line ember/no-observers\n    showErrors: Ember.observer('errors', function () {\n      if (this.get('errors.length')) {\n        this.send('showPopupDialog', 'dialogs.message-popup-dialog', this.get('errors'));\n      }\n    }),\n    // eslint-disable-next-line ember/no-observers\n    hideErrors: Ember.observer('warehouse.id', function () {\n      try {\n        this.send('removePopupDialog');\n      } catch (e) {\n        console.debug(e);\n      }\n    }),\n    // eslint-disable-next-line ember/no-observers\n    pollRequested: Ember.observer('editedTransportType.forcedPollRequestTime', function () {\n      if (this.get('editedTransportType.forcedPollRequestTime')) {\n        console.debug(`Sending poll request for transport type ${this.get('transportType.name')}..`);\n        this.send('poll');\n      }\n\n      this.get('editedTransportType').set('forcedPollRequestTime', null);\n    }),\n    // eslint-disable-next-line ember/no-observers\n    selectedUserGroupObserver: Ember.observer('selectedUserGroup', function () {\n      if (this.get('selectedUserGroup')) {\n        this.set('company', null);\n      }\n    }),\n    // eslint-disable-next-line ember/no-observers\n    selectedCompanyObserver: Ember.observer('company', function () {\n      if (this.get('company')) {\n        this.set('selectedUserGroup', null);\n      }\n    }),\n    shownDays: Ember.computed('scheduleStartDate', 'scheduleEndDate', function () {\n      const days = Ember.A();\n\n      for (let i = 0; moment(this.scheduleStartDate).add(i, 'days') < this.get('scheduleEndDate'); i++) {\n        const day = Ember.Object.create({\n          date: moment(this.scheduleStartDate).add(i, 'days'),\n          name: moment(this.scheduleStartDate).add(i, 'days').format('YYYY-MM-DD'),\n          namePlusOneDay: moment(this.scheduleStartDate).add(i + 1, 'days').format('YYYY-MM-DD'),\n          nameMinusOneDay: moment(this.scheduleStartDate).add(i - 1, 'days').format('YYYY-MM-DD'),\n          longName: moment(this.scheduleStartDate).add(i, 'days').format('DD.MM.YYYY dddd')\n        });\n        days.pushObject(day);\n      }\n\n      return days;\n    }),\n    warehouse: Ember.computed('model.warehouse', function () {\n      return this.get('model.warehouse');\n    }),\n    userRamps: Ember.computed('warehouse', 'sessionAccount.currentUser.accessibleRamps.[]', function () {\n      return this.get('sessionAccount.currentUser.accessibleRamps').filterBy('warehouse.id', this.get('warehouse.id'));\n    }),\n    userRampsIds: Ember.computed.map('userRamps', function (model) {\n      return model.get('id');\n    }),\n    userWarehouseZones: Ember.computed('userRamps.@each.warehouseZone', function () {\n      return this.get('userRamps').getEach('warehouseZone').uniqBy('id') || Ember.A([]);\n    }),\n    warehouseZones: Ember.computed('userWarehouseZones.[]', 'warehouseStepToHandle.warehouseZone', function () {\n      const ttId = this.get('warehouseStepToHandle.transport.transportType.id');\n      const availableZones = this.get('userWarehouseZones').sortBy('idx');\n\n      if (!ttId) {\n        // Brak stepu do obsłużenia, pokazujemy wszystkie strefy\n        return availableZones;\n      }\n\n      const warehouseZoneId = this.get('warehouseStepToHandle.warehouseZone.id');\n\n      if (!warehouseZoneId) {\n        // Brak wybranej strefy magazynowej, pokazujemy wszystkie strefy dostępne dla typu transportu\n        return availableZones.reduce((acc, zone) => {\n          const zoneTtIds = zone.get('transportTypes').getEach('id');\n\n          if (zoneTtIds.includes(ttId)) {\n            acc.push(zone);\n          }\n\n          return acc;\n        }, []);\n      } // Pokazujemy wybraną strefe\n\n\n      return availableZones.filter(zone => {\n        return zone.get('id') === warehouseZoneId;\n      });\n    }),\n    ramps: Ember.computed('userRamps.[]', 'warehouseZones.@each.ramps', function () {\n      const userRamps = this.get('userRamps');\n      const ramps = [];\n      this.get('warehouseZones').forEach(zone => {\n        if (zone.get('id')) {\n          zone.get('enabledRamps').forEach(r => {\n            if (userRamps.includes(r)) {\n              ramps.push(r);\n            }\n          });\n        }\n      });\n      return ramps;\n    }),\n    rampsIds: Ember.computed('ramps.@each.id', function () {\n      const ids = [];\n      this.get('ramps').forEach(function (r) {\n        ids.push(r.get('id'));\n      });\n      return ids;\n    }),\n    maxDate: Ember.computed(function () {\n      return moment().startOf('day').add(14, 'days');\n    }),\n    rampStyle: Ember.computed('rampWidth', function () {\n      const width = this.get('rampWidth') + '%';\n      return Ember.String.htmlSafe('width: ' + width);\n    }),\n    rampWidth: Ember.computed('ramps.length', function () {\n      return '' + 100 / this.get('ramps.length');\n    }),\n    dayStyle: Ember.computed('dayWidth', function () {\n      const width = this.get('dayWidth') + '%';\n      return Ember.String.htmlSafe('width: ' + width);\n    }),\n    dayWidth: Ember.computed('scheduleStartDate', 'scheduleEndDate', function () {\n      return 100 / this.get('shownDays.length');\n    }),\n    weekStyle: Ember.computed('ramps', 'shownDays', function () {\n      let width = 100 + '%';\n\n      if (this.get('ramps.length') > 8 && this.get('shownDays.length') > 4) {\n        width = 200 + '%';\n      }\n\n      return Ember.String.htmlSafe('width: ' + width);\n    }),\n    selectedDateISO: Ember.computed('scheduleStartDate', function () {\n      return moment(this.get('scheduleStartDate')).format('YYYY-MM-DD');\n    }),\n\n    /**\n     * Chcemy, żeby w harmonogramie najpierw dodawane były div-y z oknami dedykowanymi\n     * - żeby nie przykrywały one okien awizacji. Sortowanie po `state` daje taki efekt,\n     * bo statusy okien dedykowanych (`state-dedicated`, `state-dedicated-template`) znajdą się przed\n     * statusami okien awizacji (`state-with-transport`) i jest wydajne, bo `state` jest właściwością `timeWindow`.\n     *\n     * Jeżeli kiedyś dojdą nowe statusy, być może trzeba będzie zmienić to sortowanie.\n     */\n    filteredWindows: Ember.computed('scheduleStartDate', 'scheduleEndDate', 'windows.[]', function () {\n      const self = this;\n      const warehouseId = self.get('model.warehouse.id');\n      return this.get('windows').filter(w => {\n        return w.get('ramp.warehouse.id') === warehouseId;\n      }).sortBy('state');\n    }),\n    getStartDate: function (div) {\n      const $div = (0, _jquery.default)(div);\n      const $hourDiv = $div.parent();\n      const $dayWithOffsetDiv = $div.parent();\n      const dateString = $dayWithOffsetDiv.data('schedule-date-with-offset');\n      const hours = $hourDiv.data('schedule-hour');\n      const minutes = $div.data('schedule-minute');\n      const time = moment(`${dateString} ${hours} ${minutes}`, 'YYYY-MM-DD HH:mm');\n      return time;\n    },\n    timeWindowOffsetIntervalSetting: Ember.computed('model.warehouse.timeWindowOffsetInterval', function () {\n      let s = this.get('model.warehouse.timeWindowOffsetInterval');\n\n      if (!s) {\n        s = this.get('sessionAccount').getSettingValue('TIME_WINDOW_OFFSET_INTERVAL');\n      }\n\n      return parseInt(s);\n    }).readOnly(),\n    defaultGridHeight: function () {\n      const slotsPerHour = this.get('timeWindowOffsetIntervalSetting') ? 60 / this.get('timeWindowOffsetIntervalSetting') : 1;\n      const hdMultiplier = this.get('hdMode') ? 3 : 1;\n      return this.defaultCssHeight() / slotsPerHour * hdMultiplier;\n    },\n    defaultCssHeight: function () {\n      if (this.get('timeWindowOffsetIntervalSetting') === 15) {\n        return 80;\n      } else if (this.get('timeWindowOffsetIntervalSetting') === 30) {\n        return 60;\n      } else if (this.get('timeWindowOffsetIntervalSetting') === 60) {\n        return 48;\n      } else {\n        return 48;\n      }\n    },\n    cssHeight: Ember.computed('timeWindowOffsetIntervalSetting', function () {\n      return this.defaultCssHeight();\n    }),\n    timeSlotIntervalClass: Ember.computed('timeWindowOffsetIntervalSetting', function () {\n      const interval = this.get('timeWindowOffsetIntervalSetting');\n\n      switch (interval) {\n        case 15:\n          return 'slot-height-four-slots-per-hour';\n\n        case 30:\n          return 'slot-height-two-slots-per-hour';\n\n        case 45:\n          return 'slot-height-three-quarters-slots-per-hour';\n\n        case 90:\n          return 'slot-height-one-slot-per-one-and-half-hour';\n\n        case 120:\n          return 'slot-height-one-slot-per-two-hours';\n\n        case 150:\n          return 'slot-height-one-slot-per-two-and-half-hour';\n\n        case 180:\n          return 'slot-height-one-slots-per-three-hour';\n\n        case 240:\n          return 'slot-height-one-slots-per-four-hour';\n\n        case 300:\n          return 'slot-height-one-slots-per-five-hour';\n\n        default:\n          return '';\n      }\n    }),\n    // Refaktor\n    // eslint-disable-next-line ember/no-observers\n    scheduleSetWindows: Ember.observer('shownDays.[]', 'ramps.length', 'scheduleStartDate', 'model.isTemplate', 'warehouseStepToHandle', function () {\n      // Wykorzystywane jedynie w szablonach (warehouses/template)\n      const socketApi = this.websocketService.getSocketApi();\n      const isTemplate = this.get('model.isTemplate');\n\n      if (!isTemplate && socketApi) {\n        return;\n      }\n\n      Ember.run.once(this, 'setWindows');\n    }),\n\n    // Wykorzystywane jedynie w szablonach. Refaktor\n    setWindows() {\n      if (!this.get('rampsIds.length')) {\n        return;\n      }\n\n      const self = this;\n      const scheduleStartDate = this.get('scheduleStartDate');\n      const [whTzAdjustedStart, whTzAdjustedStop] = (0, _getWarehouseStartStop.getWarehouseStartStop)(this.get('warehouse'), scheduleStartDate, this.get('localeTimezoneHolder').timeZone);\n      const data = {\n        start: whTzAdjustedStart.toISOString(),\n        stop: whTzAdjustedStop.toISOString(),\n        isTemplate: true,\n        ramps: this.get('rampsIds')\n      };\n      return this.store.query('timeWindow', data).then(function (results) {\n        self.set('windows', results.toArray());\n      });\n    },\n\n    hasAccessToMaxPallet: Ember.computed(function () {\n      return this.get('sessionAccount').getSettingValue('HAS_ACCESS_TO_MAX_PALLET_PER_DAY') === 'true';\n    }),\n    hasAccessToMaxPalletPerRamp: Ember.computed(function () {\n      return this.get('sessionAccount').getSettingValue('HAS_ACCESS_TO_MAX_PALLET_PER_RAMP') === 'true';\n    }),\n    hasAccessToNumberOfWindows: Ember.computed(function () {\n      return this.get('sessionAccount').getSettingValue('HAS_ACCESS_TO_NUMBER_OF_WINDOWS') === 'true' && this.get('sessionAccount').hasRole('ROLE_ACCESS_TO_NUMBER_OF_WINDOWS');\n    }),\n    assortmentGroup: Ember.computed('warehouseStepToHandle.assortmentGroup', function () {\n      return this.get('warehouseStepToHandle.assortmentGroup');\n    }),\n    adviceFromTime: Ember.computed('assortmentGroup', function () {\n      return parseInt(this.get('assortmentGroup.adviceFromTime'));\n    }),\n    adviceToTime: Ember.computed('assortmentGroup', function () {\n      return parseInt(this.get('assortmentGroup.adviceToTime'));\n    }),\n    scheduleStartHour: Ember.computed('warehouse.workStartHour', function () {\n      return parseInt(this.get('warehouse.workStartHour'));\n    }),\n    scheduleEndHour: Ember.computed('warehouse.workEndHour', function () {\n      return parseInt(this.get('warehouse.workEndHour'));\n    }),\n    hours: Ember.computed('scheduleStartHour', 'scheduleEndHour', function () {\n      return this.hoursArray(1);\n    }),\n\n    /**\n     * Zwraca tablicę godzin jakie należy wyświetlić w harmonogramie\n     * scheduleStartHour - początek pracy magazynu\n     * scheduleEndHour - koniec pracy magazynu\n     */\n    hoursArray: function (interval) {\n      const hoursArray = [];\n\n      for (let i = this.get('scheduleStartHour'); i < this.get('scheduleEndHour'); i += interval) {\n        hoursArray.push(i);\n      }\n\n      return hoursArray;\n    },\n\n    loadWindows(idx, data) {\n      this.set('loadingInProgress', true);\n      const days = this.get('shownDays');\n\n      if (idx >= days.length) {\n        this.set('loadingInProgress', false); // Po załadowaniu wszystkich okien w dniach widocznych w harmonogrmie odpalamy\n        // metodę nakładającą blokady związnae z grupami asortymentowymi oraz oknami dedykowanymi\n\n        this._setAutoBlockades();\n\n        return;\n      }\n\n      const self = this;\n      const day = days[idx];\n      const dayToRender = day.name;\n      const [whTzAdjustedStart, whTzAdjustedStop] = (0, _getWarehouseStartStop.getWarehouseStartStop)(data.warehouse, day.date, this.get('localeTimezoneHolder').timeZone);\n      self.setPalletSummary(day);\n      self.setNumberOfWindows(day);\n      const lessOrEqualsTransportsThenWindows = data.loadedTransportIds.split(',').length <= this.get('windows').filter(w => w.get('transport.id')).length;\n\n      if (this.get('warehouse').get('loadedDays').includes(dayToRender) && lessOrEqualsTransportsThenWindows) {\n        return self.loadWindows(idx + 1, data);\n      }\n\n      data.dayToRender = dayToRender;\n      const queryParams = {\n        start: whTzAdjustedStart.toISOString(),\n        stop: whTzAdjustedStop.toISOString(),\n        ramps: data.rampsIds\n      };\n      this.store.query('time-window', queryParams).then(results => {\n        const windows = results.map(w => w); // A-8699 :: Okna dublowały się podczas zmiany okresu wyświetlania transportów w harmonogramie\n\n        const savedWindows = self.get('windows');\n        savedWindows.pushObjects(windows);\n        const uniqueWindows = [...new Set(savedWindows)];\n        self.set('windows', uniqueWindows);\n        self.get('warehouse').get('loadedDays').pushObject(dayToRender);\n        self.loadWindows(idx + 1, data);\n      });\n    },\n\n    setPalletSummary(day) {\n      if (!this.get('hasAccessToMaxPallet') && !this.get('hasAccessToMaxPalletPerRamp')) {\n        return;\n      }\n\n      this.getPalletSummary(day).then(response => {\n        if (this.get('hasAccessToMaxPallet')) {\n          day.set('numberOfPallets', response.numberOfPallets);\n        }\n\n        if (this.get('hasAccessToMaxPalletPerRamp')) {\n          day.set('numberOfPalletsPerRamps', response);\n        }\n      }).catch(e => {\n        console.error(e);\n      });\n    },\n\n    getPalletSummary(day) {\n      const token = this.get('sessionAccount').get('token');\n      const warehouseId = this.get('warehouse.id');\n      return new Ember.RSVP.Promise(function (resolve) {\n        const data = {\n          day: day.get('name') // TODO :: apollo-api-service\n\n        };\n\n        _jquery.default.ajax({\n          url: `${_environment.default.serverURL}/warehouses/${warehouseId}/palletSummary`,\n          type: 'POST',\n          crossDomain: true,\n          data: JSON.stringify(data),\n          contentType: 'application/json; charset=utf-8',\n          dataType: 'json',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(function (response) {\n          resolve(response);\n        });\n      });\n    },\n\n    setNumberOfWindows(day) {\n      if (!this.get('hasAccessToNumberOfWindows')) {\n        return;\n      }\n\n      this.getNumberOfWindows(day).then(response => day.set('numberOfWindows', response.numberOfWindows));\n    },\n\n    getNumberOfWindows(day) {\n      const token = this.get('sessionAccount').get('token');\n      const warehouseId = this.get('warehouse.id');\n      return new Ember.RSVP.Promise(function (resolve) {\n        const data = {\n          day: day.get('name') // TODO :: apollo-api-service\n\n        };\n\n        _jquery.default.ajax({\n          url: `${_environment.default.serverURL}/warehouses/${warehouseId}/numberOfWindows`,\n          type: 'POST',\n          crossDomain: true,\n          data: JSON.stringify(data),\n          contentType: 'application/json; charset=utf-8',\n          dataType: 'json',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(function (response) {\n          resolve(response);\n        });\n      });\n    },\n\n    transportCanBeCreatedInThisWarehouse(transport, ramp) {\n      const allTransportWarehousesId = transport.get('steps').getEach('warehouse.id');\n      const warehouseId = ramp.get('warehouse.id');\n      return allTransportWarehousesId.includes(warehouseId);\n    },\n\n    handleGridSize: function (newGridHeight) {\n      this.set('gridHeight', newGridHeight);\n      const gridHeightFormatted = `${newGridHeight}px`;\n      const timeLabel = (0, _jquery.default)('.time-label');\n      timeLabel.css('height', gridHeightFormatted);\n      timeLabel.css('lineHeight', gridHeightFormatted);\n      (0, _jquery.default)('.time-slot').css('height', gridHeightFormatted);\n      (0, _jquery.default)('.minutes-slot ').css('height', gridHeightFormatted);\n    },\n    actions: {\n      timeBarRendered() {\n        // Jeżeli użytkownik ręcznie zmienił ustawienia przybliżenia (poprzez slider), musimy tę wartość używać\n        // przy każdym renderowaniu harmonogramu -- po zmianie dnia itp.\n        if (this.get('hasZoomBeenSetManually')) {\n          const delta = jQuery('#slider').slider('option', 'value');\n          this.send('handleGridChange', delta, true);\n          return;\n        }\n\n        this.send('resetGrid');\n      },\n\n      handleGridChange(zoomInPercent = 100, hasBeenSetManually = false) {\n        const defaultGridHeight = this.defaultGridHeight();\n        const defaultCssHeight = this.defaultCssHeight();\n        const newCssHeight = zoomInPercent / 100 * defaultCssHeight;\n        const newGridHeight = zoomInPercent / 100 * defaultGridHeight;\n        console.debug(`Ustawiamy wysokość wierszy na ${zoomInPercent}% (${newCssHeight}px, ${newGridHeight}px); zmiana manualna: ${hasBeenSetManually}...`);\n        this.set('hasZoomBeenSetManually', hasBeenSetManually);\n        this.set('cssHeight', newCssHeight);\n        this.handleGridSize(newGridHeight);\n      },\n\n      resetGrid() {\n        // Liczba slotów -- 14:00, 14:15 itp.\n        const numberOfTimeSlots = (0, _jquery.default)('.time-label').length; // Domyślna wysokość slotu -- liczona niestety trochę na piechotę\n\n        const gridHeight = this.defaultGridHeight(); // Wysokość harmonogramu gdybyśmy nie wykonali żadnej akcji\n\n        const defaultScheduleHeight = gridHeight * numberOfTimeSlots;\n        const scheduleOffsetTop = (0, _jquery.default)('.schedule-calendar').offset().top;\n        const legendHeight = (0, _jquery.default)('.legend').outerHeight() || 0;\n        const footerHeight = (0, _jquery.default)('.footer').outerHeight() || 0; // Sekcja \"Po kliknięciu w wolne pole...\"\n\n        const scheduleFooterHeight = (0, _jquery.default)('.schedule-footer').height() || 0; // Margines sprawiający, że harmonogram nie zajmie jednak 100% widocznego ekranu -- ta wartość nie jest\n        // w żaden sposób obliczana, ustalamy ją \"na oko\"\n\n        const offsetHeight = 15; // Wysokość dostępnego ekranu to miejsce, w którym mogą wyświetlić się okienka -- a więc bez nagłówków, stopek, legend itp.\n\n        const availableDisplayHeight = (0, _jquery.default)(window).height() - scheduleOffsetTop - legendHeight - footerHeight - scheduleFooterHeight - offsetHeight; // Jeżeli wyświetlony domyślnie harmonogram będzie dłuższy niż wyświetlacz -- pojawi się scroll\n        // -- nie ruszamy go, nie chcemy go skracać, bo sloty staną się zbyt niskie\n\n        if (defaultScheduleHeight > availableDisplayHeight) {\n          this.set('defaultZoom', 100);\n          this.send('setDefaultZoom');\n          return;\n        } // Raz określony poziom przybliżenia (zoom) zachowujemy, żebyśmy mogli do niego resetować slider,\n        // jeżeli użytkownik kliknie \"Resetuj\"\n\n\n        if (this.get('defaultZoom')) {\n          this.send('setDefaultZoom');\n          return;\n        }\n\n        console.debug('Zwiększamy powiększenie harmonogramu, żeby wypełnił całą dostępną przestrzeń...'); // Jakie musi być przybliżenie, żeby sloty zajęły pełen dostępny obszar wyświetlacza?\n        // gridHeight -- 100%\n        //       zoom -- x%\n\n        const zoom = availableDisplayHeight / numberOfTimeSlots * 100 / gridHeight;\n        this.set('defaultZoom', zoom);\n        this.send('setSlider', zoom);\n      },\n\n      setDefaultZoom() {\n        this.send('setSlider', this.get('defaultZoom'));\n      },\n\n      setSlider(value) {\n        jQuery('#slider').slider('option', 'value', value);\n      },\n\n      spotClicked(d, r, h, m) {\n        console.debug(`Spot ${d}, ${r}, ${h}, ${m} clicked.`);\n        const selector = `div[data-schedule-ramp='${r}'] div[data-schedule-date-with-offset='${d}'][data-schedule-hour='${h}'] div[data-schedule-minute='${m}']`;\n        const $div = (0, _jquery.default)(selector);\n        this.send('handleClick', $div);\n      },\n\n      dedicatedSpotClicked(event) {\n        const $dedicatedWindowDiv = (0, _jquery.default)(document.elementFromPoint(event.clientX, event.clientY));\n\n        if (!$dedicatedWindowDiv.closest('.window-state-dedicated')) {\n          return;\n        }\n\n        $dedicatedWindowDiv.hide();\n        const $spotDiv = this.findMinutesDiv(event.clientX, event.clientY);\n        $dedicatedWindowDiv.show();\n        this.send('handleClick', $spotDiv);\n      },\n\n      /**\n       * Obsługa kliknięcia w puste miejsce w harmonogramie (podczas tworzenia awizacji albo blokady).\n       *\n       * @param $div - div, w który kliknął użytkownik\n       */\n      handleClick($div) {\n        if (!$div.hasClass('minutes-' + this.get('timeWindowOffsetIntervalSetting'))) {\n          return;\n        }\n\n        const isTransportWindow = $div.find('.window-state-with-transport').length;\n        const isBlockadeWindow = $div.find('.window-state-disabled').length;\n        const isDedicatedWindow = $div.find('.window-state-dedicated').length || $div.find('.window-state-dedicated-template').length;\n        const transportToHandle = this.get('transportToHandle');\n        const dedicatedTimeWindowToHandle = this.get('dedicatedTimeWindowToHandle'); // kliknięcie w okno dedykowane tworzy awizację tylko, gdy jesteśmy w trakcie zapisywania awizacji;\n        // w przeciwnym razie, okno dedykowane powinno zostać usunięte (po potwierdzeniu przez użytkownika).\n\n        if (isDedicatedWindow && !transportToHandle) {\n          return;\n        } // FIXME:\n        // na urządzeniach dotykowych, gdy naciśniemy na okno blokady\n        // lub okno z transportem to zostaje wywołana akcja `spotClicked` na slocie czasowym\n        // pod tym naciśniętym oknem blokady lub transportu\n        // przez co aplikacja myśli, że chcemy utworzyć blokadę okna na istniejącym już oknie\n        // wynika to prawdopodobnie z tego, że div'y time-slot są zawsze nad oknami w DOM-ie.\n        // Trzeba byłoby to w przyszłości poprawić\n        // (zarówno poniższy kod jak i hierarchię renderowania tych elementów w DOM-ie).\n\n\n        if (isBlockadeWindow || isTransportWindow) {\n          return;\n        }\n\n        const warehouse = this.get('warehouse');\n        const timeWindowMustOccupyEntireRamp = warehouse.get('timeWindowMustOccupyEntireRamp');\n        let start = this.getStartDate($div);\n        let stop;\n\n        if (timeWindowMustOccupyEntireRamp) {\n          start = warehouse.getStartOnDay(start);\n          stop = warehouse.getEndOnDay(start);\n        } else {\n          const defaultWindowLength = warehouse.get('timeWindowDefaultLengthInMinutes');\n          const windowLength = this.get('editedWindow.id') ? this.get('editedWindow.durationInMinutes') : defaultWindowLength;\n          stop = moment(start).add(windowLength, 'minutes');\n        }\n\n        const rampId = this.getRampId($div);\n        const initialStart = this.getStartDate($div);\n\n        if (transportToHandle) {\n          this.send('handleClickWithTransport', start, stop, rampId, initialStart);\n        } else if (dedicatedTimeWindowToHandle) {\n          this.send('handleClickDedicatedWindow', start, stop, rampId, initialStart);\n        } else {\n          this.send('createWindow', start, stop, rampId, initialStart);\n        }\n      },\n\n      onResize(event, ui) {\n        const self = this;\n        const element = (0, _jquery.default)(ui.element);\n        const windowId = element.data('schedule-window');\n        const left = element.offset().left - (0, _jquery.default)(document).scrollLeft();\n        const top = element.offset().top + element.outerHeight() - (0, _jquery.default)(document).scrollTop();\n        const windowModel = this.store.peekRecord('timeWindow', windowId);\n        const div = this.findMinutesDiv(left + 10, top + 2);\n        let newStop;\n\n        if (div) {\n          newStop = this.getDate(div);\n        } else {\n          newStop = moment(windowModel.get('formattedStop') + this.get('warehouse').get('workEndHour'), this.dateUtils.getBaseDateFormat() + ' ' + this.dateUtils.getBaseHourFormat());\n        }\n\n        const oldStop = windowModel.get('stop');\n        windowModel.set('stop', newStop);\n        console.log(`Próba rozciągnięcia okna ${windowId}: ${oldStop} -> ${newStop}..`);\n        let canResize = false;\n\n        if (windowModel.get('isDedicated') && this.get('sessionAccount').hasRole('ROLE_RESIZE_DEDICATED_WINDOWS')) {\n          canResize = true;\n        } else if (windowModel.get('isBlocked') && this.get('sessionAccount').hasRole('ROLE_RESIZE_BLOCKED_WINDOWS')) {\n          canResize = true;\n        } else if (windowModel.get('transport.content')) {\n          canResize = windowModel.get('transport.content').actionCanBePerformed('RESIZE_ADVICE_WINDOW');\n        }\n\n        if (!canResize) {\n          windowModel.set('stop', oldStop);\n          self.replaceTimeWindow(windowModel);\n          return;\n        }\n\n        if (self.get('isTemplate')) {\n          if (this.modelOverlapsAnyWindow(windowModel)) {\n            console.log('windows overlap');\n            windowModel.set('stop', oldStop);\n          }\n\n          self.replaceTimeWindow(windowModel);\n          self.send('removePopupDialog');\n          self.set('inProgress', false);\n          return;\n        }\n\n        windowModel.lockForEditing();\n        const transport = windowModel.get('transport');\n\n        if (transport && transport.get('id')) {\n          windowModel.set('updateAllFuturePeriodicWindows', this.updateAllFuturePeriodicTransports(transport));\n        }\n\n        windowModel.save().then(function (w) {\n          self.send('removePopupDialog');\n          self.reloadTimeWindow(windowId);\n\n          if (w.get('transport.id')) {\n            w.get('transport').then(t => {\n              t.reload().then(() => {\n                self.unloadDeletedRecords('transport', t.id, 'checkpoint');\n                windowModel.unlockForEditing();\n                console.debug(`Zakończyliśmy aktualizację okna ${windowId} z transportem ${t.get('logString')}.`);\n              });\n            });\n          } else {\n            windowModel.unlockForEditing();\n            console.debug(`Zakończyliśmy aktualizację okna ${windowId}.`);\n          }\n        }, function (error) {\n          windowModel.rollbackAttributes();\n          windowModel.save();\n          self.reloadTimeWindow(windowId);\n          self.setProperties({\n            inProgress: false,\n            errors: error.errors\n          });\n          windowModel.unlockForEditing();\n        });\n      },\n\n      onStart(event) {\n        // to jest potrzebne do unikania klikania na okno w momencie gdy jest przeciagane\n        (0, _jquery.default)(event.target).addClass('noclick');\n      },\n\n      setCompany(item) {\n        const self = this;\n        this.store.findRecord('company', item.id).then(companyPayload => {\n          self.set('company', companyPayload);\n        });\n      },\n\n      clearDedicatedSelects() {\n        this.setProperties({\n          company: null,\n          selectedUserGroup: null\n        });\n      },\n\n      notifyWindowFocusIn(window, position) {\n        this.set('position', position);\n        this.set('focusedWindowId', window.id);\n      },\n\n      notifyWindowFocusOut(window) {\n        if (this.get('focusedWindowId') === window.id) {\n          this.set('focusedWindowId', null);\n        }\n      }\n\n    },\n\n    modelOverlapsAnyWindow(windowModel) {\n      const windowData = {\n        id: windowModel.get('id'),\n        start: windowModel.get('start'),\n        stop: windowModel.get('stop'),\n        ramp: {\n          id: windowModel.get('ramp').get('id')\n        }\n      };\n      return this.overlapsAnyWindow(windowData);\n    },\n\n    overlapsAnyWindow(window) {\n      const rampId = window.ramp.id;\n      const newStart = window.start;\n      const newStop = window.stop;\n      const overlappingWindows = this.get('windows').filter(w => {\n        return parseInt(w.get('id')) !== parseInt(window.id) && parseInt(w.get('ramp').get('id')) === parseInt(rampId) && !(w.get('stop') <= newStart || w.get('start') >= newStop);\n      });\n      return overlappingWindows.length > 0;\n    },\n\n    windowsSwappingBlocked(sourceWindow, targetWindow) {\n      if (targetWindow && targetWindow.get('model') && !targetWindow.get('model').get('isDedicated')) {\n        if (parseInt(sourceWindow.get('model.transport.carrierCompany.id')) === parseInt(targetWindow.get('model.transport.carrierCompany.id'))) {\n          this.swapWindowPosition(sourceWindow, targetWindow);\n          return false;\n        }\n\n        return true;\n      }\n\n      return false;\n    },\n\n    restorePreviousWindowPlace: function (window) {\n      const windowModel = window.get('model');\n      windowModel.rollbackAttributes();\n      windowModel.unlockForEditing();\n      windowModel.setProperties({\n        ramp: window.get('oldRamp')\n      });\n    },\n    replaceTimeWindow: function (result) {\n      const existingWindows = this.get('windows').filter(w => {\n        return w.id === result.id;\n      });\n\n      if (existingWindows) {\n        this.get('windows').removeObjects(existingWindows);\n      }\n\n      this.get('windows').pushObject(result);\n    },\n\n    reloadTimeWindow(windowId) {\n      console.debug(`Reloading window ${windowId}..`);\n      const self = this;\n      this.store.findRecord('timeWindow', windowId, {\n        reload: true\n      }).then(function (data) {\n        const changeIdx = self.get('windows').indexOf(data);\n        self.get('windows').replace(changeIdx, 1, [data]);\n        self.set('inProgress', false);\n        console.log(`after reload / id: ${data.get('id')} / changeIdx: ${changeIdx} / start: ${data.get('start')} / stop: ${data.get('stop')} / ramp: ${data.get('ramp').get('name')}`);\n      });\n    },\n\n    pushTimeWindow(windowId) {\n      console.debug(`Pushing window ${windowId}..`);\n      const self = this;\n      this.store.findRecord('timeWindow', windowId, {\n        reload: true\n      }).then(function (data) {\n        const changeIdx = self.get('windows').indexOf(data);\n\n        if (changeIdx >= 0) {\n          self.get('windows').replace(changeIdx, 1, [data]);\n          self.set('inProgress', false);\n          console.log(`After reload / id: ${data.get('id')} / changeIdx: ${changeIdx} / start: ${data.get('start')} / stop: ${data.get('stop')} / ramp: ${data.get('ramp').get('name')}`);\n        } else {\n          console.log(`Adding window ${data.get('id')}: start: ${data.get('start')} / stop: ${data.get('stop')} / ramp: ${data.get('ramp').get('name')}..`);\n\n          if (!data.get('step.id')) {\n            self.get('windows').pushObject(data);\n            return;\n          }\n\n          data.get('step').then(s => {\n            console.debug(`Step ${s.get('id')} loaded.`);\n            s.get('transport').then(t => {\n              t.reload().then(reloadedTransport => {\n                console.debug(`Transport ${reloadedTransport.get('id')} reloaded.`);\n                self.get('windows').pushObject(data);\n              });\n            });\n          });\n        }\n      });\n    },\n\n    findMinutesDiv(left, top) {\n      try {\n        if (left < 50) {\n          left += 50; // zabezpieczenie przed dojechaniem do lewej krawedzi ekranu\n        }\n\n        let topElement = (0, _jquery.default)(document.elementFromPoint(left, top));\n        const visibility = topElement.css('visibility');\n\n        if (topElement.hasClass('ember-application') || topElement.hasClass('schedule-container') || topElement.hasClass('footer')) {\n          return null; // okno wyjechalo poza harmonogram, nie chce wywalac bledu, zeby wykonaly sie wszystkie\n          // topElement.css('visibility', visibility);\n        }\n\n        if (!topElement.hasClass('minutes-slot')) {\n          topElement.css('visibility', 'hidden'); // zabezpiecznie przed memory leak\n\n          if (top < 0) {\n            return null;\n          }\n\n          const bottomElement = this.findMinutesDiv(left, top);\n          topElement.css('visibility', visibility);\n          topElement = bottomElement;\n        }\n\n        return topElement;\n      } catch (e) {\n        console.error(e);\n        return null;\n      }\n    },\n\n    getDate: function (div) {\n      const $minuteDiv = (0, _jquery.default)(div);\n      const $hourDiv = $minuteDiv.parent();\n      const $dayWithOffsetDiv = $hourDiv;\n      const dateString = $dayWithOffsetDiv.data('schedule-date-with-offset');\n      const h = $hourDiv.data('schedule-hour');\n      const m = $minuteDiv.data('schedule-minute');\n      const date = moment(`${dateString} ${h} ${m}`, 'YYYY-MM-DD HH:mm');\n      return date.toDate();\n    },\n    getRampId: function (div) {\n      return (0, _jquery.default)(div).closest('.ramp').data('schedule-ramp');\n    },\n\n    swapWindowPosition(sourceWindow, targetWindow) {\n      const self = this;\n      this.set('windowSwapping', true);\n\n      if (targetWindow.get('model.stop') - targetWindow.get('model.start') !== sourceWindow.get('currentLengthInMS')) {\n        const message = this.get('intl').t('ramp.errors.wrongSwappedWindowSize');\n        this.send('showPopupDialog', 'dialogs.message-popup-dialog', sourceWindow.set('detail', message));\n        this.restorePreviousWindowPlace(sourceWindow);\n        this.set('windowSwapping', false);\n        return;\n      }\n\n      const message = this.get('intl').t('ramp.wantToSwapWindow');\n\n      if (confirm(message)) {\n        sourceWindow.get('model').setProperties({\n          'isSwapped': true,\n          isLockedForEditing: true\n        });\n        targetWindow.get('model').setProperties({\n          ramp: sourceWindow.get('oldRamp'),\n          start: sourceWindow.get('oldStart'),\n          stop: sourceWindow.get('oldStop'),\n          isSwapped: true,\n          swappedWindowId: sourceWindow.get('model.id'),\n          isLockedForEditing: true\n        });\n        targetWindow.get('model').save().then(() => {\n          self.set('windowSwapping', false);\n          sourceWindow.get('model').setProperties({\n            isSwapped: false,\n            swappedWindowId: null,\n            isLockedForEditing: false\n          }); // wymuszenie odswieżenia danych o drugim oknie\n\n          sourceWindow = this.get('store').findRecord('time-window', targetWindow.get('model.swappedWindowId'));\n          targetWindow.get('model').setProperties({\n            swappedWindowId: null,\n            isSwapped: false,\n            isLockedForEditing: false\n          });\n          console.log('Zamiana okien wykonana poprawnie.');\n        }, function (response) {\n          sourceWindow.get('model').setProperties({\n            isSwapped: false,\n            swappedWindowId: null,\n            isLockedForEditing: false\n          });\n          targetWindow.get('model').setProperties({\n            swappedWindowId: null,\n            isSwapped: false,\n            isLockedForEditing: false\n          });\n          self.restorePreviousWindowPlace(sourceWindow);\n          self.restorePreviousWindowPlace(targetWindow);\n          self.setProperties({\n            inProgress: false,\n            windowSwapping: false,\n            errors: response.errors\n          });\n        });\n      } else {\n        this.restorePreviousWindowPlace(sourceWindow);\n      }\n    },\n\n    /** @namespace response.estimatedWindowLengthInMinutes */\n    getWindowSize(step, transport) {\n      const token = this.get('sessionAccount').get('token');\n      return new Ember.RSVP.Promise(function (resolve) {\n        const data = {\n          transportCommand: transport.get('content') ? transport.get('content').serialize() : transport.serialize()\n        };\n        data.transportCommand.id = transport.get('id');\n        data.warehouseZone = {\n          id: step.get('warehouseZone.id') // TODO :: apollo-api-service\n\n        };\n\n        _jquery.default.ajax({\n          url: _environment.default.serverURL + '/transports/estimatedWindowLengthInMinutes',\n          type: 'POST',\n          crossDomain: true,\n          data: JSON.stringify(data),\n          contentType: 'application/json; charset=utf-8',\n          dataType: 'json',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(function (response) {\n          resolve(response);\n        });\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/section-mixin\", [\"exports\", \"apollo/config/environment\", \"jquery\"], function (_exports, _environment, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    errors: [],\n    actions: {\n      save(section, route = null, defer) {\n        this.send('update', section, route, defer);\n      },\n\n      update(section, route = null, defer) {\n        console.log(`Updating section ${section.get('id')}..`);\n        const self = this;\n        section = section.get('content') ? section.get('content') : section;\n\n        if (!section.validate()) {\n          self.set('successMessage', '');\n          defer.resolve();\n          return;\n        }\n\n        section.save().then(response => {\n          self.send('refreshSection', section);\n          self.set('errors', '');\n          self.set('successMessage', this.get('intl').t('section.successMessage'));\n\n          if (route !== null) {\n            // todo ups truck.id zostało dodane z rozpędu, oczywiście nie może tak być w tak ogólnej metodzie\n            self.transitionTo(route, response.get('truck.id'));\n          }\n        }).catch(response => {\n          self.set('successMessage', '');\n          self.set('errors', response.errors);\n          self.send('refreshSection', section);\n          defer.resolve();\n        });\n      },\n\n      confirm: function (section) {\n        if (section.hasChangesApartFromActions ? section.hasChangesApartFromActions() : section.content.hasChangesApartFromActions()) {\n          const self = this;\n          section = section.get('content') ? section.get('content') : section;\n          section.save().then(() => self.send('executeAction', 'sections', section, 'confirm'));\n        } else {\n          this.send('executeAction', 'sections', section, 'confirm');\n        }\n      },\n      reject: function (section, comment) {\n        if (section.hasChangesApartFromActions ? section.hasChangesApartFromActions() : section.content.hasChangesApartFromActions()) {\n          const self = this;\n          section = section.get('content') ? section.get('content') : section;\n          section.save().then(() => self.send('executeAction', 'sections', section, 'reject', comment));\n        } else {\n          this.send('executeAction', 'sections', section, 'reject', comment);\n        }\n      },\n\n      disable(section) {\n        this.send('executeAction', 'documents', section, 'disable');\n      },\n\n      executeAction(realm, section, actionName, comment) {\n        const self = this;\n        const token = this.get('sessionAccount').get('token');\n        self.set('operationInProgress', true); // TODO :: apollo-api-service\n\n        _jquery.default.ajax({\n          url: `${_environment.default.serverURL}/${realm}/${section.get('id')}/${actionName}`,\n          type: 'POST',\n          data: {\n            comment\n          },\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(function () {\n          console.log(`Section ${section.get('id')} has been ${actionName}ed.`);\n          self.set('operationInProgress', false);\n          self.send('refreshSection', section);\n          self.set('errors', []);\n        }).catch(response => {\n          self.set('errors', JSON.parse(response.responseText).errors);\n        });\n      },\n\n      refreshSection(section) {\n        const modelName = section.get('constructor.modelName') ? section.get('constructor.modelName') : section.get('_internalModel.modelName');\n        this.get('store').findRecord(modelName, section.get('id'), {\n          reload: true\n        }).then(s => {\n          if (s.get('partnership.id')) {\n            s.get('partnership').then(p => p.reload());\n          } else {\n            s.get('truck').then(t => t.reload());\n          }\n\n          if (s.get('activeAction')) {\n            s.get('activeAction').reload();\n          }\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/serializer-mixin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    serializeIntoHash: function (data, type, record, options) {\n      const object = this.serialize(record, options);\n\n      for (let key in object) {\n        data[key] = object[key];\n      }\n    },\n    serializeHasMany: function (record, json, relationship) {\n      const key = relationship.key;\n      const hasManyRecords = record.hasMany(key);\n\n      if (hasManyRecords && this.attrs[key] && this.attrs[key].embedded === \"save\") {\n        json[key] = [];\n        hasManyRecords.forEach(function (item) {\n          let recordData = item.serialize({\n            includeId: true\n          });\n\n          if (relationship.options.deepEmbedded) {\n            relationship.options.deepEmbedded.forEach(function (deepKey) {\n              if (item.belongsTo(deepKey)) {\n                const deepRecord = item.belongsTo(deepKey);\n\n                if (deepKey === \"company\" && !deepRecord.attr('name')) {\n                  return true;\n                }\n\n                recordData[deepKey] = deepRecord.serialize({\n                  includeId: true\n                });\n              }\n            });\n          }\n\n          json[key].push(recordData);\n        });\n      } else {\n        this._super(record, json, relationship);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/step-mixin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    findPackageTypeTransportTypes: function (transportTypeId) {\n      return this.get('store').peekAll('packageTypeTransportType').filter(i => i.get('transportType.id') === transportTypeId);\n    },\n    handleStepPackageTypesForTransport: function (transport) {\n      this.handleStepPackageTypes(transport.get('steps'), transport.get('transportType.id'));\n    },\n    handleStepPackageTypesForStep: function (step) {\n      this.handleStepPackageTypes([step], step.get('transport.transportType.id'));\n    },\n    handleStepPackageTypes: function (steps, transportTypeId) {\n      const packageTypeTransportTypes = this.findPackageTypeTransportTypes(transportTypeId);\n      const contractorSteps = steps.filter(s => !s.get('ownedByPrincipal'));\n      const warehouseSteps = steps.filter(s => s.get('ownedByPrincipal'));\n      packageTypeTransportTypes.forEach(pttt => {\n        if (pttt.get('visibleInContractorStep')) {\n          contractorSteps.forEach(s => this.createStepPackageType(s, pttt));\n        }\n\n        if (pttt.get('visibleInWarehouseStep')) {\n          warehouseSteps.forEach(s => this.createStepPackageType(s, pttt));\n        }\n      });\n    },\n    createStepPackageType: function (step, packageTypeTransportType) {\n      const spt = this.get('store').createRecord('stepPackageType', {\n        step: step,\n        packageType: packageTypeTransportType.get('packageType'),\n        multiplier: packageTypeTransportType.get('multiplier')\n      });\n      step.get('stepPackageTypes').pushObject(spt);\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/touch-mixin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  // eslint-disable-next-line ember/no-new-mixins\n  var _default = Ember.Mixin.create({\n    touchstartX: 0,\n    touchendX: 0,\n    numOfClicks: 0,\n    isTouchDevice: Ember.computed('', function () {\n      // https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent\n      let hasTouchScreen = false;\n\n      if ('maxTouchPoints' in navigator) {\n        hasTouchScreen = navigator.maxTouchPoints > 0;\n      } else if ('msMaxTouchPoints' in navigator) {\n        hasTouchScreen = navigator.msMaxTouchPoints > 0;\n      } else {\n        const mQ = window.matchMedia && matchMedia('(pointer:coarse)');\n\n        if (mQ && mQ.media === '(pointer:coarse)') {\n          hasTouchScreen = !!mQ.matches;\n        } else if ('orientation' in window) {\n          hasTouchScreen = true; // deprecated, but good fallback\n        } else {\n          // Only as a last resort, fall back to user agent sniffing\n          const UA = navigator.userAgent;\n          hasTouchScreen = /\\b(BlackBerry|webOS|iPhone|IEMobile)\\b/i.test(UA) || /\\b(Android|Windows Phone|iPad|iPod)\\b/i.test(UA);\n        }\n      }\n\n      return hasTouchScreen;\n    }),\n    touchstart: function (event, callback) {\n      this.touchstartX = event.changedTouches[0].screenX;\n\n      if (callback) {\n        callback();\n      }\n    },\n    touchend: function (event, callback) {\n      this.touchendX = event.changedTouches[0].screenX;\n\n      if (callback) {\n        callback();\n      }\n    },\n    handleSwipeX: function (swipeLeftCallback, swipeRightCallback) {\n      if (this.touchendX < this.touchstartX) {\n        swipeLeftCallback();\n      }\n\n      if (this.touchendX > this.touchstartX) {\n        swipeRightCallback();\n      }\n    },\n    handleTap: function (event, singleClickCallback, doubleClickCallback) {\n      const TOUCH_TIME_DELAY = 1000;\n      this.numOfClicks++;\n      const clickedOnce = this.numOfClicks === 1;\n      const clickedTwice = this.numOfClicks === 2;\n\n      if (clickedOnce) {\n        this.clickTimer = setTimeout(() => {\n          this.numOfClicks = 0;\n          singleClickCallback();\n        }, TOUCH_TIME_DELAY);\n      } else if (clickedTwice) {\n        clearTimeout(this.clickTimer);\n        this.numOfClicks = 0;\n        doubleClickCallback();\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/transport-form-mixin\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  // eslint-disable-next-line ember/no-new-mixins\n  var _default = Ember.Mixin.create({\n    store: Ember.inject.service(),\n    openPanel: panelClass => {\n      const transportPanel = (0, _jquery.default)(`.${panelClass}`);\n\n      if (transportPanel.hasClass('collapsed') && !transportPanel.hasClass('in')) {\n        transportPanel.collapse('show');\n      }\n    },\n\n    initializeDiscrepancyReport(transport) {\n      const discrepancyReportId = transport.get('discrepancyReport.id');\n\n      if (discrepancyReportId) {\n        this.get('store').findRecord('discrepancyReport', discrepancyReportId);\n      }\n    },\n\n    // TODO: Refaktor \"odświeżania\" cf-ów przez initializeCustomFields\n    initializeCustomFields(transport) {\n      const self = this;\n      console.debug(`Inicjalizujemy custom fields dla transportu ${transport.get('logString')}...`);\n      return self.get('store').query('customFieldValue', {\n        transportId: transport.get('id')\n      }).then(customFields => {\n        self.removeCustomFields(transport, customFields);\n      }).then(() => {\n        self.createMissingCustomFieldValues(transport);\n      }).then(() => {\n        transport.get('customFields').forEach(cf => cf.set('changeMessage', null));\n      });\n    },\n\n    /*\n     * Usuwa z transportu custom field-y, które nie przyszły z backendu, ponieważ zostały usunięte podczas edycji transportu (nie podano ich wartości)\n     */\n    removeCustomFields: function (transport, customFields) {\n      // Tworzymy kopię customFields, ponieważ nie możemy usuwać elementów z listy,\n      // po której iterujemy (czyli bezpośrednio z transport.get('customFields'))\n      const customFieldsCopy = transport.get('customFields').slice(0); // eslint-disable-next-line array-callback-return\n\n      customFieldsCopy.map(cf => {\n        if (!customFields.includes(cf)) {\n          // console.debug(`Usuwamy z transportu ${transport.get('logString')} custom field ${cf.get('logString')}...`);\n          transport.get('customFields').removeObject(cf);\n        }\n      });\n    },\n\n    /*\n     * tworzy obiekty customFieldValue dla transportu, jeżeli jeszcze nie istnieją\n     * (sytuacja występuje dla transportów utworzonych przed dodaniem nowego customFieldDefinition lub gdy nie uzupełniono wartości customField-u)\n     */\n    createMissingCustomFieldValues: function (transport) {\n      const self = this;\n      const currentPairs = transport ? transport.get('customFieldPairs') : this.get('transport.customFieldPairs');\n      currentPairs.forEach(pair => {\n        const definition = pair.definition;\n\n        if (definition.get('visibleInDelivery')) {\n          return;\n        }\n\n        if (!pair.value) {\n          console.debug(`Dodajemy do transportu ${transport.get('logString')} puste/nowe custom field ${definition.get('name')}...`);\n          self.get('store').createRecord('customFieldValue', {\n            transport,\n            definition\n          });\n        }\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/transports-mixin\", [\"exports\", \"apollo/config/environment\", \"jquery\"], function (_exports, _environment, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  // eslint-disable-next-line ember/no-new-mixins\n  var _default = Ember.Mixin.create({\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    ajaxService: Ember.inject.service('ajax-service'),\n    dateUtils: Ember.inject.service('date-utils'),\n    timeWindowService: Ember.inject.service('time-window-service'),\n    checkpointService: Ember.inject.service(),\n    weightService: Ember.inject.service('weight-service'),\n    scheduleController: Ember.inject.controller('warehouses/schedule'),\n    EXCEPTIONS_THAT_ALLOWS_SPOTS_SEARCHING: Ember.A(['WINDOWS_OVERLAP_EXCEPTION']),\n    freeSubsequentSpots: Ember.A(),\n    interval: Ember.computed('', function () {\n      return 10000; // Time between polls (in ms)\n    }).readOnly(),\n    openCreateAdviceModal: function (transport) {\n      return this.send('openCreateAdviceModal', transport);\n    },\n    actions: {\n      searchForFreeSubsequentSpots(transport) {\n        const self = this;\n        const warehouseId = transport.get('exceptionInformation.whId') || transport.get('warehouse.id');\n        self.set('freeSubsequentSpots', Ember.A());\n        const data = {\n          windowStart: transport.get('exceptionInformation.initialStart'),\n          windowSizeInMinutes: transport.get('exceptionInformation.windowSizeInMinutes'),\n          warehouseId,\n          chosenRampName: transport.get('exceptionInformation.rampName')\n        };\n        self.get('sessionAccount.currentUser.accessibleRamps').filterBy('warehouse.id', warehouseId).forEach(ramp => {\n          self.get('ajaxService').send(`/ramps/${ramp.get('id')}/findFreeSubsequentSpot`, 'POST', data, true).then(response => {\n            if (response.timeWindowCandidate) {\n              self.get('freeSubsequentSpots').pushObject(response.timeWindowCandidate);\n            }\n          }).catch(response => {\n            (0, _jquery.default)('.transport-modal').scrollTop(0);\n            self.set('errors', response.responseJSON.errors);\n            (0, _jquery.default)('.show-search-spots-btn').button('reset');\n          });\n        });\n        (0, _jquery.default)('.show-search-spots-btn').button('reset');\n      },\n\n      setFilterMode(mode) {\n        this.set('filterMode', mode);\n      },\n\n      confirm: function (checkpoint) {\n        // TODO: Refaktor - do wywalenia z mixina\n        if (checkpoint.get('content') ? !checkpoint.get('content').validate() : !checkpoint.validate()) {\n          console.log('Status nie przeszedł walidacji..');\n          return;\n        }\n\n        if (checkpoint.get('task.weighingIncluded') && checkpoint.get('step.warehouse.weighingIncluded') && checkpoint.get('transport.hasAutoWeight')) {\n          this.send('weigh', checkpoint, true);\n        } else {\n          this.send('sendCheckpoint', checkpoint);\n        }\n      },\n      sendCheckpoint: function (checkpoint) {\n        // TODO: Refaktor - do wywalenia z mixina\n        this.get('checkpointService').confirmAndRefresh(checkpoint).catch(console.error);\n      },\n\n      revoke(checkpoint) {\n        // TODO: Refaktor - do wywalenia z mixina\n        const checkpointId = checkpoint.get('id');\n        const token = this.get('sessionAccount').get('token');\n        const self = this; // TODO :: apollo-api-service\n\n        _jquery.default.ajax({\n          url: _environment.default.serverURL + '/checkpoints/' + checkpointId + '/revoke',\n          type: 'PUT',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(async function () {\n          self.store.findRecord('checkpoint', checkpointId).then(function (data) {\n            data.reload();\n            data.get('transport').reload();\n          });\n          const transport = checkpoint.get('transport');\n\n          if (transport.get('isCombinedTransport')) {\n            const combinedTransports = await transport.get('allCombinedTransports');\n            const combinedTransportsTransportTypes = combinedTransports.map(t => t.get('transportType'));\n            combinedTransportsTransportTypes.forEach(tt => {\n              if (tt) {\n                tt.set('forcedPollRequestTime', new Date().getTime());\n              }\n            });\n          }\n        });\n      },\n\n      reject(checkpoint) {\n        // TODO: Refaktor - do wywalenia z mixina\n        this.checkpointService.reject(checkpoint);\n      },\n\n      weigh: async function (checkpoint, confirmCheckpoint = false) {\n        // TODO: Refaktor - do wywalenia z mixina\n        const self = this;\n        const weightService = this.get('weightService');\n        const parsedReadOut = await weightService.fetchAndParseWeight();\n        const savedNewWeight = await weightService.saveNewWeight(checkpoint, parsedReadOut);\n\n        if (confirmCheckpoint) {\n          // Status potwierdzimy nawet jeśli nie uda się zapisać wagi, tak działało to przed refaktorem\n          this.send('sendCheckpoint', checkpoint);\n        }\n\n        if (!savedNewWeight || !parsedReadOut) {\n          if (!confirmCheckpoint) {\n            alert(self.get('intl').t('transport.weightSection.errors.cannotGetWeight'));\n          } else {\n            if (confirm(self.get('intl').t('transport.weightSection.errors.trySaveCheckpointWithoutWeight'))) {\n              await weightService.saveNewWeight(checkpoint, 0);\n              this.send('sendCheckpoint', checkpoint);\n            }\n          }\n        }\n      },\n\n      generateWeightReceipt(transportId) {\n        // eslint-disable-next-line ember/no-incorrect-calls-with-inline-anonymous-functions\n        Ember.run.once(this, function () {\n          window.open(_environment.default.serverURL + '/transports/' + transportId + '/weightReceipt?token=' + this.get('sessionAccount').get('token'), '_blank');\n        });\n      },\n\n      addNote: function (noteContent, transportId) {\n        console.log('addNote: ' + noteContent + ', transportId: ' + transportId);\n        const self = this;\n        const transport = this.store.peekRecord('transport', transportId);\n        const note = self.store.createRecord('note', {\n          transport,\n          note: noteContent\n        });\n        note.save().then(n => {\n          transport.get('notes').pushObject(n);\n        });\n      },\n\n      /**\n       * Metoda przenosi użytkownika do magazynu.\n       *\n       * Dzień, do którego trzeba przenieść użytkownika, to\n       * <ul>\n       *  <li>dzień okna czasowego - jeśli zostało już dodane,\n       *  <li>dzień początku zakresu czasu na awizację - jeśli nie znajduje się on w przeszłości,\n       *  <li>aktualny dzień - w pozostałych przypadkach.\n       * </ul>\n       *\n       * @param step\n       */\n      goToWarehouse(step) {\n        const self = this;\n        const adviceButton = (0, _jquery.default)('.advice-button-' + step.get('transport.id'));\n        adviceButton.button('loading');\n\n        if (!step.get('isInWarehouse')) {\n          this.openCreateAdviceModal(step.get('transport'));\n          adviceButton.button('reset');\n          return;\n        }\n\n        const warehouseId = step.get('warehouse.id');\n        const editedWindow = step.get('timeWindow');\n\n        if (editedWindow.get('id')) {\n          editedWindow.setProperties({\n            oldStart: editedWindow.get('start'),\n            oldStop: editedWindow.get('stop'),\n            oldRamp: editedWindow.get('ramp')\n          });\n        }\n\n        if (editedWindow.get('start')) {\n          this.get('scheduleController').setProperties({\n            warehouseStepToHandle: step\n          });\n          const dateString = moment(editedWindow.get('start')).format('YYYY-MM-DD');\n          this.transitionToRoute('warehouses.schedule', warehouseId, dateString, '1');\n          adviceButton.button('reset');\n          return;\n        }\n\n        const transport = this.get('store').peekRecord('transport', step.get('transport.id'));\n        this.getFirstPossibleWindowStart(step, transport).then(response => {\n          const firstPossibleStart = response.firstPossibleStart;\n\n          if (!firstPossibleStart) {\n            alert(response.error);\n            adviceButton.button('reset');\n            return;\n          }\n\n          self.get('scheduleController').setProperties({\n            warehouseStepToHandle: step,\n            info: null\n          });\n          const dateString = moment(firstPossibleStart).format('YYYY-MM-DD');\n          self.transitionToRoute('warehouses.schedule', warehouseId, dateString, '1');\n          adviceButton.button('reset');\n        });\n      },\n\n      openCreateAdviceModal(transport) {\n        transport.set('hasCustomFieldsInitialized', false);\n        const scheduleController = this.get('scheduleController');\n        scheduleController.setProperties({\n          warehouseStepToHandle: transport.get('firstWarehouseStepWithoutWindow')\n        });\n        scheduleController.send('openCreateAdviceModal', [], transport);\n      },\n\n      scrollPage(transportTypeId) {\n        (0, _jquery.default)(window).scrollTop((0, _jquery.default)('#' + transportTypeId).offset().top - 125);\n      },\n\n      fileUploadSuccess: function (transportId) {\n        console.log('fileUploadSuccess: ' + transportId);\n        this.store.findRecord('transport', transportId).then(function (data) {\n          data.reload();\n        });\n      },\n\n      deleteFile(file) {\n        console.log('deleteFile: ' + file.id);\n        const transport = file.get('transport');\n        file.destroyRecord().then(() => {\n          transport.then(t => t.reload());\n        });\n      },\n\n      fileUploadFail: function (transportId) {\n        console.log('fileUploadFail: ' + transportId);\n      }\n    },\n\n    /** @namespace response.firstPossibleStart */\n    getFirstPossibleWindowStart(step, transport, selectedDate) {\n      const self = this;\n      return new Promise(function (resolve) {\n        self.timeWindowService.getFirstPossibleWindowStart(step, transport, selectedDate).then(function (response) {\n          resolve(response);\n        });\n      });\n    },\n\n    getStatuses(transport) {\n      if (!transport) {\n        console.error('Próba pobrania statusów nie powiodła się - brak transportu!');\n        return;\n      }\n\n      const self = this;\n      const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n      _jquery.default.ajax({\n        url: _environment.default.serverURL + '/transports/' + transport.get('id') + '/checkpoints',\n        type: 'GET',\n        beforeSend: function (xhr) {\n          xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n        }\n      }).then(function (json) {\n        self.get('store').pushPayload(json);\n        json.checkpoints.forEach(function (checkpoint) {\n          const c = self.get('store').peekRecord('checkpoint', checkpoint.id);\n\n          if (self.get('transport.checkpoints') && !self.get('transport.checkpoints').includes(c)) {\n            console.debug(`Pushing checkpoint ${c.get('id')} into transport ${self.get('transport.id')}..`);\n            self.get('transport.checkpoints').pushObject(c);\n          }\n        });\n      });\n    },\n\n    printErrors(transport) {\n      try {\n        console.log(`Transport ${transport.get('logString')} zawiera błędy...`);\n        transport.get('errors').forEach(error => console.log(error));\n        transport.get('steps').filter(s => s.get('numberOfErrors') > 0).forEach(s => {\n          s.get('errors').forEach(se => console.log(se));\n        });\n        transport.get('customFields').filter(cf => cf.get('numberOfErrors') > 0).forEach(cf => {\n          cf.get('errors').forEach(cfe => console.log(`${cf.get('definition.name')} - ${cfe.message}`));\n        });\n        transport.get('indexes').filter(cf => cf.get('hasErrors')).forEach(index => {\n          index.get('errors').forEach(error => console.log(error));\n        });\n      } catch (e) {\n        console.error(e);\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/mixins/user-utils-mixin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Mixin.create({\n    sessionAccount: Ember.inject.service('session-account'),\n    showDivisionLabel: Ember.computed('user.roleGroup.name', function () {\n      return this.get('sessionAccount').isGroupFilterEnabled() || this.get('sessionAccount').isGroupFilterEnabledForUser(this.get('user'));\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/models/checkpoint-confirmation-modal-params\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n   * Represents a model passed for checkpoint-confirmation-modal component.\n   * @class CheckpointConfirmationModal\n   * @extends EmberObject\n   * @property {Model} checkpoint - The model checkpoint being confirmed.\n   * @property {Model} weight - The weight information associated with the checkpoint.\n   * @property {boolean} isOverWeight - Indicates whether the weight exceeds the limit.\n   */\n  const CheckpointConfirmationModal = Ember.Object.extend({\n    checkpoint: null,\n    weight: null,\n    isOverWeight: null\n  });\n  var _default = CheckpointConfirmationModal;\n  _exports.default = _default;\n});","define(\"apollo/models/checkpoint-confirmation-modal\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n   * @class CheckpointConfirmationModal\n   * @extends EmberObject\n   * @property {number} checkpoint - Checkpoint's id we want to confirm\n   * @property {number[]} warehouseLocations - Information about different locations within the warehouse.\n   * @property {Model} weight - The weight readout information associated with the checkpoint.\n   * @property {Model} customFieldValues - Custom field values associated with the checkpoint confirmation.\n   */\n  const CheckpointConfirmationModal = Ember.Object.extend({\n    checkpoint: null,\n    weight: null,\n    warehouseLocations: null,\n    customFieldValues: null\n  });\n  var _default = CheckpointConfirmationModal;\n  _exports.default = _default;\n});","define(\"apollo/models/coordinator\", [\"exports\", \"apollo/models/obj-hash\"], function (_exports, _objHash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Object.extend(Ember.Evented, {\n    objectMap: Ember.computed(function () {\n      return _objHash.default.create();\n    }),\n    getObject: function (id, ops) {\n      ops = ops || {};\n      var payload = this.get('objectMap').getObj(id);\n\n      if (payload.ops.source) {\n        payload.ops.source.sendAction('action', payload.obj);\n      }\n\n      if (payload.ops.target) {\n        payload.ops.target.sendAction('action', payload.obj);\n      }\n\n      this.trigger(\"objectMoved\", {\n        obj: payload.obj,\n        source: payload.ops.source,\n        target: ops.target\n      });\n      return payload.obj;\n    },\n    setObject: function (obj, ops) {\n      ops = ops || {};\n      return this.get('objectMap').add({\n        obj: obj,\n        ops: ops\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/models/custom-field-pair\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n   * Model używany do powiązania custom-field-definition z odpowiadającym custom-field-value.\n   * Wykorzystywany w widokach zawierających custom-fieldy\n   * @class CustomFieldPair\n   * @extends EmberObject\n   * @property {Model} definition - ember model custom-field-definition\n   * @property {Model} value - ember model custom-field-value\n   */\n  const CustomFieldPair = Ember.Object.extend({\n    definition: null,\n    value: null\n  });\n  var _default = CustomFieldPair;\n  _exports.default = _default;\n});","define(\"apollo/models/obj-hash\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Object.extend({\n    contentLength: 0,\n    length: Ember.computed.alias('contentLength'),\n    init: function () {\n      this._super();\n\n      this.content = {};\n    },\n    add: function (obj) {\n      var id = this.generateId();\n      this.get('content')[id] = obj;\n      this.incrementProperty(\"contentLength\");\n      return id;\n    },\n    getObj: function (key) {\n      var res = this.get('content')[key];\n\n      if (!res) {\n        throw \"no obj for key \" + key;\n      }\n\n      return res;\n    },\n    generateId: function () {\n      var num = Math.random() * 1000000000000.0;\n      num = parseInt(num);\n      num = \"\" + num;\n      return num;\n    },\n    keys: function () {\n      var res = [];\n\n      for (var key in this.get('content')) {\n        res.push(key);\n      }\n\n      return Ember.A(res);\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/models/packages-table-column-model\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n   * Represents a column configuration for a packages table\n   * @class PackagesTableColumn\n   * @extends EmberObject\n   * @description Defines the properties and characteristics of a packages table column {@see packages-table}\n   */\n  const PackagesTableColumn = Ember.Object.extend({\n    /**\n     * Unique identifier or property key for the column\n     * @type {string}\n     * @default ''\n     */\n    key: '',\n\n    /**\n     * Human-readable label displayed for the column\n     * @type {string}\n     * @default ''\n     */\n    label: '',\n\n    /**\n     * Indicates whether the column can be sorted\n     * @type {boolean}\n     * @default false\n     */\n    sortable: false,\n\n    /**\n     * Indicates whether the column values can be summed (e.g., for numeric columns)\n     * @type {boolean}\n     * @default false\n     */\n    summable: false,\n\n    /**\n     * Custom CSS class for the column\n     * @type {string}\n     * @default ''\n     */\n    tdClass: '',\n\n    /**\n     * Custom template for column's row rendering\n     * @type {Ember.Component|null}\n     * @default null\n     */\n    template: null,\n\n    /**\n     * Custom sum function for calculating column totals with complex logic\n     *\n     * @callback SumFunction\n     * @param {Object} row - The current row being processed\n     * @param {Array} columns - All columns in the table\n     * @returns {number} The calculated value to be added to the total\n     *\n     * @example\n     * // Example of a sum function that multiplies quantity by price\n     * sumFunction: (row, columns) => {\n     *   const quantity = parseFloat(row['quantity']) || 0\n     *   const price = parseFloat(row['price']) || 0\n     *   return quantity * price\n     * }\n     *\n     * @example\n     * // Example of a conditional sum with multiple column references\n     * sumFunction: (row, columns) => {\n     *   if (row['status'] === 'active') {\n     *     return parseFloat(row['revenue']) || 0\n     *   }\n     *   return 0\n     * }\n     */\n    sumFunction: null\n  });\n  var _default = PackagesTableColumn;\n  _exports.default = _default;\n});","define(\"apollo/models/relations-wizard-view-model\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const RelationsWizardViewModel = Ember.Object.extend({\n    id: null,\n    erpIdentifier: null,\n    relationIdentifier: null,\n    address: null,\n    weight: null,\n    isChecked: null,\n    transport: null,\n    transform: function (transport) {\n      this.id = transport.get('id');\n      this.erpIdentifier = transport.get('erpIdentifier');\n      this.relationIdentifier = transport.get('transportRelationIdentifier');\n      this.address = transport.get('unloadSteps').map(step => `${step.get('postal')} ${step.get('city')}`).join(', ');\n      this.weight = transport.get('totalWeight');\n      this.transport = transport;\n      return this;\n    }\n  });\n  var _default = RelationsWizardViewModel;\n  _exports.default = _default;\n});","define(\"apollo/models/schedule-action-select-model\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const ScheduleActionSelectModel = Ember.Object.extend({\n    start: null,\n    stop: null,\n    rampId: null,\n    selectedCompany: null,\n    transportTypes: null,\n    showDedicatedWindowButton: Ember.computed('selectedCompany', function () {\n      return !!this.selectedCompany;\n    }),\n    showBlockadeWindowButton: Ember.computed('selectedCompany', function () {\n      return !this.selectedCompany;\n    })\n  });\n  var _default = ScheduleActionSelectModel;\n  _exports.default = _default;\n});","define(\"apollo/pods/address-unloading-time/model\", [\"exports\", \"apollo/mixins/model-validator\", \"ember-data\", \"ember-data/model\"], function (_exports, _modelValidator, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n  const timeFormatValidator = {\n    format: {\n      with: /^(?:[01]\\d|2[0-3]):[0-5]\\d$/,\n      message: 'timeHour'\n    }\n  };\n  const numberValdator = {\n    presence: {\n      message: 'blank'\n    },\n    numericality: {\n      message: 'number'\n    }\n  };\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    monday: attr('string'),\n    tuesday: attr('string'),\n    wednesday: attr('string'),\n    thursday: attr('string'),\n    friday: attr('string'),\n    saturday: attr('string'),\n    sunday: attr('string'),\n    daysToUnload: attr('number'),\n    address: belongsTo('address'),\n    dayName: Object.freeze(['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']),\n    getCurrentDay: function (dayNameIndex) {\n      return this.get('dayName').indexOf(dayNameIndex);\n    },\n    validations: {\n      monday: timeFormatValidator,\n      tuesday: timeFormatValidator,\n      wednesday: timeFormatValidator,\n      thursday: timeFormatValidator,\n      friday: timeFormatValidator,\n      saturday: timeFormatValidator,\n      sunday: timeFormatValidator,\n      daysToUnload: numberValdator\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/address/model\", [\"exports\", \"ember-data-copyable\", \"apollo/mixins/model-validator\", \"ember-data\", \"ember-data/model\"], function (_exports, _emberDataCopyable, _modelValidator, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, _emberDataCopyable.default, {\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    changeTracker: {\n      only: ['country'],\n      auto: true,\n      enableIsDirty: true\n    },\n    sessionAccount: Ember.inject.service('session-account'),\n    country: belongsTo('country'),\n    company: belongsTo('company', {\n      inverse: null\n    }),\n    recipient: attr('string'),\n    city: attr('string'),\n    postal: attr('string'),\n    street: attr('string'),\n    principal: attr('number'),\n    province: attr('string'),\n    voivodeship: belongsTo('voivodeship'),\n    addressUnloadingTime: belongsTo('addressUnloadingTime', {\n      async: true\n    }),\n    isHeadquarters: attr('boolean'),\n    enabled: attr('boolean'),\n    idToDisable: attr('number'),\n    validations: {\n      recipient: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      street: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      postal: {\n        custom: [{\n          validation: function (key, value, model) {\n            const provinceValue = model.get('province');\n\n            if (model.get('country.isWithoutPostalCode')) {\n              return !!(value || provinceValue);\n            }\n\n            return value;\n          },\n          message: 'blank'\n        }]\n      },\n      city: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      country: {\n        custom: [{\n          validation: function (key, value) {\n            if (!value.content) {\n              return false;\n            }\n\n            return value.content;\n          },\n          message: 'blankSelect'\n        }]\n      },\n      province: {\n        custom: [{\n          validation: function (key, value, model) {\n            const postalValue = model.get('postal');\n\n            if (model.get('country.isWithoutPostalCode')) {\n              return !!(value || postalValue);\n            }\n\n            return true;\n          },\n          message: 'blank'\n        }]\n      }\n    },\n    toAddressString: Ember.computed('street', 'postal', 'city', function () {\n      return `${this.get('street')}, ${this.get('postal')} ${this.get('city')}`;\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/addresses/index/controller\", [\"exports\", \"apollo/config/environment\", \"jquery\"], function (_exports, _environment, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    isShowingAddressUnloadingTimeModal: false,\n    canEditAddresses: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_CAN_EDIT_ADDRESSES');\n    }),\n    columns: Ember.computed('canEditAddresses', function () {\n      const columns = [{\n        propertyName: 'recipient',\n        title: this.get('intl').t('address.recipient'),\n        className: 'column-recipient'\n      }, {\n        propertyName: 'street',\n        title: this.get('intl').t('address.street'),\n        className: 'column-street'\n      }, {\n        propertyName: 'city',\n        title: this.get('intl').t('address.city'),\n        className: 'column-city'\n      }, {\n        propertyName: 'postal',\n        title: this.get('intl').t('address.postal'),\n        className: 'column-postal'\n      }];\n\n      if (this.get('canEditAddresses')) {\n        columns.push({\n          title: this.get('intl').t('address.addressUnloadingTime.label'),\n          className: 'column-show-unloading-time',\n          disableFiltering: true\n        }, {\n          title: this.get('intl').t('common.edit'),\n          className: 'column-edit',\n          disableFiltering: true\n        }, {\n          title: this.get('intl').t('common.delete'),\n          className: 'column-delete',\n          disableFiltering: true\n        });\n      }\n\n      return columns;\n    }),\n    actions: {\n      toggleIsShowingAddressUnloadingTimeModal: function () {\n        this.toggleProperty('isShowingAddressUnloadingTimeModal');\n      },\n      showAddressUnloadingTimeModal: async function (address) {\n        let addressUnloadingTime = await address.get('addressUnloadingTime');\n\n        if (!addressUnloadingTime) {\n          addressUnloadingTime = this.get('store').createRecord('addressUnloadingTime', {\n            address\n          });\n          address.set('addressUnloadingTime', addressUnloadingTime);\n        }\n\n        this.set('addressUnloadingTime', addressUnloadingTime);\n        this.toggleProperty('isShowingAddressUnloadingTimeModal');\n      },\n      disableAddress: function (address) {\n        const self = this;\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        _jquery.default.ajax({\n          url: _environment.default.serverURL + '/addresses/' + address.get('id') + '/disable',\n          type: 'PUT',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(() => {\n          address.set('enabled', false);\n        }, function (response) {\n          self.set('errors', response.errors);\n        });\n      },\n      openEditAddressModal: function (address) {\n        if (!address) {\n          address = this.get('store').createRecord('address', {\n            company: this.get('model.company'),\n            enabled: true,\n            isHeadquarters: false\n          });\n        }\n\n        this.send('showModal', 'companies.modals.edit-address', address);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/addresses/index/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    queryParams: {\n      page: {\n        refreshModel: true\n      },\n      max: {\n        refreshModel: true\n      }\n    },\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_COMPANIES_TAB', 'ROLE_OWN_COMPANY_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n\n    async model(params) {\n      params.max = params.max || 10;\n      params.page = params.page || 1;\n      params.isHeadquarters = false;\n      const addresses = await this.store.query('address', params);\n      const company = await this.store.findRecord('company', params.companyId);\n      return {\n        addresses,\n        company\n      };\n    },\n\n    actions: {\n      refreshModel() {\n        this.refresh();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/addresses/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Prh2rJSc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"mt\\\",\\\"footer\\\",\\\"table\\\",\\\"body\\\",\\\"address\\\",\\\"index\\\",\\\"header\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"company-nav-header\\\",null,[[\\\"company\\\"],[[23,[\\\"model\\\",\\\"company\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"company.addresses\\\"],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_ADD_NEW_ADDRESS_IN_COMPANY_DETAILS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"address.addNewAddress\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"openEditAddressModal\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"server-table\\\",null,[[\\\"clear\\\",\\\"data\\\",\\\"saveSuccessMessage\\\",\\\"columns\\\"],[[23,[\\\"clear\\\"]],[23,[\\\"model\\\",\\\"addresses\\\"]],[23,[\\\"saveSuccessMessage\\\"]],[23,[\\\"columns\\\"]]]],{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom padding-bottom-big\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[22,1,[\\\"global-filter\\\"]],false],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-right\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"clear\\\"]]],null]],null]],[9],[1,[27,\\\"t\\\",[\\\"common.clearFilters\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"borderless-wrapper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,1,[\\\"table\\\"]],\\\"expected `mt.table` to be a contextual component but found a string. Did you mean `(component mt.table)`? ('apollo/pods/addresses/index/template.hbs' @ L28:C19) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,3,[\\\"header\\\"]],\\\"expected `table.header` to be a contextual component but found a string. Did you mean `(component table.header)`? ('apollo/pods/addresses/index/template.hbs' @ L29:C23) \\\"],null]],[[\\\"class\\\"],[\\\"companies-table-header\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,7,[\\\"row-sorting\\\"]],false],[0,\\\"\\\\n                        \\\"],[1,[22,7,[\\\"row-filtering\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,3,[\\\"body\\\"]],\\\"expected `table.body` to be a contextual component but found a string. Did you mean `(component table.body)`? ('apollo/pods/addresses/index/template.hbs' @ L33:C23) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,4,[\\\"visibleContent\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"tr\\\"],[12,\\\"data-address-id\\\",[28,[[22,5,[\\\"id\\\"]]]]],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"address-recipient\\\"],[9],[1,[22,5,[\\\"recipient\\\"]],false],[10],[0,\\\"\\\\n                                \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"address-street\\\"],[9],[1,[22,5,[\\\"street\\\"]],false],[10],[0,\\\"\\\\n                                \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"address-city\\\"],[9],[1,[22,5,[\\\"city\\\"]],false],[10],[0,\\\"\\\\n                                \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"address-postal\\\"],[9],[1,[22,5,[\\\"postal\\\"]],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canEditAddresses\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"show-unloading-time-button\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,5,[\\\"addressUnloadingTime\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[1,[27,\\\"t\\\",[\\\"common.edit\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                                \\\"],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showAddressUnloadingTimeModal\\\",[22,5,[]]]],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n                                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"edit-button\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.edit\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"openEditAddressModal\\\",[22,5,[]]]],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n                                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"delete-button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"address.deleteAddress\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"disableAddress\\\",[22,5,[]]],null]]],{\\\"statements\\\":[[0,\\\"                                            \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5,6]},null]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,1,[\\\"footer\\\"]],\\\"expected `mt.footer` to be a contextual component but found a string. Did you mean `(component mt.footer)`? ('apollo/pods/addresses/index/template.hbs' @ L67:C19) \\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[1,[22,2,[\\\"pagination-numeric\\\"]],false],[0,\\\"\\\\n                    \\\"],[1,[22,2,[\\\"pagination-simple\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isShowingAddressUnloadingTimeModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"modals/address-unloading-time\\\",null,[[\\\"addressUnloadingTime\\\",\\\"onClose\\\"],[[23,[\\\"addressUnloadingTime\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"toggleIsShowingAddressUnloadingTimeModal\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/addresses/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/advice/modals/create-advice/controller\", [\"exports\", \"apollo/mixins/advice-utils-mixin\", \"apollo/mixins/persistence-mixin\", \"apollo/mixins/transports-mixin\", \"jquery\"], function (_exports, _adviceUtilsMixin, _persistenceMixin, _transportsMixin, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_adviceUtilsMixin.default, _persistenceMixin.default, _transportsMixin.default, {\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    scheduleController: Ember.inject.controller('warehouses/schedule'),\n    createTransportController: Ember.inject.controller('transports/modals/create-transport'),\n    relationsCombinerService: Ember.inject.service('transport-relations.relations-combiner'),\n    dateToPerformAction: '',\n    actionPlanned: false,\n    awaitingResponse: false,\n    userManualInput: false,\n    transport: Ember.computed('model.transport', function () {\n      return this.get('model.transport');\n    }),\n    hasAnyWindows: Ember.computed('model.transport', function () {\n      return this.get('model.transport.timeWindows').filter(tw => tw.id !== null).length > 0;\n    }),\n    errors: Ember.computed('model.errors', function () {\n      return this.get('model.errors') ? this.get('model.errors') : [];\n    }),\n    title: Ember.computed('transport.{title,internalIndex,isRelatedTransportInTransportCombining,transportRelationIdentifier}', function () {\n      if (this.get('transport.transportRelationIdentifier') && this.get('transport.isRelatedTransportInTransportCombining')) {\n        return this.get('transport.title') + ' #' + this.get('transport.transportRelationIdentifier');\n      }\n\n      return this.get('transport.title') + ' #' + this.get('transport.internalIndex');\n    }),\n    showSearchSpotsButton: Ember.computed('model.showSearchSpotsButton', function () {\n      return this.get('model.showSearchSpotsButton');\n    }),\n    // eslint-disable-next-line ember/no-observers\n    setRequiresAcceptanceOfTermsOfCondition: Ember.observer('model.advice', function () {\n      if (!this.get('model.advice.id')) {\n        return;\n      }\n\n      const principalCompanyId = localStorage.getItem('principalId');\n      const s = this.get('store').peekAll('setting').filterBy('company.id', principalCompanyId).filterBy('name', 'SHOW_TERMS_OF_CONDITIONS_ACCEPTED').get('firstObject');\n      this.get('model.advice').set('requiresAcceptanceOfTermsOfCondition', s.get('value') === 'true');\n    }),\n    initialStart: Ember.computed('model.initialStart', function () {\n      return this.get('model.initialStart');\n    }),\n    hasUnsavedTimeWindow: Ember.computed('transport', function () {\n      return this.get('transport.timeWindows').filter(tw => {\n        return !tw.get('id');\n      }).get('length') > 0;\n    }),\n    hasErrors: Ember.computed('model.errors.length', function () {\n      return this.get('model.errors.length') > 0;\n    }),\n    currentWarehouseInError: Ember.computed('transport.exceptionInformation.whId', function () {\n      return this.get('transport.exceptionInformation.whId');\n    }),\n    combinedTransports: Ember.computed('transport', function () {\n      return this.get('relationsCombinerService.combinedTransports');\n    }),\n    combinedTransportsLabel: Ember.computed('combinedTransports', function () {\n      return this.get('relationsCombinerService.combinedTransportsLabel');\n    }),\n    saveButtonTitle: Ember.computed('awaitingResponse', function () {\n      return this.get('awaitingResponse') ? this.get('intl').t('common.pleaseWait') : this.get('intl').t('common.save');\n    }),\n    actions: {\n      handleClickWithSpot(timeWindowCandidate) {\n        const self = this;\n        self.send('createAdviceAndTimeWindow', Ember.RSVP.defer(), timeWindowCandidate);\n      },\n\n      toggleAwaitResponse() {\n        this.toggleProperty('awaitingResponse');\n      },\n\n      toggleUserManualInput() {\n        this.toggleProperty('userManualInput');\n        this.set('transport.advice.driverName', '');\n        this.set('transport.advice.carRegistrationNumber', '');\n        this.set('transport.advice.trailerRegistrationNumber', '');\n      },\n\n      createAdviceAndTimeWindow(defer, timeWindowCandidate) {\n        (0, _jquery.default)('#main-modal').data('skip-cancel-action', true);\n        const self = this;\n        const transport = self.get('store').peekRecord('transport', self.get('transport.id'));\n        const advice = transport.get('advice');\n        let editedTimeWindow = transport.get('editedTimeWindow');\n\n        if (timeWindowCandidate) {\n          editedTimeWindow = transport.get('timeWindows').filter(tw => {\n            return Number(tw.get('ramp.warehouse.id')) === timeWindowCandidate.ramp.warehouse.id;\n          }).get('firstObject');\n          editedTimeWindow.set('start', timeWindowCandidate.start);\n          editedTimeWindow.set('stop', timeWindowCandidate.stop);\n          editedTimeWindow.set('ramp', self.get('store').peekRecord('ramp', timeWindowCandidate.ramp.id));\n          console.debug(`Wybrana data awizacji: ${timeWindowCandidate.start}`);\n        }\n\n        transport.set('isDuringAddingOfAdvice', true);\n        const firstUnconfirmedCheckpoint = transport.get('firstUnconfirmedCheckpoint') || transport.get('firstUnconfirmedCheckpoint.content');\n\n        if (firstUnconfirmedCheckpoint.get('id')) {\n          firstUnconfirmedCheckpoint.set('isDuringAction', true);\n        }\n\n        if (advice) {\n          transport.set('advice', self.removeWhiteSpacesAndSetUpperCase(advice));\n        }\n\n        transport.validate();\n\n        if (self.get('transport.hasErrors')) {\n          transport.set('isDuringAddingOfAdvice', false);\n\n          if (firstUnconfirmedCheckpoint.get('id')) {\n            firstUnconfirmedCheckpoint.set('isDuringAction', false);\n          }\n\n          defer.resolve();\n          return;\n        }\n\n        const updateAllFutureTransportsAndWindows = this.updateAllFuturePeriodicTransports(transport);\n        transport.set('updateAllFuturePeriodicTransports', updateAllFutureTransportsAndWindows);\n        transport.set('updateAllFuturePeriodicWindows', updateAllFutureTransportsAndWindows);\n        this.send('toggleAwaitResponse');\n        this.set('userManualInput', false);\n        transport.save().then(() => {\n          console.log(`Advice and window for transport ${self.get('transport.id')} has been saved.`);\n          const adviceContent = transport.get('advice.content');\n\n          if (adviceContent) {\n            adviceContent.saveTrackerChanges();\n          }\n\n          transport.set('isDuringAddingOfAdvice', false);\n\n          if (firstUnconfirmedCheckpoint.get('id')) {\n            firstUnconfirmedCheckpoint.set('isDuringAction', false);\n          }\n\n          self.unloadRedundantTimeWindows(transport);\n          transport.reload().then(() => self.handleTransportReload(transport, self.get('scheduleController')));\n          self.send('toggleAwaitResponse');\n          self.send('hideModal');\n          const timeWindowStart = transport.isCombinedTransport ? moment(editedTimeWindow.start).format('HH:mm') : moment(transport.get('earliestTimeWindowStart')).format('HH:mm');\n          self.get('scheduleController').setProperties({\n            info: self.get('intl').t('warehouse.adviceHasBeenSavedInfo') + timeWindowStart,\n            warehouseStepToHandle: null\n          });\n          self.set('model.errors', []);\n          defer.resolve();\n\n          if (transport.get('transportType.adviceSeparatedFromWindow')) {\n            console.debug('Nie przekierowuje do harmonogramu po dodaniu awizacji');\n            return;\n          }\n\n          if (editedTimeWindow) {\n            self.send('refreshRoute');\n          }\n        }).catch(response => {\n          const errors = response.errors;\n          const responseMeta = errors ? errors[0].meta : null;\n          const exceptionType = responseMeta ? responseMeta.exceptionType : null;\n\n          if (responseMeta) {\n            const exceptionInformation = Ember.ObjectProxy.create({\n              initialStart: responseMeta.initialStart,\n              windowSizeInMinutes: responseMeta.windowSizeInMinutes,\n              rampName: responseMeta.rampName,\n              whId: responseMeta.warehouseId\n            });\n            transport.set('exceptionInformation', exceptionInformation);\n          }\n\n          this.setProperties({\n            hasErrors: self.EXCEPTIONS_THAT_ALLOWS_SPOTS_SEARCHING.includes(exceptionType)\n          });\n          self.set('model.errors', errors);\n          transport.set('isDuringAddingOfAdvice', false);\n\n          if (firstUnconfirmedCheckpoint.get('id')) {\n            firstUnconfirmedCheckpoint.set('isDuringAction', false);\n          }\n\n          defer.resolve();\n          this.toggleAwaitResponse();\n          self.set('userManualInput', false);\n        });\n      },\n\n      cancel() {\n        console.debug('Creation of advice cancelled.');\n        const self = this;\n        self.set('model.errors', []);\n        self.get('scheduleController').set('warningMessage', null);\n        self.get('transport.advice.content').rollback();\n        const editedWindow = self.get('scheduleController.editedWindow');\n        this.set('userManualInput', false);\n\n        if (editedWindow && editedWindow.content) {\n          // Anulacja podczas edycji wybranego okna spowoduje jedynie przywrócenie okna na poprzednie miejsce\n          editedWindow.content.restorePlace();\n        } else {\n          // Anulacja podczas tworzenia awizacji spowoduje wyczyszczenie wszystkich niezapisanych okien i przeniesienie do magazynu pierwszego takiego okna\n          const transport = self.get('transport');\n          const unsavedTimeWindows = transport.get('timeWindows').filter(tw => {\n            return !tw.get('id');\n          });\n          self.removeUnsavedTimeWindows(transport);\n          const stepsWithUnsavedTimeWindow = self.get('transport.stepsWithWarehouse').filter(step => {\n            return !step.get('timeWindow.id');\n          });\n          stepsWithUnsavedTimeWindow.forEach(step => {\n            step.set('timeWindow', null);\n          });\n          transport.set('isDuringAddingOfAdvice', false);\n\n          if (stepsWithUnsavedTimeWindow.get('length') > 1) {\n            // Zapamiętujemy czas pierwszego okna, by móc przenieść użytkownika do odpowiedniego dnia\n            const firstStart = unsavedTimeWindows.get('firstObject.start');\n            const warehouse = stepsWithUnsavedTimeWindow.get('firstObject.warehouse');\n            const scheduleDateString = moment(firstStart).format('YYYY-MM-DD');\n            console.debug(`Zapisywanie awizacji do transportu ${self.get('transport.id')} zostało przerwane. Przenosimy się do magazynu ${warehouse.get('name')} w dniu ${scheduleDateString}..`);\n            self.transitionToRoute('warehouses.schedule', warehouse.get('id'), scheduleDateString, '1');\n          }\n        }\n      },\n\n      close: function () {\n        this.send('hideModal');\n      },\n\n      performSaveAt(date) {\n        this.executeAt(date, () => {\n          $('.save-advice-button').click();\n          this.set('actionPlanned', false);\n        });\n        this.set('actionPlanned', true);\n      }\n\n    },\n    executeAt: function (timeString, func) {\n      const time = moment(timeString).toDate();\n      const currentTime = new Date().getTime();\n      setTimeout(func, time - currentTime);\n      return true;\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/advice/modals/create-advice/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"b43dbncD\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tw\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"transportType\\\",\\\"showCancelButton\\\",\\\"cancel\\\"],[[23,[\\\"title\\\"]],[23,[\\\"transport\\\",\\\"transportType\\\"]],true,[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"combinedTransports\\\",\\\"length\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"transport.erpIdentifier\\\"],null],false],[0,\\\": \\\"],[1,[21,\\\"combinedTransportsLabel\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"erpIdentifier\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"bold no-top-margin\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.erpIdentifier\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"transport\\\",\\\"erpIdentifier\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"timeWindows\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"h5\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"combinedTransports\\\",\\\"length\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.selectedWindowsCombinedTransports\\\"],null],false],[0,\\\": \\\"],[1,[21,\\\"combinedTransportsLabel\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"transport.selectedWindows\\\"],[[\\\"transportIdentifier\\\"],[[23,[\\\"transport\\\",\\\"identifier\\\"]]]]],false],[0,\\\":\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"timeWindows\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"li\\\"],[12,\\\"style\\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"ramp\\\",\\\"warehouse\\\",\\\"id\\\"]],[23,[\\\"currentWarehouseInError\\\"]]],null],\\\"color: red;\\\"],null]],[9],[0,\\\"\\\\n                            \\\"],[1,[22,1,[\\\"ramp\\\",\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\", \\\"],[1,[22,1,[\\\"ramp\\\",\\\"name\\\"]],false],[0,\\\", \\\"],[1,[22,1,[\\\"formattedTime\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"transport/messages-section\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"free-subsequent-spots\\\",null,[[\\\"transport\\\",\\\"showSearchSpotsButton\\\",\\\"freeSubsequentSpots\\\",\\\"searchForFreeSubsequentSpots\\\",\\\"handleClickWithSpot\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"showSearchSpotsButton\\\"]],[23,[\\\"freeSubsequentSpots\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"searchForFreeSubsequentSpots\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"handleClickWithSpot\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"documentIdentifiers\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.wzDocument\\\"],null],false],[0,\\\":\\\\n\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"bold word-break-all\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"transport\\\",\\\"documentIdentifiers\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-bottom\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"custom-switch\\\",null,[[\\\"firstOption\\\",\\\"secondOption\\\",\\\"onSwichAction\\\",\\\"value\\\"],[[27,\\\"t\\\",[\\\"advice.dataFromExternalSource\\\"],null],[27,\\\"t\\\",[\\\"advice.dataFromUserManualInput\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"toggleUserManualInput\\\"],null],[23,[\\\"userManualInput\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"hasAnyWindows\\\"]],[27,\\\"not\\\",[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"selectionOfWindowBeforeAdvice\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal driver-section\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"transport/driver-section\\\",null,[[\\\"transport\\\",\\\"userManualInput\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"userManualInput\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons padding-top-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_DEV_TOOLS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-bottom\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"dev.performSaveAt\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\",\\\"disabled\\\"],[[23,[\\\"dateToPerformAction\\\"]],\\\"text\\\",\\\"form-control\\\",[23,[\\\"actionPlanned\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\" col-md-2\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn btn-info\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"performSaveAt\\\",[23,[\\\"dateToPerformAction\\\"]]],null]],[9],[1,[27,\\\"t\\\",[\\\"dev.confirm\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"canNotEdit\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary save-advice-button\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[12,\\\"disabled\\\",[21,\\\"awaitingResponse\\\"]],[9],[0,\\\"\\\\n                    \\\"],[1,[21,\\\"saveButtonTitle\\\"],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"createAdviceAndTimeWindow\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"isDuringAddingOfAdvice\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"disabled\\\",\\\"disabled\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"hasUnsavedTimeWindow\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"timeWindow.cancelCreation\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"hasUnsavedTimeWindow\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"timeWindow.cancelCreation\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/advice/modals/create-advice/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/advice/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\", \"ember-data-copyable\", \"apollo/utils/validators/registration-number-validator\"], function (_exports, _emberData, _model, _modelValidator, _emberDataCopyable, _registrationNumberValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, _emberDataCopyable.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    changeTracker: Object.freeze({\n      auto: true,\n      enableIsDirty: true\n    }),\n    DOCUMENT_TYPES: Object.freeze({\n      ID_CARD: 'ID_CARD',\n      PASSPORT: 'PASSPORT'\n    }),\n    transport: belongsTo('transport', {\n      async: true\n    }),\n    creator: belongsTo('user', {\n      async: true,\n      embedded: 'save'\n    }),\n    driverLanguage: belongsTo('country', {\n      async: true,\n      embedded: 'save'\n    }),\n    truck: belongsTo('truck', {\n      async: true,\n      embedded: 'save'\n    }),\n    dateCreated: attr(),\n    driverName: attr('string'),\n    driverId: attr(),\n    driverMobilePhonePrefix: attr('string'),\n    driverMobilePhoneNumber: attr('string'),\n    carRegistrationNumber: attr('string'),\n    trailerRegistrationNumber: attr('string'),\n    documentNumber: attr(),\n    documentType: attr('string', {\n      defaultValue() {\n        return 'ID_CARD';\n      }\n\n    }),\n    termsOfConditionsAccepted: attr('boolean'),\n    rodoAccepted: attr('boolean'),\n    saveAsResource: attr('boolean'),\n    marcosDriverId: attr('string'),\n    marcosTruckId: attr('string'),\n    marcosTrailerId: attr('string'),\n\n    /**\n     * Jeśli dane awizacji nie są wypełnione przy tworzeniu zlecenia nie wymagamy zaznaczenia rodo\n     */\n    rodoValuesAreEmpty: Ember.computed('driverLanguage', 'driverName', 'driverMobilePhonePrefix', 'driverMobilePhoneNumber', 'carRegistrationNumber', 'trailerRegistrationNumber', 'documentNumber', function () {\n      return !this.get('driverLanguage.content') && !this.get('driverName') && !this.get('driverMobilePhonePrefix') && !this.get('driverMobilePhoneNumber') && !this.get('carRegistrationNumber') && !this.get('trailerRegistrationNumber') && !this.get('documentNumber');\n    }),\n    validations: {\n      driverName: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('requiresDriverName') || !model.get('requiresAdvice')) {\n              return true;\n            }\n\n            return !!value;\n          },\n          message: 'blank'\n        }]\n      },\n      driverMobilePhonePrefix: {\n        custom: [{\n          validation: function (key, value, model) {\n            if ((!model.get('requiresPhoneNumber') || !model.get('requiresAdvice')) && !value) {\n              return true;\n            }\n\n            return !!value;\n          },\n          message: 'blank'\n        }]\n      },\n      driverMobilePhoneNumber: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('requiresPhoneNumber') || !model.get('requiresAdvice')) {\n              return true;\n            }\n\n            return !!value;\n          },\n          message: 'blank'\n        }, {\n          validation: function (key, value, model) {\n            if (!value || model.get('driverMobilePhonePrefix') !== '48' || !model.get('requiresPhoneNumber') || !model.get('requiresAdvice')) {\n              return true;\n            }\n\n            return /^\\d+$/.test(value) && value.length === 9;\n          },\n          message: 'regex'\n        }]\n      },\n      carRegistrationNumber: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('requiresCarRegistration') || !model.get('requiresAdvice')) {\n              return true;\n            }\n\n            return !!value;\n          },\n          message: 'blank'\n        }, {\n          validation: function (key, value) {\n            return !value || _registrationNumberValidator.default.validate(value);\n          },\n          message: 'regex'\n        }]\n      },\n      trailerRegistrationNumber: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('requiresTrailer') || !model.get('requiresAdvice')) {\n              return true;\n            }\n\n            return !!value;\n          },\n          message: 'blank'\n        }, {\n          validation: function (key, value) {\n            return !value || _registrationNumberValidator.default.validate(value);\n          },\n          message: 'regex'\n        }]\n      },\n      documentNumber: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('requiresDriverDocumentNumber') || !model.get('allowsDriverDocumentNumber') || !model.get('requiresAdvice')) {\n              return true;\n            }\n\n            return !!value;\n          },\n          message: 'blank'\n        }]\n      },\n      documentType: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('requiresDriverDocumentNumber') || !model.get('requiresAdvice')) {\n              return true;\n            }\n\n            return !!value;\n          },\n          message: 'blankSelect'\n        }]\n      },\n      driverLanguage: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('requiresDriverLanguage') || !model.get('requiresAdvice')) {\n              return true;\n            }\n\n            return !!value.content;\n          },\n          message: 'blank'\n        }]\n      },\n      rodoAccepted: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('id') && model.get('rodoValuesAreEmpty')) {\n              return true;\n            }\n\n            if (model.get('id') && (value === undefined || model.get('showRodo') === value)) {\n              return true;\n            }\n\n            return !model.get('showRodo') || !!value;\n          },\n          message: 'notSelected'\n        }]\n      },\n      termsOfConditionsAccepted: {\n        custom: [{\n          validation: function (key, value, model) {\n            return !model.get('requiresAcceptanceOfTermsOfCondition') || !!value;\n          },\n          message: 'notSelected'\n        }]\n      },\n      saveAsResource: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!value) {\n              return true;\n            }\n\n            const phoneNumberIsValid = model.get('transport.transportType.adviceRequiresPhoneNumber') ? !!model.get('driverMobilePhoneNumber') : true;\n            const driverNameIsValid = model.get('requiresDriverName') ? !!model.get('driverName') : true;\n            const documentNumberIsValid = !model.get('requiresDriverDocumentNumber') || !model.get('allowsDriverDocumentNumber') || !!model.get('documentNumber');\n            const languageIsValid = !model.get('requiresDriverLanguage') || !!model.get('driverLanguage.id');\n            return languageIsValid && phoneNumberIsValid && driverNameIsValid && documentNumberIsValid;\n          },\n          message: 'info'\n        }]\n      },\n      truck: {\n        custom: [{\n          validation: function (key, value) {\n            return !value || !value.get('disabled');\n          },\n          message: function (key, value) {\n            return value.get('cannotBeChosenInfo');\n          }\n        }]\n      }\n    },\n    showRodo: Ember.computed('canBeUpdated', 'transport.{transportType.allowsRodoCheckbox,isRelatedTransportInTransportCombining}', function () {\n      return this.get('canBeUpdated') && this.get('transport.transportType.allowsRodoCheckbox');\n    }),\n    canBeUpdated: Ember.computed('transport.{canBeUpdated,firstUnconfirmedCheckpoint,advice.id,activeAuction,isRelatedTransportInTransportCombining}', function () {\n      if (!this.get('transport.advice.id')) {\n        return true;\n      }\n\n      return this.get('transport.content').actionCanBePerformed('UPDATE_ADVICE');\n    }),\n    disabled: Ember.computed('canBeUpdated', function () {\n      return !this.get('canBeUpdated');\n    }),\n    formattedPhoneNumber: Ember.computed('driverMobilePhonePrefix', 'driverMobilePhoneNumber', function () {\n      if (!this.get('driverMobilePhonePrefix')) {\n        return this.get('driverMobilePhoneNumber');\n      }\n\n      return '+' + this.get('driverMobilePhonePrefix') + ' ' + this.get('driverMobilePhoneNumber');\n    }),\n    requiresPhoneNumber: Ember.computed('transport.transportType.adviceRequiresPhoneNumber', function () {\n      return this.get('transport.transportType.adviceRequiresPhoneNumber');\n    }),\n    requiresAdvice: Ember.computed('transport.transportType.requiresAdvice', function () {\n      return this.get('transport.transportType.requiresAdvice');\n    }),\n    requiresDriverDocumentNumber: Ember.computed('transport.transportType.requiresDriverDocumentNumber', function () {\n      return this.get('transport.transportType.requiresDriverDocumentNumber');\n    }),\n    allowsDriverDocumentNumber: Ember.computed('transport.transportType.allowsDriverDocumentNumber', function () {\n      return this.get('transport.transportType.allowsDriverDocumentNumber');\n    }),\n    requiresDriverName: Ember.computed('transport.transportType.requiresDriverName', function () {\n      return this.get('transport.transportType.requiresDriverName');\n    }),\n    requiresDriverLanguage: Ember.computed('transport.transportType.requiresDriverLanguage', function () {\n      return this.get('transport.transportType.requiresDriverLanguage');\n    }),\n    requiresCarRegistration: Ember.computed('transport.transportType.{requiresCarRegistrationNumber,allowsCarRegistrationNumber}', function () {\n      return this.get('transport.transportType.requiresCarRegistrationNumber') && this.get('transport.transportType.allowsCarRegistrationNumber');\n    }),\n    requiresTrailer: Ember.computed('transport.transportType.requiresTrailer', function () {\n      return this.get('transport.transportType.requiresTrailer');\n    }),\n    translatedCarRegistrationNumberLabel: Ember.computed('transport.transportType.carRegistrationNumberTranslationKey', function () {\n      const avaliableKeys = ['TRUCK', 'VEHICLE'];\n      const translationKeyFromTt = this.get('transport').get('transportType.carRegistrationNumberTranslationKey');\n\n      if (avaliableKeys.includes(translationKeyFromTt)) {\n        return this.get('intl').t('advice.carRegistrationNumberLabel.' + translationKeyFromTt);\n      }\n\n      return this.get('intl').t('advice.carRegistrationNumberLabel.TRUCK');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/algorithm-setting/model\", [\"exports\", \"ember-data/model\", \"ember-data\"], function (_exports, _model, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _model.default.extend({\n    warehouseZone: _emberData.default.belongsTo('warehouseZone', {\n      async: true\n    }),\n    contractorsGroup: _emberData.default.belongsTo('contractorsGroup', {\n      async: true\n    }),\n    cargoIntervalStop: _emberData.default.attr('number'),\n    processTimeInMinutes: _emberData.default.attr('number'),\n    contractorsGroupId: Ember.computed('contractorsGroup.id', function () {\n      return this.get('contractorsGroup.id');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/algorithm-settings/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_CREATE_WAREHOUSE'],\n    queryParams: {\n      warehouseZoneId: {\n        refreshModel: true\n      },\n      contractorsGroupId: {\n        refreshModel: true\n      }\n    },\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const warehouseZone = this.store.peekRecord('warehouse-zone', params.warehouseZoneId);\n      const contractorsGroup = params.contractorsGroupId ? this.store.peekRecord('contractorsGroup', params.contractorsGroupId) : null;\n      return this.store.createRecord('algorithm-setting', {\n        warehouseZone: warehouseZone,\n        contractorsGroup: contractorsGroup\n      });\n    },\n    renderTemplate: function () {\n      this.render('algorithmSettings.edit');\n    },\n    setupController: function (controller, model) {\n      this.controllerFor('algorithmSettings.edit').setProperties({\n        model: model\n      });\n    },\n    actions: {\n      willTransition: function () {\n        this.controllerFor('algorithmSettings.edit').setProperties({\n          success: false,\n          errors: []\n        });\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/algorithm-settings/edit/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    algorithmSettingsIndexController: Ember.inject.controller('algorithm-settings/index'),\n    intl: Ember.inject.service(),\n    errors: [],\n    actions: {\n      save: function () {\n        const self = this;\n        const algorithmSetting = this.get('model');\n        algorithmSetting.save().then(function () {\n          self.setProperties({\n            success: true,\n            errors: []\n          });\n          const msg = self.get('intl').t('algorithmSettings.saveSuccessMessage');\n          self.get('algorithmSettingsIndexController').set('successMessage', msg);\n          self.transitionToRoute('algorithm-settings.index', {\n            queryParams: {\n              warehouseZoneId: self.get('model.warehouseZone.id')\n            }\n          });\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n      cancel: function () {\n        const warehouseZoneId = this.get('model.warehouseZone.id');\n        this.get('model').set('warehouseZone', null);\n        this.get('model').unloadRecord();\n        this.transitionToRoute('algorithm-settings.index', {\n          queryParams: {\n            warehouseZoneId: warehouseZoneId\n          }\n        });\n      },\n\n      delete() {\n        const self = this;\n        const algorithmSetting = this.get('model');\n        algorithmSetting.destroyRecord().then(a => {\n          const msg = self.get('intl').t('algorithmSettings.deletionSuccessMessage', {\n            n: a.get('numberOfPallets')\n          });\n          self.get('algorithmSettingsIndexController').set('successMessage', msg);\n          console.log(`Poprawnie usunęliśmy ustawienia algorytmu dla ${a.get('numberOfPallets')} palet.`);\n          this.transitionToRoute('algorithm-settings.index', {\n            queryParams: {\n              warehouseZoneId: this.get('model.warehouseZone.id')\n            }\n          });\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/algorithm-settings/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_SETTINGS_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      return this.store.findRecord('algorithm-setting', params.id);\n    },\n    actions: {\n      willTransition: function () {\n        this.get('controller').setProperties({\n          errors: []\n        });\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/algorithm-settings/edit/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"0LcOwqpi\",\n    \"block\": \"{\\\"symbols\\\":[\\\"error\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-narrow\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"algorithmSettings.label\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"warehouseZone.label\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8 form-control-static\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[23,[\\\"model\\\",\\\"warehouseZone\\\",\\\"name\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"contractorsGroup\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"user.contractorGroupName\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"model\\\",\\\"contractorsGroup\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"algorithmSettings.numberOfPallets\\\"],null],false],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"min\\\",\\\"required\\\",\\\"class\\\",\\\"value\\\"],[\\\"number\\\",0,\\\"required\\\",\\\"form-control\\\",[23,[\\\"model\\\",\\\"cargoIntervalStop\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"algorithmSettings.loadTimeInMinutes\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"min\\\",\\\"required\\\",\\\"class\\\",\\\"value\\\"],[\\\"number\\\",0,\\\"required\\\",\\\"form-control\\\",[23,[\\\"model\\\",\\\"processTimeInMinutes\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 form-buttons\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"algorithmSettings.deleteSetting\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"success\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"settings.backToSettings\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"ok\\\"],[[\\\"on\\\",\\\"target\\\"],[\\\"submit\\\",[23,[\\\"view\\\"]]]]],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/algorithm-settings/edit/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/algorithm-settings/index/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    warehouseZone: Ember.computed('model.id', function () {\n      return this.get('model.warehouseZone');\n    }),\n    selectedContractorsGroup: Ember.computed('contractorsGroups.length', function () {\n      return this.get('contractorsGroups.firstObject');\n    }),\n    contractorsGroups: Ember.computed('warehouseZome.algorithmSettings.@each.contractorsGroup', function () {\n      return this.get('warehouseZone.algorithmSettings').getEach('contractorsGroup').uniqBy('id').sortBy('name').filter(cg => cg.get('content'));\n    }),\n    algorithmSettings: Ember.computed('model.algorithmSettings', 'warehouseZone.algorithmSettings.@each.contractorsGroupId', 'selectedContractorsGroup.id', function () {\n      const self = this;\n      return this.get('model.algorithmSettings').filter(as => {\n        return as.get('contractorsGroup.id') === self.get('selectedContractorsGroup.id');\n      });\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/algorithm-settings/index/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: Ember.inject.service(\"session-account\"),\n    access: ['ROLE_SETTINGS_TAB'],\n    queryParams: {\n      warehouseZoneId: {\n        refreshModel: true\n      }\n    },\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const warehouseZone = this.store.findRecord('warehouseZone', params.warehouseZoneId);\n      const algorithmSettings = this.store.query('algorithmSetting', {\n        warehouseZoneId: params.warehouseZoneId\n      });\n      return Ember.RSVP.hash({\n        warehouseZone: warehouseZone,\n        algorithmSettings: algorithmSettings\n      });\n    },\n    actions: {\n      willTransition: function () {\n        this.get('controller').setProperties({\n          errors: [],\n          successMessage: null\n        });\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/algorithm-settings/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"1njQ9XPu\",\n    \"block\": \"{\\\"symbols\\\":[\\\"a\\\",\\\"cg\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-narrow\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"warehouseZone\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[27,\\\"warehouse-zone-nav-header\\\",null,[[\\\"warehouseZone\\\"],[[23,[\\\"warehouseZone\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"warehouseZone.label\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"warehouseZone\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"algorithmSettings.label\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-toggle\\\",\\\"buttons\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"contractorsGroups\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"selectedContractorsGroup\\\",\\\"name\\\"]],[22,2,[\\\"name\\\"]]],null],\\\"active\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"selectedContractorsGroup\\\"]]],null],[22,2,[]]],null]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"input\\\"],[11,\\\"name\\\",\\\"options\\\"],[11,\\\"id\\\",\\\"option1\\\"],[11,\\\"autocomplete\\\",\\\"off\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[10],[0,\\\"\\\\n                        \\\"],[1,[22,2,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-responsive\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-responsive table-hover table-condensed\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"algorithmSettings.numberOfPallets\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"algorithmSettings.loadTimeInMinutes\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"algorithmSettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,1,[\\\"cargoIntervalStop\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,1,[\\\"processTimeInMinutes\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"algorithmSettings.edit\\\",[22,1,[]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"algorithmSettings.create\\\",[27,\\\"query-params\\\",null,[[\\\"warehouseZoneId\\\",\\\"contractorsGroupId\\\"],[[23,[\\\"warehouseZone\\\",\\\"id\\\"]],[23,[\\\"selectedContractorsGroup\\\",\\\"id\\\"]]]]]],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"warehouses.edit\\\",[23,[\\\"warehouseZone\\\",\\\"warehouse\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.configureAlgorithmAfterSave\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/algorithm-settings/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/amount-of-cover/model\", [\"exports\", \"ember-data/model\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _model, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    amount: attr('number'),\n    currency: belongsTo('currency'),\n    validations: {\n      amount: {\n        custom: [{\n          validation: function (key, value) {\n            return Number(value) > 0;\n          },\n          message: 'positiveNumber'\n        }]\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/amount-of-cover/serializer\", [\"exports\", \"ember-data\", \"apollo/mixins/serializer-mixin\"], function (_exports, _emberData, _serializerMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, _serializerMixin.default, {\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    attrs: {\n      currency: {\n        serialize: 'records'\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/announcement/model\", [\"exports\", \"apollo/mixins/model-validator\", \"ember-data\"], function (_exports, _modelValidator, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend(_modelValidator.default, {\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    languageService: Ember.inject.service('language-service'),\n    location: _emberData.default.attr('string'),\n    range: _emberData.default.attr('string'),\n    type: _emberData.default.attr('string', {\n      defaultValue() {\n        return 'PRINCIPAL';\n      }\n\n    }),\n    subject: _emberData.default.attr('string'),\n    msgContent: _emberData.default.attr('string'),\n    subjectEn: _emberData.default.attr('string'),\n    msgContentEn: _emberData.default.attr('string'),\n    dateFrom: _emberData.default.attr('date'),\n    dateTo: _emberData.default.attr('date'),\n    dateCreated: _emberData.default.attr('date'),\n    lastUpdated: _emberData.default.attr('date'),\n    author: _emberData.default.attr('string'),\n    lastEditor: _emberData.default.attr('string'),\n    roleGroups: _emberData.default.hasMany('roleGroup', {\n      inverse: null,\n      async: false\n    }),\n    companies: _emberData.default.hasMany('company', {\n      inverse: null,\n      async: true\n    }),\n    isRead: _emberData.default.attr('boolean'),\n    validations: {\n      subject: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      msgContent: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      range: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      type: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      subjectEn: {\n        custom: [{\n          validation: function (key, value, model) {\n            return !model.get('hasEnglishVersion') || value && value.trim();\n          },\n          message: 'blank'\n        }]\n      },\n      msgContentEn: {\n        custom: [{\n          validation: function (key, value, model) {\n            return !model.get('hasEnglishVersion') || value && value.trim();\n          },\n          message: 'blank'\n        }]\n      },\n      dateFrom: {\n        custom: [{\n          presence: {\n            message: 'blank'\n          },\n          validation: function (key, value, model) {\n            if (!value || !model.get('dateTo')) {\n              return true;\n            }\n\n            return moment(value).isBefore(model.get('dateTo'));\n          },\n          message: 'invalidDatesSequence'\n        }]\n      },\n      dateTo: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      roleGroups: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('range') !== 'ROLE_GROUP') {\n              return true;\n            }\n\n            return value && value.length >= 1;\n          },\n          message: 'chooseAtLeastOneRoleGroup'\n        }]\n      },\n      companies: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('range') !== 'COMPANY') {\n              return true;\n            }\n\n            return value && value.length >= 1;\n          },\n          message: 'chooseAtLeastOneCompany'\n        }]\n      }\n    },\n    lastEditorOrAuthor: Ember.computed('author', 'lastEditor', function () {\n      return this.get('lastEditor') ? this.get('lastEditor') : this.get('author');\n    }),\n    subjectInAppropriateLanguage: Ember.computed('subject', 'subjectEn', function () {\n      if (!this.get('subjectEn')) {\n        return this.get('subject');\n      }\n\n      const propertyName = this.get('languageService').findProperLanguageVersion('subject', 'subjectEn');\n      return this.get(propertyName);\n    }),\n    contentInAppropriateLanguage: Ember.computed('msgContent', 'msgContentEn', function () {\n      if (!this.get('msgContentEn')) {\n        return this.get('msgContent');\n      }\n\n      const properKey = this.get('languageService').findProperLanguageVersion('msgContent', 'msgContentEn');\n      return this.get(properKey);\n    }),\n    expired: Ember.computed('dateTo', function () {\n      return moment().isAfter(moment(this.get('dateTo')));\n    }),\n    hasEnglishVersion: Ember.computed('id', 'msgContentEn', function () {\n      return this.get('id') && this.get('msgContentEn');\n    }),\n    typeLabel: Ember.computed('type', function () {\n      switch (this.get('type')) {\n        case 'PRINCIPAL':\n          return this.get('sessionAccount.principalCompany.shortName').toUpperCase();\n\n        case 'ADMIN':\n          return Ember.String.htmlSafe('<img src=\"/assets/images/logintegra-logo-new-dark.png\" class=\"logintegra-icon\">');\n\n        case 'SYSTEM':\n          return 'SYSTEM';\n\n        default:\n          return '';\n      }\n    }),\n    canBeManaged: Ember.computed('type', function () {\n      const isRestrictedAnnoucementType = this.get('type') === 'ADMIN' || this.get('type') === 'SYSTEM';\n      return !!(isRestrictedAnnoucementType && this.get('sessionAccount').hasRole('ROLE_MANAGE_ADMIN_ANNOUNCEMENTS') || !isRestrictedAnnoucementType);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/announcements/create/controller\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    announcementsManageController: Ember.inject.controller('announcements/manage'),\n    applicationController: Ember.inject.controller('application'),\n    AVAILABLE_RANGES: [\"ROLE_GROUP\", \"COMPANY\"],\n    companies: [],\n\n    init() {\n      this._super(...arguments);\n\n      const principalCompanyId = localStorage.getItem('principalId');\n      this.get('store').query('company', {\n        principalCompanyId: principalCompanyId\n      }).then(companies => {\n        this.set('companies', companies);\n        this.set('companiesLoaded', true);\n      });\n    },\n\n    rangeObjectsLoaded: Ember.computed('announcement.range', 'companiesLoaded', function () {\n      return this.get('announcement.range') === \"ROLE_GROUP\" || this.get('companiesLoaded');\n    }),\n    announcement: Ember.computed('model.announcement', function () {\n      return this.get('model.announcement');\n    }),\n    manageEnglishVersion: function () {\n      if (!this.get('announcement.hasEnglishVersion')) {\n        this.set('announcement.subjectEn', null);\n        this.set('announcement.msgContentEn', null);\n      }\n    },\n    roleGroups: Ember.computed('model.roleGroups', function () {\n      return this.get('model.roleGroups');\n    }),\n    rangeObjects: Ember.computed('announcement.range', 'companies', 'roleGroups', function () {\n      return this.get('announcement.range') === \"COMPANY\" ? this.get('companies') : this.get('roleGroups');\n    }),\n    proxiedRangeObjects: Ember.computed.map('rangeObjects', function (o) {\n      return Ember.ObjectProxy.create({\n        content: o,\n        checked: false\n      });\n    }),\n    proxiedCheckedRangeObjects: Ember.computed.filterBy('proxiedRangeObjects', 'checked', true),\n    checkedRangeObjects: Ember.computed.mapBy('proxiedCheckedRangeObjects', 'content'),\n    rangePropertyName: Ember.computed('announcement.range', function () {\n      return this.get('announcement.range') === \"COMPANY\" ? \"companies\" : \"roleGroups\";\n    }),\n    rangeObjectErrors: Ember.computed('rangePropertyName', 'announcement.errors.[]', function () {\n      return this.get(`announcement.errors.${this.get('rangePropertyName')}`);\n    }),\n    setProxiedObjects: Ember.observer('model', 'rangePropertyName', 'rangeObjectsLoaded', function () {\n      const self = this;\n      const propertyName = this.get('rangePropertyName');\n      Ember.run.once(this, function () {\n        const announcementObjects = self.get(`announcement.${propertyName}`) ? self.get(`announcement.${propertyName}`).getEach('id') : [];\n        const proxiedObjects = self.get('proxiedRangeObjects');\n        proxiedObjects.forEach(function (o) {\n          const checked = announcementObjects.includes(o.get('id'));\n          o.set('checked', checked);\n        });\n      });\n    }),\n    //https://jsfiddle.net/alvaroAV/svvz7tkn/\n    isIE: Ember.computed('', function () {\n      const ua = window.navigator.userAgent;\n      return ua.indexOf(\"MSIE \") > -1 || ua.indexOf(\"Trident/\") > -1;\n    }),\n    handleContentOnIE: function () {\n      this.setMsgContent(\"#msg-content-field > div.pell-content\", \"msgContent\");\n      this.setMsgContent(\"#msg-content-en-field > div.pell-content\", \"msgContentEn\");\n    },\n    setMsgContent: function (selector, propertyName) {\n      const msgContent = (0, _jquery.default)(selector);\n\n      if (msgContent) {\n        this.set(`announcement.${propertyName}`, msgContent.html());\n      }\n    },\n    actions: {\n      toggleAnnouncementType() {\n        const newType = this.get('announcement.type') === \"PRINCIPAL\" ? \"ADMIN\" : \"PRINCIPAL\";\n        this.set('announcement.type', newType);\n      },\n\n      toggleAnnouncementInEnglish() {\n        this.get('announcement').toggleProperty('hasEnglishVersion');\n      },\n\n      setDate(propertyName, date) {\n        this.set(`announcement.${propertyName}`, date[0]);\n      },\n\n      save() {\n        this.set('errors', null);\n        const announcement = this.get('announcement');\n        const button = (0, _jquery.default)(\"button[data-button-name='announcement-save']\");\n        announcement.get('roleGroups').clear();\n        announcement.get('companies').clear();\n        const rangeProperty = this.get('rangePropertyName');\n        this.get('checkedRangeObjects').forEach(o => {\n          announcement.get(rangeProperty).pushObject(o);\n        });\n\n        if (this.get('isIE')) {\n          this.handleContentOnIE();\n        }\n\n        if (!announcement.validate()) {\n          button.button('reset');\n          return;\n        }\n\n        this.manageEnglishVersion();\n        announcement.save().then(() => {\n          this.get(\"announcementsManageController\").set('successMessage', this.get('intl').t(\"common.saveSuccessMessage\"));\n          this.get('applicationController').refreshAnnouncementCounter();\n          this.transitionToRoute(\"announcements.manage\");\n        }).catch(response => {\n          this.set('errors', response.errors);\n        }).finally(() => {\n          button.button('reset');\n        });\n      },\n\n      delete() {\n        this.get('announcement').destroyRecord().then(() => {\n          this.get(\"announcementsManageController\").set('successMessage', this.get('intl').t(\"common.saveSuccessMessage\"));\n          this.get('applicationController').refreshAnnouncementCounter();\n          this.transitionToRoute(\"announcements.manage\");\n        }).catch(response => {\n          this.set('errors', response.errors);\n        });\n      },\n\n      cancel() {\n        this.get('announcement').rollbackAttributes();\n        this.transitionToRoute(\"announcements.manage\");\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/announcements/create/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    access: [\"ROLE_MANAGE_ANNOUNCEMENTS\"],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      const announcement = this.store.createRecord('announcement', {\n        dateFrom: moment().startOf('day').toDate(),\n        dateTo: moment().add(1, 'month').endOf('day').toDate(),\n        location: \"ANNOUNCEMENTS_TAB\",\n        range: \"ROLE_GROUP\"\n      });\n      return Ember.RSVP.hash({\n        announcement: announcement,\n        roleGroups: this.store.peekAll('roleGroup')\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/announcements/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"nrMBTncf\",\n    \"block\": \"{\\\"symbols\\\":[\\\"pro\\\",\\\"range\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left form-inline\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"announcements.\\\",[27,\\\"if\\\",[[23,[\\\"announcement\\\",\\\"id\\\"]],\\\"edit\\\",\\\"add\\\"],null]],null]],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"announcement\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block small-font\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"announcements.dateCreated\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"announcement\\\",\\\"dateCreated\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.by\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"announcement\\\",\\\"author\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"announcement\\\",\\\"lastEditor\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"announcements.lastUpdated\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"announcement\\\",\\\"lastUpdated\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.by\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"announcement\\\",\\\"lastEditor\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top form-horizontal\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"announcement\\\",\\\"errors\\\",\\\"subject\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"announcements.subject\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[11,\\\"data-field-name\\\",\\\"announcement-subject\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"announcement\\\",\\\"subject\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"announcement\\\"]],\\\"subject\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"announcement\\\",\\\"errors\\\",\\\"msgContent\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"announcements.content\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[11,\\\"data-field-name\\\",\\\"announcement-content\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"pell-editor\\\",null,[[\\\"value\\\",\\\"id\\\",\\\"onChange\\\",\\\"class\\\"],[[23,[\\\"announcement\\\",\\\"msgContent\\\"]],\\\"msg-content-field\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"announcement\\\",\\\"msgContent\\\"]]],null]],null],[27,\\\"concat\\\",[\\\"plain-border \\\",[27,\\\"if\\\",[[23,[\\\"announcement\\\",\\\"errors\\\",\\\"msgContent\\\"]],\\\"has-error\\\"],null]],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"announcement\\\"]],\\\"msgContent\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"announcement\\\",\\\"errors\\\",\\\"dateFrom\\\"]],[23,[\\\"announcement\\\",\\\"errors\\\",\\\"dateTo\\\"]]],null],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"announcements.expirationDates\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-6 no-horizontal-padding\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input-group\\\"],[11,\\\"data-field-name\\\",\\\"announcement-date-from\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.from\\\"],null],false],[10],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"placeholder\\\",\\\"formatType\\\",\\\"class\\\"],[[23,[\\\"announcement\\\",\\\"dateFrom\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setDate\\\",\\\"dateFrom\\\"],null],[27,\\\"t\\\",[\\\"common.minDate\\\"],null],\\\"shortDate\\\",\\\"form-control date-chooser\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"announcement\\\"]],\\\"dateFrom\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-6 no-horizontal-padding\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input-group\\\"],[11,\\\"data-field-name\\\",\\\"announcement-date-to\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.to\\\"],null],false],[10],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"placeholder\\\",\\\"formatType\\\",\\\"class\\\"],[[23,[\\\"announcement\\\",\\\"dateTo\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setDate\\\",\\\"dateTo\\\"],null],[27,\\\"t\\\",[\\\"common.maxDate\\\"],null],\\\"shortDate\\\",\\\"form-control date-chooser\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"announcement\\\"]],\\\"dateTo\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_ADMIN_ANNOUNCEMENTS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"announcement\\\",\\\"errors\\\",\\\"type\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"announcements.type\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[11,\\\"data-field-name\\\",\\\"announcement-type\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"change\\\"],[\\\"checkbox\\\",[27,\\\"eq\\\",[[23,[\\\"announcement\\\",\\\"type\\\"]],\\\"ADMIN\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"toggleAnnouncementType\\\"],null]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"announcement\\\"]],\\\"type\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"announcement\\\",\\\"errors\\\",\\\"range\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"announcements.range\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[11,\\\"data-field-name\\\",\\\"announcement-range\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"announcement\\\",\\\"range\\\"]],[23,[\\\"AVAILABLE_RANGES\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"announcement\\\",\\\"range\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"announcements.ranges.\\\",[22,2,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"announcement\\\"]],\\\"range\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-12 control-label pull-right\\\"],[11,\\\"data-field-name\\\",\\\"announcement-english-version\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"class\\\"],[\\\"checkbox\\\",[23,[\\\"announcement\\\",\\\"hasEnglishVersion\\\"]],\\\"form-check\\\"]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"announcements.announcementInEnglish\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"announcement\\\",\\\"hasEnglishVersion\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"announcement\\\",\\\"errors\\\",\\\"subjectEn\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"announcements.subjectEn\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[11,\\\"data-field-name\\\",\\\"announcement-subject-en\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"announcement\\\",\\\"subjectEn\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"announcement\\\"]],\\\"subjectEn\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"announcement\\\",\\\"errors\\\",\\\"msgContentEn\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"announcements.contentEn\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[11,\\\"data-field-name\\\",\\\"announcement-content-en\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"pell-editor\\\",null,[[\\\"value\\\",\\\"id\\\",\\\"onChange\\\",\\\"class\\\"],[[23,[\\\"announcement\\\",\\\"msgContentEn\\\"]],\\\"msg-content-en-field\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"announcement\\\",\\\"msgContentEn\\\"]]],null]],null],[27,\\\"concat\\\",[\\\"plain-border \\\",[27,\\\"if\\\",[[23,[\\\"announcement\\\",\\\"errors\\\",\\\"msgContentEn\\\"]],\\\"has-error\\\"],null]],null]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"announcement\\\"]],\\\"msgContentEn\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group padding-top \\\",[27,\\\"if\\\",[[23,[\\\"rangeObjectErrors\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-12 bold\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"announcements.\\\",[23,[\\\"rangePropertyName\\\"]]],null]],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section form-horizontal\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"rangeObjectsLoaded\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"announcement\\\"]],[23,[\\\"rangePropertyName\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group row\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"proxiedRangeObjects\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-4\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top\\\"],[12,\\\"data-field-name\\\",[22,1,[\\\"announcementAttributeName\\\"]]],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[22,1,[\\\"checked\\\"]]]]],false],[0,\\\"\\\\n                                    \\\"],[7,\\\"span\\\"],[9],[1,[22,1,[\\\"announcementLabel\\\"]],false],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/images/ajax-loader.gif\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-12 form-buttons\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"announcement\\\",\\\"canBeManaged\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"announcement-save\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"announcement\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-danger\\\",[27,\\\"t\\\",[\\\"announcements.delete\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\"],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/announcements/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/announcements/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_MANAGE_ANNOUNCEMENTS'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const announcement = this.store.findRecord('announcement', params.id);\n      return Ember.RSVP.hash({\n        announcement: announcement,\n        roleGroups: this.store.peekAll('roleGroup')\n      });\n    },\n    renderTemplate: function () {\n      this.render('announcements.create');\n    },\n    setupController: function (controller, model) {\n      this.controllerFor('announcements.create').setProperties({\n        model: model\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/announcements/index/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    queryParams: ['page', 'max'],\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    sessionAccount: Ember.inject.service('session-account'),\n    applicationController: Ember.inject.controller('application'),\n    announcements: Ember.computed('model', function () {\n      return this.get('model');\n    }),\n    actions: {\n      async markAsRead(announcement) {\n        if (announcement.get('isRead')) {\n          return;\n        }\n\n        try {\n          const path = this.get('apolloApiService').APOLLO_API.ANNOUNCEMENTS.MARK_AS_READ;\n          const response = await this.get('apolloApiService').callApolloApi(path, {\n            id: announcement.get('id')\n          });\n\n          if (response.ok) {\n            announcement.set('isRead', true);\n            this.get('applicationController').refreshAnnouncementCounter();\n          }\n\n          console.error(response);\n        } catch (error) {\n          console.error(error);\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/announcements/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"apollo/mixins/menu-mixin\"], function (_exports, _authenticatedRouteMixin, _menuMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _menuMixin.default, {\n    queryParams: {\n      page: {\n        refreshModel: true\n      },\n      max: {\n        refreshModel: true\n      }\n    },\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_ANNOUNCEMENTS_TAB'],\n\n    activate() {\n      this.activateCurrentTab('ANNOUNCEMENTS_TAB');\n    },\n\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      params.max = params.max || 25;\n      params.page = params.page || 1;\n      params.location = \"ANNOUNCEMENTS_TAB\";\n      return this.store.query(\"announcement\", params);\n    },\n    setupController: function (controller, model) {\n      this.get('controller').setProperties({\n        model: model,\n        totalPages: model.get('meta.totalPages')\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/announcements/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"45P5RGgW\",\n    \"block\": \"{\\\"symbols\\\":[\\\"announcement\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left form-inline\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"announcements.label\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[1,[21,\\\"announcements-nav-header\\\"],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"announcements\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"expandable-panel\\\",null,[[\\\"objectId\\\",\\\"componentName\\\",\\\"title\\\",\\\"titleClass\\\",\\\"additionalTitle\\\",\\\"additionalTitleClass\\\",\\\"customIconClass\\\",\\\"onOpen\\\",\\\"defaultOpen\\\"],[[22,1,[\\\"id\\\"]],\\\"announcement-panel\\\",[22,1,[\\\"subjectInAppropriateLanguage\\\"]],[27,\\\"unless\\\",[[22,1,[\\\"isRead\\\"]],\\\"bold\\\"],null],[22,1,[\\\"typeLabel\\\"]],\\\"bold\\\",[27,\\\"unless\\\",[[22,1,[\\\"isRead\\\"]],\\\"fa fa-exclamation text-danger\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"markAsRead\\\",[22,1,[]]],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block small-font\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"announcements.dateCreated\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"dateCreated\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.by\\\"],null],false],[0,\\\" \\\"],[1,[22,1,[\\\"author\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"lastEditor\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"announcements.lastUpdated\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"lastUpdated\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.by\\\"],null],false],[0,\\\" \\\"],[1,[22,1,[\\\"lastEditor\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-left-big padding-top\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"contentInAppropriateLanguage\\\"]],true],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"announcements.noActiveAnnouncements\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"announcements\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"pagination-buttons\\\",null,[[\\\"url\\\",\\\"page\\\",\\\"max\\\",\\\"totalPages\\\"],[\\\"announcements.index\\\",[23,[\\\"page\\\"]],[23,[\\\"max\\\"]],[23,[\\\"totalPages\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/announcements/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/announcements/manage/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    queryParams: ['page', 'max'],\n    announcements: Ember.computed('model', function () {\n      return this.get('model');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/announcements/manage/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    queryParams: {\n      page: {\n        refreshModel: true\n      },\n      max: {\n        refreshModel: true\n      }\n    },\n    sessionAccount: Ember.inject.service('session-account'),\n    access: [\"ROLE_MANAGE_ANNOUNCEMENTS\"],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      params.max = params.max || 25;\n      params.page = params.page || 1;\n      params.location = \"ANNOUNCEMENTS_MANAGEMENT\";\n      return this.store.query('announcement', params);\n    },\n    setupController: function (controller, model) {\n      this.get('controller').setProperties({\n        model: model,\n        totalPages: model.get('meta.totalPages')\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/announcements/manage/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"mkNL3vB9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"announcement\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left form-inline\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"announcements.manage\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"announcements.create\\\"],null]]]],[11,\\\"class\\\",\\\"btn btn-default margin-left\\\"],[11,\\\"data-button-name\\\",\\\"create-announcement-button\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"announcements.add\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[1,[21,\\\"announcements-nav-header\\\"],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"announcements\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-hover table-striped\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"announcements.subject\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"announcements.dateFrom\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"announcements.dateTo\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"announcements.lastEditor\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"announcements.lastUpdated\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"announcements\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[12,\\\"class\\\",[27,\\\"if\\\",[[22,1,[\\\"expired\\\"]],\\\"expired\\\"],null]],[12,\\\"data-announcement-id\\\",[28,[[22,1,[\\\"id\\\"]]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"announcement-subject\\\"],[9],[1,[22,1,[\\\"subjectInAppropriateLanguage\\\"]],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"dateFrom\\\"]],\\\"short\\\"],null],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"dateTo\\\"]],\\\"short\\\"],null],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[22,1,[\\\"lastEditorOrAuthor\\\"]],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"lastUpdated\\\"]],\\\"defaultDateTime\\\"],null],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"canBeManaged\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"announcements.edit\\\",[22,1,[\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-edit clickable\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"pagination-buttons\\\",null,[[\\\"url\\\",\\\"page\\\",\\\"max\\\",\\\"totalPages\\\"],[\\\"announcements.manage\\\",[23,[\\\"page\\\"]],[23,[\\\"max\\\"]],[23,[\\\"totalPages\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"announcements.noAnnouncements\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/announcements/manage/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/anti-corruption-section/model\", [\"exports\", \"ember-data\", \"apollo/pods/section/model\"], function (_exports, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _model.default.extend({\n    partnership: _emberData.default.belongsTo('partnership', {\n      async: true,\n      deepEmbedded: ['contractorCompany']\n    }),\n    signedFiles: _emberData.default.hasMany('file', {\n      async: true\n    }),\n    statementFilePL: _emberData.default.belongsTo('file', {\n      async: true\n    }),\n    statementFileEN: _emberData.default.belongsTo('file', {\n      async: true\n    }),\n    patternFilePL: _emberData.default.belongsTo('file', {\n      async: true\n    }),\n    patternFileEN: _emberData.default.belongsTo('file', {\n      async: true\n    }),\n    internalNotes: _emberData.default.attr('string')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/api-integration-log/model\", [\"exports\", \"ember-data/model\", \"ember-data\"], function (_exports, _model, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _model.default.extend({\n    intl: Ember.inject.service(),\n    transport: _emberData.default.belongsTo('transport', {\n      async: true\n    }),\n    url: _emberData.default.attr('string'),\n    dateCreated: _emberData.default.attr('date'),\n    request: _emberData.default.attr('string'),\n    responseCode: _emberData.default.attr('string'),\n    httpMethod: _emberData.default.attr('string'),\n    event: _emberData.default.attr('string'),\n    actor: _emberData.default.attr('string'),\n    canBeResend: _emberData.default.attr('boolean'),\n    eventLabel: Ember.computed('propertyName', function () {\n      return this.get('intl').t(`apiIntegrationLogs.event.${this.get('event')}`);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/applies-setting/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend({\n    principalCompany: _emberData.default.belongsTo('company', {\n      async: true\n    }),\n    createAntiCorruptionSection: _emberData.default.attr('boolean'),\n    showStatementToDownload: _emberData.default.attr('boolean'),\n    showPatternToDownload: _emberData.default.attr('boolean')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/applies-settings/index/controller\", [\"exports\", \"apollo/mixins/response-util-mixin\"], function (_exports, _responseUtilMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_responseUtilMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    appliesSetting: Ember.computed('model', function () {\n      return this.get('model');\n    }),\n    actions: {\n      save() {\n        this.set('errors', []);\n        this.get('appliesSetting').save().then(() => this.handleSuccessResponse(this)).catch(response => this.handleErrorResponse(this, response));\n      },\n\n      create() {\n        if (this.get('appliesSetting')) {\n          return;\n        }\n\n        const principalCompany = this.get('sessionAccount.principalCompany');\n        this.set('appliesSetting', this.get('store').createRecord('applies-setting', {\n          principalCompany: principalCompany\n        }));\n      },\n\n      delete() {\n        this.set('errors', []);\n        this.get('appliesSetting').destroyRecord().then(() => this.handleSuccessResponse(this)).catch(response => this.handleErrorResponse(this, response));\n      },\n\n      cancel() {\n        this.get('appliesSetting').rollbackAttributes();\n        this.transitionToRoute('settings.index');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/applies-settings/index/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_MANAGE_APPLIES_SETTINGS'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      return this.store.queryRecord('applies-setting', {});\n    },\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          errors: null,\n          successMessage: null\n        });\n      },\n\n      refreshModel() {\n        this.refresh();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/applies-settings/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"8BK0gKzd\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"appliesSettings.label\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"appliesSetting\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"info bold\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"appliesSettings.noSettings\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-right\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"appliesSettings.add\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"create\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block margin-bottom-big\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"appliesSettings.description.createAntiCorruptionSection\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"create-anti-corruption-section\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"appliesSettings.description.createAntiCorruptionSection\\\"],null],false],[0,\\\":\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"appliesSetting\\\",\\\"createAntiCorruptionSection\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block margin-bottom-big\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"appliesSettings.description.showStatementToDownload\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-statement-to-download\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"appliesSettings.description.showStatementToDownload\\\"],null],false],[0,\\\":\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"appliesSetting\\\",\\\"showStatementToDownload\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block margin-bottom-big\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"appliesSettings.description.showPatternToDownload\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-pattern-to-download\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"appliesSettings.description.showPatternToDownload\\\"],null],false],[0,\\\":\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"appliesSetting\\\",\\\"showPatternToDownload\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"appliesSetting\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-danger\\\",[27,\\\"t\\\",[\\\"common.confirmMessage\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/applies-settings/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/artr-api-log/model\", [\"exports\", \"ember-data/model\", \"ember-data\"], function (_exports, _model, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _model.default.extend({\n    intl: Ember.inject.service(),\n    transport: _emberData.default.belongsTo('transport', {\n      async: true\n    }),\n    url: _emberData.default.attr('string'),\n    httpMethod: _emberData.default.attr('string'),\n    response: _emberData.default.attr('string'),\n    request: _emberData.default.attr('string'),\n    dateCreated: _emberData.default.attr('date'),\n    requestType: _emberData.default.attr('string')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/artr-setting/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\", \"ember-data/model\"], function (_exports, _emberData, _modelValidator, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    transportType: belongsTo('transportType'),\n    entryWhiteListCheckpointAlias: attr('string'),\n    entryGateCheckpointAlias: attr('string'),\n    exitWhiteListCheckpointAlias: attr('string'),\n    exitGateCheckpointAlias: attr('string'),\n    expirationTimeInHours: attr('number')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/assortment-group/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n\n  var _default = Model.extend(_modelValidator.default, {\n    intl: service(),\n    sessionAccount: service('session-account'),\n    languageService: service('language-service'),\n    transportTypes: _emberData.default.hasMany('transportType', {\n      async: true\n    }),\n\n    /**\n     * id typów transportu, które zostały zaznaczone podczas tworzenia, lub edycji.\n     * Zmienna służy do wysłania danych na backend, nie przychodzi z serwera.\n     */\n    checkedTransportTypesIds: _emberData.default.attr(),\n    warehouse: _emberData.default.belongsTo('warehouse'),\n    namePl: _emberData.default.attr('string'),\n    nameEn: _emberData.default.attr('string'),\n    shortNamePl: _emberData.default.attr('string'),\n    shortNameEn: _emberData.default.attr('string'),\n    adviceFromTime: _emberData.default.attr('string'),\n    adviceToTime: _emberData.default.attr('string'),\n    enabled: _emberData.default.attr('boolean'),\n    validations: {\n      namePl: {\n        custom: {\n          validation: function (key, value) {\n            return value && value.length >= 3;\n          },\n          message: 'minLength'\n        }\n      },\n      nameEn: {\n        custom: {\n          validation: function (key, value) {\n            return value && value.length >= 3;\n          },\n          message: 'minLength'\n        }\n      },\n      shortNamePl: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      shortNameEn: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      adviceFromTime: {\n        custom: {\n          validation: function (key, value, model) {\n            if (!model.get('adviceFromHours') || !model.get('adviceFromMinutes')) {\n              return false;\n            }\n\n            const hour = Number(model.get('adviceFromHours'));\n            const minute = Number(model.get('adviceFromMinutes'));\n\n            if (minute % model.get('warehouse.timeWindowOffsetInterval') !== 0) {\n              return false;\n            }\n\n            return hour <= model.get('warehouse.workEndHour') && hour >= model.get('warehouse.workStartHour') && minute >= 0 && minute <= 60;\n          },\n          message: 'invalidAssortmentGroupAdviceFromTime'\n        }\n      },\n      adviceToTime: {\n        custom: {\n          validation: function (key, value, model) {\n            if (!model.get('adviceToHours') || !model.get('adviceToMinutes')) {\n              return false;\n            }\n\n            const hour = Number(model.get('adviceToHours'));\n            const minute = Number(model.get('adviceToMinutes'));\n\n            if (minute % model.get('warehouse.timeWindowOffsetInterval') !== 0) {\n              return false;\n            }\n\n            return hour <= model.get('warehouse.workEndHour') && hour >= model.get('warehouse.workStartHour') && minute >= 0 && minute <= 60;\n          },\n          message: 'invalidAssortmentGroupAdviceToTime'\n        }\n      }\n    },\n    transportTypeIds: Ember.computed('transportTypes.@each', function () {\n      return this.hasMany('transportTypes').ids();\n    }),\n    nameInAppropriateLanguage: Ember.computed('namePl', 'nameEn', function () {\n      const propertyName = this.get('languageService').findProperLanguageVersion('namePl', 'nameEn');\n      return this.get(propertyName);\n    }).readOnly(),\n    adviceFromHours: Ember.computed('adviceFromTime', function () {\n      if (this.get('adviceFromTime')) {\n        return this.get('adviceFromTime').split(':')[0];\n      }\n\n      return this.get('warehouse.workStartHour');\n    }),\n    adviceFromMinutes: Ember.computed('adviceFromTime', function () {\n      if (this.get('adviceFromTime')) {\n        return this.get('adviceFromTime').split(':')[1];\n      }\n\n      return '0';\n    }),\n    adviceToHours: Ember.computed('adviceToTime', function () {\n      if (this.get('adviceToTime')) {\n        return this.get('adviceToTime').split(':')[0];\n      }\n\n      return this.get('warehouse.workEndHour');\n    }),\n    adviceToMinutes: Ember.computed('adviceToTime', function () {\n      if (this.get('adviceToTime')) {\n        return this.get('adviceToTime').split(':')[1];\n      }\n\n      return '0';\n    }),\n    hasTurnedHours: Ember.computed('adviceToTime', 'adviceFromTime', function () {\n      let fromTime = moment();\n      fromTime = fromTime.set({\n        h: this.get('adviceFromHours'),\n        m: this.get('adviceFromMinutes')\n      });\n      let toTime = moment();\n      toTime = toTime.set({\n        h: this.get('adviceToHours'),\n        m: this.get('adviceToMinutes')\n      });\n      return fromTime > toTime;\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/assortment-groups/create/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: service('session-account'),\n    intl: service(),\n    assortmentGroup: Ember.computed('model', function () {\n      return this.get('model');\n    }),\n    transportTypes: Ember.computed('assortmentGroup', 'sessionAccount.currentUser.transportTypes', function () {\n      return this.get('sessionAccount.currentUser.transportTypes');\n    }),\n    // http://www.poeticsystems.com/blog/ember-checkboxes-and-you\n    proxiedTransportTypes: Ember.computed('assortmentGroup.transportTypes', 'transportTypes', function () {\n      const self = this;\n      return this.get('transportTypes').map(tt => {\n        return Ember.ObjectProxy.create({\n          content: tt,\n          checked: self.get('assortmentGroup.transportTypeIds').includes(tt.get('id'))\n        });\n      });\n    }),\n    actions: {\n      save: function () {\n        const self = this;\n        this.get('assortmentGroup').set('adviceFromTime', `${this.get('assortmentGroup.adviceFromHours')}:${this.get('assortmentGroup.adviceFromMinutes')}`);\n        this.get('assortmentGroup').set('adviceToTime', `${this.get('assortmentGroup.adviceToHours')}:${this.get('assortmentGroup.adviceToMinutes')}`);\n        const checkedTransportTypes = this.get('proxiedTransportTypes').filterBy('checked', true);\n        const checkedTransportTypesIds = checkedTransportTypes.map(tt => tt.get('content.id'));\n        this.get('assortmentGroup').set('checkedTransportTypesIds', checkedTransportTypesIds);\n\n        if (!this.get('assortmentGroup').validate()) {\n          return;\n        }\n\n        const confirmText = self.get('intl').t('assortmentGroup.confirmEdition');\n\n        if (self.showConfirmEdition() && !confirm(confirmText)) {\n          return;\n        }\n\n        this.get('assortmentGroup').save().then(() => {\n          self.setProperties({\n            errors: []\n          });\n          self.transitionToRoute('warehouses.edit', self.get('assortmentGroup.warehouse.id'));\n        }).catch(response => {\n          console.log(`Błąd przy zapisywaniu grupy asortymentowej: ${response.errors}`);\n          self.set('errors', response.errors);\n        });\n      },\n      delete: function () {\n        const self = this;\n        self.get('assortmentGroup').destroyRecord().then(() => {\n          self.setProperties({\n            errors: []\n          });\n          self.transitionToRoute('warehouses.edit', self.get('assortmentGroup.warehouse.id'));\n        }).catch(response => {\n          console.log(`Błąd przy usuwaniu grupy asortymentowej: ${response.errors}`);\n          self.set('errors', response.errors);\n        });\n      },\n      cancel: function () {\n        const warehouseId = this.get('assortmentGroup.warehouse.id');\n        this.get('assortmentGroup').unloadRecord();\n        this.transitionToRoute('warehouses.edit', warehouseId);\n      }\n    },\n    showConfirmEdition: function () {\n      return this.get('assortmentGroup.id') && (this.get('assortmentGroup').changedAttributes().adviceFromTime || this.get('assortmentGroup').changedAttributes().adviceToTime);\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/assortment-groups/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_CREATE_ASSORTMENT_GROUP'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const warehouse = this.get('store').peekRecord('warehouse', params.warehouse_id);\n      return this.store.createRecord(\"assortmentGroup\", {\n        enabled: true,\n        warehouse: warehouse\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/assortment-groups/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"vTZvQFu1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tt\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-narrow\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"assortmentGroup.label\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"assortmentGroup\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.label\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"assortmentGroup\\\",\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"assortmentGroup\\\",\\\"errors\\\",\\\"namePl\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.namePl\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"name-pl\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"assortmentGroup\\\",\\\"namePl\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"assortmentGroup\\\"]],\\\"namePl\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"assortmentGroup\\\",\\\"errors\\\",\\\"nameEn\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.nameEn\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"name-en\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"assortmentGroup\\\",\\\"nameEn\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"assortmentGroup\\\"]],\\\"nameEn\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"assortmentGroup\\\",\\\"errors\\\",\\\"shortNamePl\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.shortNamePl\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"short-name-pl\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"assortmentGroup\\\",\\\"shortNamePl\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"assortmentGroup\\\"]],\\\"shortNamePl\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"assortmentGroup\\\",\\\"errors\\\",\\\"shortNameEn\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.shortNameEn\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"short-name-en\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"assortmentGroup\\\",\\\"shortNameEn\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"assortmentGroup\\\"]],\\\"shortNameEn\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"assortmentGroup\\\",\\\"errors\\\",\\\"adviceFromTime\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"assortmentGroup.adviceFromTime\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"advice-from-time\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input-group time-input-group\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"min\\\",\\\"max\\\",\\\"class\\\",\\\"value\\\",\\\"required\\\"],[\\\"number\\\",\\\"1\\\",[23,[\\\"assortmentGroup\\\",\\\"warehouse\\\",\\\"workStartHour\\\"]],[23,[\\\"assortmentGroup\\\",\\\"warehouse\\\",\\\"workEndHour\\\"]],\\\"form-control time-input\\\",[23,[\\\"assortmentGroup\\\",\\\"adviceFromHours\\\"]],true]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon\\\"],[9],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"min\\\",\\\"max\\\",\\\"class\\\",\\\"value\\\",\\\"required\\\"],[\\\"number\\\",[23,[\\\"assortmentGroup\\\",\\\"warehouse\\\",\\\"timeWindowOffsetInterval\\\"]],0,45,\\\"form-control time-input\\\",[23,[\\\"assortmentGroup\\\",\\\"adviceFromMinutes\\\"]],true]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"assortmentGroup\\\"]],\\\"adviceFromTime\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"assortmentGroup\\\",\\\"errors\\\",\\\"adviceToTime\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"assortmentGroup.adviceToTime\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"advice-to-time\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input-group time-input-group\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"min\\\",\\\"max\\\",\\\"class\\\",\\\"value\\\",\\\"required\\\"],[\\\"number\\\",\\\"1\\\",[23,[\\\"assortmentGroup\\\",\\\"warehouse\\\",\\\"workStartHour\\\"]],[23,[\\\"assortmentGroup\\\",\\\"warehouse\\\",\\\"workEndHour\\\"]],\\\"form-control time-input\\\",[23,[\\\"assortmentGroup\\\",\\\"adviceToHours\\\"]],true]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon\\\"],[9],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"min\\\",\\\"max\\\",\\\"class\\\",\\\"value\\\",\\\"required\\\"],[\\\"number\\\",[23,[\\\"assortmentGroup\\\",\\\"warehouse\\\",\\\"timeWindowOffsetInterval\\\"]],0,45,\\\"form-control time-input\\\",[23,[\\\"assortmentGroup\\\",\\\"adviceToMinutes\\\"]],true]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"assortmentGroup\\\"]],\\\"adviceToTime\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"assortmentGroup\\\",\\\"errors\\\",\\\"transportTypes\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"assortmentGroup.transportTypes\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"transport-types-list\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"proxiedTransportTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"no-wrap\\\"],[12,\\\"data-field-name\\\",[28,[[22,1,[\\\"alias\\\"]]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"checked\\\",\\\"disabled\\\"],[\\\"checkbox\\\",[27,\\\"concat\\\",[\\\"transport-type-\\\",[22,1,[\\\"id\\\"]]],null],[22,1,[\\\"checked\\\"]],[23,[\\\"canNotEditRamps\\\"]]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"label\\\"],[12,\\\"for\\\",[28,[[27,\\\"concat\\\",[\\\"transport-type-\\\",[22,1,[\\\"id\\\"]]],null]]]],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 form-buttons\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"assortmentGroup\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"assortmentGroup\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"assortmentGroup.confirmDeletion\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"ban\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"success\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"settings.backToSettings\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/assortment-groups/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/assortment-groups/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_EDIT_ASSORTMENT_GROUP'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      return this.store.findRecord('assortmentGroup', params.id);\n    },\n    renderTemplate: function () {\n      this.render('assortmentGroups.create');\n    },\n    setupController: function (controller, model) {\n      this.controllerFor('assortmentGroups.create').setProperties({\n        model: model\n      });\n    },\n    actions: {\n      willTransition: function () {\n        this.get('controller').setProperties({\n          success: false,\n          errors: []\n        });\n        this.get('currentModel').unloadRecord();\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/auction-setting/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model,\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = Model.extend({\n    company: belongsTo('company', {\n      async: true\n    }),\n    transportType: belongsTo('transportType', {\n      async: true\n    }),\n    // Ustawienia ogólne\n    translationKey: attr('string'),\n    // Formularz informacji o trwającej aukcji\n    showPassToCarrierButton: attr('boolean'),\n    // Formularz wystawiania aukcji\n    defaultCurrency: attr('string'),\n    showCompanyGroupsSection: attr('boolean'),\n    selectionBasedOnlyOnGroups: attr('boolean'),\n    showBlockedCompaniesSection: attr('boolean'),\n    requireMaxPrice: attr('boolean'),\n    requireMinPrice: attr('boolean'),\n    showPriceRangeFields: attr('boolean'),\n    selectAllCarriersByDefault: attr('boolean'),\n    // Formularz składania ofert\n    canAcceptWithMinPrice: attr('boolean'),\n    showDescriptionSection: attr('boolean'),\n    requireDescriptionSection: attr('boolean'),\n    requireMinOfferReductionSizeValidation: attr('boolean'),\n    showQuantityFieldInOfferForm: attr('boolean'),\n    requireReasonIfNotBestOfferIsChosen: attr('boolean'),\n    exportAuctionInfoToExcel: attr('boolean'),\n    showStepDataInOfferForm: attr('boolean'),\n    minOfferReductionSize: attr('number'),\n    defaultAuctionFinishDelayInterval: attr('string'),\n    auctionProlongationOffsetInterval: attr('string'),\n    reminderTimeAboutAuction: attr('string'),\n    addFileToTransportAfterOfferAcceptationName: attr('string'),\n    addFileToTransportAfterOfferAcceptation: attr('boolean'),\n    newAuctionEmailFileName: attr('string'),\n    auctionEndedWithoutOffersEmailFileName: attr('string'),\n    showTransitTime: attr('boolean'),\n    requireTransitTime: attr('boolean'),\n    shouldPassToCarrierAfterAuction: attr('boolean'),\n    auctionEmailSubjectPl: attr('string'),\n    auctionEmailSubjectEn: attr('string'),\n    showUnitAmountType: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    requireUnitAmountType: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    showOperator: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    requireOperator: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    showPorts: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    requirePorts: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    requireSelectedOfferAcceptance: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    allowMultipleOffers: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    auctionPreferredOfferEmailFileName: attr('string'),\n    auctionFinishDelayIntervalOptions: attr('string'),\n    selectionOfAuctionDurationFromAClosedList: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/auction/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model,\n    attr,\n    belongsTo,\n    hasMany\n  } = _emberData.default;\n\n  var _default = Model.extend(_modelValidator.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    creator: belongsTo('user', {\n      async: true\n    }),\n    currency: belongsTo('currency', {\n      async: true\n    }),\n    transport: belongsTo('transport'),\n    companies: hasMany('company', {\n      async: true\n    }),\n    uninterestedCompanies: hasMany('company', {\n      async: true\n    }),\n    offers: hasMany('offer', {\n      async: true\n    }),\n    initialFinishTime: attr('date'),\n    plannedFinishTime: attr('date'),\n    actualFinishTime: attr('date'),\n    minPrice: attr('number'),\n    maxPrice: attr('number'),\n    dateCreated: attr('date'),\n    otherRequirements: attr('string'),\n    unitAmountType: belongsTo('transactionUnitAmountType', {\n      async: true\n    }),\n    validations: {\n      currency: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      companies: {\n        custom: {\n          validation: function (key, value) {\n            return value && value.get('length') >= 1;\n          },\n          message: 'empty'\n        }\n      },\n      minPrice: {\n        numericality: {\n          allowBlank: true,\n          greaterThanOrEqualTo: 0,\n          message: 'invalidNumber'\n        },\n        custom: [{\n          validation: function (key, value, model) {\n            const auctionSetting = model.get('auctionSetting');\n            /**\n             * Pole nie jest wymagane gdy zachodzi przynajmniej jeden z przypadków:\n             * - nie ma ustawienia AuctionSetting dla firmy pryncypała,\n             * - pole jest niewidoczne - ustawienia AuctionSetting#showPriceRangeFields.\n             *\n             * W przeciwnym wypadku walidujemy w zależności od ustawienia - AuctionSetting#requireMinPrice.\n             * */\n\n            if (!auctionSetting || !auctionSetting.get('showPriceRangeFields')) {\n              return true;\n            }\n\n            if (auctionSetting.get('requireMinPrice')) {\n              return !!value;\n            }\n\n            return true;\n          },\n          message: 'blank'\n        }]\n      },\n      maxPrice: {\n        numericality: {\n          allowBlank: true,\n          greaterThan: 0,\n          message: 'invalidNumber'\n        },\n        custom: [{\n          validation: function (key, value, model) {\n            const auctionSetting = model.get('auctionSetting');\n            /**\n             * Pole nie jest wymagane gdy zachodzi przynajmniej jeden z przypadków:\n             * - nie ma ustawienia AuctionSetting dla firmy pryncypała,\n             * - pole jest niewidoczne - ustawienia AuctionSetting#showPriceRangeFields.\n             *\n             * W przeciwnym wypadku walidujemy w zależności od ustawienia - AuctionSetting#requireMaxPrice.\n             * */\n\n            if (!auctionSetting || !auctionSetting.get('showPriceRangeFields')) {\n              return true;\n            }\n\n            if (auctionSetting.get('requireMaxPrice')) {\n              return !!value;\n            }\n\n            return true;\n          },\n          message: 'blank'\n        }, {\n          validation: function (key, value, model) {\n            if (model.get('minPrice') === undefined || model.get('minPrice') === '' || !value) {\n              return true;\n            }\n\n            return parseFloat(model.get('minPrice')) <= parseFloat(value);\n          },\n          message: 'maxPriceLowerThanMinPrice'\n        }]\n      },\n      plannedFinishTime: {\n        custom: [{\n          validation: function (key, value) {\n            return value > new Date();\n          },\n          message: 'isInPast'\n        }]\n      },\n      unitAmountType: {\n        custom: [{\n          validation: function (key, value, model) {\n            const requireUnitAmountType = model.get('auctionSetting.requireUnitAmountType');\n            return !(requireUnitAmountType && !value.get('id'));\n          },\n          message: 'blank'\n        }]\n      }\n    },\n    auctionSetting: Ember.computed('transport.transportType.id', function () {\n      return this.get('sessionAccount').getAuctionSetting(this.get('transport.transportType.id'));\n    }),\n    finished: Ember.computed('actualFinishTime', function () {\n      return !!this.get('actualFinishTime');\n    }),\n    enabledOffers: Ember.computed('offers.@each.enabled', function () {\n      return this.get('offers').filterBy('enabled');\n    }),\n    bestOffer: Ember.computed('enabledOffers.length', 'enabledOffers.@each.place', function () {\n      return this.get('enabledOffers').sortBy('place').get('firstObject');\n    }),\n    currentOfferForLoggedCompany: Ember.computed('enabledOffers.[]', function () {\n      const loggedCompany = this.get('sessionAccount.currentUser.company');\n      return this.get('enabledOffers').filter(o => o.get('company.id') === loggedCompany.get('id')).get('firstObject');\n    }),\n    minReductionSize: Ember.computed('auctionSetting.minOfferReductionSize', function () {\n      return this.get('auctionSetting.minOfferReductionSize');\n    }),\n    suggestedPriceForLoggedCompany: Ember.computed('currentOfferForLoggedCompany.price', function () {\n      const reductionSize = this.get('minReductionSize');\n      const currentOffer = this.get('currentOfferForLoggedCompany');\n\n      if (!currentOffer) {\n        return null;\n      }\n\n      return Math.max(currentOffer.get('price') - reductionSize, 1);\n    }),\n    hasBeenProlongated: Ember.computed('plannedFinishTime', 'initialFinishTime', function () {\n      return moment(this.get('initialFinishTime')).format('YYYY-MM-DD HH:mm') !== moment(this.get('plannedFinishTime')).format('YYYY-MM-DD HH:mm');\n    }),\n    hasPreferredOffer: Ember.computed('offers.@each.isPreferred', function () {\n      return this.get('enabledOffers').filter(o => o.get('isPreferred')).length > 0;\n    }),\n    preferredOffer: Ember.computed('enabledOffers.{length,@each.place}', function () {\n      return this.get('enabledOffers').filter(o => o.get('isPreferred')).get('firstObject');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/auctions/modals/auction-details-form/controller\", [\"exports\", \"jquery\", \"apollo/config/environment\"], function (_exports, _jquery, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    isCarrier: Ember.computed('model.isCarrier', function () {\n      return this.get('model.isCarrier');\n    }),\n    transport: Ember.computed('model.transport', function () {\n      return this.get('model.transport');\n    }),\n    title: Ember.computed('transport.{identifier,formattedCities}', function () {\n      return `${this.get('transport.identifier')}: ${this.get('transport.formattedCities')}`;\n    }),\n    lastAuction: Ember.computed('transport.auctions.lastObject', function () {\n      return this.get('transport.auctions.lastObject');\n    }),\n    previousAuctions: Ember.computed('transport.auctions.[]', 'lastAuction', function () {\n      return this.get('transport.auctions').filter(a => a.get('id') !== this.get('lastAuction.id'));\n    }),\n    idxOfLastCompany: Ember.computed('lastAuction.companies.length', function () {\n      return this.get('lastAuction.companies.length') - 1;\n    }),\n    idxOfLastUninterestedCompany: Ember.computed('lastAuction.uninterestedCompanies.length', function () {\n      return this.get('lastAuction.uninterestedCompanies.length') - 1;\n    }),\n    showFinishAuctionButton: Ember.computed('transport.{activeAuction,transportType.id}', function () {\n      const roleCanFinishAuction = this.get('authorityCheckerService').actionCanBePerformed('ROLE_CAN_FINISH_AUCTION', this.get('transport'));\n\n      if (!roleCanFinishAuction) {\n        return false;\n      }\n\n      return this.get('transport.activeAuction') && roleCanFinishAuction;\n    }),\n    actions: {\n      cancel() {\n        console.debug('Zamykamy okienko historii aukcji...');\n        const collapseElement = (0, _jquery.default)('.collapse');\n        collapseElement.collapse();\n        collapseElement.removeClass('in');\n      },\n\n      finishAuction() {\n        const self = this;\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        _jquery.default.ajax({\n          url: _environment.default.serverURL + '/auctions/' + self.get('transport.activeAuction.id') + '/finish',\n          type: 'PUT',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(respond => {\n          if (!respond.error) {\n            self.send('hideModal');\n            self.get('transport.activeAuction').reload();\n          }\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/auctions/modals/auction-details-form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"a8Dptssj\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"classNames\\\",\\\"cancel\\\"],[[23,[\\\"title\\\"]],\\\"wide-modal auction-history-modal\\\",[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section scrollable-modal-section\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"auction/auction-header\\\",null,[[\\\"auction\\\",\\\"isCarrier\\\"],[[23,[\\\"lastAuction\\\"]],[23,[\\\"isCarrier\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isCarrier\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"auction/bid-auction-button\\\",null,[[\\\"style\\\",\\\"transport\\\",\\\"auction\\\"],[\\\"color:white;background-color:steelblue\\\",[23,[\\\"transport\\\"]],[23,[\\\"transport\\\",\\\"activeAuction\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"lastAuction\\\",\\\"offers\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"auction/offers-table\\\",null,[[\\\"auction\\\"],[[23,[\\\"lastAuction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"lastAuction\\\",\\\"finished\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"auction\\\",\\\"endedWithoutOffers\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"auction.noOffers\\\"],null],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"isCarrier\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"components/auction/auction-panel\\\",null,[[\\\"sectionId\\\",\\\"accordionId\\\",\\\"labelName\\\",\\\"transportType\\\",\\\"sectionType\\\",\\\"companies\\\",\\\"idxOfLastCompany\\\",\\\"selectedCompanyId\\\"],[\\\"companies-section\\\",\\\"companies-accordion-section\\\",\\\"participants\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]],\\\"companies\\\",[23,[\\\"lastAuction\\\",\\\"companies\\\"]],[23,[\\\"idxOfLastCompany\\\"]],[23,[\\\"transport\\\",\\\"carrierCompany\\\",\\\"id\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"components/auction/auction-panel\\\",null,[[\\\"sectionId\\\",\\\"accordionId\\\",\\\"labelName\\\",\\\"transportType\\\",\\\"sectionType\\\",\\\"companies\\\",\\\"idxOfLastCompany\\\"],[\\\"uninterested-companies-section\\\",\\\"uninterested-companies-accordion-section\\\",\\\"uniterestedParticipants\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]],\\\"companies\\\",[23,[\\\"lastAuction\\\",\\\"uninterestedCompanies\\\"]],[23,[\\\"idxOfLastUninterestedCompany\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"components/auction/auction-panel\\\",null,[[\\\"sectionId\\\",\\\"accordionId\\\",\\\"labelName\\\",\\\"transportType\\\",\\\"sectionType\\\",\\\"previousAuctions\\\"],[\\\"previous-auctions-section\\\",\\\"previous-auctions-accordion-section\\\",\\\"previousAuctions\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]],\\\"previousAuctions\\\",[23,[\\\"previousAuctions\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer margin-top-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showFinishAuctionButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-danger\\\"],[11,\\\"data-field-name\\\",\\\"finish-auction-button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"auction\\\",\\\"finish\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"finishAuction\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.close\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/auctions/modals/auction-details-form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/auctions/modals/auction-form/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    amountOfCoverService: Ember.inject.service(),\n    dateUtils: Ember.inject.service('date-utils'),\n    DEFAULT_AUCTION_FINISH_DELAY_INTERVAL: '2h',\n    selectedInterval: null,\n    language: Ember.computed(function () {\n      return this.get('intl.locale')[0];\n    }),\n    currencies: Ember.computed('', function () {\n      return this.get('store').peekAll('currency');\n    }),\n    carriers: Ember.computed('model.carriers', function () {\n      const self = this;\n      return this.get('model.carriers').filter(c => {\n        return c.get('disabled') === false && self.amountOfCoverService.hasEnoughAmountOfCover(self.get('transport'), c);\n      }).sortBy('shortName');\n    }),\n    blockedCarriers: Ember.computed('model.carriers', function () {\n      const self = this;\n      return this.get('model.carriers').filter(c => {\n        return c.get('disabled') === true || !self.amountOfCoverService.hasEnoughAmountOfCover(self.get('transport'), c);\n      }).sortBy('shortName');\n    }),\n    auctionSetting: Ember.computed('transport.transportType.id', function () {\n      return this.get('sessionAccount').getAuctionSetting(this.get('transport.transportType.id'));\n    }),\n    showBlockedCompaniesSection: Ember.computed('auctionSetting', function () {\n      const auctionSetting = this.get('auctionSetting');\n      return !!auctionSetting && auctionSetting.get('showBlockedCompaniesSection');\n    }),\n    selectionBasedOnlyOnGroups: Ember.computed('auctionSetting.selectionBasedOnlyOnGroups', function () {\n      return this.get('auctionSetting.selectionBasedOnlyOnGroups');\n    }),\n    showCompanyGroupsSection: Ember.computed('auctionSetting', function () {\n      const auctionSetting = this.get('auctionSetting');\n      return !!auctionSetting && auctionSetting.get('showCompanyGroupsSection');\n    }),\n    sortedCarriers: Ember.computed('carriers.@each.shortName', function () {\n      return this.get('carriers').sortBy('shortName');\n    }),\n    auction: Ember.computed('model', function () {\n      return this.get('model');\n    }),\n    transport: Ember.computed('auction.transport', function () {\n      return this.get('auction.transport');\n    }),\n    title: Ember.computed('transport.{identifier,formattedCities}', function () {\n      return `${this.get('transport.identifier')}: ${this.get('transport.formattedCities')}`;\n    }),\n    showPriceRangeFields: Ember.computed('auctionSetting', function () {\n      const auctionSetting = this.get('auctionSetting');\n\n      if (!auctionSetting) {\n        return true;\n      }\n\n      return auctionSetting.get('showPriceRangeFields');\n    }),\n    canAcceptWithMinPrice: Ember.computed('auctionSetting', function () {\n      const auctionSetting = this.get('auctionSetting');\n\n      if (!auctionSetting) {\n        return true;\n      }\n\n      return auctionSetting.get('canAcceptWithMinPrice');\n    }),\n    showUnitAmountType: Ember.computed('auctionSetting', function () {\n      const auctionSetting = this.get('auctionSetting');\n\n      if (!auctionSetting) {\n        return true;\n      }\n\n      return auctionSetting.get('showUnitAmountType');\n    }),\n    // Carriers' checkboxes\n    proxiedCarriers: Ember.computed('sortedCarriers.[]', 'auction', 'auctionSetting', function () {\n      const auctionSetting = this.get('auctionSetting');\n      const defaultValue = auctionSetting ? auctionSetting.get('selectAllCarriersByDefault') : false;\n      return this.get('sortedCarriers').map(carrier => {\n        return Ember.ObjectProxy.create({\n          content: carrier,\n          checked: defaultValue\n        });\n      });\n    }),\n    sortedGroups: Ember.computed('model.carriersGroups.[]', function () {\n      return this.get('model.carriersGroups').sortBy('nameInAppropriateLanguage');\n    }),\n    groupTypes: Ember.computed('sortedGroups', function () {\n      return this.get('store').peekAll('contractors-group-type');\n    }),\n    proxiedGroups: Ember.computed('sortedGroups.[]', 'auction', function () {\n      return this.get('sortedGroups').map(group => {\n        return Ember.ObjectProxy.create({\n          content: group,\n          groupType: group.get('groupType'),\n          checked: false\n        });\n      });\n    }),\n    proxiedCheckedCarriers: Ember.computed.filterBy('proxiedCarriers', 'checked', true),\n    checkedCarriers: Ember.computed.mapBy('proxiedCheckedCarriers', 'content'),\n    allCarriersSelected: Ember.computed('carriers.length', 'checkedCarriers.length', function () {\n      return this.get('carriers.length') === this.get('checkedCarriers.length');\n    }),\n    proxiedCheckedGroups: Ember.computed.filterBy('proxiedGroups', 'checked', true),\n    checkedGroups: Ember.computed.mapBy('proxiedCheckedGroups', 'content'),\n    allGroupsSelected: Ember.computed('sortedGroups.length', 'checkedGroups.length', function () {\n      return this.get('sortedGroups.length') === this.get('checkedGroups.length');\n    }),\n    groupsValidationFailed: Ember.computed('proxiedCheckedGroups.length', function () {\n      return this._validateGroups();\n    }),\n    _validateGroups: function () {\n      const emptyGroups = this.get('proxiedCheckedGroups.length') <= 0;\n      const selectionBasedOnGroups = this.get('selectionBasedOnlyOnGroups');\n      return emptyGroups && selectionBasedOnGroups;\n    },\n    showAuctionFinishDelayIntervalOptions: Ember.computed('auctionSetting', function () {\n      const auctionSetting = this.get('auctionSetting');\n\n      if (!auctionSetting) {\n        return true;\n      }\n\n      return auctionSetting.get('selectionOfAuctionDurationFromAClosedList');\n    }),\n    auctionFinishDelayIntervalOptions: Ember.computed('auctionSetting', 'showAuctionFinishDelayIntervalOptions', function () {\n      const options = this.get('auctionSetting.auctionFinishDelayIntervalOptions');\n\n      if (options) {\n        return this.get('dateUtils').getSortedTimeStringList(options);\n      }\n\n      return [this.DEFAULT_AUCTION_FINISH_DELAY_INTERVAL];\n    }),\n    selectedAuctionFinishDelayInterval: Ember.computed('model.plannedFinishTime', function () {\n      if (!this.get('selectedInterval')) {\n        return this.get('auctionFinishDelayIntervalOptions.firstObject');\n      }\n\n      return this.get('selectedInterval');\n    }),\n    actions: {\n      setFinishDate(dateValues) {\n        Ember.run.next(() => {\n          this.get('model').set('plannedFinishTime', dateValues[0]);\n        });\n      },\n\n      toggleAllCarriers() {\n        const shouldBeChecked = !this.get('allCarriersSelected');\n        this.get('proxiedCarriers').forEach(proxyCarrier => {\n          proxyCarrier.set('checked', shouldBeChecked);\n        });\n      },\n\n      toggleAllGroups() {\n        const self = this;\n        const shouldBeChecked = !this.get('allGroupsSelected');\n        this.get('proxiedGroups').forEach(proxyGroup => {\n          self.send('toggleGroup', proxyGroup, shouldBeChecked);\n        });\n      },\n\n      toggleGroup(group, shouldBeChecked) {\n        const self = this;\n        shouldBeChecked = shouldBeChecked || !group.get('checked');\n        group.set('checked', shouldBeChecked);\n        const checkedGroupIds = self.get('checkedGroups').getEach('id');\n        const carriersWhoShouldBe = this.get('proxiedCarriers').filter(pc => {\n          const contractorsGroupIds = pc.get('partnershipWithPrincipal.contractorsGroups').getEach('id');\n          return contractorsGroupIds.some(id => checkedGroupIds.includes(id));\n        });\n        carriersWhoShouldBe.forEach(proxyCarrier => {\n          proxyCarrier.set('checked', true);\n        });\n        this.get('proxiedCarriers').filter(pc => {\n          return !carriersWhoShouldBe.getEach('id').includes(pc.get('id'));\n        }).forEach(proxyCarrier => {\n          proxyCarrier.set('checked', false);\n        });\n      },\n\n      save() {\n        console.log(`Saving auction for transport ${this.get('transport.id')}..`);\n\n        if (this.get('groupsValidationFailed')) {\n          console.log('Użytkownik nie wybrał żadnej grupy, przerywamy operację tworzenia aukcji');\n          return;\n        }\n\n        const self = this;\n        this.set('savingInProgress', true);\n        this.get('auction.companies').clear();\n        this.get('checkedCarriers').forEach(carrier => {\n          this.get('auction.companies').pushObject(carrier);\n        });\n\n        if (!this.get('auction').validate()) {\n          console.log('Auction did not pass validation.');\n          console.log(this.get('auction.errors'));\n          self.set('savingInProgress', false);\n          return;\n        }\n\n        this.get('auction').save().then(savedAuction => {\n          console.log(`Auction successfully saved with id ${savedAuction.get('id')}!`);\n          self.set('transport.transportType.forcedPollRequestTime', new Date().getTime());\n          self.setProperties({\n            savingInProgress: false,\n            errors: []\n          });\n          self.send('hideModal');\n        }).catch(response => {\n          self.setProperties({\n            savingInProgress: false,\n            errors: response.errors\n          });\n        });\n        this.set('selectedInterval', null);\n      },\n\n      close: function () {\n        this.send('hideModal');\n      },\n\n      cancel() {\n        console.debug('Wycofujemy zmiany z okienka aukcji...');\n\n        if (!this.get('auction.id')) {\n          this.get('transport.auctions').removeObject(this.get('auction'));\n        }\n\n        this.set('errors', []);\n        this.set('selectedInterval', null);\n      },\n\n      setFinishDateWithInterval(delayInterval) {\n        const finishTime = this.get('dateUtils').calculateDateFromInterval(new Date(), delayInterval);\n        this.get('model').set('plannedFinishTime', finishTime);\n        this.set('selectedInterval', delayInterval);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/auctions/modals/auction-form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"vgyWc45H\",\n    \"block\": \"{\\\"symbols\\\":[\\\"bc\\\",\\\"gt\\\",\\\"g\\\",\\\"proxyCarrier\\\",\\\"c\\\",\\\"delayInterval\\\",\\\"error\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"cancel\\\"],[[23,[\\\"title\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal section\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,7,[]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showAuctionFinishDelayIntervalOptions\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"auction-finish-time-input\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"auction.auctionFinishDelayInterval\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-7 no-padding \\\",[27,\\\"if\\\",[[23,[\\\"auction\\\",\\\"errors\\\",\\\"auctionFinishDelayInterval\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"selectedAuctionFinishDelayInterval\\\"]],[23,[\\\"auctionFinishDelayIntervalOptions\\\"]],true,[27,\\\"t\\\",[\\\"auction.auctionFinishDelayInterval\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setFinishDateWithInterval\\\"],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,6,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"auction\\\"]],\\\"auctionFinishDelayInterval\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"auction-finish-time-input\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"auction\\\",\\\"plannedFinishTime\\\",[23,[\\\"auction\\\",\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"span\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-7 no-padding not-inline-block \\\",[27,\\\"if\\\",[[23,[\\\"auction\\\",\\\"errors\\\",\\\"plannedFinishTime\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"placeholder\\\",\\\"formatType\\\",\\\"class\\\",\\\"nativeFlatpickrOptions\\\",\\\"disabled\\\"],[[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"plannedFinishTime\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"setFinishDate\\\"],null],[27,\\\"t\\\",[\\\"common.minDate\\\"],null],\\\"defaultDateTime\\\",\\\"form-control date-chooser\\\",[27,\\\"hash\\\",null,[[\\\"static\\\",\\\"enableTime\\\",\\\"minuteIncrement\\\"],[true,true,1]]],[23,[\\\"showAuctionFinishDelayIntervalOptions\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"errors\\\",\\\"plannedFinishTime\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 no-padding\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"auction\\\"]],\\\"plannedFinishTime\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showPriceRangeFields\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"auction-min-price-input\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"auction.priceRange\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-7 no-padding\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-row\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canAcceptWithMinPrice\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-4 no-left-padding \\\",[27,\\\"if\\\",[[23,[\\\"auction\\\",\\\"errors\\\",\\\"minPrice\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"pattern\\\",\\\"min\\\",\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"number\\\",\\\"5\\\",\\\"^[0-9]+\\\\\\\\.[0-9][0-9]$\\\",\\\"0\\\",\\\"form-control\\\",\\\"auction-min-price-input\\\",[23,[\\\"auction\\\",\\\"minPrice\\\"]],[27,\\\"t\\\",[\\\"common.min\\\"],null]]]],false],[0,\\\"\\\\n\\\\n                                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"auction\\\"]],\\\"minPrice\\\"]]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-4 no-left-padding \\\",[27,\\\"if\\\",[[23,[\\\"auction\\\",\\\"errors\\\",\\\"maxPrice\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"pattern\\\",\\\"min\\\",\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"number\\\",\\\"5\\\",\\\"^[0-9]+\\\\\\\\.[0-9][0-9]$\\\",\\\"0\\\",\\\"form-control\\\",[23,[\\\"auction\\\",\\\"maxPrice\\\"]],[27,\\\"t\\\",[\\\"common.max\\\"],null]]]],false],[0,\\\"\\\\n\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"auction\\\"]],\\\"maxPrice\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-4 no-padding \\\",[27,\\\"if\\\",[[23,[\\\"auction\\\",\\\"errors\\\",\\\"currency\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"auction\\\",\\\"currency\\\"]]],null],[23,[\\\"currencies\\\"]],true,\\\"symbol\\\",[27,\\\"t\\\",[\\\"common.currency\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"auction\\\",\\\"currency\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[22,5,[\\\"symbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"auction\\\"]],\\\"currency\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showUnitAmountType\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"unit-amount-type-select\\\",null,[[\\\"model\\\"],[[23,[\\\"auction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"not\\\",[[23,[\\\"selectionBasedOnlyOnGroups\\\"]]],null],[23,[\\\"auction\\\",\\\"errors\\\",\\\"companies\\\"]]],null],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"carriers-section\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"input\\\"],[12,\\\"checked\\\",[21,\\\"allCarriersSelected\\\"]],[12,\\\"disabled\\\",[21,\\\"selectionBasedOnlyOnGroups\\\"]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"toggleAllCarriers\\\"],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"auction\\\",\\\"selectParticipants\\\",[23,[\\\"auction\\\",\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"auction\\\"]],\\\"companies\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"scrollable-modal-section\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"proxiedCarriers\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label-not-bold no-wrap margin-right\\\"],[12,\\\"data-carrier-name\\\",[22,4,[\\\"shortName\\\"]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"disabled\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"selectionBasedOnlyOnGroups\\\"]],[22,4,[\\\"checked\\\"]]]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[1,[22,4,[\\\"shortName\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showCompanyGroupsSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"groupsValidationFailed\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"input\\\"],[12,\\\"checked\\\",[21,\\\"allGroupsSelected\\\"]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"toggleAllGroups\\\"],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"auction.selectGroup\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"groupsValidationFailed\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"help-block\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"small\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"auction.errors.groups.empty\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"scrollable-modal-section\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"groupTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"h5\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[1,[22,2,[\\\"nameInAppropriateLanguage\\\"]],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"proxiedGroups\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,3,[\\\"groupType\\\",\\\"id\\\"]],[22,2,[\\\"id\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label-not-bold no-wrap margin-right\\\"],[12,\\\"data-group-name\\\",[22,3,[\\\"nameEn\\\"]]],[9],[0,\\\"\\\\n                                    \\\"],[7,\\\"input\\\"],[12,\\\"checked\\\",[22,3,[\\\"checked\\\"]]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"toggleGroup\\\",[22,3,[]]],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n\\\\n                                    \\\"],[1,[22,3,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[2]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showBlockedCompaniesSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"auction\\\",\\\"errors\\\",\\\"companies\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"auction.blockedCarriers\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"scrollable-modal-section\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"blockedCarriers\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label-not-bold no-wrap margin-right\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"company-disabled-icon\\\",[[22,1,[]],[23,[\\\"auction\\\",\\\"transport\\\"]]],null],false],[0,\\\"\\\\n                            \\\"],[1,[22,1,[\\\"shortName\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section form-horizontal\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.otherRequirementsVisibleToCarrier\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"type\\\",\\\"placeholder\\\",\\\"class\\\",\\\"disabled\\\",\\\"rows\\\",\\\"value\\\"],[\\\"textarea\\\",[27,\\\"t\\\",[\\\"common.otherRequirementsVisibleToCarrier\\\"],null],\\\"form-control vertical-resizable-only\\\",[23,[\\\"canNotBeEdited\\\"]],\\\"3\\\",[23,[\\\"auction\\\",\\\"otherRequirements\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"savingInProgress\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"auction\\\",\\\"savingInProgress\\\",[23,[\\\"auction\\\",\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[12,\\\"disabled\\\",[21,\\\"groupsValidationFailed\\\"]],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"auction\\\",\\\"save\\\",[23,[\\\"auction\\\",\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/auctions/modals/auction-form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/auth/activate-account/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    loginController: Ember.inject.controller('auth/login'),\n    actions: {\n      async activateButton() {\n        const hash = this.get('model.hash');\n        const path = this.get('apolloApiService').APOLLO_API.USER.ACTIVATE_ACCOUNT;\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, null, null, {\n            hash\n          });\n\n          if (response.ok) {\n            this.get('loginController').setProperties({\n              message: this.get('intl').t('auth.accountActivated')\n            });\n            this.transitionToRoute('auth.login');\n          } else {\n            const error = await response.json();\n            this.set('errors', error.errors);\n          }\n        } catch (error) {\n          this.set('errors', [this.get('intl').t('common.defaultError')]);\n          console.error(error);\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/auth/activate-account/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    queryParams: {\n      hash: {\n        refreshModel: true\n      }\n    },\n    model: function (params) {\n      return Ember.RSVP.hash({\n        hash: params.hash\n      });\n    },\n    renderTemplate: function (controller, model) {\n      this.render('auth/activate-account', {\n        into: 'application',\n        outlet: 'login',\n        controller: controller,\n        model: model\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/auth/activate-account/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"JprU/PGd\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"font-big\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right col-lg-5 col-md-5 col-sm-7 col-xs-12 login-nav dark-background\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[1,[21,\\\"login-page-logo-section\\\"],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container-fluid\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group text-center\\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"activate-account-button\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"auth.activateAccount\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"activateButton\\\"]],[10],[0,\\\"\\\\n\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/auth/activate-account/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/auth/login/controller\", [\"exports\", \"ember-simple-auth/mixins/unauthenticated-route-mixin\", \"apollo/config/environment\"], function (_exports, _unauthenticatedRouteMixin, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend(_unauthenticatedRouteMixin.default, {\n    session: service('session'),\n    intl: service(),\n    queryParams: ['principalId'],\n    principalId: null,\n    logo: '',\n    setLogo: function () {\n      const previousPrincipalId = localStorage.getItem('previousPrincipalId');\n      const self = this;\n\n      if (self.get('principalId') || previousPrincipalId) {\n        // TODO :: apollo-api-service\n        Ember.$.ajax({\n          url: _environment.default.serverURL + '/loginPage',\n          type: 'GET',\n          contentType: 'application/json; charset=utf-8',\n          dataType: 'json',\n          data: {\n            principalId: self.get('principalId') ? self.get('principalId') : previousPrincipalId\n          }\n        }).then(function (resp) {\n          if (resp.errors) {\n            console.error(resp.errors);\n          } else {\n            self.set('logo', resp.logo);\n          }\n        });\n      }\n    }.observes('principalId'),\n    getAnnouncement: Ember.on('init', function () {\n      const self = this;\n      let pathname = window.location.pathname.replace('/', '');\n\n      if (this.get('alias')) {\n        pathname = this.get('alias');\n      } // TODO :: apollo-api-service\n\n\n      Ember.$.ajax({\n        url: _environment.default.serverURL + '/announcements',\n        type: 'GET',\n        contentType: 'application/json; charset=utf-8',\n        dataType: 'json',\n        data: {\n          location: \"LOGIN_PAGE\"\n        }\n      }).then(resp => {\n        if (resp.errors) {\n          console.error(resp.errors);\n        } else if (resp.announcement) {\n          self.set('announcement', self.get('store').createRecord('announcement', {\n            msgContent: resp.announcement.msgContent,\n            msgContentEn: resp.announcement.msgContentEn\n          }));\n        }\n      }).catch(() => {\n        self.set('serviceNotWorking', true);\n      });\n    }),\n    currentYear: Ember.computed('', function () {\n      return new Date().getFullYear();\n    }),\n    actions: {\n      authenticate: function (endpoint) {\n        const self = this;\n        self.set(\"errorMessage\", null);\n        this.set('authFailedReason', null);\n        this.set('logoutByConcurrentSession', null);\n        localStorage.removeItem('logoutByConcurrentSession');\n        const credentials = this.getProperties('identification', 'password');\n\n        if (credentials.identification) {\n          credentials.identification = credentials.identification.trim();\n        }\n\n        if (credentials.password) {\n          credentials.password = credentials.password.trim();\n        }\n\n        if (!credentials.identification || !credentials.password) {\n          const message = this.get('intl').t('auth.noLoginAndPassword');\n          this.set('authFailedReason', 'auth.noLoginAndPassword');\n          this.set('errorMessage', message);\n          return;\n        }\n\n        $(\".login-progress\").show();\n        this.get('session').authenticate('authenticator:custom', credentials, endpoint).then(null, function (response) {\n          const {\n            responseText,\n            status\n          } = response;\n\n          if (responseText !== undefined) {\n            console.debug(`Login request has been rejected with status ${status} and response \"${responseText}\".`);\n          }\n\n          self.set('password', null);\n          $(\".login-progress\").hide();\n          $(\".password\").focus();\n          let message;\n\n          if (status === 401) {\n            const defaultMsgCode = 'auth.invalidLoginOrPassword';\n\n            if (responseText) {\n              const msgParams = JSON.parse(responseText);\n\n              if (msgParams.message !== undefined) {\n                self.set('errorMessage', msgParams.message);\n                return;\n              }\n\n              const args = msgParams.args ? msgParams.args : {};\n              const code = msgParams.code ? msgParams.code : defaultMsgCode;\n              self.set('authFailedReason', code);\n              message = self.get('intl').t(code, args);\n            } else {\n              self.set('authFailedReason', defaultMsgCode);\n              message = self.get('intl').t(defaultMsgCode);\n            }\n          } else {\n            message = self.get('intl').t('auth.serverError');\n            self.set('authFailedReason', 'auth.serverError');\n          }\n\n          self.set('errorMessage', message);\n        });\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/auth/login/route\", [\"exports\", \"ember-simple-auth/mixins/unauthenticated-route-mixin\"], function (_exports, _unauthenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_unauthenticatedRouteMixin.default, {\n    websocket: Ember.inject.service('websocket'),\n    renderTemplate: function (controller, model) {\n      this.render('auth/login', {\n        into: 'application',\n        outlet: 'login',\n        controller,\n        model\n      });\n    },\n    setupController: function (controller) {\n      controller.setProperties({\n        'errorMessage': null,\n        'logoutByConcurrentSession': localStorage.getItem('logoutByConcurrentSession'),\n        'logoutByService': localStorage.getItem('logoutByService')\n      });\n    },\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          'logoutByConcurrentSession': null,\n          'logoutByService': null\n        });\n        localStorage.removeItem('logoutByConcurrentSession');\n        localStorage.removeItem('logoutByService');\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/auth/login/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"7/N69I8Q\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"announcement\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left col-lg-6 col-md-8 col-sm-5  col-xs-12 announcement-background alert-info\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"announcement\\\",\\\"contentInAppropriateLanguage\\\"]],true],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"serviceNotWorking\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left col-lg-6 col-md-8 col-sm-5  col-xs-12 announcement-background alert-danger\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"serviceNotWorking.header\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"serviceNotWorking.content\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"serviceNotWorking.signature\\\"],null],false],[0,\\\"\\\\n                \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-envelope\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[27,\\\"concat\\\",[\\\"mailto:\\\",[27,\\\"t\\\",[\\\"logintegraEmail\\\"],null]],null]],[9],[1,[27,\\\"t\\\",[\\\"logintegraEmail\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-mobile\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"logintegraPhone\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right col-lg-3 col-md-4 col-sm-7 col-xs-12 font-big light-background full-height\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"login-page-logo-section\\\",null,[[\\\"logo\\\"],[[23,[\\\"logo\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"login-template\\\"],[11,\\\"class\\\",\\\"row centered\\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n                    \\\"],[7,\\\"form\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"identification\\\"],[11,\\\"class\\\",\\\"black\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"auth.email\\\"],null],false],[0,\\\":\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autofocus\\\",\\\"autocomplete\\\"],[[23,[\\\"identification\\\"]],[27,\\\"t\\\",[\\\"auth.emailPlaceholder\\\"],null],\\\"form-control\\\",\\\"autofocus\\\",\\\"username\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"password\\\"],[11,\\\"class\\\",\\\"black\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"auth.password\\\"],null],false],[0,\\\":\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"autocomplete\\\"],[[23,[\\\"password\\\"]],[27,\\\"t\\\",[\\\"auth.passwordPlaceholder\\\"],null],\\\"form-control password\\\",\\\"password\\\",\\\"current-password\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"button\\\"],[11,\\\"id\\\",\\\"auth-login\\\"],[11,\\\"class\\\",\\\"btn btn-md btn-block\\\"],[11,\\\"data-button-name\\\",\\\"login\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"auth.signin\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"auth.remind\\\"],[[\\\"id\\\",\\\"class\\\"],[\\\"auth-remind\\\",\\\"black mb-2\\\"]],{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"remind-password\\\"],[9],[1,[27,\\\"t\\\",[\\\"auth.remindLink\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex divider align-items-center\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"p\\\"],[11,\\\"id\\\",\\\"auth-or\\\"],[11,\\\"class\\\",\\\"text-center black\\\"],[9],[1,[27,\\\"t\\\",[\\\"auth.or\\\"],null],false],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"button\\\"],[11,\\\"id\\\",\\\"auth-login-ad\\\"],[11,\\\"class\\\",\\\"btn btn-md btn-block\\\"],[11,\\\"data-button-name\\\",\\\"login\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"auth.loginWithActiveDirectory\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"authenticate\\\",\\\"/login/ldap\\\"]],[10],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"authenticate\\\",\\\"/login\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errorMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger\\\"],[11,\\\"data-field-name\\\",\\\"login-error-reason\\\"],[12,\\\"data-error-reason\\\",[21,\\\"authFailedReason\\\"]],[9],[0,\\\"\\\\n                                    \\\"],[7,\\\"strong\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[27,\\\"t\\\",[\\\"auth.fail\\\"],null],false],[0,\\\":\\\\n                                    \\\"],[10],[0,\\\"\\\\n                                    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[21,\\\"errorMessage\\\"],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"message\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-info\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[21,\\\"message\\\"],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"logoutByConcurrentSession\\\"]],\\\"true\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger\\\"],[11,\\\"data-field-name\\\",\\\"logout-by-concurrent-session\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"auth.logoutByConcurrentSession\\\"],null],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"logoutByService\\\"]],\\\"true\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger\\\"],[11,\\\"data-field-name\\\",\\\"logout-by-service\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"auth.logoutByService\\\"],null],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/auth/login/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/auth/remind/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    intl: service(),\n    apolloApiService: service('api.apollo-api-service'),\n    loginController: Ember.inject.controller('auth/login'),\n    remindEmail: '',\n    actions: {\n      async sendRemindEmail() {\n        const self = this;\n        self.set('errorMessage', null);\n        const remindingProgess = $('.reminding-progress');\n        remindingProgess.show();\n        const email = this.get('remindEmail');\n        const emailFormat = /^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,})+$/;\n\n        if (email.length === 0) {\n          remindingProgess.hide();\n          self.set('errorMessage', self.get('intl').t('common.formShouldNotBeEmpty'));\n          return;\n        }\n\n        if (!email.match(emailFormat)) {\n          remindingProgess.hide();\n          self.set('errorMessage', self.get('intl').t('errors.invalidEmail'));\n          return;\n        }\n\n        const jsonBody = JSON.stringify({\n          email\n        });\n        const path = this.get('apolloApiService').APOLLO_API.USER.REMIND_PASSWORD;\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, null, {\n            body: jsonBody\n          });\n\n          if (response.ok) {\n            const msg = self.get('intl').t('auth.passwordRemindedMessage', {\n              email\n            });\n            self.get('loginController').set('message', msg);\n            self.transitionToRoute('auth.login');\n          } else {\n            remindingProgess.hide();\n            const error = await response.json();\n            self.set('errorMessage', error.errors);\n            console.error(error);\n          }\n        } catch (error) {\n          this.set('errorMessage', [this.get('intl').t('common.defaultError')]);\n          console.error(error);\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/auth/remind/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    renderTemplate: function (controller, model) {\n      this.render('auth/remind', {\n        into: 'application',\n        outlet: 'login',\n        controller: controller,\n        model: model\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/auth/remind/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"M1B2fC+q\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"font-big\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"dark-background\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"auth.remindHeader\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right col-lg-5 col-md-5 col-sm-7 col-xs-12 login-nav dark-background\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container-fluid\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"remindEmail\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"auth.remindEmail\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"remind-password-email\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"required\\\"],[[23,[\\\"remindEmail\\\"]],[27,\\\"t\\\",[\\\"auth.emailPlaceholder\\\"],null],\\\"form-control password\\\",\\\"email\\\",\\\"true\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row login-nav\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"reminding-progress progress-div pull-left\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"auth.remindingInProgress\\\"],null],false],[0,\\\" \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/images/ajax-loader.gif\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"auth.login\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"send-password-reminder\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.send\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"sendRemindEmail\\\"]],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errorMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"strong\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"auth.remindFail\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[1,[21,\\\"errorMessage\\\"],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/auth/remind/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/auth/reset-password/controller\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    loginController: Ember.inject.controller('auth/login'),\n    actions: {\n      resetPassword() {\n        const self = this;\n        self.set('errorMessage', null);\n        $(\".reminding-progress\").show();\n        const url = _environment.default.serverURL + '/resetPassword';\n        const data = {\n          password: this.get('password'),\n          repeatedPassword: this.get('repeatedPassword'),\n          hash: this.get('model.hash')\n        }; // TODO :: apollo-api-service\n\n        Ember.$.ajax({\n          url: url,\n          type: 'POST',\n          contentType: 'application/json; charset=utf-8',\n          dataType: 'json',\n          data: JSON.stringify(data)\n        }).then(function (resp) {\n          $('.reminding-progress').hide();\n\n          if (resp.errors) {\n            self.set('errorMessage', resp.errors);\n          } else {\n            const msg = self.get('intl').t('auth.passwordChanged', {\n              username: resp.user.name\n            });\n            self.get('loginController').set('message', msg);\n            self.transitionToRoute('auth.login');\n          }\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/auth/reset-password/route\", [\"exports\", \"ember-simple-auth/mixins/unauthenticated-route-mixin\"], function (_exports, _unauthenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_unauthenticatedRouteMixin.default, {\n    queryParams: {\n      hash: {\n        refreshModel: true\n      }\n    },\n    model: function (params) {\n      return Ember.RSVP.hash({\n        hash: params.hash\n      });\n    },\n    renderTemplate: function (controller, model) {\n      this.render('auth/reset-password', {\n        into: 'application',\n        outlet: 'reset-password',\n        controller: controller,\n        model: model\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/auth/reset-password/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"TuZOsqFD\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"font-big\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"dark-background\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"auth.remindHeader\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right col-lg-5 col-md-5 col-sm-7 col-xs-12 login-nav dark-background\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container-fluid\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"identification\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"auth.newPassword\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"new-password\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autofocus\\\",\\\"type\\\"],[[23,[\\\"password\\\"]],[27,\\\"t\\\",[\\\"auth.passwordPlaceholder\\\"],null],\\\"form-control\\\",\\\"autofocus\\\",\\\"password\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"remindEmail\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"auth.repeatNewPassword\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"repeated-new-password\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\"],[[23,[\\\"repeatedPassword\\\"]],[27,\\\"t\\\",[\\\"auth.passwordPlaceholder\\\"],null],\\\"form-control password\\\",\\\"password\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row login-nav\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"reminding-progress progress-div pull-left\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"auth.remindingInProgress\\\"],null],false],[0,\\\" \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/images/ajax-loader.gif\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"auth.login\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"reset-password-button\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"resetPassword\\\"]],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errorMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[21,\\\"errorMessage\\\"],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/auth/reset-password/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/authorities/aggregate/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    store: Ember.inject.service(),\n    superUser: Ember.computed(function () {\n      const principalCompanyId = localStorage.getItem('principalId');\n      const roleGroups = this.store.peekAll('roleGroup').filterBy('principalCompany.id', principalCompanyId);\n      return roleGroups.filterBy('name', 'SUPER_USER');\n    }),\n    closeAllSections: Ember.computed('', function () {\n      return false;\n    }),\n    actions: {\n      addPermission: function () {\n        const self = this;\n        const transportType = self.get('selectedTransportType');\n\n        if (transportType) {\n          self.transitionToRoute('authority-restrictions.create', {\n            queryParams: {\n              transportTypeId: transportType.id,\n              multiSelect: true\n            }\n          });\n        } else {\n          self.transitionToRoute('authorities.create', {\n            queryParams: {\n              multiSelect: true\n            }\n          });\n        }\n      },\n      toggleCloseAllSections: function () {\n        this.set('closeAllSections', !this.closeAllSections);\n      },\n      setTransportType: function (transportType) {\n        this.set('selectedTransportType', transportType);\n        this.send('toggleCloseAllSections');\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/authorities/aggregate/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    model: function () {\n      return Ember.RSVP.hash({\n        transportTypes: this.store.findAll('transportType').then(data => {\n          return data.sortBy('idx');\n        }),\n        authorityGroups: this.store.findAll('authorityGroup')\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/authorities/aggregate/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"km18wQ1J\",\n    \"block\": \"{\\\"symbols\\\":[\\\"authorityGroup\\\",\\\"error\\\",\\\"transportType\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-full-width\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"authorities-nav-header\\\",null,[[\\\"roleGroup\\\"],[[23,[\\\"model\\\",\\\"roleGroup\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row division\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.aggregate.header\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"selectedTransportType\\\"]]],null,{\\\"statements\\\":[[0,\\\"                - \\\"],[1,[23,[\\\"selectedTransportType\\\",\\\"label\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-button-name\\\",\\\"general-permissions\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info margin-bottom \\\",[27,\\\"unless\\\",[[23,[\\\"selectedTransportType\\\"]],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.generalPermissions\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"setTransportType\\\",null]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"transportTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[12,\\\"data-button-name\\\",[28,[[22,3,[\\\"alias\\\"]]]]],[12,\\\"class\\\",[28,[\\\"btn btn-info margin-bottom \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"selectedTransportType\\\",\\\"id\\\"]],[22,3,[\\\"id\\\"]]],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[22,3,[\\\"label\\\"]],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"setTransportType\\\",[22,3,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-button-name\\\",\\\"role-groups-add-permission\\\"],[11,\\\"class\\\",\\\"btn btn-default margin-bottom\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.addPermission\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addPermission\\\"]],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-success alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[10],[0,\\\"\\\\n                    \\\"],[1,[21,\\\"successMessage\\\"],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[10],[0,\\\"\\\\n                \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,2,[]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"authorityGroups\\\"]]],null,{\\\"statements\\\":[[4,\\\"expandable-panel\\\",null,[[\\\"objectId\\\",\\\"componentName\\\",\\\"title\\\",\\\"titleClass\\\",\\\"onOpen\\\",\\\"onClose\\\",\\\"defaultOpen\\\",\\\"closeAllSections\\\"],[[22,1,[\\\"id\\\"]],[27,\\\"concat\\\",[[22,1,[\\\"name\\\"]],\\\"-panel\\\"],null],[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"authorityGroup.\\\",[22,1,[\\\"name\\\"]]],null]],null],\\\"bold\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"isOpened\\\"]]],null],true],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"isOpened\\\"]]],null],false],null],false,[22,0,[\\\"closeAllSections\\\"]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"isOpened\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"aggregated-authority-table\\\",null,[[\\\"authorityGroupId\\\",\\\"transportTypeId\\\"],[[22,1,[\\\"id\\\"]],[23,[\\\"selectedTransportType\\\",\\\"id\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/authorities/aggregate/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/authorities/create/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    authoritiesIndexController: Ember.inject.controller('authorities/index'),\n    aggregatedAuthoritiesIndexController: Ember.inject.controller('authorities/aggregate'),\n    intl: Ember.inject.service(),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    errors: [],\n    roleGroups: Ember.computed(function () {\n      const principalCompanyId = localStorage.getItem('principalId');\n      return this.store.peekAll('roleGroup').filterBy('principalCompany.id', principalCompanyId);\n    }),\n    selectedAuthority: Ember.computed('model.selectedAuthority', 'model.roleGroupAuthority.authority', function () {\n      return this.get('model.roleGroupAuthority.authority') || this.get('model.selectedAuthority');\n    }),\n    multiSelect: Ember.computed('model.multiSelect', function () {\n      return this.get('model.multiSelect');\n    }),\n    roleGroupAuthority: Ember.computed('model.roleGroupAuthority', function () {\n      return this.get('model.roleGroupAuthority');\n    }),\n    actions: {\n      save: async function () {\n        const self = this;\n        const roleGroupAuthority = this.get('roleGroupAuthority');\n        const roleGroups = this.get('model.roleGroups');\n        const multiSelect = this.get('multiSelect');\n        const roleGroupAuthorityList = Ember.A();\n\n        if (multiSelect) {\n          roleGroups.forEach(rg => {\n            roleGroupAuthorityList.pushObject(rg.get('id'));\n          });\n          const data = JSON.stringify({\n            roleGroupIds: roleGroupAuthorityList,\n            authorityId: self.get('model.selectedAuthority.id')\n          });\n\n          try {\n            const path = this.get('apolloApiService').APOLLO_API.ROLE_GROUP_AUTHORITIES.SAVE_AGGREGATED_ROLE_GROUP_AUTHORITIES;\n            const response = await this.get('apolloApiService').callApolloApi(path, null, {\n              body: data\n            });\n\n            if (response.ok) {\n              const msg = self.get('intl').t('settings.roleGroups.successUpdate');\n              self.get('aggregatedAuthoritiesIndexController').set('errors', '');\n              self.get('aggregatedAuthoritiesIndexController').set('successMessage', msg);\n              self.transitionToRoute('authorities.aggregate');\n            } else {\n              const error = await response.json();\n              self.get('aggregatedAuthoritiesIndexController').set('errors', error.errors);\n              self.get('aggregatedAuthoritiesIndexController').set('successMessage', '');\n              self.transitionToRoute('authorities.aggregate');\n            }\n          } catch (error) {\n            self.get('aggregatedAuthoritiesIndexController').set('errors', [this.get('intl').t('common.defaultError')]);\n            self.transitionToRoute('authorities.aggregate');\n            console.error(error);\n          }\n        } else {\n          if (!roleGroupAuthority.validate()) {\n            console.log('RoleGroupAuthority nie przeszło walidacji..');\n            return;\n          }\n\n          roleGroupAuthority.save().then(roleGroupAuthority => {\n            self.setProperties({\n              success: true,\n              errors: []\n            });\n            const msg = self.get('intl').t('settings.roleGroups.successUpdate');\n            self.get('authoritiesIndexController').set('successMessage', msg);\n            self.transitionToRoute('authorities.index', roleGroupAuthority.get('roleGroup.id'));\n          }).catch(response => {\n            self.set('errors', response.errors);\n          });\n        }\n      },\n      cancel: function () {\n        if (this.get('model.multiSelect')) {\n          this.transitionToRoute('authorities.aggregate');\n        } else {\n          const roleGroupId = this.get('model.roleGroupAuthority.roleGroup.id');\n          this.get('model.roleGroupAuthority').unloadRecord();\n          this.transitionToRoute('authorities.index', roleGroupId);\n        }\n      },\n      setRoleGroupAuthority: function (authority) {\n        this.set('authorityId', authority.get('id'));\n\n        if (this.get('model.multiSelect')) {\n          this.set('model.selectedAuthority', authority);\n        }\n\n        if (this.get('model.roleGroupAuthority')) {\n          this.set('model.roleGroupAuthority.authority', authority);\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/authorities/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_MANAGE_AUTHORITIES'],\n    queryParams: {\n      roleGroupId: {\n        refreshModel: true\n      },\n      multiSelect: {\n        refreshModel: true\n      }\n    },\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const roleGroup = params.roleGroupId ? this.store.peekRecord('roleGroup', params.roleGroupId) : null;\n      const roleGroupAuthority = roleGroup ? this.store.createRecord('role-group-authority', {\n        roleGroup\n      }) : null;\n      return Ember.RSVP.hash({\n        authorities: this.store.query('authority', {\n          canBeManaged: true\n        }),\n        roleGroupAuthority,\n        selectedAuthority: null,\n        roleGroups: Ember.A(),\n        multiSelect: params.multiSelect\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/authorities/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"SSB1lkrm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"rg\\\",\\\"authority\\\",\\\"error\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-narrow\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"multiSelect\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.mulitRolesLabel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,[\\\"model\\\",\\\"roleGroupAuthority\\\",\\\"roleGroup\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,3,[]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.actionType\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"role-group-authority\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-8 form-control-static \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"roleGroupAuthority\\\",\\\"errors\\\",\\\"authority\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[12,\\\"data-field-name\\\",[28,[\\\"authority-\\\",[21,\\\"authorityId\\\"]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"searchField\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"selectedAuthority\\\"]],[23,[\\\"model\\\",\\\"authorities\\\"]],true,\\\"authoritySearchField\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setRoleGroupAuthority\\\"],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"settings.roleGroups.authorityLabels.\\\",[22,2,[\\\"name\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"roleGroupAuthority\\\"]],\\\"authority\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block col-sm-offset-3\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"roleGroupAuthority\\\",\\\"authority\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"settings.roleGroups.generalAuthorityDescriptions.\\\",[23,[\\\"model\\\",\\\"roleGroupAuthority\\\",\\\"authority\\\",\\\"name\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.actionTypeDescription.chooseActionType\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"multiSelect\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.selectRoles\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select-multiple\\\",null,[[\\\"id\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"renderInPlace\\\",\\\"onchange\\\"],[\\\"role-groups\\\",[23,[\\\"model\\\",\\\"roleGroups\\\"]],[23,[\\\"roleGroups\\\"]],true,true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"roleGroups\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 form-buttons\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/authorities/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/authorities/index/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    authorityGroupArray: Ember.computed('selectedTransportType', 'model.roleGroupAuthorities.length', function () {\n      const arr = Ember.A();\n      let authoritiesToGroup;\n\n      if (!this.get('selectedTransportType')) {\n        authoritiesToGroup = this.get('model.roleGroupAuthorities').filter(rga => !rga.get('authority.assetType'));\n      } else {\n        const transportType = this.get('selectedTransportType');\n        authoritiesToGroup = this.get('store').peekAll('authorityRestriction').filterBy('roleGroup.id', this.get('roleGroup.id')).filter(ar => ar.get('authority.assetType') && transportType.get('connectedAssetIds').includes(Number(ar.get('assetId'))));\n      }\n\n      this.get('model.authorityGroups').sortBy('idx').forEach(group => {\n        arr.pushObject(this.createAuthorityGroupObject(authoritiesToGroup, group));\n      });\n      const othersGroup = this.get('model.authorityGroups').find(ag => ag.get('name') === 'OTHERS');\n      arr.pushObject(this.createAuthorityGroupObjectWithoutGroup(authoritiesToGroup, othersGroup));\n      return arr;\n    }),\n    translationsPrefix: Ember.computed(function () {\n      return \"authorityGroup.\";\n    }),\n    transportTypes: Ember.computed('model.transportTypes.@each', function () {\n      return this.get('model.transportTypes');\n    }),\n    roleGroup: Ember.computed('model.roleGroup', function () {\n      return this.get('model.roleGroup');\n    }),\n    showTableColumnSection: Ember.computed('selectedTransportType', function () {\n      return this.get('sessionAccount').hasRole(\"ROLE_MANAGE_COLUMN_VISIBILITY\") && this.get('selectedTransportType');\n    }),\n    actions: {\n      setTransportType: function (transportType) {\n        this.set('selectedTransportType', transportType);\n      },\n      addPermission: function (transportType) {\n        if (transportType) {\n          this.transitionToRoute('authority-restrictions.create', {\n            queryParams: {\n              transportTypeId: transportType.get('id'),\n              roleGroupId: this.get('roleGroup.id')\n            }\n          });\n        } else {\n          this.transitionToRoute('authorities.create', {\n            queryParams: {\n              roleGroupId: this.get('roleGroup.id')\n            }\n          });\n        }\n      },\n      delete: function (roleGroupAuthority) {\n        const self = this;\n        const roleGroupId = roleGroupAuthority.get('roleGroup.id');\n        roleGroupAuthority.destroyRecord().then(a => {\n          const msg = self.get('intl').t('settings.roleGroups.successDelete');\n          self.set('successMessage', msg);\n          self.transitionToRoute('authorities.index', roleGroupId);\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n      deleteAllAuthorities: function (roleGroupAuthorities) {\n        for (let i = 0; i < roleGroupAuthorities.length; i++) {\n          this.send('delete', roleGroupAuthorities[i]);\n        }\n      }\n    },\n\n    createAuthorityGroupObject(authorities, group) {\n      return Ember.Object.create({\n        authorities: authorities.filter(a => {\n          return [a.get('group.id'), a.get('authority.group.id')].includes(group.get('id'));\n        }).sortBy('idx'),\n        group: group\n      });\n    },\n\n    createAuthorityGroupObjectWithoutGroup(authorities, othersGroup) {\n      return Ember.Object.create({\n        authorities: authorities.filter(a => {\n          return !a.get('group.id') && !a.get('authority.group.id');\n        }).sortBy('idx'),\n        group: othersGroup\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/authorities/index/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_SETTINGS_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const roleGroup = this.store.peekRecord('roleGroup', params.id);\n      const userRoleGroup = this.get('sessionAccount').get('currentUser.roleGroup');\n\n      if (roleGroup.get('name') === 'SUPER_USER' && userRoleGroup.get('name') !== 'SUPER_USER') {\n        return this.transitionTo('forbidden');\n      }\n\n      return Ember.RSVP.hash({\n        roleGroup,\n        transportTypes: this.store.findAll('transportType').then(data => {\n          return data.sortBy('idx');\n        }),\n        authorityRestrictions: this.store.query('authorityRestriction', {\n          roleGroupId: roleGroup.get('id')\n        }),\n        roleGroupAuthorities: this.store.query('roleGroupAuthority', {\n          roleGroupId: roleGroup.get('id')\n        }),\n        authorityGroups: this.store.findAll('authorityGroup')\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/authorities/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ip6l1tTJ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"authorityGroupObject\\\",\\\"transportType\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"authorities-nav-header\\\",null,[[\\\"roleGroup\\\"],[[23,[\\\"model\\\",\\\"roleGroup\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row division\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.header\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"model\\\",\\\"roleGroup\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"selectedTransportType\\\"]]],null,{\\\"statements\\\":[[0,\\\"                - \\\"],[1,[23,[\\\"selectedTransportType\\\",\\\"label\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-button-name\\\",\\\"general-permissions\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info margin-bottom \\\",[27,\\\"unless\\\",[[23,[\\\"selectedTransportType\\\"]],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.generalPermissions\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"setTransportType\\\",null]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transportTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[12,\\\"data-button-name\\\",[28,[[22,2,[\\\"alias\\\"]]]]],[12,\\\"class\\\",[28,[\\\"btn btn-info margin-bottom \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"selectedTransportType\\\",\\\"id\\\"]],[22,2,[\\\"id\\\"]]],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[22,2,[\\\"label\\\"]],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"setTransportType\\\",[22,2,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_AUTHORITIES\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-button-name\\\",\\\"role-groups-add-permission\\\"],[11,\\\"class\\\",\\\"btn btn-default margin-bottom\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.addPermission\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addPermission\\\",[23,[\\\"selectedTransportType\\\"]]]],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-success alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[10],[0,\\\"\\\\n                \\\"],[1,[21,\\\"successMessage\\\"],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"authorityGroupArray\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"gt\\\",[[22,1,[\\\"authorities\\\",\\\"length\\\"]],0],null]],null,{\\\"statements\\\":[[4,\\\"expandable-panel\\\",null,[[\\\"objectId\\\",\\\"componentName\\\",\\\"title\\\",\\\"titleClass\\\",\\\"defaultOpen\\\",\\\"showNumberOfElements\\\",\\\"numberOfElements\\\"],[[22,1,[\\\"group\\\",\\\"id\\\"]],[27,\\\"concat\\\",[[22,1,[\\\"group\\\",\\\"name\\\"]],\\\"-panel\\\"],null],[27,\\\"t\\\",[[27,\\\"concat\\\",[[23,[\\\"translationsPrefix\\\"]],[22,1,[\\\"group\\\",\\\"name\\\"]]],null]],null],\\\"bold\\\",false,true,[22,1,[\\\"authorities\\\",\\\"length\\\"]]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"authority-table\\\",null,[[\\\"authorities\\\",\\\"roleGroup\\\",\\\"panelTitle\\\"],[[22,1,[\\\"authorities\\\"]],[23,[\\\"model\\\",\\\"roleGroup\\\"]],[27,\\\"t\\\",[[27,\\\"concat\\\",[[23,[\\\"translationsPrefix\\\"]],[22,1,[\\\"group\\\",\\\"name\\\"]]],null]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/authorities/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/authorities/others/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    activeTab: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole(\"ROLE_MANAGE_USER_ROLE_INVITATIONS\") ? 'INVITATION_SETTINGS' : 'NOTIFICATION_SETTINGS';\n    }),\n    allNotifications: Ember.computed('model.allNotifications.[]', function () {\n      const principalCompanyId = localStorage.getItem('principalId');\n      return this.get('model.allNotifications').filter(n => n.get('principalCompany.id') === principalCompanyId || !n.get('principalCompany.id')).uniqBy('id');\n    }),\n    proxiedNotifications: Ember.computed('allNotifications', 'model.roleGroupNotifications', function () {\n      return this.get('allNotifications').map(n => {\n        return Ember.ObjectProxy.create({\n          content: n,\n          checked: this.get('model.roleGroupNotifications').getEach('id').includes(n.get('id'))\n        });\n      });\n    }),\n    actions: {\n      setTab(tab) {\n        this.set('activeTab', tab);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/authorities/others/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    model: function (params) {\n      const principalCompanyId = localStorage.getItem('principalId');\n      const roleGroup = this.store.peekRecord('roleGroup', params.id);\n      return Ember.RSVP.hash({\n        roleGroup,\n        transportTypes: this.store.peekAll('transportType').filterBy('company.id', principalCompanyId),\n        columnsAccessCommands: this.store.query('columnsAccessCommand', {\n          roleGroup: roleGroup.get('id')\n        }),\n        roleGroupInvRestriction: this.store.query('role-group-invitation-restriction', {\n          roleGroup: roleGroup.get('id')\n        }),\n        allNotifications: this.store.findAll('notification'),\n        roleGroupNotifications: this.store.query('notification', {\n          roleGroupId: roleGroup.get('id')\n        }),\n        roleGroupStatisticsReports: this.store.query('role-group-statistics-report', {\n          roleGroupId: roleGroup.get('id')\n        }),\n        allStatisticsReports: this.store.query('statistics-report', {\n          fetchAll: true\n        })\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/authorities/others/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"A+CRkA9C\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"authorities-nav-header\\\",null,[[\\\"roleGroup\\\"],[[23,[\\\"model\\\",\\\"roleGroup\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.header\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"model\\\",\\\"roleGroup\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_USER_ROLE_INVITATIONS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info margin-bottom \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"activeTab\\\"]],\\\"INVITATION_SETTINGS\\\"],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.invitationSettings\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"setTab\\\",\\\"INVITATION_SETTINGS\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info margin-bottom \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"activeTab\\\"]],\\\"NOTIFICATION_SETTINGS\\\"],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.notificationSettings\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"setTab\\\",\\\"NOTIFICATION_SETTINGS\\\"]],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info margin-bottom \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"activeTab\\\"]],\\\"STATISTICS_REPORT_SETTINGS\\\"],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"tabs.report\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"setTab\\\",\\\"STATISTICS_REPORT_SETTINGS\\\"]],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info margin-bottom \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"activeTab\\\"]],\\\"TABLE_COLUMNS\\\"],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"tabs.tableColumns\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"setTab\\\",\\\"TABLE_COLUMNS\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"activeTab\\\"]],\\\"INVITATION_SETTINGS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"role-group-invitation-restriction\\\",null,[[\\\"roleGroupId\\\",\\\"roleGroupInvRestriction\\\"],[[23,[\\\"model\\\",\\\"roleGroup\\\",\\\"id\\\"]],[23,[\\\"model\\\",\\\"roleGroupInvRestriction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"activeTab\\\"]],\\\"NOTIFICATION_SETTINGS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"role-group-notification-settings\\\",null,[[\\\"roleGroup\\\",\\\"allNotifications\\\",\\\"roleGroupNotifications\\\"],[[23,[\\\"model\\\",\\\"roleGroup\\\"]],[23,[\\\"allNotifications\\\"]],[23,[\\\"proxiedNotifications\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"activeTab\\\"]],\\\"STATISTICS_REPORT_SETTINGS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"role-group-statistics-report\\\",null,[[\\\"roleGroup\\\",\\\"roleGroupStatisticsReports\\\",\\\"allStatisticsReports\\\"],[[23,[\\\"model\\\",\\\"roleGroup\\\"]],[23,[\\\"model\\\",\\\"roleGroupStatisticsReports\\\"]],[23,[\\\"model\\\",\\\"allStatisticsReports\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"activeTab\\\"]],\\\"TABLE_COLUMNS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"table-columns\\\",null,[[\\\"roleGroup\\\",\\\"transportTypes\\\",\\\"columnsAccessCommands\\\"],[[23,[\\\"model\\\",\\\"roleGroup\\\"]],[23,[\\\"model\\\",\\\"transportTypes\\\"]],[23,[\\\"model\\\",\\\"columnsAccessCommands\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/authorities/others/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/authority-group/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend({\n    idx: _emberData.default.attr('number'),\n    name: _emberData.default.attr('string')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/authority-restriction/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    CHECKPOINT_BASED_AUTHORITY_RESTRICTIONS: Ember.A(['CHECKPOINT_BASED', 'BEFORE_CHECKPOINT_BASED', 'AFTER_CHECKPOINT_BASED']),\n    dateUtils: Ember.inject.service('date-utils'),\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    authority: belongsTo('authority'),\n    task: belongsTo('task'),\n    roleGroup: belongsTo('roleGroup'),\n    authorityRange: attr('string'),\n    assetId: attr('number'),\n    pricingPlan: attr('string'),\n    timeInterval: attr('string'),\n    timeReference: attr('string'),\n    validations: {\n      authority: {\n        presence: {\n          message: 'blankSelect'\n        }\n      },\n      authorityRange: {\n        presence: {\n          message: 'blankSelect'\n        }\n      },\n      task: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.CHECKPOINT_BASED_AUTHORITY_RESTRICTIONS.includes(model.get('authorityRange'))) {\n              return true;\n            }\n\n            return value && value.get('id');\n          },\n          message: 'blankSelect'\n        }]\n      },\n      timeReference: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('authorityRange') !== 'TIME_BASED') {\n              return true;\n            }\n\n            return !!value;\n          },\n          message: 'blankSelect'\n        }]\n      },\n      timeIntervalSign: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('authorityRange') !== 'TIME_BASED') {\n              return true;\n            }\n\n            return !!value;\n          },\n          message: 'blankSelect'\n        }]\n      },\n      timeIntervalValue: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('authorityRange') !== 'TIME_BASED') {\n              return true;\n            }\n\n            return !!value;\n          },\n          message: 'blank'\n        }, {\n          validation: function (key, value, model) {\n            if (model.get('authorityRange') !== 'TIME_BASED') {\n              return true;\n            }\n\n            return value && /[0-9]*/.test(value);\n          },\n          message: 'number'\n        }]\n      },\n      timeIntervalUnit: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('authorityRange') !== 'TIME_BASED') {\n              return true;\n            }\n\n            return !!value;\n          },\n          message: 'blankSelect'\n        }]\n      },\n      assetId: {\n        custom: [{\n          validation: function (key, value, model) {\n            return !model.get('authority.assetType') || value;\n          },\n          message: 'blankSelect'\n        }]\n      }\n    },\n    timeIntervalSign: Ember.computed('timeInterval', function () {\n      if (!this.get('timeInterval')) {\n        return null;\n      }\n\n      return this.get('dateUtils').isNegative(this.get('timeInterval')) ? '-' : '+';\n    }),\n    timeIntervalValue: Ember.computed('timeInterval', function () {\n      return this.get('timeInterval') ? this.get('dateUtils').getAbsoluteValue(this.get('timeInterval')).slice(0, -1) : null;\n    }),\n    timeIntervalUnit: Ember.computed('timeInterval', function () {\n      return this.get('timeInterval') ? this.get('dateUtils').getAbsoluteValue(this.get('timeInterval')).slice(-1) : null;\n    }),\n    conditionIsFulfilled: function (transport) {\n      const currentPricingPlan = this.get('sessionAccount.currentUser.company.pricingPlan');\n\n      if (this.get('pricingPlan') && this.get('pricingPlan') !== currentPricingPlan) {\n        return false;\n      }\n\n      switch (this.get('authorityRange')) {\n        case 'UNLIMITED':\n          return true;\n\n        case 'ACTIVE':\n          return transport.get('active');\n\n        case 'TIME_BASED':\n          return this.timeBasedConditionIsFulfilled(transport);\n\n        case 'BEFORE_CHECKPOINT_BASED':\n          return this.beforeCheckpointBasedConditionIsFulfilled(transport);\n\n        case 'AFTER_CHECKPOINT_BASED':\n          return this.afterCheckpointBasedConditionIsFulfilled(transport);\n\n        case 'ADVICE_RESTRICTION_BASED':\n          return this.adviceRestrictionBasedConditionIsFulfilled(transport);\n\n        case 'ACTIVE_AUCTION_BASED':\n          return this.activeAuctionBasedConditionIsFulfilled(transport);\n\n        case 'OWN_COMPANY_BASED':\n          return this.ownCompanyBasedConditionIsFulfilled(transport);\n\n        case 'NO_ROUTE_OFFER':\n          return this.noRouteOfferBasedConditionIsFulfilled(transport);\n\n        case 'COMPANIES_ADDED_OFFERS_OR_REJECTED_BASED':\n          return this.offersAddedOrRejectedBasedConditionIsFulfilled(transport);\n      }\n    },\n    timeBasedConditionIsFulfilled: function (transport) {\n      const referenceDate = this.findReferenceDate(transport);\n\n      if (!referenceDate) {\n        return true;\n      }\n\n      const latestPossibleDate = this.get('dateUtils').calculateDateFromInterval(referenceDate, this.get('timeInterval'));\n      return latestPossibleDate > new Date();\n    },\n    findConfirmedLocalTaskIds: function (transport) {\n      if (transport.get('id') === null) {\n        return [];\n      }\n\n      return this.get('store').peekAll('checkpoint').filterBy('transport.id', transport.get('id')).filterBy('executionDate').getEach('task.id');\n    },\n    beforeCheckpointBasedConditionIsFulfilled: function (transport) {\n      const confirmedLocalTaskIds = this.findConfirmedLocalTaskIds(transport);\n      const taskId = this.get('task.id');\n      return !confirmedLocalTaskIds.includes(taskId);\n    },\n    afterCheckpointBasedConditionIsFulfilled: function (transport) {\n      const confirmedLocalTaskIds = this.findConfirmedLocalTaskIds(transport);\n      const taskId = this.get('task.id');\n      return confirmedLocalTaskIds.includes(taskId);\n    },\n    adviceRestrictionBasedConditionIsFulfilled: function (transport) {\n      const minAdviceDate = transport.get('minAdviceDate');\n      const maxAdviceDate = transport.get('maxAdviceDate');\n\n      if (!minAdviceDate || !maxAdviceDate) {\n        return true;\n      }\n\n      const earliestWindowStart = transport.get('steps').filterBy('timeWindow.start').getEach('timeWindow.start').sort()[0];\n      const latestWindowStop = transport.get('steps').filterBy('timeWindow.stop').getEach('timeWindow.stop').sort().reverse()[0];\n\n      if (!earliestWindowStart || !latestWindowStop) {\n        return true;\n      }\n\n      return minAdviceDate <= earliestWindowStart && maxAdviceDate >= latestWindowStop;\n    },\n    activeAuctionBasedConditionIsFulfilled: function (transport) {\n      return !transport.get('activeAuction');\n    },\n    noRouteOfferBasedConditionIsFulfilled: function (transport) {\n      const hasRoutes = transport.get('hasConfirmedRouteOffers');\n      const autoRouteOfferPassNotAccepted = transport.get('transaction') ? transport.get('lastTransactionAutoPassNotAccepted') : false;\n      return !hasRoutes || autoRouteOfferPassNotAccepted;\n    },\n    ownCompanyBasedConditionIsFulfilled: function (transport) {\n      if (!transport.get('id')) {\n        return true;\n      }\n\n      const transportCreatorCompanyId = transport.get('creatorCompanyId');\n      const currentUserCompanyId = this.get('sessionAccount.currentUser.company.id');\n      return transportCreatorCompanyId === currentUserCompanyId;\n    },\n    findReferenceDate: function (transport) {\n      switch (this.get('timeReference')) {\n        case 'TRANSPORT_DATE_CREATED':\n          return transport.get('dateCreated');\n\n        case 'EARLIEST_TIME_WINDOW_START_BEFORE_CHANGE':\n        case 'EARLIEST_TIME_WINDOW_START_AFTER_CHANGE':\n        case 'EARLIEST_TIME_WINDOW_CURRENT_DATE':\n          return transport.get('earliestTimeWindowStart');\n\n        case 'LATEST_TIME_WINDOW_STOP':\n          return transport.get('latestTimeWindowStop');\n\n        case 'MIN_ADVICE_DATE':\n          {\n            const stepsWithAdviceDateRestrictions = transport.get('sortedStep').filterBy('minAdviceDate');\n            return stepsWithAdviceDateRestrictions.get('length') > 0 ? stepsWithAdviceDateRestrictions.get('firstObject') : null;\n          }\n      }\n    },\n    name: Ember.computed('authority.name', function () {\n      return this.get('authority.name');\n    }),\n    description: Ember.computed('authority.name', 'authorityRangePhrase', function () {\n      const actionTypeName = this.get('intl').t(`settings.roleGroups.authorityLabels.${this.get('authority.name')}`);\n      const isPossiblePhrase = this.get('authorityRange') === 'BLOCKED' || this.get('authorityRange') === 'CHECKPOINT_BASED' ? '' : this.get('intl').t('settings.roleGroups.actionIsPossible');\n      const pricingPlanPhrase = this.get('pricingPlan') ? this.get('intl').t('settings.roleGroups.pricingPlans', {\n        pricingPlan: this.get('pricingPlan')\n      }) : '';\n      const authorityRangePhrase = this.get('authorityRangePhrase');\n      return `${actionTypeName} - ${pricingPlanPhrase} ${isPossiblePhrase} ${authorityRangePhrase}`;\n    }),\n    authorityRangePhrase: Ember.computed('authorityRange', 'task', 'timeReference', 'timeInterval', function () {\n      const params = {};\n\n      switch (this.get('authorityRange')) {\n        case 'TIME_BASED':\n          params.timeInterval = this.get('dateUtils').getAbsoluteValue(this.get('timeInterval'));\n          params.afterOrBefore = this.get('dateUtils').isNegative(this.get('timeInterval')) ? this.get('intl').t('settings.roleGroups.dateBeforePhrase') : this.get('intl').t('settings.roleGroups.dateAfterPhrase');\n          params.timeReference = this.get('intl').t(`settings.roleGroups.timeReferences.${this.get('timeReference')}`);\n          break;\n\n        case 'CHECKPOINT_BASED':\n        case 'BEFORE_CHECKPOINT_BASED':\n        case 'AFTER_CHECKPOINT_BASED':\n          params.checkpointName = this.get('task.checkpointNameInAppropriateLanguage');\n\n          if (this.get('task.masterTask.id')) {\n            params.checkpointName += ' :: SUBTASK';\n          }\n\n          break;\n      }\n\n      let rangePhrase;\n\n      if (this.get('timeReference') === 'EARLIEST_TIME_WINDOW_CURRENT_DATE') {\n        if (this.get('dateUtils').isNegative(this.get('timeInterval'))) {\n          rangePhrase = 'TIME_BASED_CURRENT_DATE_BEFORE';\n        } else {\n          rangePhrase = 'TIME_BASED_CURRENT_DATE_AFTER';\n        }\n      } else {\n        rangePhrase = this.get('authorityRange');\n      }\n\n      return this.get('intl').t(`settings.roleGroups.authorityRangePhrases.${rangePhrase}`, params);\n    }),\n    authorityRangePhraseInUpperCase: Ember.computed('authorityRangePhrase', function () {\n      return this.get('authorityRangePhrase').toString().toUpperCase();\n    }),\n    transportType: Ember.computed('authority.assetType', 'assetId', function () {\n      const assetType = this.get('authority.assetType');\n\n      if (!assetType) {\n        return null;\n      }\n\n      const assetId = this.get('assetId');\n\n      switch (assetType) {\n        case 'TRANSPORT_TYPE':\n          return this.get('store').peekRecord('transport-type', assetId);\n\n        case 'CUSTOM_FIELD':\n          return this.get('store').peekRecord('custom-field-definition', assetId).get('transportType');\n\n        default:\n          return null;\n      }\n    }),\n    customFieldDefinition: Ember.computed('authority.assetType', 'assetId', function () {\n      const assetType = this.get('authority.assetType');\n      const assetId = this.get('assetId');\n\n      if (!assetType || assetType !== 'CUSTOM_FIELD' || !assetId) {\n        return null;\n      }\n\n      return this.get('store').peekRecord('custom-field-definition', assetId);\n    }),\n    offersAddedOrRejectedBasedConditionIsFulfilled: function (transport) {\n      if (!transport.get('activeAuction')) {\n        return false;\n      }\n\n      const auction = transport.get('activeAuction');\n      const uniqueCompanyOffers = auction.get('offers').filterBy('enabled', true).uniqBy('company.id');\n      return auction.get('companies').length === uniqueCompanyOffers.length + auction.get('uninterestedCompanies').length;\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/authority-restrictions/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_MANAGE_AUTHORITIES'],\n    queryParams: {\n      roleGroupId: {\n        refreshModel: true\n      },\n      transportTypeId: {\n        refreshModel: true\n      },\n      multiSelect: {\n        refreshModel: true\n      }\n    },\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const roleGroup = params.roleGroupId ? this.store.peekRecord('roleGroup', params.roleGroupId) : null;\n      const transportType = this.store.peekRecord('transportType', params.transportTypeId);\n      const authorityRestriction = this.store.createRecord('authority-restriction', {\n        roleGroup: roleGroup\n      });\n      return Ember.RSVP.hash({\n        authorityRestriction: authorityRestriction,\n        transportType: transportType,\n        multiSelect: params.multiSelect\n      });\n    },\n    renderTemplate: function () {\n      this.render('authority-restrictions.edit');\n    },\n    setupController: function (controller, model) {\n      this.controllerFor('authority-restrictions.edit').setProperties({\n        model: model,\n        tasksToSave: []\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/authority-restrictions/edit/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    authoritiesIndexController: Ember.inject.controller('authorities/index'),\n    aggregatedAuthoritiesIndexController: Ember.inject.controller('authorities/aggregate'),\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    // TODO: Zastąpić przez apolloApiService\n    ajaxService: Ember.inject.service('ajax-service'),\n    tasksArray: Ember.computed('model.transportType', function () {\n      return [...this.get('model.transportType.workflow.sortedTasks')];\n    }),\n    cfArray: Ember.computed('model.transportType', function () {\n      return [...this.get('model.transportType.sortedFieldDefinitions')];\n    }),\n    tasksToSave: Ember.computed('model.authorityRestriction.{id,task}', function () {\n      if (this.get('model.authorityRestriction.id')) {\n        return [this.get('model.authorityRestriction.task')];\n      } else {\n        return [];\n      }\n    }),\n    cfsToSave: Ember.computed('model.authorityRestriction.{id,customFieldDefinition}', function () {\n      if (this.get('model.authorityRestriction.id')) {\n        return [this.get('model.authorityRestriction.customFieldDefinition')];\n      } else {\n        return [];\n      }\n    }),\n    errors: Ember.A([]),\n    saveSingle: false,\n    AUTHORITY_RANGES: Ember.A(['UNLIMITED', 'ACTIVE', 'CHECKPOINT_BASED', 'BEFORE_CHECKPOINT_BASED', 'AFTER_CHECKPOINT_BASED', 'TIME_BASED', 'ADVICE_RESTRICTION_BASED', 'ACTIVE_AUCTION_BASED', 'NO_ROUTE_OFFER', 'OWN_COMPANY_BASED', 'COMPANIES_ADDED_OFFERS_OR_REJECTED_BASED']),\n    TIME_REFERENCES: Ember.A(['TRANSPORT_DATE_CREATED', 'EARLIEST_TIME_WINDOW_START_BEFORE_CHANGE', 'EARLIEST_TIME_WINDOW_START_AFTER_CHANGE', 'LATEST_TIME_WINDOW_STOP', 'EARLIEST_TIME_WINDOW_CURRENT_DATE']),\n    SIGN_OPTIONS: Ember.A(['-', '+']),\n    UNIT_OPTIONS: Ember.A(['s', 'm', 'h', 'd']),\n    actionTypes: Ember.computed('sessionAccount.isSuperUser', function () {\n      const authorities = this.get('store').peekAll('authority').filter(a => a.get('assetType'));\n\n      if (this.get('sessionAccount.isSuperUser')) {\n        return authorities;\n      }\n\n      return authorities.filter(a => this.get('sessionAccount.actionTypes').includes(a.get('name')));\n    }),\n    allRequiredFieldsCompleted: Ember.computed('model.authorityRestriction.{authority,authorityRange,timeInterval,timeReference,task}', function () {\n      if (!this.get('model.authorityRestriction.authority') || !this.get('model.authorityRestriction.authorityRange')) {\n        return false;\n      }\n\n      switch (this.get('model.authorityRestriction.authorityRange')) {\n        case 'BEFORE_CHECKPOINT_BASED':\n        case 'AFTER_CHECKPOINT_BASED':\n          return this.get('model.authorityRestriction.task');\n\n        case 'TIME_BASED':\n          return this.get('model.authorityRestriction.timeInterval') && this.get('model.authorityRestriction.timeReference');\n      }\n\n      return true;\n    }),\n    // eslint-disable-next-line ember/no-observers\n    setTimeInterval: Ember.observer('model.authorityRestriction.{timeIntervalSign,timeIntervalValue,timeIntervalUnit}', function () {\n      let sign = this.get('model.authorityRestriction.timeIntervalSign');\n      const value = this.get('model.authorityRestriction.timeIntervalValue');\n      const unit = this.get('model.authorityRestriction.timeIntervalUnit');\n\n      if (!sign || !value || !unit) {\n        return;\n      }\n\n      if (sign === '+') {\n        sign = '';\n      }\n\n      this.get('model.authorityRestriction').set('timeInterval', `${sign}${value}${unit}`);\n    }),\n    customFieldActionType: Ember.computed('model.authorityRestriction.authority', function () {\n      return ['ACCESS_CUSTOM_FIELD', 'UPDATE_CUSTOM_FIELD'].includes(this.get('model.authorityRestriction.authority.name'));\n    }),\n    dependsOnSpecificAsset: Ember.computed('model.authorityRestriction.authority.assetType', function () {\n      const assetType = this.get('model.authorityRestriction.authority.assetType');\n      return assetType && assetType !== 'TRANSPORT_TYPE';\n    }),\n    findAssetOptions: Ember.computed('model.{authorityRestriction.authority.assetType,transportType.id}', function () {\n      const assetType = this.get('model.authorityRestriction.authority.assetType');\n\n      if (!assetType) {\n        return [];\n      }\n\n      const transportTypeId = this.get('model.transportType.id');\n\n      switch (assetType) {\n        case 'CUSTOM_FIELD_DEFINITION':\n          return this.get('store').peekAll('custom-field-definition').filter(cf => cf.get('transportType.id') === transportTypeId);\n\n        default:\n          return [];\n      }\n    }),\n    multiSelect: Ember.computed('model.multiSelect', function () {\n      return this.get('model.multiSelect');\n    }),\n    roleGroups: Ember.computed(function () {\n      const principalCompanyId = localStorage.getItem('principalId');\n      return this.store.peekAll('roleGroup').filterBy('principalCompany.id', principalCompanyId);\n    }),\n    prepareAuthorityRestrictionToSave: function (ar) {\n      if (!ar) {\n        ar = this.get('model.authorityRestriction');\n      }\n\n      const authorityRestriction = ar;\n\n      if (authorityRestriction.get('authority.assetType') === 'TRANSPORT_TYPE' && !authorityRestriction.get('assetId')) {\n        const ttId = this.get('model.transportType.id');\n        authorityRestriction.set('assetId', ttId);\n      }\n\n      if (!authorityRestriction.validate()) {\n        console.log('Authority restriction nie przeszło walidacji..');\n        return false;\n      }\n\n      return authorityRestriction;\n    },\n    actions: {\n      setAssetId: function (item) {\n        if (item && item.id) {\n          this.set('model.authorityRestriction.assetId', item.id);\n        }\n      },\n      save: function () {\n        const self = this;\n        const tasksToSave = this.get('tasksToSave');\n        const cfsToSave = this.get('cfsToSave');\n        const roleGroups = this.get('model.roleGroups');\n        const multiSelect = this.get('multiSelect');\n        const roleGroupAuthorityRestrictionsList = Ember.A();\n\n        if (cfsToSave.length > 0 && cfsToSave.get(0) !== null && !this.get('saveSingle')) {\n          self.send('saveMultipleCfs', cfsToSave);\n          self.set('cfsToSave', []);\n          return;\n        }\n\n        if (tasksToSave.length > 0) {\n          return self.send('saveMultipleTasks', tasksToSave);\n        }\n\n        const authorityRestriction = self.prepareAuthorityRestrictionToSave();\n\n        if (!authorityRestriction) {\n          return;\n        }\n\n        if (multiSelect) {\n          roleGroups.forEach(rg => {\n            roleGroupAuthorityRestrictionsList.pushObject(rg.get('id'));\n          });\n          const data = {\n            authorityRestriction,\n            roleGroupIds: roleGroupAuthorityRestrictionsList\n          };\n          const url = '/authority-restrictions/aggregatedAuthorityRestrictions';\n          self.get('ajaxService').send(url, 'POST', data, true).then(() => {\n            const msg = self.get('intl').t('settings.roleGroups.successUpdate');\n            self.get('aggregatedAuthoritiesIndexController').set('errors', '');\n            self.get('aggregatedAuthoritiesIndexController').set('successMessage', msg);\n            self.transitionToRoute('authorities.aggregate');\n          }).catch(response => {\n            self.get('aggregatedAuthoritiesIndexController').set('errors', response.responseJSON.errors);\n            self.get('aggregatedAuthoritiesIndexController').set('successMessage', '');\n            self.transitionToRoute('authorities.aggregate');\n          });\n        } else {\n          const roleGroupId = authorityRestriction.get('roleGroup.id');\n          const oldId = this.get('model.authorityRestriction.id');\n          const url = `/authority-restrictions/${oldId || ''}`;\n          const method = oldId ? 'PUT' : 'POST';\n          this.get('ajaxService').send(url, method, authorityRestriction.serialize(), true).then(response => {\n            authorityRestriction.unloadRecord();\n            self.get('store').pushPayload(response);\n            self.setProperties({\n              success: true,\n              errors: []\n            });\n            const msg = self.get('intl').t('settings.roleGroups.successUpdate');\n            self.get('authoritiesIndexController').set('successMessage', msg);\n            self.transitionToRoute('authorities.index', roleGroupId);\n          }).catch(response => {\n            self.set('errors', response.errors);\n          });\n        }\n      },\n      saveMultipleCfs: function (cfsToSave) {\n        const self = this;\n        this.set('saveSingle', true);\n        cfsToSave.forEach(cf => {\n          self.send('setAssetId', cf);\n          self.send('save');\n        });\n        this.set('saveSingle', false);\n      },\n      saveMultipleTasks: function (tasksToSave) {\n        const self = this;\n        let roleGroupId = '';\n        const preparedAuthorityRestrictionsToSave = tasksToSave.map(task => {\n          const oAR = self.get('model.authorityRestriction');\n          const ar = self.store.createRecord('authority-restriction', {\n            task,\n            authorityRange: oAR.get('authorityRange'),\n            authority: oAR.get('authority'),\n            roleGroup: oAR.get('roleGroup'),\n            assetId: oAR.get('assetId')\n          });\n          return self.prepareAuthorityRestrictionToSave(ar);\n        });\n\n        if (!preparedAuthorityRestrictionsToSave) {\n          return;\n        }\n\n        const promiseFuncs = preparedAuthorityRestrictionsToSave.map(authorityRestriction => () => {\n          roleGroupId = authorityRestriction.get('roleGroup.id');\n          const oldId = this.get('model.authorityRestriction.id');\n          const url = `/authority-restrictions/${oldId || ''}`;\n          const method = oldId ? 'PUT' : 'POST';\n          return self.get('ajaxService').send(url, method, authorityRestriction.serialize(), true);\n        });\n        this.get('ajaxService').sequence(promiseFuncs).then(response => {\n          self.get('store').pushPayload(response);\n          self.setProperties({\n            success: true,\n            errors: []\n          });\n          const msg = self.get('intl').t('settings.roleGroups.successUpdate');\n          self.get('authoritiesIndexController').set('successMessage', msg);\n          self.get('store').peekAll('authority-restriction').filterBy('id', null).forEach(ar => {\n            ar.unloadRecord();\n          });\n          const oldId = this.get('model.authorityRestriction.id');\n\n          if (oldId) {\n            const oldAr = self.get('store').peekRecord('authority-restriction', oldId);\n\n            if (oldAr) {\n              oldAr.unloadRecord();\n            }\n          }\n\n          self.transitionToRoute('authorities.index', roleGroupId);\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n      cancel: function () {\n        if (this.get('model.multiSelect')) {\n          this.transitionToRoute('authorities.aggregate');\n        } else {\n          const roleGroupId = this.get('model.authorityRestriction.roleGroup.id');\n          this.get('model.authorityRestriction').unloadRecord();\n          this.set('saveMultipleCfs', []);\n          this.set('cfsToSave', []);\n          this.transitionToRoute('authorities.index', roleGroupId);\n        }\n      },\n\n      delete() {\n        const self = this;\n        const authorityRestriction = this.get('model.authorityRestriction');\n        const roleGroupId = authorityRestriction.get('roleGroup.id');\n        authorityRestriction.destroyRecord().then(a => {\n          const msg = self.get('intl').t('settings.roleGroups.successDelete');\n          self.get('authoritiesIndexController').set('successMessage', msg);\n          self.transitionToRoute('authorities.index', roleGroupId);\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/authority-restrictions/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: Ember.A(['ROLE_MANAGE_AUTHORITIES']),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const authorityRestriction = this.store.peekRecord('authority-restriction', params.id);\n      const transportType = authorityRestriction.get('transportType');\n      return Ember.RSVP.hash({\n        authorityRestriction,\n        transportType\n      });\n    },\n    actions: {\n      willTransition: function () {\n        // eslint-disable-next-line ember/no-controller-access-in-routes\n        this.controllerFor('authority-restrictions.edit').setProperties({\n          success: false,\n          errors: []\n        });\n        return true;\n      }\n    },\n    setupController: function (controller, model) {\n      const taskToSaveId = model.authorityRestriction.task.get('id'); // eslint-disable-next-line ember/no-controller-access-in-routes\n\n      this.controllerFor('authority-restrictions.edit').setProperties({\n        model,\n        tasksToSave: taskToSaveId ? [model.authorityRestriction.task] : Ember.A([]),\n        cfsToSave: [model.authorityRestriction.customFieldDefinition]\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/authority-restrictions/edit/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"HOEG55YR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"rg\\\",\\\"task\\\",\\\"timeIntervalUnit\\\",\\\"timeIntervalSign\\\",\\\"timeReference\\\",\\\"authorityRange\\\",\\\"customFieldDefinition\\\",\\\"pricingPlan\\\",\\\"authority\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-narrow\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"multiSelect\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.mulitRolesLabel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"roleGroup\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\" - \\\"],[1,[23,[\\\"model\\\",\\\"transportType\\\",\\\"label\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.actionType\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"role-group-authority\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-8 form-control-static \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"errors\\\",\\\"authority\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[12,\\\"data-field-name\\\",[28,[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"authority\\\",\\\"name\\\"]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"disabled\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"matcher\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"id\\\"]],true,[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"authority\\\"]],[23,[\\\"actionTypes\\\"]],true,[27,\\\"match-translation\\\",null,[[\\\"key\\\",\\\"propertyName\\\"],[\\\"settings.roleGroups.authorityLabels\\\",\\\"name\\\"]]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"authority\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"settings.roleGroups.authorityLabels.\\\",[22,9,[\\\"name\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[9]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"authorityRestriction\\\"]],\\\"authority\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block col-sm-offset-3\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"authority\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"settings.roleGroups.actionTypeDescription.\\\",[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"authority\\\",\\\"name\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.actionTypeDescription.chooseActionType\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_COMPANY_PRICING_PLAN\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"errors\\\",\\\"pricingPlan\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"company.pricingPlan\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"allowClear\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"pricingPlan\\\"]],[23,[\\\"sessionAccount\\\",\\\"pricingPlans\\\"]],false,true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"pricingPlan\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"pricingPlans.\\\",[22,8,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"authorityRestriction\\\"]],\\\"pricingPlan\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"dependsOnSpecificAsset\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"errors\\\",\\\"assetId\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.customFieldDefinition\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select-multiple\\\",null,[[\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[[23,[\\\"cfsToSave\\\"]],[23,[\\\"cfArray\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"cfsToSave\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,7,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"authorityRestriction\\\"]],\\\"customFieldDefinition\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.authorityRangeLabel\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"role-group-authority-range\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-8 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"errors\\\",\\\"authorityRange\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[12,\\\"data-field-name\\\",[28,[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"authorityRange\\\"]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"authorityRange\\\"]],[23,[\\\"AUTHORITY_RANGES\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"authorityRange\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"settings.roleGroups.authorityRangeLabels.\\\",[22,6,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"authorityRestriction\\\"]],\\\"authorityRange\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"authorityRange\\\"]],\\\"TIME_BASED\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.timeReferenceLabel\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-8 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"errors\\\",\\\"timeReference\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"timeReference\\\"]],[23,[\\\"TIME_REFERENCES\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"timeReference\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"settings.roleGroups.timeReferences.\\\",[22,5,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"authorityRestriction\\\"]],\\\"timeReference\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.timeIntervalLabel\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-2 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"errors\\\",\\\"timeIntervalSign\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"timeIntervalSign\\\"]],[23,[\\\"SIGN_OPTIONS\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"timeIntervalSign\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,4,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"authorityRestriction\\\"]],\\\"timeIntervalSign\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-4 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"errors\\\",\\\"timeIntervalValue\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"required\\\",\\\"class\\\",\\\"value\\\"],[\\\"text\\\",\\\"required\\\",\\\"form-control\\\",[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"timeIntervalValue\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"timeIntervalValue\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-2 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"errors\\\",\\\"timeIntervalUnit\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"timeIntervalUnit\\\"]],[23,[\\\"UNIT_OPTIONS\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"timeIntervalUnit\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,3,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"authorityRestriction\\\"]],\\\"timeIntervalUnit\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"authorityRange\\\"]],[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"CHECKPOINT_BASED_AUTHORITY_RESTRICTIONS\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"errors\\\",\\\"task\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.checkpoint\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select-multiple\\\",null,[[\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[[23,[\\\"tasksToSave\\\"]],[23,[\\\"tasksArray\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"tasksToSave\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"if\\\",[[22,2,[\\\"masterTask\\\"]],\\\"SUB TASK :: \\\"],null],false],[1,[22,2,[\\\"checkpointNameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"authorityRestriction\\\"]],\\\"task\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"allRequiredFieldsCompleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block col-sm-offset-3\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"model\\\",\\\"authorityRestriction\\\",\\\"description\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"multiSelect\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.selectRoles\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select-multiple\\\",null,[[\\\"id\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"renderInPlace\\\",\\\"onchange\\\"],[\\\"role-groups\\\",[23,[\\\"model\\\",\\\"roleGroups\\\"]],[23,[\\\"roleGroups\\\"]],true,true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"roleGroups\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 form-buttons\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"settings.roleGroups.sureToDelete\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/authority-restrictions/edit/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/authority/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend({\n    intl: Ember.inject.service(),\n    idx: _emberData.default.attr('number'),\n    name: _emberData.default.attr('string'),\n    canBeManaged: _emberData.default.attr('boolean'),\n    assignedToPricingPlan: _emberData.default.attr('boolean'),\n    group: _emberData.default.belongsTo('authorityGroup'),\n    assetType: _emberData.default.attr('string'),\n    description: Ember.computed('name', function () {\n      return this.get('intl').t(`settings.roleGroups.generalAuthorityDescriptions.${this.get('name')}`);\n    }),\n    authoritySearchField: Ember.computed('name', function () {\n      return this.get('intl').t(`settings.roleGroups.authorityLabels.${this.get('name')}`);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/base-recurring-transport/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.BaseRecurringTransportModel = _exports.BaseRecurringTransportValidations = void 0;\n  const {\n    Model\n  } = _emberData.default;\n  const BaseRecurringTransportValidations = {\n    startDate: {\n      presence: {\n        message: 'blank'\n      }\n    },\n    endDate: {\n      presence: {\n        message: 'blank'\n      },\n      custom: [{\n        validation: function (key, value, model) {\n          const startDate = model.get('startDate');\n\n          if (!startDate || !value) {\n            return true;\n          }\n\n          return moment(value).isAfter(moment(startDate));\n        },\n        message: function (key, value, model) {\n          return model.get('intl').t('periodicTransport.errors.endDateMustBeAfterStartDate');\n        }\n      }]\n    },\n    frequency: {\n      custom: [{\n        validation: function (key, value) {\n          return ['DAILY', 'WEEKLY', 'MONTHLY'].includes(value);\n        },\n        message: function (key, value, model) {\n          return model.get('intl').t('periodicTransport.errors.incorrectRangeOption');\n        }\n      }, {\n        validation: function (key, value, model) {\n          const startDate = model.get('startDate');\n          const endDate = model.get('endDate');\n\n          if (!startDate || !endDate || !value) {\n            return true;\n          }\n\n          const interval = model.MAX_DAY_RANGE[value].interval;\n          const unit = model.MAX_DAY_RANGE[value].unit;\n          return moment(endDate).diff(moment(startDate), unit) <= interval;\n        },\n        message: function (key, value, model) {\n          const interval = model.MAX_DAY_RANGE[value].interval;\n          const unit = model.MAX_DAY_RANGE[value].unit;\n          const intl = model.get('intl');\n          const rangeTranslation = intl.t(`periodicTransport.frequencies.${value}`);\n          const intervalTranslation = intl.t(`common.interval.${unit}`, {\n            count: interval\n          });\n          return intl.t('periodicTransport.errors.wrongDateRange', {\n            range: rangeTranslation,\n            interval: intervalTranslation\n          });\n        }\n      }]\n    },\n    dayNumbers: {\n      custom: [{\n        validation: function (key, value, model) {\n          if (model.get('frequency') !== 'WEEKLY') {\n            return true;\n          }\n\n          return !!value && value.length > 0;\n        },\n        message: function (key, value, model) {\n          return model.get('intl').t('periodicTransport.errors.chooseAtLeastOneDay');\n        }\n      }, {\n        validation: function (key, value, model) {\n          if (model.get('frequency') !== 'WEEKLY' || !model.get('startDate')) {\n            return true;\n          }\n\n          let startDateDayIndex = moment(model.get('startDate')).day(); // moment.js indeksuje dni od 0 - niedziela jest pierwszym dniem tygodnia z indeksem 0\n          // my indeksujemy od 1 - poniedziałek jest pierwszym dniem tygodnia z indeksem 1\n          // zatem jeśli pierwszym dniem awizacji będzie niedziela musi skorygowac indeks\n\n          if (startDateDayIndex === 0) {\n            startDateDayIndex = 7;\n          }\n\n          return value.search(startDateDayIndex) > -1;\n        },\n        message: function (key, value, model) {\n          return model.get('intl').t('periodicTransport.errors.chooseFirstDayOfPeriodicTransport');\n        }\n      }]\n    }\n  };\n  _exports.BaseRecurringTransportValidations = BaseRecurringTransportValidations;\n  const BaseRecurringTransportModel = Model.extend(_modelValidator.default, {\n    intl: Ember.inject.service(),\n    frequency: _emberData.default.attr('string'),\n    dayNumbers: _emberData.default.attr('string'),\n    startDate: _emberData.default.attr('date'),\n    endDate: _emberData.default.attr('date'),\n    MAX_DAY_RANGE: Ember.A({\n      DAILY: {\n        interval: 31,\n        unit: 'd'\n      },\n      WEEKLY: {\n        interval: 61,\n        unit: 'd'\n      },\n      MONTHLY: {\n        interval: 13,\n        unit: 'M'\n      }\n    })\n  });\n  _exports.BaseRecurringTransportModel = BaseRecurringTransportModel;\n  var _default = {\n    BaseRecurringTransportModel,\n    BaseRecurringTransportValidations\n  };\n  _exports.default = _default;\n});","define(\"apollo/pods/blockade/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend({\n    section: _emberData.default.belongsTo('section', {\n      async: true\n    }),\n    notes: _emberData.default.attr('string'),\n    deactivateNotes: _emberData.default.attr('string'),\n    dateCreated: _emberData.default.attr('date'),\n    active: _emberData.default.attr('boolean', {})\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/carriers/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"apollo/mixins/menu-mixin\"], function (_exports, _authenticatedRouteMixin, _menuMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _menuMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_CARRIERS_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      params.max = this.get('sessionAccount.currentUser.maxRowsInCompaniesTable') || 10;\n      params.page = params.page || 1;\n      params.principalCompanyId = localStorage.getItem('principalId');\n      const partnershipTypesNames = this.store.peekAll('partnership-type').map(pt => pt.get('name'));\n      params.partnershipTypesNames = partnershipTypesNames.filter(name => name === 'CARRIER' || name === 'OPERATOR');\n      return this.store.query('company', params);\n    },\n    renderTemplate: function () {\n      this.render('companies.index');\n    },\n    setupController: function (controller, model) {\n      this.controllerFor('companies.index').setProperties({\n        model: model,\n        totalPages: model.get('meta.totalPages'),\n        showCarriersTable: true\n      });\n    },\n\n    activate() {\n      this.activateCurrentTab('CARRIERS_TAB');\n    },\n\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          info: null,\n          errors: null,\n          successMessage: null\n        });\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/checkpoint-confirmation-modal/controller\", [\"exports\", \"apollo/mixins/transports-mixin\", \"apollo/mixins/advice-utils-mixin\", \"apollo/models/checkpoint-confirmation-modal\", \"apollo/utils/parsers/numberParsers\"], function (_exports, _transportsMixin, _adviceUtilsMixin, _checkpointConfirmationModal, _numberParsers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_transportsMixin.default, _adviceUtilsMixin.default, {\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    ajaxService: Ember.inject.service('ajax-service'),\n    checkpointApiService: Ember.inject.service('api.checkpoint-api-service'),\n    weightService: Ember.inject.service('weight-service'),\n    createTransportController: Ember.inject.controller('transports/modals/create-transport'),\n    errors: Ember.A(),\n    selectedWarehouseLocations: Ember.A([]),\n    checkpoint: Ember.computed.reads('model.checkpointModel'),\n    weight: Ember.computed.reads('model.weight'),\n    isOverweight: Ember.computed.reads('model.isOverweight'),\n    truckTypeRequired: Ember.computed.reads('model.truckTypeRequired'),\n    requireTransportPackaging: Ember.computed('transport.truckType', function () {\n      return this.get('transport.truckType.requireTransportPackaging');\n    }),\n    isLoading: false,\n    step: Ember.computed.reads('checkpoint.step'),\n    transport: Ember.computed('checkpoint.transport.id', function () {\n      const transportId = this.get('checkpoint.transport.id');\n      return this.get('store').peekRecord('transport', transportId);\n    }),\n    title: Ember.computed('checkpoint.id', function () {\n      return `${this.get('intl').t('checkpoints.confirm')}: ${this.get('checkpoint.name')}`;\n    }),\n    firstUnconfirmedCheckpoint: Ember.computed('transport.firstUnconfirmedCheckpoint', function () {\n      return this.get('transport.firstUnconfirmedCheckpoint');\n    }),\n    warehouseLocationDisabled: Ember.computed('transport.transportType.authorityRestrictions.@each.authorityRange', function () {\n      return !this.get('transport').actionCanBePerformed('ROLE_EDIT_WAREHOUSE_LOCATION');\n    }),\n    visibleCustomFieldsPairsWithCurrentTaskBlockade: Ember.computed('firstUnconfirmedCheckpoint.customFieldsPairsWithCurrentTaskBlockade', function () {\n      const self = this;\n      const customFieldsPairsWithCurrentTaskBlockade = self.get('firstUnconfirmedCheckpoint.customFieldsPairsWithCurrentTaskBlockade');\n      return customFieldsPairsWithCurrentTaskBlockade.filter(pair => {\n        return !pair.value.value && !pair.value.option || self.shouldBeVisible(pair);\n      });\n    }),\n    classes: Ember.computed('visibleCustomFieldsPairsWithCurrentTaskBlockade.length', 'requireTransportPackaging', function () {\n      const customFieldsLength = this.get('visibleCustomFieldsPairsWithCurrentTaskBlockade.length');\n      return customFieldsLength > Number.parseInt(this.get('customFieldSplitValue')) || this.get('requireTransportPackaging') ? 'super-wide-modal' : '';\n    }),\n    whlRequired: false,\n    customFieldSplitValue: Ember.computed(function () {\n      return this.get('sessionAccount').getSettingValue('CUSTOM_FIELD_SPLIT_VALUE');\n    }),\n    shouldBeVisible: function (pair) {\n      return pair.value.get('isVisibleBasedOnDefinition') && pair.value.get('isVisibleBasedOnAuthorityRestrictions');\n    },\n    toggleLoading: function () {\n      this.set('isLoading', !this.get('isLoading'));\n    },\n    actions: {\n      async confirmCheckpoint(checkpoint) {\n        try {\n          this.toggleLoading();\n          checkpoint.set('isDuringAction', true);\n          const customFieldValues = this.get('visibleCustomFieldsPairsWithCurrentTaskBlockade').map(cfPair => cfPair.get('value'));\n          customFieldValues.filterBy('definition.isNumberType').forEach(pair => {\n            if (pair.get('value')) {\n              pair.set('value', _numberParsers.default.getParsableNumber(pair.get('value')));\n            }\n          });\n          const weight = this.get('weight');\n          const truckType = this.get('transport.truckType.id');\n\n          if (!this.validateWeightAndCustomFields(weight, customFieldValues)) {\n            this.toggleLoading();\n            return;\n          }\n\n          if (!this.validateWarehouseLocations(checkpoint)) {\n            this.toggleLoading();\n            return;\n          }\n\n          if (!this.validateTruckType()) {\n            this.toggleLoading();\n            return;\n          }\n\n          const customFieldValuesSerialized = customFieldValues.map(cfv => cfv.serialize({\n            includeId: true\n          }));\n\n          const modalDataModel = _checkpointConfirmationModal.default.create({\n            checkpoint: checkpoint.get('id'),\n            warehouseLocations: this.get('selectedWarehouseLocations').map(wl => wl.get('id')),\n            customFieldValues: customFieldValuesSerialized,\n            weight,\n            truckType\n          });\n\n          const savedDataResponse = await this.get('checkpointApiService').saveModalData(modalDataModel);\n\n          if (!savedDataResponse.ok) {\n            this.set('errors', [this.get('intl').t('common.defaultError')]);\n            return;\n          }\n\n          await this.get('checkpointService').confirmAndRefresh(checkpoint);\n\n          if (this.get('isOverweight')) {\n            await this.get('weightService').saveOverweightNote(checkpoint);\n          }\n\n          this.send('hideModal');\n          this.toggleLoading();\n        } catch (e) {\n          this.set('errors', [e.message]);\n          this.toggleLoading();\n          console.error(e);\n        } finally {\n          checkpoint.set('isDuringAction', false);\n        }\n      },\n\n      rejectCheckpoint(checkpoint) {\n        const self = this;\n        self.get('transport').reload().then(transport => {\n          this.executeAction(self, checkpoint, transport, function () {\n            self.send('reject', checkpoint);\n          });\n        });\n      },\n\n      cancel(checkpoint) {\n        if (this.get('weight')) {\n          this.get('weight').rollbackAttributes();\n        }\n\n        if (checkpoint.get('hasWarehouseLocationBlockade')) {\n          const locations = checkpoint.get('step.stepWarehouseLocations.length') ? checkpoint.get('step.stepWarehouseLocations.length') : [];\n\n          if (locations > 0) {\n            this.set('checkpoint.step.stepWarehouseLocations', Ember.A([]));\n          }\n\n          this.set('selectedWarehouseLocations', Ember.A([]));\n        }\n\n        this.reset(checkpoint);\n      }\n\n    },\n\n    validateWeightAndCustomFields(weight, customFieldValues) {\n      if (weight && !weight.validate()) {\n        return false;\n      }\n\n      if (customFieldValues.length && customFieldValues.some(cfv => !cfv.validate())) {\n        return false;\n      }\n\n      return true;\n    },\n\n    validateWarehouseLocations(checkpoint) {\n      if (checkpoint.get('hasWarehouseLocationBlockade')) {\n        this.set('whlRequired', true);\n        return !!this.get('selectedWarehouseLocations').length;\n      }\n\n      this.set('whlRequired', false);\n      return true;\n    },\n\n    validateTruckType() {\n      if (!this.get('transport').validate({\n        only: ['truckType']\n      })) {\n        return false;\n      }\n\n      return true;\n    },\n\n    reset(checkpoint) {\n      checkpoint.set('isDuringAction', false);\n      this.send('hideModal');\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/checkpoint-confirmation-modal/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"6z4t+O3M\",\n    \"block\": \"{\\\"symbols\\\":[\\\"pair\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"showCancelButton\\\",\\\"cancel\\\",\\\"classNames\\\"],[[23,[\\\"title\\\"]],true,[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\",[23,[\\\"checkpoint\\\"]]],null],[23,[\\\"classes\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal row padding-bottom\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"visibleCustomFieldsPairsWithCurrentTaskBlockade\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"transport\\\",\\\"id\\\"]],[22,1,[\\\"definition\\\",\\\"visibleDuringTransportCreation\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[22,1,[\\\"value\\\",\\\"errors\\\",\\\"length\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12 control-label\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"definition\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"value\\\",\\\"changeMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"alert-text\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-exclamation-circle\\\"],[12,\\\"title\\\",[28,[[22,1,[\\\"value\\\",\\\"changeMessage\\\"]]]]],[9],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[11,\\\"data-field-type\\\",\\\"custom-field\\\"],[12,\\\"data-field-name\\\",[28,[[22,1,[\\\"definition\\\",\\\"englishNameTrimmed\\\"]]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"transport/custom-fields-section/custom-field\\\",null,[[\\\"pair\\\",\\\"transport\\\"],[[22,1,[]],[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[4,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"task\\\",\\\"weighingIncluded\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"checkpoint/weight-input\\\",null,[[\\\"checkpoint\\\",\\\"weight\\\"],[[23,[\\\"checkpoint\\\"]],[23,[\\\"weight\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"hasWarehouseLocationBlockade\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"warehouse-location/multiple-select\\\",null,[[\\\"inputArray\\\",\\\"options\\\",\\\"step\\\",\\\"required\\\"],[[23,[\\\"selectedWarehouseLocations\\\"]],[23,[\\\"step\\\",\\\"stepWarehouseLocationsLabels\\\"]],[23,[\\\"step\\\"]],[23,[\\\"whlRequired\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"truckTypeRequired\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"trucks/truck-type-select\\\",null,[[\\\"transportType\\\",\\\"model\\\",\\\"size\\\"],[[23,[\\\"transport\\\",\\\"transportType\\\"]],[23,[\\\"transport\\\"]],\\\"big\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"requireTransportPackaging\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"transport/transport-packages-section\\\",null,[[\\\"transport\\\"],[[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"isOverweight\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 padding-bottom\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-danger\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.weightSection.overweightMessage\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons padding-top-big\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"task\\\",\\\"canBeConfirmedByRole\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[12,\\\"disabled\\\",[28,[[27,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"isLoading\\\"]],[23,[\\\"checkpoint\\\",\\\"confirmButtonShouldBeDisabled\\\"]]],null],\\\"disabled\\\"],null]]]],[11,\\\"class\\\",\\\"btn btn-sm btn-primary btn-wide\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isLoading\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"task\\\",\\\"weighingIncluded\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"checkpoints.confirm\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"checkpoint\\\",\\\"altCheckpointLabel\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"checkpoints.confirm\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"checkpoint\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"step\\\",\\\"warehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"small\\\"],[9],[0,\\\"\\\\n                            (\\\"],[1,[23,[\\\"checkpoint\\\",\\\"step\\\",\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\")\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"confirmCheckpoint\\\",[23,[\\\"checkpoint\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"statuses.waitingForConfirmation\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"checkpoint\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\",[23,[\\\"chceckpoint\\\"]]]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/checkpoint-confirmation-modal/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/checkpoint-rejection-modal/controller\", [\"exports\", \"apollo/mixins/transports-mixin\", \"apollo/mixins/advice-utils-mixin\", \"apollo/models/checkpoint-confirmation-modal\"], function (_exports, _transportsMixin, _adviceUtilsMixin, _checkpointConfirmationModal) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_transportsMixin.default, _adviceUtilsMixin.default, {\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    ajaxService: Ember.inject.service('ajax-service'),\n    checkpointService: Ember.inject.service('checkpoint-service'),\n    checkpointApiService: Ember.inject.service('api.checkpoint-api-service'),\n    weightService: Ember.inject.service('weight-service'),\n    createTransportController: Ember.inject.controller('transports/modals/create-transport'),\n    errors: Ember.A(),\n    selectedWarehouseLocations: Ember.A([]),\n    checkpoint: Ember.computed.reads('model.checkpoint'),\n    isLoading: false,\n    step: Ember.computed.reads('checkpoint.step'),\n    transport: Ember.computed.reads('checkpoint.transport'),\n    title: Ember.computed('checkpoint.id', function () {\n      return `${this.get('intl').t('checkpoints.confirm')}: ${this.get('checkpoint.name')}`;\n    }),\n    firstUnconfirmedCheckpoint: Ember.computed('transport.firstUnconfirmedCheckpoint', function () {\n      return this.get('transport.firstUnconfirmedCheckpoint');\n    }),\n    visibleCustomFieldsPairsWithCurrentTaskBlockade: Ember.computed('firstUnconfirmedCheckpoint.customFieldsPairsWithCurrentTaskBlockade', function () {\n      const self = this;\n      const customFieldsPairsWithCurrentTaskBlockade = self.get('firstUnconfirmedCheckpoint.customFieldsPairsWithCurrentTaskBlockade');\n      return customFieldsPairsWithCurrentTaskBlockade.filter(pair => {\n        return !pair.value.value && !pair.value.option || self.shouldBeVisible(pair);\n      });\n    }),\n    classes: Ember.computed('visibleCustomFieldsPairsWithCurrentTaskBlockade.length', function () {\n      const customFieldsLength = this.get('visibleCustomFieldsPairsWithCurrentTaskBlockade.length');\n      return customFieldsLength > Number.parseInt(this.get('customFieldSplitValue')) ? 'super-wide-modal' : '';\n    }),\n    customFieldSplitValue: Ember.computed(function () {\n      return this.get('sessionAccount').getSettingValue('CUSTOM_FIELD_SPLIT_VALUE');\n    }),\n    shouldBeVisible: function (pair) {\n      return pair.value.get('isVisibleBasedOnDefinition') && pair.value.get('isVisibleBasedOnAuthorityRestrictions');\n    },\n    toggleLoading: function () {\n      this.set('isLoading', !this.get('isLoading'));\n    },\n    actions: {\n      async rejectCheckpoint(checkpoint) {\n        try {\n          const customFieldValues = this.get('visibleCustomFieldsPairsWithCurrentTaskBlockade').map(cfPair => cfPair.get('value'));\n\n          if (customFieldValues.length && customFieldValues.map(cfv => cfv.validate()).some(isValid => isValid === false)) {\n            return;\n          }\n\n          const customFieldValuesSerialized = customFieldValues.map(cfv => cfv.serialize({\n            includeId: true\n          }));\n\n          const modalDataModel = _checkpointConfirmationModal.default.create({\n            checkpoint: checkpoint.get('id'),\n            customFieldValues: customFieldValuesSerialized\n          });\n\n          const savedDataResponse = await this.get('checkpointApiService').saveModalData(modalDataModel);\n\n          if (!savedDataResponse.ok) {\n            this.set('errors', [this.get('intl').t('common.defaultError')]);\n            return;\n          }\n\n          const rejectResponse = await this.get('checkpointService').reject(checkpoint);\n\n          if (!rejectResponse.ok) {\n            this.set('errors', [this.get('intl').t('common.defaultError')]);\n            return;\n          }\n\n          await checkpoint.reload();\n          this.send('hideModal');\n        } catch (e) {\n          console.error(e);\n        }\n      },\n\n      cancel(checkpoint) {\n        this.reset(checkpoint);\n      }\n\n    },\n\n    reset(checkpoint) {\n      checkpoint.set('isDuringAction', false);\n      this.send('hideModal');\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/checkpoint-rejection-modal/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"vP8fQg+7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"pair\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"showCancelButton\\\",\\\"cancel\\\",\\\"classNames\\\"],[[23,[\\\"title\\\"]],true,[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\",[23,[\\\"checkpoint\\\"]]],null],[23,[\\\"classes\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal row\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"visibleCustomFieldsPairsWithCurrentTaskBlockade\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"transport\\\",\\\"id\\\"]],[22,1,[\\\"definition\\\",\\\"visibleDuringTransportCreation\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[22,1,[\\\"value\\\",\\\"errors\\\",\\\"length\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12 control-label\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"definition\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"value\\\",\\\"changeMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"alert-text\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-exclamation-circle\\\"],[12,\\\"title\\\",[28,[[22,1,[\\\"value\\\",\\\"changeMessage\\\"]]]]],[9],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[11,\\\"data-field-type\\\",\\\"custom-field\\\"],[12,\\\"data-field-name\\\",[28,[[22,1,[\\\"definition\\\",\\\"englishNameTrimmed\\\"]]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"transport/custom-fields-section/custom-field\\\",null,[[\\\"pair\\\",\\\"transport\\\"],[[22,1,[]],[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons padding-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row bold margin-bottom-big text-center\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"checkpoint.rejectConfirm\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"task\\\",\\\"canBeRejectedByRole\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-sm btn-danger btn-wide\\\"],[11,\\\"data-button-name\\\",\\\"reject-checkpoint\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"checkpoint.reject\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"checkpoint\\\",\\\"name\\\"]],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"rejectCheckpoint\\\",[23,[\\\"checkpoint\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\",[23,[\\\"chceckpoint\\\"]]]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/checkpoint-rejection-modal/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/checkpoint/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\", \"ember-data/model\"], function (_exports, _emberData, _modelValidator, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    languageService: Ember.inject.service('language-service'),\n    dateFormatterService: Ember.inject.service('date.date-formatter-service'),\n    transport: belongsTo('transport', {\n      async: true,\n      inverse: 'checkpoints'\n    }),\n    step: belongsTo('step', {\n      async: true\n    }),\n    task: belongsTo('task', {\n      async: true\n    }),\n    confirmator: belongsTo('user', {\n      async: true\n    }),\n    expectedDate: _emberData.default.attr('date'),\n    alertDate: _emberData.default.attr('date'),\n    executionDate: _emberData.default.attr('date'),\n    rejectionDate: _emberData.default.attr('date'),\n    idx: _emberData.default.attr('number'),\n    checkpointName: _emberData.default.attr('string'),\n    blockadeReason: attr('string'),\n    isBlocked: attr('boolean'),\n    blockadeRequester: belongsTo('user', {\n      async: true\n    }),\n    skipGeneratingSubtasks: attr('boolean'),\n    ACTIONS: Object.freeze({\n      CONFIRM: 'CONFIRM',\n      REJECT: 'REJECT',\n      BLOCK: 'BLOCK'\n    }),\n    validations: {\n      executionDate: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!value) {\n              return true;\n            }\n\n            const previousCheckpoint = model.get('transport.sortedCheckpoints').reverse().find(ch => {\n              return ch.get('executionDate') && ch.get('id') !== model.get('id');\n            });\n            const isDateLaterThanPreviousCheckpoint = value > previousCheckpoint.get('executionDate');\n            const isDateInPast = value < new Date();\n            return isDateInPast && isDateLaterThanPreviousCheckpoint;\n          },\n          message: 'isInPast'\n        }, {\n          validation: function (key, value, model) {\n            if (model.get('task.userHasToAddCheckpointConfirmationDate') && !value) {\n              return false;\n            }\n\n            return true;\n          },\n          message: 'blank'\n        }]\n      },\n      blockadeReason: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('task.canBeBlocked')) {\n              return true;\n            }\n\n            if (!model.get('blockadeRequester.id')) {\n              return true;\n            }\n\n            return value;\n          },\n          message: 'blank'\n        }, {\n          validation: function (key, value) {\n            if (!value) {\n              return true;\n            }\n\n            return value.length < 255;\n          },\n          message: 'length'\n        }]\n      }\n    },\n    isLate: Ember.computed('executionDate', 'expectedDate', function () {\n      return !this.get('isConfirmed') && this.get('expectedDate').getTime() <= new Date().getTime();\n    }),\n    wasLate: Ember.computed('executionDate', 'expectedDate', function () {\n      if (this.get('executionDate') === null) {\n        return false;\n      } else {\n        return this.get('expectedDate') < this.get('executionDate');\n      }\n    }),\n    isConfirmed: Ember.computed('executionDate', 'confirmator.id', function () {\n      return this.get('executionDate') !== null && this.get('confirmator.id');\n    }),\n    isRejected: Ember.computed('rejectionDate', function () {\n      return this.get('rejectionDate') !== null;\n    }),\n    name: Ember.computed('task.{checkpointName,checkpointNameEn}', function () {\n      const propertyName = this.get('languageService').findProperLanguageVersion('checkpointName', 'checkpointNameEn');\n      return this.get('task').get(propertyName);\n    }),\n    altCheckpointName: Ember.computed('task.{altCheckpointName,altCheckpointNameEn}', function () {\n      const propertyName = this.get('languageService').findProperLanguageVersion('altCheckpointName', 'altCheckpointNameEn');\n      return this.get('task').get(propertyName);\n    }),\n    altCheckpointColor: Ember.computed('task.altCheckpointColor', function () {\n      if (this.get('task.altCheckpointColor')) {\n        return Ember.String.htmlSafe('background-color: ' + this.get('task.altCheckpointColor') + ';');\n      }\n\n      return null;\n    }),\n    altCheckpointLabel: Ember.computed('name', 'altCheckpointName', function () {\n      const altCheckpointName = this.get('altCheckpointName');\n      const checkpointName = this.get('name');\n      const taskIncludesWeighing = this.get('task.weighingIncluded');\n      const warehouseIncludesWeighing = this.get('step.warehouse.weighingIncluded');\n\n      if (taskIncludesWeighing && !warehouseIncludesWeighing) {\n        return checkpointName;\n      }\n\n      return altCheckpointName || checkpointName;\n    }),\n    stageName: Ember.computed('task.stageName', 'name', function () {\n      const propertyName = this.get('languageService').findProperLanguageVersion('task.stageName', 'task.stageNameEn');\n      return this.get(propertyName) || this.get('intl').t('task.defaultStagePrefix') + ' ' + this.get('name');\n    }),\n    stageNameEnTrimmed: Ember.computed('task.stageNameEn', 'step.warehouse.nameInAppropriateLanguage', function () {\n      let stageNameEn = this.get('task.stageNameEn') ? this.get('task.stageNameEn') : this.get('intl').t('task.defaultStagePrefix') + ' ' + this.get('name');\n\n      if (this.get('step.warehouse')) {\n        stageNameEn = stageNameEn.concat(' ', this.get('step.warehouse.nameInAppropriateLanguage'));\n      }\n\n      return stageNameEn.replace(/ /g, '-');\n    }),\n    checkpointGroup: Ember.computed('task.checkpointGroup', function () {\n      return this.get('task.checkpointGroup');\n    }),\n    idxInGroup: Ember.computed('task.idxInGroup', function () {\n      return this.get('task.idxInGroup');\n    }),\n    tracked: Ember.computed('task.tracked', function () {\n      return this.get('task.tracked');\n    }),\n    currentWeight: Ember.computed('transport.enabledWeights.@each.enabled', function () {\n      const weights = this.get('transport.enabledWeights').filterBy('enabled');\n      return weights.filter(w => w.get('task.id') === this.get('task.id')).get('firstObject');\n    }),\n    hasUnsynchronizedWeight: Ember.computed('currentWeight', function () {\n      return localStorage['weight_'.concat(this.get('task.id'), '_', this.get('transport.id'))];\n    }),\n    showNetWeight: Ember.computed('checkpoint.task.isLastWeighingTask', 'transport.netWeight', function () {\n      const isWarehouseWithWeighing = this.get('step.warehouse.weighingIncluded');\n      const entryWeightTaskId = this.get('transport.entryWeight.task.id');\n      const isDeparture = !Ember.isEmpty(this.get('transport.entryWeight')) && this.get('task.id') !== entryWeightTaskId;\n      return !Ember.isEmpty(this.get('transport.netWeight')) && isWarehouseWithWeighing && isDeparture;\n    }),\n    transportCustomFields: Ember.computed('transport.customFields', function () {\n      return this.get('transport.customFields');\n    }),\n    customFieldsPairsWithCurrentTaskBlockade: Ember.computed('id', 'transport.{firstUnconfirmedCheckpoint,customFieldPairs}', 'transportCustomFields.@each.{value,isDirty}', function () {\n      const self = this;\n      return this.get('transport.customFieldPairs').filter(cfp => {\n        const visibilityDependsOnDefinition = cfp.definition ? !!cfp.definition.get('visibilityDependsOnDefinition.id') : false;\n        const isVisibleBasedOnDefinition = cfp.value ? !!cfp.value.get('isVisibleBasedOnDefinition') : false;\n        const currentTaskMatch = cfp.definition.get('task.id') === self.get('task.id');\n\n        if (visibilityDependsOnDefinition) {\n          return currentTaskMatch && isVisibleBasedOnDefinition;\n        }\n\n        return currentTaskMatch;\n      });\n    }),\n    hasCustomFieldsBlockade: Ember.computed('customFieldsPairsWithCurrentTaskBlockade', function () {\n      let hasBlockade = false;\n      this.get('customFieldsPairsWithCurrentTaskBlockade').forEach(cfp => {\n        const isSelectType = cfp.definition.get('type') === 'select';\n        const valueIsNotSaved = !cfp.value || !cfp.value.get('id');\n        const valueIsDirty = cfp.value && cfp.value.get('isDirty');\n        const valueIsEmpty = !cfp.value || !cfp.value.get('value');\n        const valueIsChosen = cfp.value && cfp.value.get('option.id');\n\n        if (!isSelectType && (valueIsEmpty || valueIsDirty)) {\n          hasBlockade = true;\n        } else if (isSelectType && (valueIsNotSaved || !valueIsChosen)) {\n          hasBlockade = true;\n        }\n      });\n      return hasBlockade;\n    }),\n    hasWeightBlockade: Ember.computed('task.weighingIncluded', function () {\n      const weightAccess = this.get('sessionAccount').getSettingValue('AUTOMATIC_WEIGHING') === 'true';\n      const weightUrl = !!this.get('sessionAccount').getSettingValue('WEIGHT_URL');\n      const weightElement = !!this.get('sessionAccount').getSettingValue('WEIGHT_SELECTOR');\n      const autoWeight = weightAccess && weightUrl && weightElement;\n      return this.get('task.weighingIncluded') && !autoWeight && !this.get('currentWeight');\n    }),\n    hasCustomModalBlockade: Ember.computed('task.openCustomModal', function () {\n      return this.get('task.openCustomModal');\n    }),\n    hasWarehouseLocationBlockade: Ember.computed('task.requiresWarehouseLocation', 'step.stepWarehouseLocations', function () {\n      return this.get('task.requiresWarehouseLocation') && this.get('step.stepWarehouseLocations').length < 1;\n    }),\n    hasDocumentBlockade: Ember.computed('task.canBeConfirmAfterAddingDocumentsForTransport', 'transport.numberOfFiles', function () {\n      return this.get('task.canBeConfirmAfterAddingDocumentsForTransport') && this.get('transport.numberOfFiles') === 0;\n    }),\n    confirmButtonShouldBeDisabled: Ember.computed('hasDocumentBlockade', function () {\n      return this.get('hasDocumentBlockade');\n    }),\n    checkpointBlockadeInfo: Ember.computed('confirmButtonShouldBeDisabled', function () {\n      const message = Ember.Object.create({\n        title: '',\n        fields: ''\n      });\n\n      if (this.get('hasDocumentBlockade')) {\n        message.title = this.get('intl').t('task.blockade.documentRestriction');\n        message.fields = '';\n      }\n\n      return message;\n    }),\n    shouldConfirmationButtonBeVisible: Ember.computed('id', 'transport.firstUnconfirmedCheckpoint.id', 'task.canConfirmPrevious', function () {\n      if (this.get('id') === this.get('transport.firstUnconfirmedCheckpoint.id') || this.get('transport.firstUnconfirmedCheckpoint.canBeSkipped') && this.get('id') === this.get('transport.firstMandatoryCheckpoint.id')) {\n        return true;\n      } else {\n        return this.get('task.canConfirmPrevious');\n      }\n    }),\n    classificationResourceString: Ember.computed('name', 'executionDate', function () {\n      const formattedDate = this.get('executionDate') ? this.dateFormatterService.formatShortTime(this.get('executionDate')) : '';\n      return `${this.get('name')} ${formattedDate}`;\n    }),\n    canBeSkipped: Ember.computed('transport.firstUnconfirmedCheckpoint.id', function () {\n      const self = this;\n      return !!this.get('sessionAccount.authorityRestrictions').find(authorityRestriction => {\n        return authorityRestriction.get('authority.name') === 'ROLE_CAN_SKIP_CHECKPOINT_CONFIRMATION' && authorityRestriction.get('task.id') === self.get('task.id');\n      });\n    }),\n    canBeBlocked: Ember.computed('task.canBeBlocked', 'isConfirmed', function () {\n      return this.get('task.canBeBlockedByRole') && !this.get('isConfirmed');\n    }),\n    isWeighingIncludedInStepWarehouse: Ember.computed('step.warehouse.weighingIncluded', function () {\n      return this.get('step.warehouse').get('weighingIncluded');\n    }),\n    transportCustomFieldDefinitions: Ember.computed('transport.customFields.[]', function () {\n      return this.get('transport').get('customFields').filter(cf => cf.get('definition'));\n    }),\n    isCustomFieldRequiredInDelayedCheckpoint: Ember.computed('transportCustomFieldDefinitions.delayedTask.stageName', 'task.stageName', function () {\n      const customFieldWithDelayedTask = this.get('transport').get('customFields').filter(cf => {\n        return cf.get('definition.delayedTask').get('stageName') === this.get('task').get('stageName');\n      }).get('firstObject');\n\n      if (customFieldWithDelayedTask === undefined) {\n        return false;\n      }\n\n      const cfd = customFieldWithDelayedTask.get('definition');\n      const cfdTimeInvervalValue = cfd.get('timeIntervalValue');\n      const cfdTimeInvervalUnit = cfd.get('timeIntervalUnit');\n      const checkpointExpectedDate = this.get('expectedDate');\n      const expectedDateWithAllowedTimeFromCfd = moment(checkpointExpectedDate).add(cfdTimeInvervalValue, cfdTimeInvervalUnit).toDate();\n      return moment(expectedDateWithAllowedTimeFromCfd).isBefore(moment().toDate());\n    }),\n    timeWindow: Ember.computed('step.timeWindow', function () {\n      return this.get('step.timeWindow');\n    }),\n    transportHasWindow: Ember.computed('transport.timeWindows.[]', function () {\n      return this.get('transport.timeWindows.length') > 0;\n    }),\n    transportHasAdvice: Ember.computed('transport.hasAdvice,timeWindows.[]', function () {\n      return this.get('transport.hasAdvice');\n    }),\n    isBeforeAdvice: Ember.computed('transport.checkpoints.@each.idx,task', 'idx', function () {\n      const adviceCps = this.get('transport.checkpoints').filterBy('task.shouldBeApprovedWithAdvice');\n\n      if (!adviceCps || adviceCps.length < 0) {\n        return false;\n      }\n\n      return this.get('idx') < adviceCps.get('firstObject.idx');\n    }),\n    isBeforeTimeWindow: Ember.computed('transport.checkpoints.@each.idx,task', 'idx', function () {\n      const twCps = this.get('transport.checkpoints').filterBy('task.shouldBeApprovedWithTimeWindow');\n\n      if (!twCps || twCps.length < 0) {\n        return false;\n      }\n\n      return this.get('idx') < twCps.get('firstObject.idx');\n    }),\n    lastConfirmedCheckpoint: Ember.computed.reads('transport.lastConfirmedCheckpoint'),\n    transportHasAdviceOrTimeWindow: Ember.computed('lastConfirmedCheckpoint.{isBeforeAdvice,isBeforeTimeWindow}', 'transport.{hasAdvice,hasTimeWindow}', function () {\n      return this.get('transport.hasAdvice') && this.get('isBeforeAdvice') || this.get('transport.hasTimeWindow') && this.get('isBeforeTimeWindow');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/classification-resource/assign-queue-validator/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend(_modelValidator.default, {\n    queue: _emberData.default.belongsTo('queue'),\n    square: _emberData.default.belongsTo('square'),\n    validations: {\n      queue: {\n        custom: [{\n          validation: function (value, model) {\n            return model.get('id');\n          },\n          message: 'blank'\n        }]\n      },\n      square: {\n        custom: [{\n          validation: function (value, model) {\n            return model.get('id');\n          },\n          message: 'blank'\n        }]\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/classification-resource/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend({\n    intl: Ember.inject.service(),\n    STATE_NAMES: {\n      CREATED: 'CREATED',\n      HAS_QUEUE: 'HAS_QUEUE',\n      HAS_PLACE: 'HAS_PLACE',\n      COMPLETED: 'COMPLETED',\n      RESERVED: 'RESERVED'\n    },\n    carRegistrationNumber: _emberData.default.attr('string'),\n    hds: _emberData.default.attr('boolean'),\n    transport: _emberData.default.belongsTo('transport', {\n      async: true\n    }),\n    squareName: _emberData.default.attr('string'),\n    queue: _emberData.default.belongsTo('queue', {\n      async: true\n    }),\n    place: _emberData.default.belongsTo('place', {\n      async: true\n    }),\n    state: _emberData.default.attr('string'),\n    enabled: _emberData.default.attr('boolean'),\n    lastUpdated: _emberData.default.attr('date'),\n    classificationCheckpoints: _emberData.default.hasMany('checkpoints'),\n    stateIdx: Ember.computed('state', function () {\n      switch (this.get('state')) {\n        case this.STATE_NAMES.HAS_PLACE:\n          return 1;\n\n        case this.STATE_NAMES.HAS_QUEUE:\n          return 2;\n\n        case this.STATE_NAMES.RESERVED:\n          return 3;\n\n        default:\n          return 0;\n      }\n    }),\n    assignQueueValidator: Ember.computed('queue', 'square', function () {\n      const self = this;\n      return this.get('store').createRecord('classification-resource/assign-queue-validator', {\n        queue: self.get('queue'),\n        square: self.get('square')\n      });\n    }),\n    isAssigned: Ember.computed('queue', 'state', function () {\n      return [this.STATE_NAMES.HAS_QUEUE, this.STATE_NAMES.HAS_PLACE].includes(this.get('state'));\n    }),\n    assignedSuccessMessage: Ember.computed('queue.nameInAppropriateLanguage', function () {\n      return this.get('intl').t('classifications.successMessage', {\n        registrationNumber: this.get('carRegistrationNumber'),\n        squareName: this.get('squareName'),\n        queueName: this.get('queue.nameInAppropriateLanguage')\n      });\n    }),\n\n    /**\n     * Nadpisujemy metodę toJSON aby przy wywołaniu JSON.stringify(data) nie tracić ID obiektu\n     * https://stackoverflow.com/questions/29513240/id-is-lost-while-trying-to-json-stringify-ember-model\n     * @returns {*}\n     */\n    toJSON: function () {\n      return this._super({\n        includeId: true\n      });\n    },\n    classificationCheckpointsString: Ember.computed('classificationCheckpoints.@each.id', function () {\n      const classificationCheckpoints = this.get('classificationCheckpoints');\n\n      if (!classificationCheckpoints) {\n        return \"\";\n      }\n\n      return \"(\" + classificationCheckpoints.getEach('classificationResourceString').join(\", \") + \")\";\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/classification-resources/index/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    // TODO: Zastąpić przez apolloApiService, lub zrezygnować jeśli classification resource nie jest już wykorzystywane\n    ajaxService: Ember.inject.service('ajax-service'),\n    sessionAccount: Ember.inject.service('session-account'),\n    translationService: Ember.inject.service('translation-service'),\n    classificationResourcesWithoutQueue: Ember.computed('model.classificationResources.[]', 'model.classificationResources.@each.state', function () {\n      return this.get('model.classificationResources').filter(cr => cr.get('state') === cr.get('STATE_NAMES.CREATED'));\n    }),\n    classificationResourcesWithQueue: Ember.computed('model.classificationResources.[]', 'model.classificationResources.@each.state', function () {\n      return this.get('model.classificationResources').filter(cr => cr.get('state') === cr.get('STATE_NAMES.HAS_QUEUE'));\n    }),\n    classificationResourcesWithPlace: Ember.computed('model.classificationResources.[]', 'model.classificationResources.@each.state', function () {\n      return this.get('model.classificationResources').filter(cr => cr.get('state') === cr.get('STATE_NAMES.HAS_PLACE'));\n    }),\n    queuesStatus: Ember.computed('classificationResourcesWithQueue', function () {\n      const self = this;\n      const squares = self.get('sessionAccount.currentUser.accessibleSquares');\n      const queuesStatusArray = Ember.A();\n      squares.forEach(s => {\n        const queues = s.get('queues').filter(q => self.get('sessionAccount.currentUser.accessibleQueues').getEach('id').includes(q.get('id')));\n        queues.forEach((q, idx) => {\n          const obj = Ember.Object.create({\n            squareName: idx === 0 ? q.get('square.name') : '',\n            queueName: q.get('nameInAppropriateLanguage'),\n            quantityInQueue: self.get('classificationResourcesWithQueue').filter(cr => cr.get('queue.id') === q.get('id')).get('length'),\n            quantityOnPlace: self.get('classificationResourcesWithPlace').filter(cr => cr.get('queue.id') === q.get('id')).get('length')\n          });\n          queuesStatusArray.pushObject(obj);\n        });\n      });\n      return queuesStatusArray;\n    }),\n    columns: Ember.computed('showCarriersTable', function () {\n      const columns = [{\n        propertyName: 'idx',\n        title: this.get('intl').t('common.orderNumber'),\n        className: 'order-number',\n        disableFiltering: true,\n        disableSorting: true,\n        visible: this.checkColumnVisibility('orderNumberFirstColumnVisibility')\n      }, {\n        propertyName: 'resource.carRegistrationNumber',\n        title: this.get('intl').t('advice.carRegistrationNumberSimple'),\n        className: 'car-registration-number',\n        disableFiltering: true,\n        disableSorting: true,\n        visible: this.checkColumnVisibility('carRegistrationFirstTableColumnVisibility')\n      }, {\n        propertyName: 'resource.hasHDS',\n        title: 'HDS',\n        className: 'hds',\n        disableFiltering: true,\n        disableSorting: true,\n        visible: this.checkColumnVisibility('hdsFirstTableColumnVisibility')\n      }, {\n        propertyName: 'common.square',\n        title: this.get('translationService').getTranslation('square', 'square'),\n        className: 'square',\n        disableFiltering: true,\n        disableSorting: true,\n        visible: this.checkColumnVisibility('squareFirstTableColumnVisibility')\n      }, {\n        propertyName: 'resource.queue',\n        title: this.get('translationService').getTranslation('square', 'queueLabel'),\n        className: 'queue',\n        disableFiltering: true,\n        disableSorting: true,\n        visible: this.checkColumnVisibility('queueFirstTableColumnVisibility')\n      }, {\n        propertyName: '',\n        title: '',\n        disableFiltering: true,\n        disableSorting: true,\n        visible: true\n      }];\n      return columns.filter(c => c.visible === true);\n    }),\n    queueStatusTableColumns: Ember.computed('showCarriersTable', function () {\n      const columns = [{\n        propertyName: 'square',\n        title: this.get('translationService').getTranslation('square', 'square'),\n        className: 'square',\n        disableFiltering: true,\n        disableSorting: true,\n        visible: this.checkColumnVisibility('squareSecondTableColumnVisibility')\n      }, {\n        propertyName: 'queue',\n        title: this.get('translationService').getTranslation('square', 'queueLabel'),\n        className: 'queue',\n        disableFiltering: true,\n        disableSorting: true,\n        visible: this.checkColumnVisibility('queueSecondTableColumnVisibility')\n      }, {\n        propertyName: 'buffer',\n        title: this.get('translationService').getTranslation('square', 'buffer'),\n        className: 'buffer',\n        disableFiltering: true,\n        disableSorting: true,\n        visible: this.checkColumnVisibility('bufferSecondTableColumnVisibility')\n      }, {\n        propertyName: 'unload',\n        title: this.get('translationService').getTranslation('square', 'unload'),\n        className: 'unload',\n        disableFiltering: true,\n        disableSorting: true,\n        visible: this.checkColumnVisibility('unloadSecondTableColumnVisibility')\n      }];\n      return columns.filter(c => c.visible === true);\n    }),\n    squareSetting: Ember.computed(function () {\n      return this.get('sessionAccount').getSquareSetting();\n    }),\n    checkColumnVisibility: function (propertyName) {\n      const squareSetting = this.get('squareSetting');\n\n      if (!squareSetting) {\n        return true;\n      }\n\n      return squareSetting.get(propertyName);\n    },\n    actions: {\n      assignQueue: function (resource) {\n        const self = this;\n\n        if (!resource.get('assignQueueValidator').validate()) {\n          $('.save-group-button').button('reset');\n          return;\n        }\n\n        const data = {\n          classificationResource: resource,\n          checkpointToConfirm: resource.get('transport.firstUnconfirmedCheckpoint.id')\n        };\n        this.get('ajaxService').send('/classification-resources/assign-queue', 'PUT', data, true).then(() => {\n          resource.reload();\n          $('.save-group-button').button('reset');\n          const delay = self.get('classifiedResourceDisappearanceDelay');\n          setTimeout(function () {\n            self.get('classificationResources').removeObject(resource);\n          }, delay);\n        });\n      },\n      setSquare: function (resource, square) {\n        resource.set('square', square);\n        resource.set('queue', null);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/classification-resources/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"apollo/mixins/menu-mixin\"], function (_exports, _authenticatedRouteMixin, _menuMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _menuMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    poolingService: Ember.inject.service('classification-resource-pooling-service'),\n    access: ['ROLE_CLASSIFICATION_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      return Ember.RSVP.hash({\n        classificationResources: this.store.findAll('classification-resource'),\n        squares: this.store.findAll('square'),\n        queues: this.store.findAll('queue')\n      });\n    },\n\n    activate() {\n      this.activateCurrentTab('CLASSIFICATION_TAB');\n    },\n\n    setupController(controller, model) {\n      const self = this;\n\n      self._super(...arguments);\n\n      self.get('controller').setProperties({\n        model: model,\n        classificationResources: model.classificationResources.filter(cr => cr.get('state') === cr.get('STATE_NAMES.CREATED')),\n        classifiedResourceDisappearanceDelay: self.classifiedResourceDisappearanceDelay()\n      });\n      self.get('poolingService').init(self.pollUpdatesInterval(), self.handleResponse.bind(self));\n    },\n\n    resetController() {\n      this._super(...arguments);\n\n      this.get('poolingService').cancel();\n    },\n\n    pollUpdatesInterval() {\n      const pollIntervalString = this.get('sessionAccount').getSettingValue('CLASSIFICATIONS_TAB_POLL_INTERVAL');\n      return pollIntervalString ? parseInt(pollIntervalString) : 10000;\n    },\n\n    classifiedResourceDisappearanceDelay() {\n      const delay = this.get('sessionAccount').getSettingValue('CLASSIFIED_RESOURCE_DISAPPEARANCE_DELAY');\n      return delay ? parseInt(delay) : 15000;\n    },\n\n    handleResponse(json) {\n      const self = this;\n      json.classificationResourcesIds.forEach(function (classificationResourceId) {\n        self.store.findRecord('classification-resource', classificationResourceId, {\n          reload: true\n        }).then(loadedClassificationResource => {\n          if (loadedClassificationResource.get('enabled') === false || loadedClassificationResource.get('state') === loadedClassificationResource.STATE_NAMES.COMPLETED) {\n            console.debug(`Object ClassificationResource: ${loadedClassificationResource.get('id')} with state: ${loadedClassificationResource.get('state')} has been removed.`);\n            self.get('controller.classificationResources').removeObject(loadedClassificationResource);\n          } else if (!loadedClassificationResource.get('queue.id')) {\n            self.controllerFor('classification-resources.index').send('setSquare', loadedClassificationResource, null);\n\n            if (!self.findClassificationResources(loadedClassificationResource)) {\n              self.get('controller.classificationResources').pushObject(loadedClassificationResource);\n            }\n          } else if (loadedClassificationResource.get('queue.id')) {\n            setTimeout(function () {\n              self.get('controller.classificationResources').removeObject(loadedClassificationResource);\n            }, self.classifiedResourceDisappearanceDelay());\n          }\n        });\n      });\n    },\n\n    findClassificationResources(resource) {\n      return this.get('controller.classificationResources').find(cr => {\n        return cr.get('id') === resource.get('id');\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/classification-resources/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"be6xTMrs\",\n    \"block\": \"{\\\"symbols\\\":[\\\"mt\\\",\\\"table\\\",\\\"body\\\",\\\"queue\\\",\\\"idx\\\",\\\"header\\\",\\\"groupedHeader\\\",\\\"mt\\\",\\\"table\\\",\\\"body\\\",\\\"resource\\\",\\\"idx\\\",\\\"q\\\",\\\"s\\\",\\\"header\\\",\\\"groupedHeader\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-6\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h1\\\"],[11,\\\"data-field-name\\\",\\\"cars-in-front-of-smelter-tab\\\"],[9],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"carsInFrontOfSmelter\\\"]]],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"server-table\\\",null,[[\\\"data\\\",\\\"useFilteringByColumns\\\",\\\"columns\\\"],[[23,[\\\"classificationResources\\\"]],false,[23,[\\\"columns\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"borderless-wrapper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,8,[\\\"table\\\"]],\\\"expected `mt.table` to be a contextual component but found a string. Did you mean `(component mt.table)`? ('apollo/pods/classification-resources/index/template.hbs' @ L11:C19) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,9,[\\\"header\\\"]],\\\"expected `table.header` to be a contextual component but found a string. Did you mean `(component table.header)`? ('apollo/pods/classification-resources/index/template.hbs' @ L12:C23) \\\"],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,15,[\\\"row-sorting\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,15,[\\\"groupedHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,15,[\\\"grouped-header\\\"]],\\\"expected `header.grouped-header` to be a contextual component but found a string. Did you mean `(component header.grouped-header)`? ('apollo/pods/classification-resources/index/template.hbs' @ L15:C30) \\\"],null]],[[\\\"groupedHeader\\\",\\\"class\\\"],[[22,16,[]],\\\"bold\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[16]},null]],\\\"parameters\\\":[15]},null],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,9,[\\\"body\\\"]],\\\"expected `table.body` to be a contextual component but found a string. Did you mean `(component table.body)`? ('apollo/pods/classification-resources/index/template.hbs' @ L19:C23) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,10,[\\\"visibleContent\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,11,[\\\"isAssigned\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n                                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"squareSetting\\\",\\\"orderNumberFirstColumnVisibility\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"order-number\\\"],[9],[0,\\\"\\\\n                                            \\\"],[1,[27,\\\"add\\\",[[22,12,[]],1],null],false],[0,\\\".\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                    \\\"],[7,\\\"td\\\"],[11,\\\"colspan\\\",\\\"6\\\"],[11,\\\"class\\\",\\\"no-padding\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\",\\\"dismissible\\\"],[[22,11,[\\\"assignedSuccessMessage\\\"]],false]]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"tr\\\"],[12,\\\"data-transport-id\\\",[28,[[22,11,[\\\"transport\\\",\\\"id\\\"]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"squareSetting\\\",\\\"orderNumberFirstColumnVisibility\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"order-number\\\"],[9],[0,\\\"\\\\n                                            \\\"],[1,[27,\\\"add\\\",[[22,12,[]],1],null],false],[0,\\\".\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"squareSetting\\\",\\\"carRegistrationFirstTableColumnVisibility\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"car-registration-number\\\"],[9],[0,\\\"\\\\n                                            \\\"],[1,[22,11,[\\\"carRegistrationNumber\\\"]],false],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"squareSetting\\\",\\\"hdsFirstTableColumnVisibility\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"resource-hasHDS\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,11,[\\\"hds\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"check\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"minus\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"squareSetting\\\",\\\"squareFirstTableColumnVisibility\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"resource-square\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"options\\\",\\\"selected\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"squares\\\"]],[27,\\\"readonly\\\",[[22,11,[\\\"square\\\"]]],null],true,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"square\\\"]]],[27,\\\"if\\\",[[22,11,[\\\"isAssigned\\\"]],\\\"disabled\\\",\\\"\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setSquare\\\",[22,11,[]]],null]]],{\\\"statements\\\":[[0,\\\"                                                \\\"],[1,[22,14,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[14]},null],[0,\\\"                                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,11,[\\\"assignQueueValidator\\\"]],\\\"square\\\"]]],false],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"squareSetting\\\",\\\"queueFirstTableColumnVisibility\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"resource-queue\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"options\\\",\\\"selected\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[22,11,[\\\"square\\\",\\\"enabledQueuesForCurrentUser\\\"]],[27,\\\"readonly\\\",[[22,11,[\\\"queue\\\"]]],null],true,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"queueLabel\\\"]]],[27,\\\"if\\\",[[22,11,[\\\"isAssigned\\\"]],\\\"disabled\\\",\\\"\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[22,11,[\\\"queue\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                                                \\\"],[1,[22,13,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[13]},null],[0,\\\"                                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,11,[\\\"assignQueueValidator\\\"]],\\\"queue\\\"]]],false],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"save-classification\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary save-group-button\\\"],[12,\\\"style\\\",[22,11,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]]],[11,\\\"data-button-name\\\",\\\"save-classification\\\"],[12,\\\"disabled\\\",[22,11,[\\\"isAssigned\\\"]]],[9],[0,\\\"\\\\n                                            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"assignQueue\\\",[22,11,[]]]],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[11,12]},null]],\\\"parameters\\\":[10]},null]],\\\"parameters\\\":[9]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-6\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"h1\\\"],[11,\\\"data-field-name\\\",\\\"queue-status\\\"],[9],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"queuesStatus\\\"]]],false],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"server-table\\\",null,[[\\\"data\\\",\\\"useFilteringByColumns\\\",\\\"columns\\\"],[[23,[\\\"queuesStatus\\\"]],false,[23,[\\\"queueStatusTableColumns\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"borderless-wrapper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,1,[\\\"table\\\"]],\\\"expected `mt.table` to be a contextual component but found a string. Did you mean `(component mt.table)`? ('apollo/pods/classification-resources/index/template.hbs' @ L114:C19) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,2,[\\\"header\\\"]],\\\"expected `table.header` to be a contextual component but found a string. Did you mean `(component table.header)`? ('apollo/pods/classification-resources/index/template.hbs' @ L115:C23) \\\"],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,6,[\\\"row-sorting\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,6,[\\\"groupedHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,6,[\\\"grouped-header\\\"]],\\\"expected `header.grouped-header` to be a contextual component but found a string. Did you mean `(component header.grouped-header)`? ('apollo/pods/classification-resources/index/template.hbs' @ L118:C30) \\\"],null]],[[\\\"groupedHeader\\\",\\\"class\\\"],[[22,7,[]],\\\"bold\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null]],\\\"parameters\\\":[6]},null],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,2,[\\\"body\\\"]],\\\"expected `table.body` to be a contextual component but found a string. Did you mean `(component table.body)`? ('apollo/pods/classification-resources/index/template.hbs' @ L122:C23) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,3,[\\\"visibleContent\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"tr\\\"],[11,\\\"style\\\",\\\"height: 3em\\\"],[12,\\\"data-transport-id\\\",[28,[[23,[\\\"resource\\\",\\\"transport\\\",\\\"id\\\"]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"squareSetting\\\",\\\"squareSecondTableColumnVisibility\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"resource-square\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[22,4,[\\\"squareName\\\"]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"squareSetting\\\",\\\"queueSecondTableColumnVisibility\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"resource-queue\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[22,4,[\\\"queueName\\\"]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"squareSetting\\\",\\\"bufferSecondTableColumnVisibility\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"quantity-in-queue\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[22,4,[\\\"quantityInQueue\\\"]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"squareSetting\\\",\\\"unloadSecondTableColumnVisibility\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"quantity-on-place\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[22,4,[\\\"quantityOnPlace\\\"]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4,5]},null]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[2]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/classification-resources/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/cmr-setting/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model,\n    belongsTo,\n    hasMany,\n    attr\n  } = _emberData.default;\n\n  var _default = Model.extend(_modelValidator.default, {\n    transportType: belongsTo('transportType'),\n    appendedDocsText: attr('string'),\n    appendedDocsSpecificationNumber: attr('boolean'),\n    appendedDocsSpecificationCustomField: belongsTo('customFieldDefinition'),\n    featuresAndNumbersText: attr('string'),\n    featuresAndNumbersCustomField: belongsTo('customFieldDefinition'),\n    quantityText: attr('string'),\n    quantityCustomField: belongsTo('customFieldDefinition'),\n    packageTypeText: attr('string'),\n    weightGrossCustomField: belongsTo('customFieldDefinition'),\n    senderInstructionText: attr('string'),\n    senderInstructionCustomFields: hasMany('customFieldDefinition'),\n    showPrincipalName: attr('boolean'),\n    showWarehouseName: attr('boolean'),\n    validations: {\n      senderInstructionText: {\n        custom: [{\n          validation: function (key, value) {\n            if (!value) {\n              return true;\n            }\n\n            const maxLinesCount = 8;\n            const linesCount = value.split('\\n').length;\n            return linesCount <= maxLinesCount;\n          },\n          message: 'maxLineCountIs8'\n        }]\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/columns-access-command/model\", [\"exports\", \"ember-data\", \"ember-data/model\"], function (_exports, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend({\n    transportType: belongsTo('transportType'),\n    tableColumn: belongsTo('tableColumn', {\n      async: true,\n      inverse: null\n    }),\n    roleGroup: belongsTo('roleGroup'),\n    customFieldDefinition: belongsTo('custom-field-definition', {\n      async: true,\n      inverse: null\n    }),\n    visibility: attr(),\n    isHighlighted: attr('boolean')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/combining-relations-wizard/index/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    relationsCombiner: Ember.inject.service('transport-relations.relations-combiner'),\n    relationsTrackerService: Ember.inject.service('transport-relations.relations-tracker'),\n    intl: Ember.inject.service(),\n    tagName: '',\n\n    _validateWizard(viewModel) {\n      const checkedExistingRelations = viewModel.existingRelations.filter(this._filterOnlyCheckedTransports);\n      const checkedWithoutRelations = viewModel.withoutRelations.filter(this._filterOnlyCheckedTransports);\n\n      if (checkedWithoutRelations.length < 1 || checkedExistingRelations.length < 1) {\n        return false;\n      }\n\n      return true;\n    },\n\n    _filterOnlyCheckedTransports(relationWizardViewModel) {\n      return relationWizardViewModel.isChecked;\n    },\n\n    actions: {\n      combineRelations() {\n        const existingRelations = this.get('model.viewModel.existingRelations');\n        const withoutRelations = this.get('model.viewModel.withoutRelations');\n        const checkedTransports = existingRelations.concat(withoutRelations).filter(this._filterOnlyCheckedTransports);\n\n        if (!this._validateWizard(this.get('model.viewModel'))) {\n          this.set('errors', [this.get('intl').t('relationsWizard.errors.atLeastOneOfAKind')]);\n          return;\n        }\n\n        const relation = {\n          masters: [checkedTransports.shift().get('transport')],\n          slaves: checkedTransports.map(viewModel => viewModel.get('transport')),\n          type: 'TRANSPORT_COMBINING',\n          relation: this.get('model.transportRelation')\n        };\n        const combiningErrors = this.get('relationsCombiner').combine(relation);\n\n        if (combiningErrors && combiningErrors.length > 0) {\n          return this.set('errors', combiningErrors);\n        }\n      },\n\n      cancel() {\n        history.back();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/combining-relations-wizard/index/route\", [\"exports\", \"apollo/models/relations-wizard-view-model\"], function (_exports, _relationsWizardViewModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    relationsTracker: Ember.inject.service('transport-relations.relations-tracker'),\n    store: Ember.inject.service(),\n    beforeModel: function (transition) {\n      if (!this.relationsTracker.currentTransports.length) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      const transportsWithoutRelation = this.relationsTracker.currentTransports.filter(transport => !transport.get('isRelatedTransportInTransportCombining'));\n      const transportWithRelation = this.relationsTracker.currentTransports.find(t => t.get('isRelatedTransportInTransportCombining'));\n      const relatedTransports = transportWithRelation.get('allCombinedTransports').filter(t => !t.get('isMasterTransportInTransportCombining'));\n      const model = {\n        existingRelations: relatedTransports.map(this._mapTransportToRelationWizardViewModel),\n        withoutRelations: transportsWithoutRelation.map(this._mapTransportToRelationWizardViewModel)\n      };\n      const availableRelations = this.get('store').peekAll('transportRelation');\n      const transportRelation = availableRelations.find(transportRelation => {\n        return transportRelation.get('primaryTransportType.id') === transportWithRelation.get('transportType.id') && transportRelation.get('subordinateTransportType.id') === transportsWithoutRelation.get('firstObject.transportType.id') || transportRelation.get('primaryTransportType.id') === transportsWithoutRelation.get('firstObject.transportType.id') && transportRelation.get('subordinateTransportType.id') === transportWithRelation.get('transportType.id');\n      });\n      return {\n        viewModel: model,\n        transportRelation\n      };\n    },\n    _mapTransportToRelationWizardViewModel: function (transport) {\n      return _relationsWizardViewModel.default.create({\n        isChecked: true\n      }).transform(transport);\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/combining-relations-wizard/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"S7nftqgI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"wr\\\",\\\"er\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"h2\\\"],[9],[1,[27,\\\"t\\\",[\\\"relationsWizard.label\\\"],null],false],[10],[0,\\\"\\\\n    \\\"],[7,\\\"strong\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"text-danger\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"info-circle\\\"],[[\\\"size\\\"],[\\\"lg\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"relationsWizard.description\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"relationsWizard.table.header.existingRelations\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-striped\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"relationsWizard.table.column.wz\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"relationsWizard.table.column.relationIdentifier\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"relationsWizard.table.column.address\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"relationsWizard.table.column.weight\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"viewModel\\\",\\\"existingRelations\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"td\\\"],[9],[7,\\\"label\\\"],[9],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[22,2,[\\\"isChecked\\\"]]]]],false],[10],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[22,2,[\\\"erpIdentifier\\\"]],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[22,2,[\\\"relationIdentifier\\\"]],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[22,2,[\\\"address\\\"]],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[22,2,[\\\"weight\\\"]],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"relationsWizard.table.header.withoutRelations\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-striped\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"relationsWizard.table.column.wz\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"relationsWizard.table.column.relationIdentifier\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"relationsWizard.table.column.address\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"relationsWizard.table.column.weight\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"viewModel\\\",\\\"withoutRelations\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[7,\\\"label\\\"],[9],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[22,1,[\\\"isChecked\\\"]]]]],false],[10],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[22,1,[\\\"erpIdentifier\\\"]],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[22,1,[\\\"relationIdentifier\\\"]],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[22,1,[\\\"address\\\"]],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[22,1,[\\\"weight\\\"]],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 text-right\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[1,[27,\\\"t\\\",[\\\"relationsWizard.table.button.createRelations\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"combineRelations\\\"]],[10],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[1,[27,\\\"t\\\",[\\\"relationsWizard.table.button.cancel\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/combining-relations-wizard/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/allowed-domains/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    queryParams: ['lastUpdated'],\n    intl: Ember.inject.service(),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    errors: [],\n    successMessage: null,\n    companyEmailDomainsList: [],\n    companyEmailDomainsListObserver: Ember.observer('model.companyEmailDomains.@each.id', function () {\n      this.set('companyEmailDomainsList', []);\n      this.get('model.companyEmailDomains').forEach(ced => this.get('companyEmailDomainsList').pushObject(ced));\n    }),\n    company: Ember.computed('model.company.id', function () {\n      return this.get('model.company');\n    }),\n    showSaveButton: Ember.computed('companyEmailDomainsList.@each.id', 'companyEmailDomainsList.length', function () {\n      return this.get('companyEmailDomainsList').filter(ced => !ced.get('id')).length > 0;\n    }),\n    actions: {\n      async save() {\n        const cedsToSave = this.get('companyEmailDomainsList').filter(ced => !ced.get('id'));\n\n        if (cedsToSave.some(ced => !ced.validate())) {\n          return;\n        }\n\n        const path = this.get('apolloApiService').APOLLO_API.COMPANY_EMAIL_DOMAINS.SAVE;\n        const jsonBody = JSON.stringify(cedsToSave.map(ced => ced.serialize()));\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, null, {\n            body: jsonBody\n          });\n\n          if (response.ok) {\n            this.set('successMessage', this.get('intl').t('company.allowedDomains.successSaveMsg'));\n            this.set('lastUpdated', new Date());\n          } else {\n            const error = await response.json();\n            this.set('errors', error.errors);\n          }\n        } catch (error) {\n          this.set('errors', [this.get('intl').t('common.defaultError')]);\n          console.error(error);\n        }\n      },\n\n      delete(companyEmailDomain) {\n        if (!companyEmailDomain.get('id')) {\n          this.get('companyEmailDomainsList').removeObject(companyEmailDomain);\n          companyEmailDomain.unloadRecord();\n        } else {\n          if (!confirm(this.get('intl').t('common.sure'))) {\n            return;\n          }\n\n          companyEmailDomain.destroyRecord().then(() => {\n            this.set('successMessage', this.get('intl').t('company.allowedDomains.successDeleteMsg'));\n          }).catch(response => {\n            this.set('errors', response.errors);\n          });\n        }\n      },\n\n      add() {\n        const company = this.get('company');\n        this.get('companyEmailDomainsList').pushObject(this.get('store').createRecord('companyEmailDomain', {\n          company\n        }));\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/allowed-domains/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_MANAGE_ALLOWED_DOMAINS'],\n    queryParams: {\n      lastUpdated: {\n        refreshModel: true\n      }\n    },\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const companyId = params.company_id;\n      const company = this.store.findRecord('company', companyId);\n      const companyEmailDomains = this.store.query('companyEmailDomain', {\n        companyId: companyId\n      });\n      return Ember.RSVP.hash({\n        company: company,\n        companyEmailDomains: companyEmailDomains\n      });\n    },\n    setupController: function (controller, model) {\n      this.get('controller').setProperties({\n        model: model\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/allowed-domains/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"yiHhkMlS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"ced\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"company-nav-header\\\",null,[[\\\"company\\\"],[[23,[\\\"company\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"padding-bottom-big\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"company.allowedDomains.header\\\"],[[\\\"companyName\\\"],[[23,[\\\"company\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block padding-bottom\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"company.allowedDomains.info\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"bold padding-bottom\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"company.allowedDomains.list\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"companyEmailDomainsList\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-10 \\\",[27,\\\"if\\\",[[22,1,[\\\"errors\\\",\\\"domain\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,1,[\\\"domain\\\"]],[22,1,[\\\"id\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,1,[]],\\\"domain\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-2\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default full-width\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"delete\\\",[22,1,[]]]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top-big col-sm-12\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"add\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showSaveButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary full-width\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/companies/allowed-domains/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/create/controller\", [\"exports\", \"apollo/config/environment\", \"apollo/mixins/company-mixin\", \"jquery\"], function (_exports, _environment, _companyMixin, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend(_companyMixin.default, {\n    sessionAccount: service('session-account'),\n    intl: service(),\n    gusService: service('gus-service'),\n    companiesIndexController: Ember.inject.controller('companies/index'),\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    errors: [],\n    countries: function () {\n      return this.store.findAll('country');\n    }.property(),\n    // eslint-disable-next-line ember/no-observers\n    clearCompanyNameObserver: Ember.observer('model.country.ibanSymbol', function () {\n      this.set('model.gusVerified', false);\n\n      if (this.get('model.country.ibanSymbol') !== 'PL') {\n        this.set('verifiedCompanyName', null);\n        return;\n      }\n\n      this.set('model.name', null);\n    }),\n    additionalDetailsDisabled: Ember.computed('company.partnershipWithCurrentCompany', function () {\n      return !this.get('sessionAccount').hasRole('ROLE_EDIT_COMPANY');\n    }),\n    verifiedByGus: Ember.computed('verifiedCompanyName', 'model.country.ibanSymbol', function () {\n      return this.get('model.country.ibanSymbol') === 'PL' && this.get('gusCompanyName');\n    }),\n    disabledCompanyField: Ember.computed('verifiedByGus', 'existingCompanyName', function () {\n      return this.get('verifiedByGus') || this.get('existingCompanyName');\n    }),\n    // eslint-disable-next-line ember/no-function-prototype-extensions\n    availableTypes: function () {\n      const availableTypes = this.store.peekAll('partnershipType').toArray().filter(pt => {\n        return pt.get('name') !== 'COURIER' && pt.get('name') !== 'OPERATOR';\n      });\n      const carrierType = availableTypes.find(t => t.get('name') === 'CARRIER');\n\n      if (carrierType && this.get('sessionAccount').getSettingValue('HAS_ACCESS_TO_APPLIES') === 'true') {\n        availableTypes.removeObject(carrierType);\n      }\n\n      return availableTypes;\n    }.property(),\n    actions: {\n      setCountry(country) {\n        this.get('model').setProperties({\n          oldCountry: this.get('model').get('country'),\n          country\n        });\n      },\n\n      selectCountry(id) {\n        const self = this;\n        this.store.findRecord('country', id).then(country => {\n          self.get('model').set('country', country);\n        });\n      },\n\n      save: function () {\n        const self = this;\n        const companyModel = this.get('model');\n        this.trimCompany(companyModel);\n\n        if (companyModel.get('partnershipWithCurrentCompany').hasDirtyAttributes) {\n          if (!companyModel.get('partnershipWithCurrentCompany').validate({\n            only: 'representativeEmail,representativePhoneNumber,representativePhoneNumberPrefix,additionalDetails'\n          })) {\n            return;\n          }\n        }\n\n        if (!companyModel.validate()) {\n          return;\n        }\n\n        const partnershipToUnload = companyModel.get('partnershipWithCurrentCompany');\n        companyModel.save().then(function (company) {\n          self.set('errors', []);\n          console.log('company saved');\n          partnershipToUnload.destroyRecord();\n          company.refreshPartnershipWithCurrentCompany();\n          self.transitionToRoute('companies.index');\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n      cancel: function () {\n        this.get('model').unloadRecord();\n        this.transitionToRoute('companies.index');\n      },\n\n      disable() {\n        const self = this;\n        const companyModel = this.get('model');\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        _jquery.default.ajax({\n          url: _environment.default.serverURL + '/companies/' + companyModel.get('id') + '/disable',\n          type: 'PUT',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(() => {\n          companyModel.set('enabled', false);\n          const msg = self.get('intl').t('company.deletedMessage', {\n            companyName: companyModel.get('shortName')\n          });\n          self.get('companiesIndexController').set('successMessage', msg);\n          console.log(`Poprawnie usunęliśmy firmę ${companyModel.get('name')}.`);\n          self.transitionToRoute('companies.index');\n        }, function (response) {\n          self.set('errors', response.errors);\n        });\n      },\n\n      verifyNip: async function () {\n        const self = this;\n        this.set('gusHasProblem', false);\n        const ibanSymbol = this.get('model.country.ibanSymbol');\n        const nip = this.get('model.taxIdNumber').replaceAll(' ', '');\n\n        if (nip === '') {\n          return;\n        }\n\n        const nipVerificationPromise = this.get('gusService').verifyNip(ibanSymbol, nip);\n        nipVerificationPromise.then(response => {\n          const existingCompanyName = response.existingCompanyName;\n          const gusCompanyName = response.gusCompanyName;\n          const name = existingCompanyName != null ? existingCompanyName : gusCompanyName;\n          console.log(`Odpowiedź z GUS: ${response}`);\n          self.set('existingCompanyName', existingCompanyName);\n          self.set('gusCompanyName', gusCompanyName);\n          self.set('verifiedCompanyName', name);\n          self.set('model.gusVerified', true);\n          self.set('model.name', name);\n        }).catch(error => {\n          console.error(`Problem z połączeniem z GUS: ${error}`);\n          self.set('existingCompanyName', null);\n          self.set('gusCompanyName', null);\n          self.set('verifiedCompanyName', null);\n          self.set('model.gusVerified', false);\n          self.set('gusHasProblem', true);\n        });\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_CREATE_COMPANY'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      var company = this.store.createRecord('company', {\n        pricingPlan: 'BASIC'\n      });\n      const partnership = this.store.createRecord('partnership');\n      company.set(\"partnershipWithCurrentCompany\", partnership);\n      return company;\n    },\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          verifiedCompanyName: null,\n          gusHasProblem: false\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"yCUpjLCz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"type\\\",\\\"country\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"company.createCompany\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"company.country\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-10 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"country\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"country\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"country\\\"]],[23,[\\\"countries\\\"]],\\\"ibanSymbol\\\",[27,\\\"t\\\",[\\\"company.selectCountry\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setCountry\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[12,\\\"data-option-name\\\",[22,2,[\\\"ibanSymbol\\\"]]],[9],[1,[22,2,[\\\"ibanSymbol\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"country\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"taxIdNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"company.taxIdNumber\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"taxIdNumber\\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"tax-id-number-field\\\",null,[[\\\"verifyNip\\\",\\\"company\\\",\\\"focus-out\\\",\\\"disabled\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"verifyNip\\\"],null],[23,[\\\"model\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"verifyNip\\\"],null],[27,\\\"not\\\",[[23,[\\\"model\\\",\\\"country\\\",\\\"id\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"taxIdNumber\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"model\\\",\\\"country\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"company.chooseCountryHint\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"verifiedCompanyName\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"company.name\\\"],null],false],[0,\\\": \\\"],[1,[21,\\\"verifiedCompanyName\\\"],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"gusHasProblem\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-warning margin-top\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"company.gusHasProblem\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"company.name\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"name\\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"name\\\"]],[27,\\\"or\\\",[[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"name\\\"]]],[23,[\\\"disabledCompanyField\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"not\\\",[[23,[\\\"model\\\",\\\"taxIdNumber\\\"]]],null],[27,\\\"not\\\",[[23,[\\\"gusHasProblem\\\"]]],null],[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"country\\\",\\\"ibanSymbol\\\"]],\\\"PL\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"company.typeNipHint\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"verifiedByGus\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"company.verifiedByGus\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"existingCompanyName\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"company.existingCompanyName\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"partnershipWithCurrentCompany\\\",\\\"errors\\\",\\\"contractorShortName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"company.shortName\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"shortName\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"partnershipWithCurrentCompany\\\",\\\"contractorShortName\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"partnershipWithCurrentCompany\\\"]],\\\"contractorShortName\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"contractorNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"company.contractorNumber\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"contractorNumber\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"partnershipWithCurrentCompany\\\",\\\"contractorNumber\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"partnershipWithCurrentCompany\\\"]],\\\"contractorNumber\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"company-representative\\\",null,[[\\\"model\\\",\\\"size\\\"],[[23,[\\\"model\\\",\\\"partnershipWithCurrentCompany\\\"]],\\\"big\\\"]]],false],[0,\\\"\\\\n        \\\"],[1,[27,\\\"company-transport-limit\\\",null,[[\\\"model\\\",\\\"size\\\"],[[23,[\\\"model\\\",\\\"partnershipWithCurrentCompany\\\"]],\\\"big\\\"]]],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"partnershipType\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.type\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"partnershipType\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"partnershipType\\\"]],[23,[\\\"availableTypes\\\"]],\\\"name\\\",[27,\\\"t\\\",[\\\"company.selectType\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"partnershipType\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[12,\\\"data-option-name\\\",[22,1,[\\\"name\\\"]]],[9],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"company.type.\\\",[22,1,[\\\"translationLabel\\\"]]],null]],[[\\\"default\\\"],[[27,\\\"concat\\\",[\\\"company.type.\\\",[22,1,[\\\"name\\\"]]],null]]]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"partnershipType\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"partnershipWithCurrentCompany\\\",\\\"errors\\\",\\\"additionalDetails\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"partnership.additionalDetails\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"additionalDetails\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\",\\\"rows\\\",\\\"disabled\\\"],[[23,[\\\"model\\\",\\\"partnershipWithCurrentCompany\\\",\\\"additionalDetails\\\"]],\\\"textarea\\\",\\\"form-control\\\",\\\"4\\\",[23,[\\\"additionalDetailsDisabled\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"partnershipWithCurrentCompany\\\"]],\\\"additionalDetails\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"ok\\\"],[[\\\"on\\\",\\\"target\\\"],[\\\"submit\\\",[23,[\\\"view\\\"]]]]],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/companies/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/index/controller\", [\"exports\", \"apollo/mixins/form-utils-mixin\"], function (_exports, _formUtilsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend(_formUtilsMixin.default, {\n    sessionAccount: service('session-account'),\n    intl: service(),\n    supplierLabel: Ember.computed(function () {\n      const settingKey = this.get('sessionAccount').getSettingValue('SUPPLIER_FIELD_IN_COMPANY_DETAILS_TRANSLATION_KEY');\n      const fallbackKey = 'company.type.SUPPLIER';\n      const key = settingKey ? `company.type.SUPPLIER.${settingKey}` : fallbackKey;\n      return this.get('intl').t(key, {\n        default: fallbackKey\n      });\n    }),\n    maxRowsInTable: Ember.computed('sessionAccount.currentUser.maxRowsInCompaniesTable', function () {\n      return this.get('sessionAccount.currentUser.maxRowsInCompaniesTable');\n    }),\n    columns: Ember.computed('showCarriersTable', function () {\n      return [{\n        propertyName: 'contractorCompany.name',\n        title: this.get('intl').t('company.name'),\n        className: 'company-name column-name'\n      }, {\n        propertyName: 'partnership.contractorCompanyShortName',\n        title: this.get('intl').t('company.shortName'),\n        className: 'company-short-name column-shortName responsive-hide-lvl1'\n      }, {\n        propertyName: 'contractorNumber',\n        title: this.get('contractorNumberLabel'),\n        className: 'contractor-number column-contractorNumber'\n      }, {\n        propertyName: 'contractorCompany.taxIdNumber',\n        title: this.get('intl').t('company.taxIdNumber'),\n        className: 'tax-id-number column-taxIdNumber responsive-hide-lvl1'\n      }, {\n        propertyName: 'partnershipType',\n        title: this.get('intl').t('company.type.label'),\n        isHidden: this.get('showCarriersTable'),\n        disableSorting: true,\n        className: 'partnership-type column-type',\n        filterWithSelect: true,\n        predefinedFilterOptions: [{\n          value: 'SUPPLIER',\n          label: this.get('supplierLabel')\n        }, {\n          value: 'CARRIER',\n          label: this.get('intl').t('company.type.CARRIER')\n        }, {\n          value: 'OPERATOR',\n          label: this.get('intl').t('company.type.OPERATOR')\n        }, {\n          value: 'SERVICEMAN',\n          label: this.get('intl').t('company.type.SERVICEMAN')\n        }]\n      }, {\n        propertyName: 'country.ibanSymbol',\n        title: this.get('intl').t('company.country'),\n        className: 'company-iban-symbol column-ibanSymbol responsive-hide-lvl2'\n      }, {\n        propertyName: 'contractorCompany.headquarterStreet',\n        title: this.get('intl').t('address.street'),\n        className: 'company-street column-street responsive-hide-lvl1'\n      }, {\n        propertyName: 'contractorCompany.headquarterPostal',\n        title: this.get('intl').t('address.postal'),\n        className: 'company-postal column-postal responsive-hide-lvl1'\n      }, {\n        propertyName: 'contractorCompany.headquarterCity',\n        title: this.get('intl').t('address.city'),\n        className: 'company-city column-city responsive-hide-lvl1'\n      }, {\n        propertyName: 'statuses[]',\n        title: this.get('intl').t('company.partnershipStatus.label'),\n        filterWithSelect: true,\n        className: 'partnership-status column-partnershipStatus responsive-hide-lvl2',\n        predefinedFilterOptions: [{\n          value: 'NO_INVITATION',\n          label: this.get('intl').t('company.partnershipStatus.NO_INVITATION')\n        }, {\n          value: 'REGISTRATION_IS_IN_PROGRESS',\n          label: this.get('intl').t('company.partnershipStatus.REGISTRATION_IS_IN_PROGRESS')\n        }, {\n          value: 'WAITING',\n          label: this.get('intl').t('company.partnershipStatus.WAITING')\n        }, {\n          value: 'AWAITING_VERIFICATION',\n          label: this.get('intl').t('company.partnershipStatus.AWAITING_VERIFICATION')\n        }, {\n          value: 'UPDATED',\n          label: this.get('intl').t('company.partnershipStatus.UPDATED')\n        }, {\n          value: 'ACCEPTED',\n          label: this.get('intl').t('company.partnershipStatus.ACCEPTED')\n        }, {\n          value: 'REJECTED',\n          label: this.get('intl').t('company.partnershipStatus.REJECTED')\n        }, {\n          value: 'BLOCKED',\n          label: this.get('intl').t('company.partnershipStatus.BLOCKED')\n        }]\n      }, {\n        propertyName: 'invite',\n        title: this.get('intl').t('invitation.invite'),\n        disableFiltering: true,\n        disableSorting: true,\n        isHidden: this.get('showCarriersTable'),\n        className: 'company-invite column-invite responsive-hide-lvl2'\n      }, {\n        propertyName: 'sections',\n        title: this.get('intl').t('company.sections'),\n        isHidden: !this.get('showCarriersTable'),\n        filterWithSelect: true,\n        disableSorting: true,\n        className: 'company-sections column-sections',\n        predefinedFilterOptions: [{\n          value: 'MAIN_DATA_TYPE',\n          label: this.get('intl').t('sectionType.MAIN_DATA_TYPE')\n        }, {\n          value: 'INSURANCE_DOMESTIC_OCP',\n          label: this.get('intl').t('sectionType.INSURANCE_DOMESTIC_OCP')\n        }, {\n          value: 'INSURANCE_INTERNATIONAL_OCP',\n          label: this.get('intl').t('sectionType.INSURANCE_INTERNATIONAL_OCP')\n        }, {\n          value: 'INSURANCE_OCS',\n          label: this.get('intl').t('sectionType.INSURANCE_OCS')\n        }, {\n          value: 'INSURANCE_OC',\n          label: this.get('intl').t('sectionType.INSURANCE_OC')\n        }, {\n          value: 'LICENCE_DOMESTIC',\n          label: this.get('intl').t('sectionType.LICENCE_DOMESTIC')\n        }, {\n          value: 'LICENCE_INTERNATIONAL',\n          label: this.get('intl').t('sectionType.LICENCE_INTERNATIONAL')\n        }, {\n          value: 'LICENCE_FORWARDING',\n          label: this.get('intl').t('sectionType.LICENCE_FORWARDING')\n        }]\n      }, {\n        propertyName: 'update',\n        title: this.get('intl').t('company.update'),\n        isHidden: !this.get('showCarriersTable'),\n        componentForFilterCell: 'server-table/filters/date-filter',\n        className: 'company-update column-update'\n      }];\n    }),\n    companiesCreateButtonVisible: function () {\n      return this.get('sessionAccount').hasRole('ROLE_CREATE_COMPANY');\n    }.property()\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"apollo/mixins/menu-mixin\"], function (_exports, _authenticatedRouteMixin, _menuMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _menuMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_COMPANIES_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      params.max = this.get('sessionAccount.currentUser.maxRowsInCompaniesTable') || 10;\n      params.page = params.page || 1;\n      params.principalCompanyId = localStorage.getItem('principalId');\n      const hasAccessToApplies = this.get('sessionAccount').getSettingValue('HAS_ACCESS_TO_APPLIES') === 'true';\n\n      if (hasAccessToApplies) {\n        const partnershipTypesNames = this.store.peekAll('partnership-type').map(pt => pt.get('name'));\n        params.partnershipTypesNames = partnershipTypesNames.filter(name => name !== 'CARRIER' && name !== 'OPERATOR');\n      }\n\n      return this.store.query('company', params);\n    },\n    setupController: function (controller, model) {\n      this.get('controller').setProperties({\n        model: model,\n        totalPages: model.get('meta.totalPages'),\n        showCarriersTable: false\n      });\n    },\n\n    activate() {\n      this.activateCurrentTab('COMPANIES_TAB');\n    },\n\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          info: null,\n          errors: null,\n          successMessage: null\n        });\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"3xv81Iq7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"mt\\\",\\\"footer\\\",\\\"table\\\",\\\"body\\\",\\\"record\\\",\\\"index\\\",\\\"header\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container-fluid company-list\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"h2 responsive-table-header\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left form-inline\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"company.list\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"invitations.create\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"invitation.invite\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CAN_SYNCHRONISE_CARRIERS_DATA\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[21,\\\"synchronise-carrier-data-button\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"companiesCreateButtonVisible\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_COMPANY\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"companies.create\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"company.createCompany\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"server-table\\\",null,[[\\\"clear\\\",\\\"maxRowsInTable\\\",\\\"data\\\",\\\"saveSuccessMessage\\\",\\\"columns\\\"],[[23,[\\\"clear\\\"]],[23,[\\\"maxRowsInTable\\\"]],[23,[\\\"model\\\"]],[23,[\\\"saveSuccessMessage\\\"]],[23,[\\\"columns\\\"]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom padding-bottom-big\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[22,1,[\\\"global-filter\\\"]],false],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-right\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"clear\\\"]]],null]],null]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.clearFilters\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"borderless-wrapper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,1,[\\\"table\\\"]],\\\"expected `mt.table` to be a contextual component but found a string. Did you mean `(component mt.table)`? ('apollo/pods/companies/index/template.hbs' @ L52:C15) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,3,[\\\"header\\\"]],\\\"expected `table.header` to be a contextual component but found a string. Did you mean `(component table.header)`? ('apollo/pods/companies/index/template.hbs' @ L53:C19) \\\"],null]],[[\\\"class\\\"],[\\\"companies-table-header\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,7,[\\\"row-sorting\\\"]],false],[0,\\\"\\\\n                    \\\"],[1,[22,7,[\\\"row-filtering\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,3,[\\\"body\\\"]],\\\"expected `table.body` to be a contextual component but found a string. Did you mean `(component table.body)`? ('apollo/pods/companies/index/template.hbs' @ L57:C19) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,4,[\\\"visibleContent\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"companies/companies-table/company-row\\\",null,[[\\\"company\\\",\\\"showCarriersTable\\\"],[[22,5,[]],[23,[\\\"showCarriersTable\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5,6]},null]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,1,[\\\"footer\\\"]],\\\"expected `mt.footer` to be a contextual component but found a string. Did you mean `(component mt.footer)`? ('apollo/pods/companies/index/template.hbs' @ L64:C15) \\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,2,[\\\"size-select\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[22,2,[\\\"pagination-numeric\\\"]],false],[0,\\\"\\\\n                \\\"],[1,[22,2,[\\\"pagination-simple\\\"]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.perPage\\\"],null],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"maxRowsInTable\\\"]]],null]],null]],[11,\\\"class\\\",\\\"clickable\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"common.save\\\"],null]]]],[9],[0,\\\" \\\"],[1,[27,\\\"fa-icon\\\",[\\\"floppy-disk\\\"],null],false],[0,\\\" \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"success\\\"],[9],[1,[21,\\\"saveSuccessMessage\\\"],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/companies/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/invite/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: service('session-account'),\n    model: function (params) {\n      const self = this;\n      const origin = window.location.origin + '#';\n      const partnershipType = this.get('store').peekAll('partnership-type').filterBy('name', params.partnershipType).get('firstObject');\n      const principalCompanyId = localStorage.getItem('principalId');\n      const roleGroups = this.store.peekRecord('company', principalCompanyId).get('roleGroups');\n      const userRoleGroup = this.get('sessionAccount').get('currentUser.roleGroup');\n      const roleGroupInvRestriction = this.store.query('role-group-invitation-restriction', {\n        roleGroup: userRoleGroup.get('id')\n      });\n      const companyId = params.company_id;\n      return new Promise(function (resolve) {\n        self.store.query('company-ramp', {\n          companyId: companyId\n        }).then(companyRamps => {\n          const hasCompanyRamps = !!companyRamps.get('length');\n          const defaultCompanyRamps = hasCompanyRamps ? self.get('store').query('ramp', {\n            rampIds: companyRamps.getEach('ramp.id')\n          }) : null;\n          const defaultCompanyWarehouses = hasCompanyRamps ? self.get('store').query('warehouse', {\n            warehouseIds: companyRamps.getEach('warehouse.id')\n          }) : null;\n          resolve(Ember.RSVP.hash({\n            invitation: self.store.createRecord('invitation', {\n              enabled: true,\n              origin: origin,\n              partnershipType: partnershipType\n            }),\n            companyId: companyId,\n            partnershipType: partnershipType,\n            roleGroups: roleGroups,\n            roleGroupInvRestriction: roleGroupInvRestriction,\n            defaultCompanyRamps: defaultCompanyRamps,\n            defaultCompanyWarehouses: defaultCompanyWarehouses\n          }));\n        });\n      });\n    },\n    renderTemplate: function () {\n      this.render('invitations.create');\n    },\n    setupController: function (controller, model) {\n      if (model.companyId) {\n        this.get('store').findRecord('company', model.companyId).then(company => {\n          model.invitation.set('company', company);\n          model.invitation.set('taxIdNumber', company.get('taxIdNumber'));\n          model.invitation.set('country', company.get('country'));\n        });\n      }\n\n      this.controllerFor('invitations.create').setProperties({\n        model: model\n      });\n    },\n    actions: {\n      willTransition: function () {\n        this.controllerFor('invitations.create').setProperties({\n          errors: [],\n          invitationSuccess: null\n        });\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/modals/add-driver/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    store: service(),\n    countries: function () {\n      return this.get('store').peekAll('country').sortBy('ibanSymbol');\n    }.property(),\n    actions: {\n      save() {\n        const self = this;\n        const driver = this.get('model');\n        const documentNumber = driver.get('documentNumber');\n\n        if (documentNumber) {\n          driver.set('documentNumber', documentNumber.replace(/\\s+/g, ''));\n        }\n\n        const phoneNumber = driver.get('phoneNumber');\n\n        if (phoneNumber) {\n          driver.set('phoneNumber', phoneNumber.replace(/\\s+/g, ''));\n        }\n\n        if (!driver.validate()) {\n          return;\n        }\n\n        driver.save().then(() => {\n          self.send('hideModal');\n          self.send('refreshModel');\n          self.setProperties({\n            errors: [],\n            model: null\n          });\n        });\n      },\n\n      disable() {\n        const self = this;\n        const driver = this.get('model');\n        driver.set('enabled', false);\n        driver.save().then(() => {\n          self.send('hideModal');\n          self.send('refreshModel');\n          self.setProperties({\n            errors: [],\n            model: null\n          });\n        });\n      },\n\n      cancel() {\n        console.debug(`Zamykamy okienko dodawania kierowcy...`);\n\n        if (this.get('model')) {\n          this.get('model').rollbackAttributes();\n        }\n\n        this.setProperties({\n          errors: [],\n          model: null\n        });\n      },\n\n      setDocumentType(documentType) {\n        this.get('model').set('documentType', documentType);\n      },\n\n      setPhonePrefix(phonePrefix) {\n        this.set('model.phoneNumberPrefix', phonePrefix);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/modals/add-driver/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"VVJVMkkK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"country\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"cancel\\\"],[[27,\\\"t\\\",[\\\"driver.addDriver\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"driver.name\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-8 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"driver.country\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-4 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"country\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"country\\\"]],[23,[\\\"countries\\\"]],true,\\\"ibanSymbol\\\",[27,\\\"t\\\",[\\\"company.selectCountry\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"country\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,1,[\\\"ibanSymbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"country\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right col-sm-4\\\"],[11,\\\"data-toggle\\\",\\\"buttons\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"documentType\\\"]],\\\"ID_CARD\\\"],null],\\\"active\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setDocumentType\\\",\\\"ID_CARD\\\"],null]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"input\\\"],[11,\\\"name\\\",\\\"options\\\"],[11,\\\"id\\\",\\\"option1\\\"],[11,\\\"autocomplete\\\",\\\"off\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"driver.documentType.\\\",[23,[\\\"model\\\",\\\"DOCUMENT_TYPES\\\",\\\"ID_CARD\\\"]]],null]],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"documentType\\\"]],\\\"PASSPORT\\\"],null],\\\"active\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setDocumentType\\\",\\\"PASSPORT\\\"],null]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"input\\\"],[11,\\\"name\\\",\\\"options\\\"],[11,\\\"id\\\",\\\"option2\\\"],[11,\\\"autocomplete\\\",\\\"off\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"driver.documentType.\\\",[23,[\\\"model\\\",\\\"DOCUMENT_TYPES\\\",\\\"PASSPORT\\\"]]],null]],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"driver.documentNumber\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-8 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"documentNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"size\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"text\\\",15,[23,[\\\"model\\\",\\\"documentNumber\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"documentNumber\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"driver.phoneNumber\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-3 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"phoneNumberPrefix\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"phone-prefix\\\",null,[[\\\"setPhonePrefix\\\",\\\"existingPhonePrefix\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"setPhonePrefix\\\"],null],[23,[\\\"model\\\",\\\"phoneNumberPrefix\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"phoneNumberPrefix\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-5 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"phoneNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"min\\\",\\\"max\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",\\\"number\\\",\\\"100000000\\\",\\\"999999999999\\\",[23,[\\\"model\\\",\\\"phoneNumber\\\"]],\\\"600000000\\\"]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"phoneNumber\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons padding-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"model\\\",\\\"id\\\"]],[27,\\\"has-role\\\",[\\\"ROLE_DELETE_DRIVER\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"driver.disableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"disable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"ban\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.disable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/companies/modals/add-driver/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/modals/add-partnership/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    errors: [],\n    selectedContractor: null,\n    partnership: Ember.computed('model.partnership', function () {\n      return this.get('model.partnership');\n    }),\n    company: Ember.computed('model.company', function () {\n      return this.get('model.company');\n    }),\n    newContractorType: Ember.computed('model.newContractorType', function () {\n      return this.get('model.newContractorType');\n    }),\n    contractorPropertyName: Ember.computed('company.partnershipType.name', function () {\n      const currentCompanyPartnershipName = this.get('company.partnershipType.name');\n\n      if (currentCompanyPartnershipName === 'CARRIER') {\n        return 'principalCompany';\n      } else {\n        return 'contractorCompany';\n      }\n    }),\n    actions: {\n      setContractor(item) {\n        this.get('store').findRecord('company', item.id).then(contractor => {\n          this.set('selectedContractor', contractor);\n          this.set(`partnership.${this.get('contractorPropertyName')}`, contractor);\n        });\n      },\n\n      removeContractor() {\n        this.set('selectedContractor', null);\n        this.set(`partnership.${this.get('contractorPropertyName')}`, null);\n      },\n\n      save() {\n        const partnership = this.get('partnership');\n\n        if (!partnership.validate()) {\n          return;\n        }\n\n        partnership.save().then(() => {\n          this.send('hideModal');\n          window.location.reload();\n        }).catch(response => {\n          this.set('errors', response.errors);\n        });\n      },\n\n      cancel() {\n        this.set('selectedContractor', null);\n        this.get('partnership').unloadRecord();\n        this.set('errors', []);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/modals/add-partnership/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"90xoPUtY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"result\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"cancel\\\"],[[27,\\\"t\\\",[\\\"partnership.add.title\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"partnership\\\",\\\"errors\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"partnership.contractor\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"company-auto-complete\\\",null,[[\\\"type\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"clearSelection\\\"],[[23,[\\\"newContractorType\\\"]],[27,\\\"readonly\\\",[[23,[\\\"selectedContractor\\\",\\\"name\\\"]]],null],[27,\\\"t\\\",[\\\"transport.company.autoCompletePlaceholder\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setContractor\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"removeContractor\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,1,[\\\"shortName\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"address\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,1,[\\\"address\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"partnership\\\"]],[23,[\\\"contractorPropertyName\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"company.taxIdNumber\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon mw-50px\\\"],[9],[1,[23,[\\\"selectedContractor\\\",\\\"country\\\",\\\"ibanSymbol\\\"]],false],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"selectedContractor\\\",\\\"taxIdNumber\\\"]],true]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.type\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[27,\\\"t\\\",[[27,\\\"concat\\\",[[23,[\\\"newContractorType\\\"]],\\\".label\\\"],null]],null],true]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons padding-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/companies/modals/add-partnership/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/modals/add-truck/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    intl: service(),\n    store: service(),\n    truckTypes: Ember.computed(function () {\n      return this.get('store').peekAll('truck-type');\n    }),\n    actions: {\n      setTruckType(truckType) {\n        this.get('model').set('truckType', truckType);\n      },\n\n      save() {\n        const self = this;\n        const truck = this.get('model');\n\n        if (!truck.validate()) {\n          return;\n        }\n\n        truck.set('registrationNumber', truck.get('registrationNumber').toUpperCase().replace(/\\s+/g, ''));\n\n        if (truck.get('trailer') && truck.get('trailer').length > 0) {\n          truck.set('trailer', truck.get('trailer').toUpperCase().replace(/\\s+/g, ''));\n        }\n\n        truck.save().then(() => {\n          self.send('hideModal');\n          self.send('refreshModel');\n          self.setProperties({\n            errors: [],\n            model: null\n          });\n        });\n      },\n\n      disable() {\n        const self = this;\n        const truck = this.get('model');\n        truck.set('enabled', false);\n        truck.save().then(() => {\n          self.send('hideModal');\n          self.send('refreshModel');\n          self.setProperties({\n            errors: [],\n            model: null\n          });\n        });\n      },\n\n      cancel() {\n        console.debug(`Zamykamy okienko dodawania pojazdu...`);\n\n        if (this.get('model')) {\n          this.get('model').rollbackAttributes();\n        }\n\n        this.setProperties({\n          errors: [],\n          model: null\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/modals/add-truck/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"A3ZoneRj\",\n    \"block\": \"{\\\"symbols\\\":[\\\"type\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"cancel\\\"],[[27,\\\"t\\\",[\\\"truck.addTruck\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"truck.registrationNumber\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-8 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"registrationNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"registrationNumber\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"registrationNumber\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"truck.truckType\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-8 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"truckType\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"truckType\\\"]],[23,[\\\"truckTypes\\\"]],true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"truckType\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"truckType\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"truck.trailer\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-8 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"trailer\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"size\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"text\\\",15,[23,[\\\"model\\\",\\\"trailer\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"trailer\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"truck.description\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-8 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"description\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"size\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"text\\\",15,[23,[\\\"model\\\",\\\"description\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"description\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"truck.hds\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-8 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"hds\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"hds\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"hds\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons padding-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"model\\\",\\\"id\\\"]],[27,\\\"has-role\\\",[\\\"ROLE_DELETE_TRUCK\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"truck.disableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"disable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"ban\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.disable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/companies/modals/add-truck/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/modals/add-worker/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    store: service(),\n    sessionAccount: service('session-account'),\n    worker: Ember.computed('model', function () {\n      return this.get('model.worker') ? this.get('model.worker') : this.get('model');\n    }),\n    transport: Ember.computed('model', function () {\n      return this.get('model.transport');\n    }),\n\n    workerLabel(action) {\n      const translationKey = this.transport ? this.get('transport').get('transportType.workerFieldTranslationKey') : null;\n\n      if (action === 'add') {\n        if (translationKey === 'GUESTS') return 'addGuest';\n        if (translationKey === 'SERVICEMEN') return 'addServiceman';\n        return 'addWorker';\n      } else if (action === 'edit') {\n        if (translationKey === 'GUESTS') return 'editGuest';\n        if (translationKey === 'SERVICEMEN') return 'editServiceman';\n        return 'editWorker';\n      }\n    },\n\n    addWorkerLabel: Ember.computed('model', function () {\n      return this.workerLabel('add');\n    }),\n    editWorkerLabel: Ember.computed('model', function () {\n      return this.workerLabel('edit');\n    }),\n    actions: {\n      saveOrUpdate() {\n        const worker = this.get('worker');\n        const transport = this.get('transport');\n        const self = this;\n\n        if (!worker.validate()) {\n          return;\n        }\n\n        if (worker.get('phoneNumberPrefix') === null) {\n          worker.set('phoneNumberPrefix', '48');\n        }\n\n        worker.save().then(() => {\n          transport ? self.send('hideModal', 'companies.modals.add-worker') : self.send('hideModal');\n          transport ? worker.reload() : self.send('refreshModel');\n\n          if (transport) {\n            transport.get('workers').pushObject(worker);\n          }\n\n          self.setProperties({\n            errors: [],\n            model: null\n          });\n\n          if (transport) {\n            self.send('showModal', 'transports.modals.create-transport', transport);\n          }\n        });\n      },\n\n      cancel() {\n        console.debug('Zamykamy okienko edycji pracownika...');\n        const transport = this.get('transport');\n\n        if (!this.get('worker.id')) {\n          this.get('worker').unloadRecord();\n        } else if (this.get('worker')) {\n          this.get('worker').rollbackAttributes();\n        }\n\n        this.setProperties({\n          errors: [],\n          model: null\n        });\n        this.send('hideModal', 'companies.modals.add-worker');\n\n        if (transport) {\n          this.send('showModal', 'transports.modals.create-transport', transport);\n        }\n      },\n\n      setPhonePrefix(phonePrefix) {\n        if (this.get('transport')) {\n          this.set('model.worker.phoneNumberPrefix', phonePrefix);\n        } else this.set('model.phoneNumberPrefix', phonePrefix);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/modals/add-worker/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"FCpNgf4n\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"cancel\\\"],[[27,\\\"concat\\\",[[27,\\\"t\\\",[[27,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"model\\\",\\\"worker\\\",\\\"id\\\"]],[23,[\\\"worker\\\",\\\"id\\\"]]],null],[27,\\\"concat\\\",[\\\"worker.\\\",[23,[\\\"editWorkerLabel\\\"]]],null],[27,\\\"concat\\\",[\\\"worker.\\\",[23,[\\\"addWorkerLabel\\\"]]],null]],null]],null],\\\" \\\",[23,[\\\"worker\\\",\\\"name\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"worker.name\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-8 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"worker\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"worker\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"driver.phoneNumber\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-3 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"phoneNumberPrefix\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"phone-prefix\\\",null,[[\\\"setPhonePrefix\\\",\\\"existingPhonePrefix\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"setPhonePrefix\\\"],null],[23,[\\\"worker\\\",\\\"phoneNumberPrefix\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"worker\\\"]],\\\"phoneNumberPrefix\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-5 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"phoneNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"min\\\",\\\"max\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",\\\"number\\\",\\\"100000000\\\",\\\"999999999999\\\",[23,[\\\"worker\\\",\\\"phoneNumber\\\"]],\\\"np. 111222333\\\"]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"worker\\\"]],\\\"phoneNumber\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[11,\\\"for\\\",\\\"isTranined\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"worker.trained\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-8 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"worker\\\",\\\"trained\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"worker\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons padding-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"saveOrUpdate\\\"]],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/companies/modals/add-worker/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/modals/edit-address/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    store: service(),\n    sessionAccount: service('session-account'),\n    showVoivodeshipField: Ember.computed('model.country.ibanSymbol', function () {\n      return this.get('sessionAccount').getSettingValue('SHOW_COMPANY_VOIVODESHIP_FIELD') === 'true' && this.get('model.country.ibanSymbol') === 'PL';\n    }),\n    countries: Ember.computed('', function () {\n      return this.get('store').peekAll('country').sortBy('ibanSymbol');\n    }),\n\n    _handleSuccessfullSave() {\n      this.set('errors', []);\n      this.send('refreshModel');\n      this.send('hideModal');\n      this.setProperties({\n        errors: [],\n        model: null\n      });\n    },\n\n    actions: {\n      async update() {\n        const self = this;\n        const address = this.get('model');\n\n        if (address.get('id')) {\n          const newAddress = await address.copy(true);\n          newAddress.set('idToDisable', address.get('id'));\n          newAddress.save().then(() => {\n            self._handleSuccessfullSave();\n          }).catch(response => {\n            self.set('errors', response.errors);\n          });\n        } else {\n          address.save().then(() => {\n            self._handleSuccessfullSave();\n          }).catch(response => {\n            self.set('errors', response.errors);\n          });\n        }\n      },\n\n      cancel() {\n        console.debug('Zamykamy okienko edycji adresu...');\n\n        if (!this.get('model.id')) {\n          this.get('model').unloadRecord();\n        } else if (this.get('model')) {\n          this.get('model').rollbackAttributes();\n        }\n\n        this.setProperties({\n          errors: [],\n          model: null\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/modals/edit-address/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"J7A7njR4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"country\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"ok\\\",\\\"cancel\\\"],[[27,\\\"t\\\",[[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]],\\\"common.edit\\\",\\\"common.add\\\"],null]],null],\\\"save\\\",[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"address.recipient\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control focus-input\\\",[23,[\\\"model\\\",\\\"recipient\\\"]],[23,[\\\"canNotEdit\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"address.street\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"street\\\"]],[23,[\\\"canNotEdit\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"address.city\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"city\\\"]],[23,[\\\"canNotEdit\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showVoivodeshipField\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"address.voivodeship\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"voivodeship-select\\\",null,[[\\\"country\\\",\\\"voivodeship\\\"],[[23,[\\\"model\\\",\\\"country\\\"]],[23,[\\\"model\\\",\\\"voivodeship\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"country\\\",\\\"isWithoutPostalCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"address.province\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"province\\\"]],[23,[\\\"canNotEdit\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"address.postal\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-3\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"postal\\\"]],[23,[\\\"canNotEdit\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-4 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"disabled\\\",\\\"selected\\\",\\\"options\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"renderInPlace\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"canNotEdit\\\"]],[23,[\\\"model\\\",\\\"country\\\"]],[23,[\\\"countries\\\"]],\\\"ibanSymbol\\\",[27,\\\"t\\\",[\\\"company.selectCountry\\\"],null],true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"country\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,1,[\\\"ibanSymbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons padding-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"update\\\"]],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/companies/modals/edit-address/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/ramp-edition/controller\", [\"exports\", \"apollo/mixins/ramps-access-mixin\", \"jquery\"], function (_exports, _rampsAccessMixin, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_rampsAccessMixin.default, {\n    CHECKBOXES_DEFAULT_CHECKED: false,\n    updateForAllUsers: true,\n    store: Ember.inject.service(),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    intl: Ember.inject.service(),\n    errors: [],\n    successMessage: null,\n    company: Ember.computed('model.company.id', function () {\n      return this.get('model.company');\n    }),\n    principalCompany: Ember.computed(function () {\n      const principalId = localStorage.getItem('principalId');\n      return this.get('store').peekRecord('company', principalId);\n    }),\n    companyRamps: Ember.computed('model.companyRamps.[]', function () {\n      return this.get('model.companyRamps');\n    }),\n    setProxiedWarehouses: Ember.observer('proxiedWarehouses.length', 'model', function () {\n      const self = this;\n      Ember.run.once(this, function () {\n        self.checkWarehouses();\n      });\n    }),\n    setProxiedRamps: Ember.observer('proxiedRamps.length', 'model', function () {\n      const self = this;\n      Ember.run.once(this, function () {\n        self.checkRamps();\n      });\n    }),\n    allRampsChecked: Ember.computed('proxiedRamps.length', 'checkedRamps.length', function () {\n      return this.get('proxiedRamps.length') === this.get('checkedRamps.length');\n    }),\n\n    checkWarehouses() {\n      const proxiedWarehouses = this.get('proxiedWarehouses');\n      const warehouseIds = this.get('companyRamps').getEach('ramp.warehouse.id').uniq();\n      proxiedWarehouses.forEach(w => w.set('checked', warehouseIds.includes(w.get('id'))));\n    },\n\n    checkRamps() {\n      const proxiedRamps = this.get('proxiedRamps');\n      const userRampsIds = this.get('companyRamps').getEach('ramp.id').uniq();\n      proxiedRamps.forEach(r => r.set('checked', userRampsIds.includes(r.get('id'))));\n    },\n\n    setSuccessMessage: function () {\n      this.set('successMessage', this.get('intl').t('common.saveSuccessMessage'));\n      this.set('errors', []);\n      (0, _jquery.default)('html, body').animate({\n        scrollTop: 0\n      }, 'slow');\n      this.resetButton();\n    },\n    setErrorMessage: function (message) {\n      this.set('successMessage', null);\n      this.set('errors', message);\n      (0, _jquery.default)('html, body').animate({\n        scrollTop: 0\n      }, 'slow');\n      this.resetButton();\n    },\n    resetButton: function () {\n      const button = (0, _jquery.default)(\"button[data-button-name='save-ramps']\");\n      button.button('reset');\n    },\n    actions: {\n      toggleAllRamps: function () {\n        const shouldBeChecked = !this.get('allRampsChecked');\n        this.get('proxiedWarehouses').forEach(w => {\n          w.set('checked', shouldBeChecked);\n          w.get('proxiedRamps').forEach(r => r.set('checked', shouldBeChecked));\n        });\n      },\n\n      async save() {\n        const updateForAllUsers = this.get('updateForAllUsers');\n        const hasUsers = this.get('company.users.length') > 0;\n\n        if (updateForAllUsers && hasUsers && !confirm(this.get('intl').t('companyRamp.updateForAllUsersConfirmMsg'))) {\n          this.resetButton();\n          return;\n        }\n\n        const checkedRamps = this.get('proxiedRamps').filter(r => r.checked).getEach('id');\n        const companyId = this.get('company.id');\n        const principalCompanyId = this.get('principalCompany.id');\n        const data = JSON.stringify({\n          ramps: checkedRamps,\n          company: companyId,\n          principalCompany: principalCompanyId,\n          updateForAllUsers\n        });\n        const path = this.get('apolloApiService').APOLLO_API.COMPANY_RAMPS.SAVE;\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, null, {\n            body: data\n          });\n\n          if (response.ok) {\n            this.setSuccessMessage();\n          } else {\n            const error = await response.json();\n            this.setErrorMessage(error);\n          }\n        } catch (error) {\n          this.setErrorMessage([this.get('intl').t('common.defaultError')]);\n          console.error(error);\n        }\n      },\n\n      cancel() {\n        this.transitionToRoute('companies.show', this.get('company.id'));\n      },\n\n      refreshUsers() {\n        this.store.query('user', {\n          individualRampAccess: true,\n          companyId: this.get('company.id')\n        }).then(users => {\n          Ember.set(this.get('model'), 'users', users);\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/ramp-edition/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    access: [\"ROLE_MANAGE_COMPANY_RAMP\"],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const company = this.store.findRecord('company', params.company_id);\n      const companyRamps = this.store.query('company-ramp', {\n        companyId: params.company_id\n      });\n      const users = this.store.query('user', {\n        individualRampAccess: true,\n        companyId: params.company_id\n      });\n      return Ember.RSVP.hash({\n        company: company,\n        companyRamps: companyRamps,\n        users: users\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/ramp-edition/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"iE7DVQpE\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"company-nav-header\\\",null,[[\\\"company\\\"],[[23,[\\\"company\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"padding-bottom-big\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"company.rampEdition.header\\\"],[[\\\"companyName\\\"],[[23,[\\\"company\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\",\\\"defaultRampAccessExists\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block padding-bottom\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"companyRamp.notExists\\\"],[[\\\"companyName\\\"],[[23,[\\\"company\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 text-right control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"user.availableRamps\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"updateForAllUsers\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"company.rampEdition.updateForAllUsers\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"input\\\"],[12,\\\"checked\\\",[21,\\\"allRampsChecked\\\"]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"toggleAllRamps\\\"],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.selectDeselectAll\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"ramps-checkboxes\\\",null,[[\\\"proxiedWarehouses\\\",\\\"canNotEditRamps\\\",\\\"changeAction\\\"],[[23,[\\\"proxiedWarehouses\\\"]],false,[27,\\\"action\\\",[[22,0,[]],\\\"toggleWarehouse\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top-big col-sm-12\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save-ramps\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top-big row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[9],[1,[27,\\\"t\\\",[\\\"companyRamp.usersWithIndividualRampAccess\\\"],null],false],[0,\\\"\\\\n            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa-solid fa-refresh clickable pull-right\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"refreshUsers\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"users/users-extended-list\\\",null,[[\\\"users\\\",\\\"company\\\"],[[23,[\\\"model\\\",\\\"users\\\"]],[23,[\\\"company\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/companies/ramp-edition/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/show/controller\", [\"exports\", \"apollo/mixins/company-mixin\", \"jquery\", \"apollo/config/environment\"], function (_exports, _companyMixin, _jquery, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_companyMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    companiesIndexController: Ember.inject.controller('companies/index'),\n    company: Ember.computed('model.company', function () {\n      return this.get('model.company');\n    }),\n    additionalDetailsDisabled: Ember.computed('company.partnershipWithCurrentCompany', function () {\n      return !this.get('sessionAccount').hasRole('ROLE_EDIT_COMPANY');\n    }),\n    principalCompany: Ember.computed(function () {\n      const principalCompanyId = localStorage.getItem('principalId');\n      return this.get('store').peekRecord('company', principalCompanyId);\n    }),\n    showApply: Ember.computed('company.partnershipWithPrincipal.partnershipType.name', function () {\n      return (this.get('company.partnershipWithPrincipal.partnershipType.name') === 'CARRIER' || this.get('company.partnershipWithPrincipal.partnershipType.name') === 'OPERATOR') && this.get('sessionAccount').getSettingValue('HAS_ACCESS_TO_APPLIES');\n    }),\n    showAdviceVerificationSection: Ember.computed('', function () {\n      return this.get('sessionAccount').getSettingValue('ADVICE_VERIFICATION_EMAIL_ENABLED') === 'true';\n    }),\n    showVoivodeshipField: Ember.computed('company.headquarter.country.ibanSymbol', function () {\n      return this.get('sessionAccount').getSettingValue('SHOW_COMPANY_VOIVODESHIP_FIELD') === 'true' && this.get('company.headquarter.country.ibanSymbol') === 'PL';\n    }),\n    isEditing: Ember.computed('company.id', function () {\n      return this.get('company').get('id') != null;\n    }),\n    showNewAddressForm: Ember.computed(function () {\n      return false;\n    }),\n    countries: Ember.computed(function () {\n      return this.store.peekAll('country');\n    }),\n    availableTypes: Ember.computed(function () {\n      return this.store.peekAll('partnershipType');\n    }),\n    showAdviceDaysLimitSection: Ember.computed(function () {\n      const principalCompanyId = localStorage.getItem('principalId');\n      const setting = this.get('store').peekAll('setting').filterBy('company.id', principalCompanyId).filterBy('name', 'DEFAULT_ADVICE_FUTURE_DAYS_LIMIT').get('firstObject');\n      return !!setting;\n    }),\n    showPatron: Ember.computed('company.partnershipType.name', function () {\n      return this.get('sessionAccount').getSettingValue('PATRON_IN_CONTRACTOR_DETAILS_ENABLED') === 'true' && (this.get('company.partnershipType.name') === 'SUPPLIER' || this.get('company.partnershipType.name') === 'OPERATOR');\n    }),\n    contractorsGroupTypes: Ember.computed('company.partnershipWithPrincipal.partnershipType.name', function () {\n      const self = this;\n\n      if (!this.get('company.partnershipWithPrincipal.partnershipType.name')) {\n        return;\n      }\n\n      return this.get('store').query('contractorsGroupType', {\n        principalCompanyId: localStorage.getItem('principalId'),\n        partnershipTypeName: self.get('company.partnershipWithPrincipal.partnershipType.name')\n      });\n    }),\n    showAllowsPeriodicTransportFlag: Ember.computed('', function () {\n      return this.get('store').peekAll('transportType').any(tt => tt.get('allowsPeriodicTransport'));\n    }),\n\n    _findPatrons(item) {\n      const self = this;\n      const currentPatron = self.get('company.partnershipWithPrincipal.patron');\n      return this.get('store').findRecord('user', item.id).then(person => {\n        self.set('company.partnershipWithPrincipal.prevPatron', currentPatron);\n        self.set('company.partnershipWithPrincipal.patron', person);\n      });\n    },\n\n    actions: {\n      save: function () {\n        const self = this;\n        const token = this.get('sessionAccount').get('token');\n        const companyModel = this.get('company');\n        this.trimCompany(companyModel);\n        companyModel.set('changeTaxIdNumber', !!companyModel.changedAttributes().taxIdNumber);\n        companyModel.validate();\n        companyModel.get('partnershipWithPrincipal').validate();\n\n        if (companyModel.get('errors.length') || companyModel.get('partnershipWithPrincipal').get('errors.length')) {\n          return;\n        }\n\n        if (companyModel.get('partnershipWithPrincipal').didChange('patron')) {\n          // TODO :: apollo-api-service\n          _jquery.default.ajax({\n            url: _environment.default.serverURL + '/company/patronsTransports',\n            type: 'GET',\n            data: {\n              companyId: companyModel.get('id')\n            },\n            beforeSend: function (xhr) {\n              xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n            }\n          }).then(data => {\n            if (Ember.isEmpty(data.transportIds) || confirm(self.get('intl').t('company.patronWillChange', {\n              transportIds: data.transportIds\n            }))) {\n              self.send('saveCompany', companyModel);\n            }\n          });\n        } else {\n          this.send('saveCompany', companyModel);\n        }\n      },\n\n      saveCompany(companyModel) {\n        const self = this;\n        const headquarter = companyModel.get('headquarter');\n\n        if (headquarter.get('id')) {\n          headquarter.set('idToDisable', headquarter.get('id'));\n        }\n\n        companyModel.save().then(company => {\n          console.debug(`Company ${company.get('name')} has been updated.`);\n          self.setProperties({\n            errors: []\n          });\n\n          if (headquarter.get('content')) {\n            headquarter.get('content').unloadRecord();\n          }\n\n          self.send('refreshModel');\n          companyModel.get('partnershipWithPrincipal').reload();\n          const msg = self.get('intl').t('company.saveSuccessMessage');\n          self.set('successMessage', msg);\n\n          if (self.get('isEditing')) {\n            self.transitionToRoute('companies.show', company.id);\n          } else {\n            self.transitionToRoute('companies.index');\n          }\n        }).catch(response => {\n          self.set('successMessage', null);\n\n          if (response.errors.some(e => e.status === '403')) {\n            const msg = this.get('intl').t('common.noAuthority');\n            self.set('errors', [msg]);\n          } else {\n            self.set('errors', response.errors);\n          }\n        });\n      },\n\n      disable: function () {\n        const companyName = this.get('company.name');\n        this.get('company').destroyRecord().then(() => {\n          const msg = this.get('intl').t('company.deletedMessage', {\n            companyName\n          });\n          this.set('companiesIndexController.successMessage', msg);\n          this.transitionToRoute('companies.index');\n        }).catch(response => {\n          this.set('errors', response.errors);\n        });\n      },\n      cancel: async function () {\n        this.get('company').rollbackAttributes();\n        this.get('company.partnershipWithPrincipal').rollbackAttributes();\n\n        if (this.get('company.partnershipWithPrincipal.prevPatron')) {\n          this.get('company.partnershipWithPrincipal').setProperties({\n            patron: this.get('company.partnershipWithPrincipal.prevPatron'),\n            prevPatron: null\n          });\n        }\n\n        const headquarter = await this.get('company.headquarter');\n\n        if (headquarter) {\n          if (headquarter.get('id')) {\n            headquarter.rollbackAttributes();\n          } else {\n            headquarter.unloadRecord();\n            this.get('company').set('headquarter', null);\n          }\n        }\n\n        this.transitionToRoute('companies.index');\n      },\n\n      addHeadquarter() {\n        const address = this.get('store').createRecord('address', {\n          company: this.get('company'),\n          enabled: true,\n          isHeadquarters: true,\n          recipient: this.get('company.name')\n        });\n        this.get('company').set('headquarter', address);\n      },\n\n      showMainModal(templateName = 'transports.modals.create-transport', model) {\n        this.send('showModal', templateName, model);\n      },\n\n      setPatron(item) {\n        Ember.run.once(this, this._findPatrons(item));\n      },\n\n      removePatron() {\n        this.set('company.partnershipWithPrincipal.patron', null);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/show/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"apollo/mixins/menu-mixin\"], function (_exports, _authenticatedRouteMixin, _menuMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _menuMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_COMPANIES_TAB', 'ROLE_OWN_COMPANY_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const companyId = params.company_id;\n      const currentUserCompanyId = Number(this.get('sessionAccount.currentUser.company.id'));\n      const principalCompanyId = localStorage.getItem('principalId');\n\n      if (Number(companyId) !== currentUserCompanyId && !this.get('sessionAccount').hasRole('ROLE_COMPANIES_TAB')) {\n        // użytkownik próbuje podejrzeć cudzą firmę, mimo braku uprawnień\n        this.transitionTo('forbidden');\n        return;\n      }\n\n      return Ember.RSVP.hash({\n        company: this.store.findRecord('company', companyId),\n        principalContractorsGroupType: this.get('store').query('principal-contractors-group-type', {\n          principalCompany: principalCompanyId\n        })\n      });\n    },\n\n    afterModel(model) {\n      if (model.company.get('isAuxiliaryPartner')) {\n        console.log(`Company ${model.company.get('shortName')} is a partner of one of contractors. Edition is disabled -> redirecting to list of companies.`);\n        this.transitionTo('companies.index');\n      }\n    },\n\n    activate() {\n      this.activateCurrentTab('OWN_COMPANY_TAB');\n    },\n\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          errors: null,\n          successMessage: null\n        });\n      },\n\n      refreshModel() {\n        this.refresh();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/companies/show/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"EEFs5ztX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"patron\\\",\\\"pp\\\",\\\"country\\\",\\\"error\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"company-nav-header\\\",null,[[\\\"company\\\"],[[23,[\\\"company\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showApply\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"companies/apply-form\\\",null,[[\\\"model\\\"],[[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"company\\\",\\\"principalInDifferentPrincipalSpace\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 col-sm-12 text-info padding-bottom-big padding-top\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-info-circle\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"company.limitedDataHint\\\"],[[\\\"company\\\"],[[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\",\\\"contractorShortName\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 col-sm-12\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-heading\\\"],[11,\\\"data-field-name\\\",\\\"partnership-type-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\",\\\"partnershipType\\\",\\\"name\\\"]],\\\".panel.label\\\"],null]],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[22,4,[]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 text-right control-label\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"company.name\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[9],[0,\\\"\\\\n                               \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"COMPANY_NAME_INPUT\\\"],[9],[0,\\\"\\\\n                                   \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"company\\\",\\\"name\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"name\\\"]]]]]],false],[0,\\\"\\\\n                               \\\"],[10],[0,\\\"\\\\n\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\",\\\"errors\\\",\\\"contractorShortName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"company.shortName\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\",\\\"contractorShortName\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"shortName\\\"]]]]]],false],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\"]],\\\"contractorShortName\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"company\\\",\\\"headquarter\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"errors\\\",\\\"address\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"address.street\\\"],null],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\\n                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"company\\\",\\\"headquarter\\\",\\\"street\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"street\\\"]]]]]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"errors\\\",\\\"address\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"address.city\\\"],null],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\\n                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"company\\\",\\\"headquarter\\\",\\\"city\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"city\\\"]]]]]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showVoivodeshipField\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"errors\\\",\\\"address\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[27,\\\"t\\\",[\\\"address.voivodeship\\\"],null],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\\n                                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[27,\\\"voivodeship-select\\\",null,[[\\\"country\\\",\\\"voivodeship\\\"],[[23,[\\\"company\\\",\\\"headquarter\\\",\\\"country\\\"]],[23,[\\\"company\\\",\\\"headquarter\\\",\\\"voivodeship\\\"]]]]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"errors\\\",\\\"address\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"address.postal\\\"],null],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\\n                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-4\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"company\\\",\\\"headquarter\\\",\\\"postal\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"postal\\\"]]]]]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\\n                                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-5 \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"errors\\\",\\\"country\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"disabled\\\",\\\"selected\\\",\\\"options\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"country\\\"]]],[23,[\\\"company\\\",\\\"headquarter\\\",\\\"country\\\"]],[23,[\\\"countries\\\"]],\\\"ibanSymbol\\\",[27,\\\"t\\\",[\\\"company.selectCountry\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"company\\\",\\\"headquarter\\\",\\\"country\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                                        \\\"],[1,[22,3,[\\\"ibanSymbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"errors\\\",\\\"taxIdNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"company.taxIdNumber\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"tax-id-number-field\\\",null,[[\\\"company\\\",\\\"disabled\\\"],[[23,[\\\"company\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"taxIdNumber\\\"]]]]]],false],[0,\\\"\\\\n\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"taxIdNumber\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\",\\\"errors\\\",\\\"contractorNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"company.contractorNumber\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\",\\\"contractorNumber\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"contractorNumber\\\"]]]]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"errors\\\",\\\"pricingPlan\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"company.pricingPlan\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"disabled\\\",\\\"selected\\\",\\\"options\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"pricingPlan\\\"]]],[23,[\\\"company\\\",\\\"pricingPlan\\\"]],[23,[\\\"sessionAccount\\\",\\\"pricingPlans\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"company\\\",\\\"pricingPlan\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"pricingPlans.\\\",[22,2,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"pricingPlan\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"errors\\\",\\\"maxNumberOfAccounts\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"company.maxNumberOfAccounts\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[9],[0,\\\"\\\\n\\\\n                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input-group\\\"],[9],[0,\\\"\\\\n                                    \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"MAX_NUMBER_OF_ACCOUNTS\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"company\\\",\\\"maxNumberOfAccounts\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"maxNumberOfAccounts\\\"]]]]]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\\n                                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-info-circle text-info\\\"],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"company.maxNumberOfAccountsHint\\\"],null]],[9],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"maxNumberOfAccounts\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"company-representative\\\",null,[[\\\"model\\\",\\\"size\\\"],[[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\"]],\\\"medium\\\"]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"company-transport-limit\\\",null,[[\\\"model\\\",\\\"size\\\"],[[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\"]],\\\"medium\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showPatron\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\",\\\"errors\\\",\\\"patron\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"company.patron\\\"],null],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\\n                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"patron-auto-complete\\\",null,[[\\\"inputClass\\\",\\\"selectedValue\\\",\\\"companyId\\\",\\\"disabled\\\",\\\"clearSelection\\\",\\\"selectItem\\\"],[\\\" patron-auto-complete\\\",[27,\\\"readonly\\\",[[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\",\\\"patron\\\",\\\"name\\\"]]],null],[23,[\\\"company\\\",\\\"id\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"patron\\\"]]],\\\"removePatron\\\",\\\"setPatron\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                                        \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showAllowsPeriodicTransportFlag\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\",\\\"errors\\\",\\\"allowsPeriodicTransport\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"partnership.allowsPeriodicTransport\\\"],null],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\\n                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"checked\\\",\\\"disabled\\\"],[\\\"checkbox\\\",\\\"checkbox\\\",[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\",\\\"allowsPeriodicTransport\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"allowsPeriodicTransport\\\"]]]]]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showAdviceVerificationSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group border-top padding-top-big \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\",\\\"errors\\\",\\\"adviceVerificationInterval\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-6 control-label\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[27,\\\"t\\\",[\\\"partnership.adviceVerification.firstPartLabel\\\"],null],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\\n                                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-1 no-padding\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\",\\\"adviceVerificationInterval\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"adviceVerificationInterval\\\"]]]]]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\\n                                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label text-center\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[27,\\\"t\\\",[\\\"partnership.adviceVerification.secondPartLabel\\\"],null],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\\n                                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-1 control-label\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"disabled\\\"],[\\\"checkbox\\\",[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\",\\\"adviceVerification\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"adviceVerification\\\"]]]]]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\\n                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-12\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\"]],\\\"adviceVerificationInterval\\\"]]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"partnershipWithCurrentCompany\\\",\\\"errors\\\",\\\"additionalDetails\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"partnership.additionalDetails\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[11,\\\"data-field-name\\\",\\\"additionalDetails\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\",\\\"rows\\\",\\\"disabled\\\"],[[23,[\\\"company\\\",\\\"partnershipWithCurrentCompany\\\",\\\"additionalDetails\\\"]],\\\"textarea\\\",\\\"form-control\\\",\\\"4\\\",[23,[\\\"additionalDetailsDisabled\\\"]]]]],false],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\",\\\"partnershipWithCurrentCompany\\\"]],\\\"additionalDetails\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"addAddress\\\"]]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"company\\\",\\\"principalInDifferentPrincipalSpace\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"company\\\",\\\"headquarter\\\",\\\"id\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"company\\\",\\\"headquarter\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-minus\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                                            \\\"],[1,[27,\\\"t\\\",[\\\"address.newAddress\\\"],null],false],[0,\\\"\\\\n                                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addHeadquarter\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_DELETE_COMPANY\\\"],null]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"company.deleteConfirm\\\"],[[\\\"companyName\\\",\\\"principalName\\\"],[[23,[\\\"company\\\",\\\"name\\\"]],[23,[\\\"principalCompany\\\",\\\"name\\\"]]]]],[27,\\\"action\\\",[[22,0,[]],\\\"disable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                        \\\"],[1,[27,\\\"t\\\",[\\\"common.disable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n                                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_ACCESS_GROUPING_SECTION\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 col-sm-12\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"toggle-section\\\",null,[[\\\"shouldBeExpanded\\\",\\\"name\\\",\\\"iconClass\\\"],[true,\\\"GROUPS\\\",\\\"fa fa-users\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"companies/apply-form/contractors-group-section\\\",null,[[\\\"contractorsGroupTypes\\\",\\\"company\\\",\\\"principalContractorsGroupType\\\",\\\"partnership\\\"],[[23,[\\\"contractorsGroupTypes\\\"]],[23,[\\\"company\\\"]],[23,[\\\"model\\\",\\\"principalContractorsGroupType\\\"]],[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/companies/show/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/company-config/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend({\n    company: _emberData.default.belongsTo('company', {\n      async: true\n    }),\n    name: _emberData.default.attr('string'),\n    value: _emberData.default.attr('string')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/company-email-domain/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend(_modelValidator.default, {\n    company: _emberData.default.belongsTo('company', {\n      async: true\n    }),\n    domain: _emberData.default.attr('string'),\n    enabled: _emberData.default.attr('boolean', {\n      defaultValue() {\n        return true;\n      }\n\n    }),\n    validations: {\n      domain: {\n        presence: {\n          message: 'blank'\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/company-ramp/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend({\n    principalCompany: _emberData.default.belongsTo(\"company\"),\n    company: _emberData.default.belongsTo(\"company\"),\n    ramp: _emberData.default.belongsTo(\"ramp\"),\n    warehouse: _emberData.default.belongsTo(\"warehouse\")\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/company/adapter\", [\"exports\", \"apollo/adapters/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _application.default.extend({\n    // https://emberigniter.com/retrieve-ember-data-models-non-rest-api/\n    urlForQuery(query) {\n      if (query.statuses) {\n        return `${this.urlPrefix()}/companies/carriersToPass`;\n      }\n\n      return this._super(...arguments);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/company/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    hasMany,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    changeTracker: {\n      auto: true\n    },\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    validationService: Ember.inject.service('validation-service'),\n    amountOfCoverService: Ember.inject.service(),\n    users: hasMany('user', {\n      async: true,\n      inverse: null\n    }),\n    userGroups: hasMany('userGroup', {\n      async: true\n    }),\n    roleGroups: hasMany('roleGroup', {\n      async: true\n    }),\n    partnerships: hasMany('partnership', {\n      async: true,\n      inverse: null,\n      deepEmbedded: ['partnershipType', 'principalCompany']\n    }),\n    suppliers: hasMany('company', {\n      async: true\n    }),\n    availableRoles: hasMany('role', {\n      async: true\n    }),\n    transportTypes: hasMany('transportType', {\n      async: true\n    }),\n    driverLanguages: hasMany('country', {\n      async: true\n    }),\n    drivers: hasMany('driver', {\n      async: true,\n      inverse: 'owner'\n    }),\n    trucks: hasMany('truck', {\n      async: true,\n      inverse: 'owner'\n    }),\n    workers: hasMany('worker', {\n      async: true,\n      inverse: 'company'\n    }),\n    awaitingInvitations: hasMany('invitation', {\n      async: true,\n      inverse: null\n    }),\n    country: belongsTo('country', {\n      async: true\n    }),\n    headquarter: belongsTo('address', {\n      async: true,\n      deepEmbedded: ['country']\n    }),\n    partnershipType: belongsTo('partnershipType', {\n      async: true\n    }),\n    routeOffer: belongsTo('routeOffer', {\n      async: true\n    }),\n    isPrincipal: attr('boolean'),\n    isPrincipalInGeneral: attr('boolean'),\n    name: attr('string'),\n    shortName: attr('string'),\n    taxIdNumber: attr('string'),\n    taxIdIsoNumber: attr('string'),\n    contractorNumberWithPrincipal: attr('string'),\n    regon: attr('string'),\n    krs: attr('string'),\n    legalStatus: attr('string'),\n    email: attr('string'),\n    alias: attr('string'),\n    gusVerified: attr('boolean'),\n    enabled: attr('boolean', {\n      defaultValue() {\n        return true;\n      }\n\n    }),\n\n    /**\n     * Służy do określenia czy firma jest zablokowana. Jeśli równe true to do firmy nie przekażemy zlecenia ani nie wystawimy aukcji.\n     */\n    disabled: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    changeTaxIdNumber: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    allowsPeriodicTransport: attr('boolean'),\n    maxNumberOfAccounts: attr('number'),\n    pricingPlan: attr('string'),\n    isCourier: attr('boolean'),\n    isLdapCompany: attr('boolean'),\n    validations: {\n      headquarter: {\n        relations: ['belongsTo']\n      },\n      name: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!value) {\n              return false;\n            }\n\n            return value;\n          },\n          message: 'blank'\n        }]\n      },\n      country: {\n        presence: {\n          message: 'blankSelect'\n        }\n      },\n      partnershipType: {\n        custom: [{\n          validation: function (key, value) {\n            if (!value.content) {\n              return false;\n            }\n\n            return value.content;\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('company.chooseCompanyTypeHint');\n          }\n        }]\n      },\n      taxIdNumber: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      taxIdIsoNumber: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      maxNumberOfAccounts: {\n        custom: [{\n          validation: function (key, value, model) {\n            return model.get('validationService').isPositiveInteger(value);\n          },\n          message: 'positiveNumber'\n        }]\n      },\n      pricingPlan: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      regon: {\n        custom: [{\n          validation: function (key, value, model) {\n            const hasAccessToApplies = model.get('sessionAccount').getSettingValue('HAS_ACCESS_TO_APPLIES'); // validacja obowiązuje tylko jeśli pryncypał ma dostep do zgłoszeń i firma jest przewoźnikiem\n\n            if (hasAccessToApplies !== 'true' || !model.get('isCarrier')) {\n              return true;\n            }\n\n            if (!model.get('shouldHaveRegon')) {\n              return true;\n            }\n\n            return value;\n          },\n          message: 'blank'\n        }]\n      },\n      krs: {\n        custom: [{\n          validation: function (key, value, model) {\n            const hasAccessToApplies = model.get('sessionAccount').getSettingValue('HAS_ACCESS_TO_APPLIES'); // validacja obowiązuje tylko jeśli pryncypał ma dostep do zgłoszeń i firma jest przewoźnikiem\n\n            if (hasAccessToApplies !== 'true' || !model.get('isCarrier')) {\n              return true;\n            }\n\n            if (!model.get('shouldHaveKrs')) {\n              return true;\n            }\n\n            return value;\n          },\n          message: 'blank'\n        }]\n      },\n      legalStatus: {\n        custom: [{\n          validation: function (key, value, model) {\n            const hasAccessToApplies = model.get('sessionAccount').getSettingValue('HAS_ACCESS_TO_APPLIES'); // validacja obowiązuje tylko jeśli pryncypał ma dostep do zgłoszeń i firma jest przewoźnikiem\n\n            if (hasAccessToApplies !== 'true' || !model.get('isCarrier')) {\n              return true;\n            }\n\n            return value;\n          },\n          message: 'blank'\n        }]\n      }\n    },\n    symbol: Ember.computed('shortNameOrName', function () {\n      return this.get('shortNameOrName') ? this.get('shortNameOrName').substr(0, 5) : '';\n    }),\n    sortedUsers: Ember.computed('users.@each.name', function () {\n      return this.get('users').sortBy('name');\n    }),\n    shortNameOrName: Ember.computed('shortName', 'name', function () {\n      return this.get('shortName') ? this.get('shortName') : this.get('name');\n    }),\n    partnershipWithPrincipal: Ember.computed('partnerships.@each.principalCompanyId', function () {\n      const principalCompanyId = localStorage.getItem('principalId');\n      return this.get('partnerships').filterBy('principalCompanyId', principalCompanyId).get('firstObject');\n    }),\n    refreshPartnershipWithCurrentCompany: function () {\n      this.set('partnershipWithCurrentCompany', this.findPartnershipWithCurrentCompany());\n    },\n    partnershipWithCurrentCompany: Ember.computed('partnerships.@each.{contractorCompanyId,principalCompanyId}', 'sessionAccount.currentCompany.id', function () {\n      return this.findPartnershipWithCurrentCompany();\n    }),\n    findPartnershipWithCurrentCompany: function () {\n      const currentCompanyId = this.get('sessionAccount.currentCompany.id');\n      return this.get('partnerships').filterBy('principalCompanyId', currentCompanyId).get('firstObject');\n    },\n    isAuxiliaryPartner: Ember.computed('partnershipWithCurrentCompany.isAuxiliary', function () {\n      return this.get('partnershipWithCurrentCompany.isAuxiliary');\n    }),\n    sortedPartnershipsWithPrincipal: Ember.computed('partnerships.@each.principalCompany', function () {\n      return this.get('partnerships').filterBy('principalCompany.isPrincipal').sortBy('partnerships.name');\n    }),\n\n    /**\n     * Pryncypałem firmy w danej przestrzeni może być albo aktualny pryncypał (w większości przypadków),\n     * albo kontrahent aktualnego pryncypała - np. dostawca, który zaprosił przewoźnika.\n     */\n    principalCompanyInCurrentSpace: Ember.computed('isAuxiliaryPartner', 'partnershipWithCurrentCompany.parentPartnership.principalCompany', function () {\n      if (this.get('isAuxiliaryPartner')) {\n        return this.get('partnershipWithCurrentCompany.parentPartnership.principalCompany');\n      } else {\n        const principalCompanyId = localStorage.getItem('principalId');\n        return this.get('store').peekRecord('company', principalCompanyId);\n      }\n    }),\n    transportTypesThatCanBeCreated: Ember.computed('transportTypes.@each.canBeCreatedByRoleGroup', function () {\n      return this.get('transportTypes').filterBy('canBeCreatedByRoleGroup', true);\n    }),\n    isCurrentPrincipal: Ember.computed('id', function () {\n      return this.get('id') === localStorage.getItem('principalId');\n    }),\n    isCarrier: Ember.computed('partnershipWithPrincipal.partnershipType.isCarrier', function () {\n      return this.get('partnershipWithPrincipal.partnershipType.isCarrier');\n    }),\n    isSupplier: Ember.computed('partnershipWithPrincipal.partnershipType.isSupplier', function () {\n      return this.get('partnershipWithPrincipal.partnershipType.isSupplier');\n    }),\n    isServiceman: Ember.computed('partnershipWithPrincipal.partnershipType.isServiceman', function () {\n      return this.get('partnershipWithPrincipal.partnershipType.isServiceman');\n    }),\n    typeName: Ember.computed('partnershipType.name', function () {\n      return this.get('partnershipType.name');\n    }),\n    shouldHaveRegon: Ember.computed('country.ibanSymbol', function () {\n      return this.get('country.ibanSymbol') === 'PL';\n    }),\n    shouldHaveKrs: Ember.computed('country.ibanSymbol', 'legalStatus', function () {\n      return this.get('legalStatus') === 'limitedCompany' && this.get('country.ibanSymbol') === 'PL';\n    }),\n    numberOfUsers: Ember.computed('users.@each.id', function () {\n      return this.hasMany('users').ids().length;\n    }),\n    productSetting: Ember.computed('', function () {\n      const self = this;\n      return this.get('store').peekAll('product-setting').find(is => is.get('company.id') === self.get('id'));\n    }),\n    customUserGroupsExists: Ember.computed('userGroups.@each.mainGroup', function () {\n      return this.get('userGroups').filter(ug => !ug.get('mainGroup')).length > 0;\n    }),\n    principalInDifferentPrincipalSpace: Ember.computed('isPrincipal', 'isPrincipalInGeneral', function () {\n      return this.get('isPrincipalInGeneral') && !this.get('isPrincipal');\n    }),\n    announcementAttributeName: Ember.computed('shortName', function () {\n      return `announcement-company-${this.get('shortName').replace(' ', '-')}`;\n    }),\n    announcementLabel: Ember.computed('shortName', function () {\n      return this.get('shortName');\n    }),\n    showPartnershipTable: Ember.computed('isPrincipalInGeneral', function () {\n      return this.get('sessionAccount').hasRole('ROLE_SHOW_PARTNERSHIP_TABLE') && !this.get('principalInDifferentPrincipalSpace');\n    }),\n    showAwaitingInvitations: Ember.computed('isPrincipalInGeneral', function () {\n      return this.get('sessionAccount').hasRole('ROLE_SHOW_AWAITING_INVITATIONS_TABLE') && !this.get('principalInDifferentPrincipalSpace');\n    }),\n    registrationInProgress: Ember.computed('partnershipWithPrincipal.status', function () {\n      return this.get('partnershipWithPrincipal.status') === 'REGISTRATION_IS_IN_PROGRESS';\n    }),\n    hasRouteOffer: Ember.computed('routeOffer.id', function () {\n      return !!this.get('routeOffer.id');\n    }),\n    routeOfferPrice: Ember.computed('routeOffer.price', function () {\n      return this.get('routeOffer.price');\n    }),\n    nonDefaultUserGroups: Ember.computed('userGroups.{[],@each.mainGroup}', function () {\n      return this.get('userGroups').filter(ug => !ug.get('mainGroup'));\n    }),\n    activeOCPInsurance: Ember.computed('partnershipWithPrincipal.@each.activeInsurances', function () {\n      const partnership = this.get('partnershipWithPrincipal');\n      const insurances = partnership.get('activeInsurances');\n\n      if (!insurances) {\n        return null;\n      }\n\n      const activeOCPs = insurances.filter(i => {\n        return i.get('documentType.name') === 'INSURANCE_DOMESTIC_OCP';\n      });\n      return activeOCPs ? activeOCPs.get('firstObject') : null;\n    }),\n    activeOCSInsurance: Ember.computed('partnershipWithPrincipal.@each.activeInsurances', function () {\n      const partnership = this.get('partnershipWithPrincipal');\n      const insurances = partnership.get('activeInsurances');\n\n      if (!insurances) {\n        return null;\n      }\n\n      const activeOCSs = insurances.filter(i => {\n        return i.get('documentType.name') === 'INSURANCE_OCS';\n      });\n      return activeOCSs ? activeOCSs.get('firstObject') : null;\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/company/serializer\", [\"exports\", \"ember-data\", \"apollo/mixins/serializer-mixin\"], function (_exports, _emberData, _serializerMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, _serializerMixin.default, {\n    attrs: {\n      headquarter: {\n        embedded: 'save'\n      }\n    },\n    serializeIntoHash: function (data, type, record, options) {\n      const object = this.serialize(record, options);\n\n      for (const key in object) {\n        data[key] = object[key];\n      }\n\n      const partnership = record._internalModel.getRecord().get('partnershipWithCurrentCompany');\n\n      if (partnership) {\n        data.partnership = partnership.serialize({\n          includeId: true\n        });\n      }\n    },\n    serializeBelongsTo: function (record, json, relationship) {\n      const key = relationship.key;\n      const embeddedRecord = record.belongsTo(key);\n\n      if (embeddedRecord && this.attrs[key] && this.attrs[key].embedded === 'save') {\n        const data = embeddedRecord.attributes();\n        data.id = embeddedRecord.id;\n\n        if (relationship.options.deepEmbedded) {\n          relationship.options.deepEmbedded.forEach(function (deepKey) {\n            if (embeddedRecord.belongsTo(deepKey)) {\n              data[deepKey] = embeddedRecord.belongsTo(deepKey).id;\n            }\n          });\n        }\n\n        json[key] = data;\n      } else {\n        this._super(record, json, relationship);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/address-add-new/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    actions: {\n      handleAddressOnPasteEvent(step, event) {\n        const company = step.get('company');\n        const clipboardData = (event.originalEvent.clipboardData || window.clipboardData).getData('text/plain');\n\n        if (!company || !clipboardData) {\n          return;\n        }\n\n        try {\n          /*\n              Adres 1\n              Adres 2 (Opcjonalny)\n              Ulica                 ==>   ['Adres 1', 'Adres 2', 'Ulica', 'Kod pocztowy Miasto']\n              Kod pocztowy Miasto\n           */\n          const addressComponents = clipboardData.trim().split('\\n').filter(value => value.trim() !== '');\n          const isThreeLinesFormat = addressComponents.length === 3;\n          const recipient = addressComponents[0].trim() + (isThreeLinesFormat ? '' : ' ' + addressComponents[1].trim());\n          const street = addressComponents[2 - (isThreeLinesFormat ? 1 : 0)].trim();\n          const postalAndCity = addressComponents[3 - (isThreeLinesFormat ? 1 : 0)].trim();\n          const postalLastIndex = /[0-9] *[a-zA-Z]/.exec(postalAndCity).index;\n          const postal = postalAndCity.slice(0, postalLastIndex + 1);\n          const city = postalAndCity.slice(postalLastIndex + 1).trim();\n          step.set('address', this.get('store').createRecord('address', {\n            company,\n            recipient,\n            street,\n            postal,\n            city\n          }));\n          event.stopPropagation();\n          event.preventDefault();\n        } catch (err) {\n          console.log('Nie udało się przetworzyć podanego adresu');\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/address-add-new/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"MH+lQpuh\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"input\\\",null,[[\\\"paste\\\",\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"placeholder\\\",\\\"disabled\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"handleAddressOnPasteEvent\\\",[23,[\\\"step\\\"]]],null],\\\"text\\\",\\\"form-control\\\",[23,[\\\"step\\\",\\\"address\\\",\\\"recipient\\\"]],[27,\\\"t\\\",[\\\"address.recipient\\\"],null],[23,[\\\"disabled\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/address-add-new/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/address-auto-complete/component\", [\"exports\", \"apollo/pods/components/custom-auto-complete/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _component.default.extend({\n    valueProperty: 'id',\n    urlAddress: '/addresses/find',\n    field: 'city',\n    options: [],\n    suggestions: function () {\n      return this.get('options');\n    }.property('options.@each'),\n    actions: {\n      selectItem: function (item) {\n        this.set('selectedFromList', true);\n        this.set('selectedValue', item.recipient);\n        this.sendAction('selectItem', item);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/advice-button/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    deliveryService: Ember.inject.service('delivery-service'),\n\n    async init() {\n      this._super(...arguments);\n\n      if (this.get('advice.id')) {\n        return;\n      }\n\n      await this._sendExternalRessourcesRequest();\n    },\n\n    layoutName: Ember.computed(function () {\n      return this.get('isSplitAdvice') === true ? 'components/advice-button/create-window-button' : 'components/advice-button/create-advice-button';\n    }),\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    modalService: Ember.inject.service('modal-service'),\n    _transportOrRelatedTransportWithHighestNumOfWindows: function (transport) {\n      if (!transport.get('isCombinedTransport')) {\n        return transport;\n      }\n\n      return transport.get('allCombinedTransports').filterBy('isRelatedTransportInTransportCombining').sortBy('stepsWithWarehouse.length').get('lastObject');\n    },\n    actions: {\n      handleCreatingAdvice: function (transport) {\n        const self = this;\n\n        this._transportOrRelatedTransportWithHighestNumOfWindows(transport).reload().then(t => {\n          if (!t.get('advice.id') && (t.get('transportType.adviceSeparatedFromWindow') || t.get('stepsWithWarehouse.length') === 0)) {\n            if (t.get('transportType.selectionOfWindowBeforeAdvice')) {\n              const settingValue = self.get('sessionAccount').getSettingValue('SHOW_TERMS_OF_CONDITIONS_ACCEPTED');\n              const advice = self.get('store').createRecord('advice', {\n                requiresAcceptanceOfTermsOfCondition: settingValue === 'true'\n              });\n              t.set('advice', advice);\n            }\n\n            this.get('deliveryService').reloadDeliveries(t).then(() => {\n              this.openCreateAdviceModal(t);\n            });\n            return;\n          }\n\n          this.send('handleCreatingTimeWindow', t);\n        });\n      },\n\n      handleCreatingTimeWindow(transport) {\n        const stepsWithWarehouse = transport.get('stepsWithWarehouse');\n        let step = null;\n\n        if (stepsWithWarehouse.get('length') > 0) {\n          step = stepsWithWarehouse.get('firstObject');\n        } else {\n          step = transport.get('steps.firstObject');\n        }\n\n        this.get('modalService').hideModal();\n        this.goToWarehouse(step);\n      }\n\n    },\n    _sendExternalRessourcesRequest: async function () {\n      if (!this.get('transport.transportType.useResourcesFromExternalSource')) {\n        return;\n      }\n\n      const path = this.get('apolloApiService').APOLLO_API.MARCOS.REFRESH_RESOURCES;\n      const response = await this.get('apolloApiService').callApolloApi(path, {\n        transportId: this.get('transport.id')\n      });\n\n      if (!response.ok) {\n        const error = await response.json();\n        console.error(error);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/advice-button/create-advice-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"htlZMYf2\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"button\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-sm margin-bottom \\\",[27,\\\"concat\\\",[\\\"advice-button-\\\",[23,[\\\"transport\\\",\\\"id\\\"]]],null]]]],[12,\\\"data-loading-text\\\",[28,[[27,\\\"t\\\",[\\\"common.pleaseWait\\\"],null]]]],[12,\\\"style\\\",[28,[[23,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]],\\\" color: white\\\"]]],[12,\\\"disabled\\\",[27,\\\"if\\\",[[23,[\\\"disabled\\\"]],[23,[\\\"disabled\\\"]],false],null]],[12,\\\"title\\\",[21,\\\"title\\\"]],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"transport.advice\\\"],null],false],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[22,0,[]],\\\"handleCreatingAdvice\\\",[23,[\\\"transport\\\"]]]],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/advice-button/create-advice-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/advice-button/create-window-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"3mynnqUF\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"button\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-sm margin-bottom \\\",[27,\\\"concat\\\",[\\\"create-window-button-\\\",[23,[\\\"transport\\\",\\\"id\\\"]]],null]]]],[12,\\\"data-loading-text\\\",[28,[[27,\\\"t\\\",[\\\"common.pleaseWait\\\"],null]]]],[12,\\\"style\\\",[28,[[23,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]],\\\" color: white\\\"]]],[12,\\\"disabled\\\",[27,\\\"if\\\",[[23,[\\\"disabled\\\"]],[23,[\\\"disabled\\\"]],false],null]],[12,\\\"title\\\",[21,\\\"title\\\"]],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"transport.createTimeWindow\\\"],null],false],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[22,0,[]],\\\"handleCreatingTimeWindow\\\",[23,[\\\"transport\\\"]]]],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/advice-button/create-window-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/advice-handler/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    sessionAccount: Ember.inject.service('session-account'),\n    showAdviceButton: Ember.computed('advice', 'transport.{firstUnconfirmedCheckpoint,advice.id,carrierCompany.id,transportType.carrierMustBeSelectedBeforeAdvice,isRelatedTransportInTransportCombining}', 'masterTransport.advice.id', 'masterTransport', function () {\n      const advice = this.get('advice');\n\n      if (advice.get('id') || this.get('transport.transportType.carrierMustBeSelectedBeforeAdvice') && !this.get('transport.carrierCompany.id')) {\n        return false;\n      }\n\n      if (this.get('transport.isRelatedTransportInTransportCombining')) {\n        const transportCombiningMasterTransport = this.get('transport.masterTransportInTransportCombining');\n\n        if (transportCombiningMasterTransport.get('advice.id')) {\n          return false;\n        }\n      } // okno powinno być dodane przed awizacją ale jeszcze nie jest dodane (transport.timeWindows.length === 0) dlatego nie wyświetlamy przycisku.\n\n\n      if (this.get('transport.transportType.selectionOfWindowBeforeAdvice') && this.get('transport.timeWindows.length') === 0) {\n        return false;\n      }\n\n      if (!this.get('transport.transportType.adviceSeparatedFromWindow')) {\n        return this.get('transport').actionCanBePerformed('ADD_ADVICE');\n      }\n\n      return this.get('transport').actionCanBePerformed('ADD_ADVICE');\n    }),\n    showCreateWindowButton: Ember.computed('' + 'transport.{timeWindows.length,firstUnconfirmedCheckpoint,advice.id,carrierCompany.id,transportType.carrierMustBeSelectedBeforeAdvice,isRelatedTransportInTransportCombining}', function () {\n      if (this.get('transport.stepsWithWarehouse.length') === 0) {\n        return false;\n      }\n\n      if (this.get('transport.isRelatedTransportInTransportCombining')) {\n        const master = this.get('transport.masterTransportInTransportCombining');\n\n        if (master && master.get('timeWindows.length') > 0) {\n          return false;\n        }\n      }\n\n      if (this.get('transport.timeWindows.length') > 0) {\n        return false;\n      }\n\n      const advice = this.get('transport.advice');\n\n      if (!advice.get('id') && !this.get('transport.transportType.selectionOfWindowBeforeAdvice')) {\n        return false;\n      }\n\n      return this.get('authorityCheckerService').actionCanBePerformed('ADD_TIME_WINDOW', this.get('transport'));\n    }),\n    disableAdviceForSupplierDueToModeOfTransportation: Ember.computed('transport.requiresModeOfTransportationVerification', 'sessionAccount.currentUser.company.partnershipType', function () {\n      const partnershipType = this.get('sessionAccount').get('currentUser').get('company.partnershipType.name');\n      return !!(this.get('transport.transportType.requiresModeOfTransportationVerification') && partnershipType === 'SUPPLIER');\n    }),\n    advice: Ember.computed('masterTransport', 'transport.advice', 'masterTransport.advice', 'transport.masterTransportInTransportCombining.advice.id', function () {\n      if (this.get('transport.isRelatedTransportInTransportCombining')) {\n        return this.get('transport.masterTransportInTransportCombining.advice');\n      }\n\n      return this.get('transport.advice');\n    }),\n    showTrailerInsteadOfTruckRegNum: Ember.computed('', function () {\n      return this.get('sessionAccount').getSettingValue('DISPLAY_TRAILER_REG_NUMBER_IN_ADVICE_COLUMN') === 'true';\n    }),\n    adviceTrailerRegistrationNumber: Ember.computed('advice', 'advice.trailerRegistrationNumber', function () {\n      return this.get('advice').get('trailerRegistrationNumber');\n    }),\n    adviceCarRegistrationNumber: Ember.computed('advice', 'advice.carRegistrationNumber', function () {\n      return this.get('advice').get('carRegistrationNumber');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/advice-handler/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"nybQJJxw\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"showAdviceButton\\\"]],[23,[\\\"transport\\\",\\\"id\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"disableAdviceForSupplierDueToModeOfTransportation\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"advice-button\\\",null,[[\\\"transport\\\",\\\"title\\\",\\\"disabled\\\",\\\"goToWarehouse\\\",\\\"openCreateAdviceModal\\\"],[[23,[\\\"transport\\\"]],[27,\\\"concat\\\",[[27,\\\"t\\\",[\\\"transport.companyNotQualified\\\"],null],[27,\\\"t\\\",[\\\"transport.forProcess\\\"],null]],null],true,[23,[\\\"goToWarehouse\\\"]],[23,[\\\"openCreateAdviceModal\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"advice-button\\\",null,[[\\\"transport\\\",\\\"goToWarehouse\\\",\\\"openCreateAdviceModal\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"goToWarehouse\\\"]],[23,[\\\"openCreateAdviceModal\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"isFromTransportModal\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis text-center\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showTrailerInsteadOfTruckRegNum\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[21,\\\"adviceTrailerRegistrationNumber\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[21,\\\"adviceCarRegistrationNumber\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"showCreateWindowButton\\\"]],[23,[\\\"transport\\\",\\\"id\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"advice-button\\\",null,[[\\\"transport\\\",\\\"goToWarehouse\\\",\\\"isSplitAdvice\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"goToWarehouse\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/advice-handler/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/aggregated-authority-table/component\", [\"exports\", \"apollo/utils/objects/AggregatedAuthority\"], function (_exports, _AggregatedAuthority) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    aggregatedAuthorityService: Ember.inject.service('aggregated-authority-service'),\n\n    init() {\n      this._super(...arguments);\n\n      Ember.run.debounce(this, this._fetchDataAndSetAuthorities, 500);\n    },\n\n    _fetchDataAndSetAuthorities: async function () {\n      if (this.get('authorities.length') > 0) {\n        return;\n      }\n\n      this.set('isLoading', true);\n      const authoritiesResponse = await this.aggregatedAuthorityService.fetch(this.get('authorityGroupId'), this.get('transportTypeId'));\n      const aggregatedAuthorities = authoritiesResponse.aggregatedAuthorities.map(response => {\n        return _AggregatedAuthority.default.create().fromResponse(response);\n      });\n      const groupedAggregatedAuthorities = (0, _AggregatedAuthority.getGroupedAuthorities)(aggregatedAuthorities);\n      this.set('groupedAggregatedAuthorities', groupedAggregatedAuthorities);\n      this.set('isLoading', false);\n    },\n    roleGroups: Ember.computed('', function () {\n      const principalCompanyId = localStorage.getItem('principalId');\n      return this.store.peekRecord('company', principalCompanyId).get('roleGroups');\n    }),\n    isLoading: Ember.computed('', function () {\n      return false;\n    }),\n    groupedAggregatedAuthorities: Ember.computed('', {\n      get(_) {\n        return null;\n      },\n\n      set(key, value) {\n        return value;\n      }\n\n    }),\n    aggregatedAuthoritiesToSave: Ember.A(),\n    aggregatedAuthoritiesToRemove: Ember.A(),\n    showConditions: Ember.computed('', function () {\n      return this.transportTypeId !== ('' || undefined);\n    }),\n    actions: {\n      onCheckboxToggle(roleGroup, aggregatedAuthority, value) {\n        const checkboxWasSet = value === true;\n        const checkboxWasUnset = value === false;\n\n        const aggregatedAuthorityToRequest = _AggregatedAuthority.default.create().toRequest(roleGroup.get('id'), aggregatedAuthority.get('authorityId'), aggregatedAuthority.get('authorityRestrictionId'));\n\n        if (checkboxWasSet) {\n          this.get('aggregatedAuthoritiesToSave').pushObject(aggregatedAuthorityToRequest);\n        }\n\n        if (checkboxWasUnset) {\n          const foundDuplicateInAuthoritiesToSaveIndex = this.get('aggregatedAuthoritiesToSave').findIndex(authorityToSave => {\n            return authorityToSave.compare(aggregatedAuthorityToRequest);\n          });\n\n          if (foundDuplicateInAuthoritiesToSaveIndex !== -1) {\n            // Usuń z authoritiesToSave jeśli już istnieje\n            this.get('aggregatedAuthoritiesToSave').splice(foundDuplicateInAuthoritiesToSaveIndex, 1);\n            return;\n          }\n\n          this.get('aggregatedAuthoritiesToRemove').pushObject(aggregatedAuthorityToRequest);\n        }\n      },\n\n      save() {\n        const self = this;\n        this.set('isLoading', true);\n        this.aggregatedAuthorityService.send(this.get('aggregatedAuthoritiesToSave'), this.get('aggregatedAuthoritiesToRemove')).then(_ => {\n          self._fetchDataAndSetAuthorities();\n\n          self.set('aggregatedAuthoritiesToSave', Ember.A());\n          self.set('aggregatedAuthoritiesToRemove', Ember.A());\n        }).catch(_ => {// TODO Obsługa błędu\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/aggregated-authority-table/role-group-checkbox/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: '',\n    isChecked: Ember.computed('', {\n      get(_) {\n        const roleGroup = this.get('roleGroup');\n        const aggregatedAuthorities = this.get('aggregatedAuthorities');\n        const roleGroupIdsOfAggregatedAuthorites = aggregatedAuthorities.map(a => a.get('roleGroupId'));\n        return roleGroupIdsOfAggregatedAuthorites.includes(Number(roleGroup.get('id')));\n      },\n\n      set(key, value) {\n        return value;\n      }\n\n    }),\n    actions: {\n      onToggle() {\n        let aggregatedAuthority = this.get('aggregatedAuthorities').find(a => a.get('roleGroupId') === Number(this.get('roleGroup.id')));\n\n        if (!aggregatedAuthority) {\n          // W przypadku zaznaczenia checkbox'a podajemy dowolny AR, na którym będziemy jedynie wzorować stworzenie nowego uprawnienia\n          aggregatedAuthority = this.get('aggregatedAuthorities.firstObject');\n        }\n\n        this.sendAction('onCheckboxToggle', this.get('roleGroup'), aggregatedAuthority, !this.get('isChecked'));\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/aggregated-authority-table/role-group-checkbox/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"LU9YVzxt\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block text-center\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"click\\\"],[\\\"checkbox\\\",[23,[\\\"isChecked\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"onToggle\\\"],null]]]],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/aggregated-authority-table/role-group-checkbox/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/aggregated-authority-table/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"PcTZcCf4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"innerObject\\\",\\\"authorityName\\\",\\\"aggregatedAuthorities\\\",\\\"authorityRangeName\\\",\\\"roleGroup\\\",\\\"index\\\",\\\"roleGroup\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isLoading\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"groupedAggregatedAuthorities\\\"]],[27,\\\"not\\\",[[23,[\\\"isLoading\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-responsive table-hover table-striped\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.actionType\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showConditions\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.conditions\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"each\\\",[[23,[\\\"roleGroups\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,7,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[27,\\\"-each-in\\\",[[23,[\\\"groupedAggregatedAuthorities\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[27,\\\"-each-in\\\",[[22,1,[]]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[12,\\\"data-field-name\\\",[28,[\\\"authority-\\\",[22,2,[]]]]],[12,\\\"data-object-id\\\",[28,[[22,2,[]]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"settings.roleGroups.authorityLabels.\\\",[22,2,[]]],null]],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showConditions\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[1,[22,3,[\\\"firstObject\\\",\\\"authorityRestrictionExplanation\\\"]],false],[10],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"settings.roleGroups.authorityLabels.\\\",[22,2,[]]],null]],null],false],[0,\\\" - \\\"],[1,[22,3,[\\\"firstObject\\\",\\\"authorityRestrictionExplanation\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"each\\\",[[23,[\\\"roleGroups\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"aggregated-authority-table/role-group-checkbox\\\",null,[[\\\"roleGroup\\\",\\\"aggregatedAuthorities\\\",\\\"onCheckboxToggle\\\"],[[22,5,[]],[22,3,[]],[27,\\\"action\\\",[[22,0,[]],\\\"onCheckboxToggle\\\"],null]]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5,6]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null]],\\\"parameters\\\":[1,2]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary pull-right\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/aggregated-authority-table/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/amount-of-cover-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    currencies: Ember.computed(function () {\n      return this.get('store').peekAll('currency');\n    }),\n    aocAmount: Ember.computed('amountOfCover.amount', {\n      get() {\n        return this.get('amountOfCover.amount') || 0.0;\n      },\n\n      set(key, value) {\n        this.set('amountOfCover.amount', value);\n        return value;\n      }\n\n    }),\n    aocCurrency: Ember.computed('amountOfCover.currency', {\n      get() {\n        return this.get('amountOfCover.currency');\n      },\n\n      set(key, value) {\n        this.set('amountOfCover.currency', value);\n        return value;\n      }\n\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/amount-of-cover-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"/G82Mg48\",\n    \"block\": \"{\\\"symbols\\\":[\\\"c\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n        \\\"],[1,[21,\\\"label\\\"],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-3\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-9 no-padding padding-right-small \\\",[27,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"amountOfCover\\\",\\\"errors\\\",\\\"amount\\\"]],[23,[\\\"transport\\\",\\\"errors\\\",\\\"amountOfCover\\\"]]],null],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"amount-of-cover-amount\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"pattern\\\",\\\"min\\\",\\\"class\\\",\\\"value\\\",\\\"disabled\\\",\\\"placeholder\\\"],[\\\"number\\\",\\\"^[0-9]+\\\\\\\\.[0-9][0-9]$\\\",\\\"0\\\",\\\"form-control\\\",[23,[\\\"aocAmount\\\"]],[23,[\\\"disabled\\\"]],[27,\\\"t\\\",[\\\"common.min\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"amountOfCover\\\"]],\\\"amount\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transport\\\"]],\\\"amountOfCover\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-3 no-padding\\\"],[11,\\\"data-field-name\\\",\\\"amount-of-cover-currency\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"disabled\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"aocCurrency\\\"]],[23,[\\\"currencies\\\"]],true,\\\"symbol\\\",[23,[\\\"disabled\\\"]],[27,\\\"t\\\",[\\\"common.currency\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"aocCurrency\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,1,[\\\"symbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/amount-of-cover-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/announcements-nav-header/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    classNames: ['pull-right'],\n    sessionAccount: Ember.inject.service('session-account'),\n    showNavbar: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole(\"ROLE_MANAGE_ANNOUNCEMENTS\");\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/announcements-nav-header/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"KFP8OwYY\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showNavbar\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"announcements-button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"announcements.index\\\"],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"announcements.label\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_ANNOUNCEMENTS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"manage-announcements-button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"announcements.manage\\\",[27,\\\"query-params\\\",null,[[\\\"max\\\",\\\"page\\\"],[10,1]]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"announcements.manage\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/announcements-nav-header/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/auction/auction-cell/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    showCreateAuctionButton: Ember.computed('transport.{active,carrierCompany.id,activeAuction,transaction,checkpoints.@each.executionDate}', function () {\n      return !this.get('transport.carrierCompany.id') && !this.get('transport.activeAuction') && !this.get('transport.transaction.content') && this.get('transport').actionCanBePerformed('CREATE_AUCTION');\n    }),\n    auctions: Ember.computed('transport.auctions', function () {\n      return this.get('transport.auctions');\n    }),\n    offerCompaniesIds: Ember.computed('transport.offerCompanies.@each.id', function () {\n      return this.get('transport.offerCompanies').mapBy('id');\n    }),\n    isCarrier: Ember.computed('sessionAccount.currentCompany.isCarrier', function () {\n      return this.get('sessionAccount.currentCompany.isCarrier');\n    }),\n    showCarrierAuctionDetailsButton: Ember.computed('isCarrier', 'transport.@each.offer', 'offerCompaniesIds', function () {\n      const currentCompany = this.get('sessionAccount.currentCompany');\n      return this.get('isCarrier') && this.get('transport').actionCanBePerformed('BID_AUCTION') && this.get('offerCompaniesIds').some(id => {\n        return id === currentCompany.get('id');\n      });\n    }),\n    _showAuctionDetailsButton: Ember.computed('transport.{auctions.length,activeAuction}', function () {\n      const canCreateAuction = this.get('transport').actionCanBePerformed('CREATE_AUCTION');\n      const canAccessAuctionData = this.get('transport').actionCanBePerformed('ROLE_ACCESS_AUCTION_DATA');\n      return this.get('transport.auctions.length') > 0 && canCreateAuction && canAccessAuctionData;\n    }),\n    showAuctionDetailsButton: Ember.computed('showCarrierAuctionDetailsButton', '_showAuctionDetailsButton', function () {\n      return this.get('_showAuctionDetailsButton') || this.get('showCarrierAuctionDetailsButton');\n    }),\n    canSeeCurrentPlaceInAuction: Ember.computed('', function () {\n      return this.get('sessionAccount').hasRole('ROLE_CAN_SEE_CURRENT_PLACE_IN_AUCTION');\n    }),\n    biddingIsEnabled: Ember.computed('transport.{active,transportType.forcedPollRequestTime,activeAuction}', function () {\n      return !this.get('transport.transportType.forcedPollRequestTime') && this.get('transport').actionCanBePerformed('BID_AUCTION');\n    }),\n    actions: {\n      showModal(templateName, model) {\n        this.set('action', 'showModal');\n        this.sendAction('action', templateName, model);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/auction/auction-cell/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"FGgo+fvX\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showCreateAuctionButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[27,\\\"auction/create-auction-button\\\",null,[[\\\"transport\\\"],[[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"activeAuction\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"company\\\",\\\"isPrincipal\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"activeAuction\\\",\\\"hasPreferredOffer\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"active-auction-preferred-offer\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"transport\\\",\\\"activeAuction\\\",\\\"preferredOffer\\\",\\\"formattedPrice\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"transport\\\",\\\"activeAuction\\\",\\\"preferredOffer\\\",\\\"company\\\",\\\"shortName\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"activeAuction\\\",\\\"bestOffer\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"active-auction-best-offer\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"transport\\\",\\\"activeAuction\\\",\\\"bestOffer\\\",\\\"formattedPrice\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"transport\\\",\\\"activeAuction\\\",\\\"bestOffer\\\",\\\"company\\\",\\\"shortName\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"auction-no-offers\\\"],[9],[1,[27,\\\"t\\\",[\\\"auction.noOffers\\\"],null],false],[10],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"activeAuction\\\",\\\"currentOfferForLoggedCompany\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"bold\\\"],[11,\\\"data-field-name\\\",\\\"price\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[23,[\\\"transport\\\",\\\"activeAuction\\\",\\\"currentOfferForLoggedCompany\\\",\\\"formattedPrice\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canSeeCurrentPlaceInAuction\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"current-place\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"transport\\\",\\\"activeAuction\\\",\\\"currentOfferForLoggedCompany\\\",\\\"place\\\"]],false],[0,\\\". \\\"],[1,[27,\\\"t\\\",[\\\"offer.place\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"company\\\",\\\"isPrincipal\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"transport\\\",\\\"activeAuction\\\",\\\"currentOfferForLoggedCompany\\\",\\\"place\\\"]],false],[0,\\\".\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"biddingIsEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"auction/bid-auction-button\\\",null,[[\\\"style\\\",\\\"transport\\\",\\\"auction\\\"],[[23,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]],[23,[\\\"transport\\\"]],[23,[\\\"transport\\\",\\\"activeAuction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showAuctionDetailsButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"auction/auction-details-button\\\",null,[[\\\"transport\\\",\\\"isCarrier\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"isCarrier\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/auction/auction-cell/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/auction/auction-details-button/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    isCarrier: Ember.computed('model.isCarrier', function () {\n      return this.get('model.isCarrier');\n    }),\n    showBidCounter: Ember.computed('transport.currentBidCount', function () {\n      return !this.get('isCarrier') && !isNaN(this.get('currentBidCount'));\n    }),\n    currentBidCount: Ember.computed('transport.currentBidCount', function () {\n      return Number(this.get('transport.currentBidCount'));\n    }),\n    actions: {\n      async showAuctionDetailsForm() {\n        const transport = this.get('transport');\n        const isCarrier = this.get('isCarrier');\n        this.set('action', 'showModal');\n        const model = {\n          transport,\n          isCarrier\n        };\n        this.sendAction('action', 'auctions.modals.auction-details-form', model);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/auction/auction-details-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"IprfUOLu\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-sm btn-default vertical-margin-small\\\"],[11,\\\"data-button-name\\\",\\\"auction-history\\\"],[12,\\\"style\\\",[23,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isCarrier\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"t\\\",[\\\"auction.carrierDetails\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showBidCounter\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"auction.bidsCount\\\"],null],false],[0,\\\" \\\"],[1,[21,\\\"currentBidCount\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"auction.details\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[3,\\\"action\\\",[[22,0,[]],\\\"showAuctionDetailsForm\\\"]],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/auction/auction-details-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/auction/auction-header/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    async init() {\n      this._super(...arguments);\n\n      await this.get('auction.unitAmountType');\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/auction/auction-header/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"9Kv2Dxwm\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"auction\\\",\\\"dateCreated\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\" -\\\\n\\\\n        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"no-wrap\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"actualFinishTime\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"auction\\\",\\\"actualFinishTime\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"auction.plannedFinishTimeAbbr\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"auction\\\",\\\"plannedFinishTime\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"hasBeenProlongated\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"small\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"auction.finishTimeChanged\\\"],[[\\\"date\\\"],[[27,\\\"my-format-date\\\",[[23,[\\\"auction\\\",\\\"initialFinishTime\\\"]],\\\"defaultDateTime\\\"],null]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[23,[\\\"isCarrier\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"small\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"auction.priceRange\\\"],null],false],[0,\\\":\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"minPrice\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,[\\\"auction\\\",\\\"minPrice\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"common.notSpecified\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            - \\\"],[1,[23,[\\\"auction\\\",\\\"maxPrice\\\"]],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[23,[\\\"auction\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"unitAmountType\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"small\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transaction.unitAmountType\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"auction\\\",\\\"unitAmountType\\\",\\\"name\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/auction/auction-header/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/auction/auction-panel/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    isSectionVisible: false,\n    actions: {\n      toggleSection() {\n        this.toggleProperty('isSectionVisible');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/auction/auction-panel/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"pFZRLqAd\",\n    \"block\": \"{\\\"symbols\\\":[\\\"a\\\",\\\"idx\\\",\\\"company\\\",\\\"idx\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-heading\\\"],[11,\\\"role\\\",\\\"tab\\\"],[12,\\\"id\\\",[28,[[21,\\\"sectionId\\\"]]]],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"panel-title\\\"],[11,\\\"role\\\",\\\"button\\\"],[11,\\\"data-toggle\\\",\\\"collapse\\\"],[12,\\\"href\\\",[28,[\\\"#\\\",[21,\\\"accordionId\\\"]]]],[11,\\\"aria-expanded\\\",\\\"true\\\"],[12,\\\"aria-controls\\\",[28,[[21,\\\"accordionId\\\"]]]],[9],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"auction\\\",[23,[\\\"labelName\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"toggleSection\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"id\\\",[28,[[21,\\\"accordionId\\\"]]]],[11,\\\"class\\\",\\\"panel-collapse collapse\\\"],[11,\\\"role\\\",\\\"tabpanel\\\"],[12,\\\"aria-labelledby\\\",[28,[[21,\\\"sectionId\\\"]]]],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body scrollable-modal-section\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isSectionVisible\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"sectionType\\\"]],\\\"companies\\\"],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"companies\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"span\\\"],[12,\\\"class\\\",[28,[\\\"no-wrap \\\",[27,\\\"unless\\\",[[27,\\\"eq\\\",[[22,4,[]],[23,[\\\"idxOfLastCompany\\\"]]],null],\\\"right-separator\\\"],null],\\\"\\\\n                            \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[22,3,[\\\"id\\\"]],[23,[\\\"selectedCompanyId\\\"]]],null],\\\"highlighted\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                            \\\"],[1,[22,3,[\\\"shortName\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"auction\\\",\\\"noCompanies\\\",[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"sectionType\\\"]],\\\"previousAuctions\\\"],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"previousAuctions\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[27,\\\"eq\\\",[[22,2,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"auction/auction-header\\\",null,[[\\\"auction\\\"],[[22,1,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"offers\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"auction/offers-table\\\",null,[[\\\"auction\\\"],[[22,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"auction\\\",\\\"endedWithoutOffers\\\",[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"auction\\\",\\\"noPreviousAuctions\\\",[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/auction/auction-panel/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/auction/bid-auction-button/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    customFields: Ember.computed('auction.transport.customFields.@each.visibleInOfferForm', function () {\n      return this.get('auction.transport.customFields').filterBy('visibleInOfferForm');\n    }),\n    disableForSupplier: Ember.computed('transport.active', 'transport.transportType.forcedPollRequestTime', 'transport.activeAuction', function () {\n      return this.get('sessionAccount').get('currentUser').get('company.partnershipType.name') === 'SUPPLIER';\n    }),\n    actions: {\n      showOfferForm() {\n        if (!this.get('auction.transport.id')) {\n          return;\n        }\n\n        this.get('store').query('customFieldValue', {\n          transportId: this.get('auction.transport.id')\n        }).then(cfv => {\n          const auction = this.get('auction');\n          auction.get('transport').set('customFields', cfv);\n          const suggestedPrice = auction.get('suggestedPriceForLoggedCompany');\n          const offerModel = this.get('store').createRecord('offer', {\n            auction: auction,\n            price: suggestedPrice\n          });\n          const model = {\n            offer: offerModel,\n            customFields: this.get('customFields')\n          };\n          this.set('action', 'showModal');\n          this.sendAction('action', 'offers.modals.offer-form', model);\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/auction/bid-auction-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"pJqsEYAb\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"disableForSupplier\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-sm vertical-margin-small\\\"],[11,\\\"data-button-name\\\",\\\"offer\\\"],[12,\\\"style\\\",[21,\\\"style\\\"]],[11,\\\"disabled\\\",\\\"disabled\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transport.companyNotQualified\\\"],null],[27,\\\"t\\\",[\\\"transport.forAuction\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"auction.bid\\\"],null],false],[0,\\\"\\\\n    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showOfferForm\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-sm vertical-margin-small\\\"],[11,\\\"data-button-name\\\",\\\"offer\\\"],[12,\\\"style\\\",[21,\\\"style\\\"]],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"auction.bid\\\"],null],false],[0,\\\"\\\\n    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showOfferForm\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/auction/bid-auction-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/auction/create-auction-button/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    dateUtils: Ember.inject.service('date-utils'),\n    DEFAULT_AUCTION_FINISH_DELAY_INTERVAL: '2h',\n    auctionSetting: Ember.computed('', function () {\n      return this.get('sessionAccount').getAuctionSetting(this.get('transport.transportType.id'));\n    }),\n    finishDelayInterval: Ember.computed('auctionSetting', function () {\n      const auctionSetting = this.get('auctionSetting');\n\n      if (auctionSetting.get('selectionOfAuctionDurationFromAClosedList')) {\n        const options = auctionSetting.get('auctionFinishDelayIntervalOptions');\n\n        if (options) {\n          return this.get('dateUtils').getSortedTimeStringList(options).get('firstObject');\n        }\n\n        return this.DEFAULT_AUCTION_FINISH_DELAY_INTERVAL;\n      }\n\n      return auctionSetting ? auctionSetting.get('defaultAuctionFinishDelayInterval') : this.DEFAULT_AUCTION_FINISH_DELAY_INTERVAL;\n    }),\n    suggestedFinishTime: Ember.computed('finishDelayInterval', function () {\n      const delayInterval = this.get('finishDelayInterval');\n      return this.get('dateUtils').calculateDateFromInterval(new Date(), delayInterval);\n    }),\n    actions: {\n      showAuctionCreationForm() {\n        const self = this;\n        const suggestedFinishTime = this.get('suggestedFinishTime');\n        const principalCompanyId = localStorage.getItem('principalId');\n        const auctionSetting = this.get('sessionAccount').getAuctionSetting(this.get('transport.transportType.id'));\n        const symbol = auctionSetting ? auctionSetting.get('defaultCurrency') : 'PLN';\n        const carriersGroups = this.get('store').peekAll('contractors-group');\n        const currency = this.get('store').peekAll('currency').filterBy('symbol', symbol).get('firstObject');\n        this.set('action', 'showModal');\n        self.get('store').query('company', {\n          principalCompanyId,\n          partnershipTypesNames: ['CARRIER', 'OPERATOR'],\n          statuses: ['NO_INVITATION', 'ACCEPTED', 'UPDATED', 'BLOCKED'],\n          transportId: self.get('transport.id')\n        }).then(carriers => {\n          const auctionModel = this.get('store').createRecord('auction', {\n            currency,\n            transport: this.get('transport'),\n            plannedFinishTime: suggestedFinishTime,\n            carriers,\n            carriersGroups\n          });\n          self.sendAction('action', 'auctions.modals.auction-form', auctionModel);\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/auction/create-auction-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"oNr+JbDR\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-sm vertical-margin-small\\\"],[11,\\\"data-button-name\\\",\\\"auction-button\\\"],[12,\\\"style\\\",[23,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]]],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"labelName\\\",\\\"settingClass\\\",\\\"transportType\\\"],[\\\"buttonLabel\\\",\\\"auction\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showAuctionCreationForm\\\"]],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/auction/create-auction-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/auction/offers-table/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    operatorService: Ember.inject.service('operator-service'),\n    portService: Ember.inject.service('port-service'),\n    isSeaAuction: Ember.computed.reads('auction.transport.transportType.seaTransports'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    operatorLabel: Ember.computed('isSeaAuction', function () {\n      return this.operatorService.getTranslation(this.isSeaAuction);\n    }),\n    loadingPortLabel: Ember.computed('isSeaAuction', function () {\n      return this.portService.getTranslation(this.isSeaAuction, 'loading');\n    }),\n    unloadingPortLabel: Ember.computed('isSeaAuction', function () {\n      return this.portService.getTranslation(this.isSeaAuction, 'unloading');\n    }),\n    showPorts: Ember.computed('auctionSetting.showPorts', function () {\n      return this.get('auctionSetting.showPorts');\n    }),\n    showOperator: Ember.computed('auctionSetting.showOperator', function () {\n      return this.get('auctionSetting.showOperator');\n    }),\n    auctionSetting: Ember.computed('auction.transport.transportType.id', function () {\n      return this.get('sessionAccount').getAuctionSetting(this.get('auction.transport.transportType.id'));\n    }),\n    showTransitTime: Ember.computed('auctionSetting', function () {\n      if (!this.get('auctionSetting')) {\n        return false;\n      }\n\n      return this.get('auctionSetting.showTransitTime');\n    }),\n    showDescriptionSection: Ember.computed('auctionSetting', function () {\n      if (!this.get('auctionSetting')) {\n        return true;\n      }\n\n      return this.get('auctionSetting.showDescriptionSection');\n    }),\n    showPassToCarrierButton: Ember.computed('auctionSetting', 'auction.{transport.id,transport.carrierCompany.id,offers.@each.enabled,offers.length,transport.transaction.id}', function () {\n      if (!this.get('auctionSetting')) {\n        return true;\n      }\n\n      const showPassToCarrierButton = this.get('auctionSetting.showPassToCarrierButton');\n      const transportHasNoCarrier = !this.get('auction.transport.carrierCompany.id');\n      const passingActionCanBePerformed = this.get('auction.transport.content').actionCanBePerformed('PASS_TRANSPORT');\n      const transportHasTransactionAlready = this.get('auction.transport.transaction.id');\n      return transportHasNoCarrier && showPassToCarrierButton && passingActionCanBePerformed && !transportHasTransactionAlready;\n    }),\n    showPreferredOfferSection: Ember.computed('auctionSetting.requireSelectedOfferAcceptance,canMarkPreferredOffer', function () {\n      return this.get('auctionSetting.requireSelectedOfferAcceptance') && this.get('sessionAccount').get('isPrincipal');\n    }),\n    canMarkPreferredOffer: Ember.computed(function () {\n      return this.get('authorityCheckerService').actionCanBePerformed('ROLE_CAN_MARK_PREFERRED_OFFER', this.get('auction.transport'));\n    }),\n    canRevokeOffer: Ember.computed('showCancelOfferSection,auction.{transport,currentOfferForLoggedCompany.formattedPrice}', function () {\n      const hasAuthorityToRevokeOffer = this.get('authorityCheckerService').actionCanBePerformed('ROLE_CAN_REVOKE_OFFER', this.get('auction.transport'));\n\n      if (!hasAuthorityToRevokeOffer) {\n        return false;\n      }\n\n      const currentPrice = this.get('auction.currentOfferForLoggedCompany.formattedPrice');\n      return currentPrice && hasAuthorityToRevokeOffer;\n    }),\n    actions: {\n      showModal(templateName, model) {\n        this.set('action', 'showModal');\n        this.sendAction('action', templateName, model);\n      },\n\n      cancelOffer(offer) {\n        offer.setSoftDeleted().save().then(() => {\n          this.set('errors', Ember.A([]));\n        }).catch(error => {\n          offer.unsetSoftDeleted();\n          console.error(error);\n          alert(this.get('intl').t('common.defaultError'));\n        });\n      },\n\n      async markAsPreferred(offer) {\n        try {\n          const path = this.get('apolloApiService').APOLLO_API.OFFERS.MARK_AS_PREFERRED;\n          const response = await this.get('apolloApiService').callApolloApi(path, {\n            id: offer.get('id')\n          });\n\n          if (response.ok) {\n            offer.set('isPreferred', true);\n          }\n        } catch (error) {\n          console.error(error);\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/auction/offers-table/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"IQbQU42n\",\n    \"block\": \"{\\\"symbols\\\":[\\\"o\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table offers-table\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"offer.label\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"offer.creator\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"offer.company\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showPorts\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[21,\\\"loadingPortLabel\\\"],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[21,\\\"unloadingPortLabel\\\"],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showOperator\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[21,\\\"operatorLabel\\\"],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showTransitTime\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"offer.transitTime\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"offer.dateCreated\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showDescriptionSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"offer.description\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showPreferredOfferSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"offer.preferred\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showPassToCarrierButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transaction.pass\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n             \\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"auction\\\",\\\"offers\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"or\\\",[[22,1,[\\\"hasWon\\\"]],[23,[\\\"auction\\\",\\\"transport\\\",\\\"carrierCompany\\\"]]],null],\\\"winner\\\"],null],\\\" \\\",[27,\\\"unless\\\",[[22,1,[\\\"valid\\\"]],\\\"invalid\\\"],null],\\\"\\\\n            \\\",[27,\\\"unless\\\",[[22,1,[\\\"enabled\\\"]],\\\"disabled\\\"],null],\\\" \\\",[27,\\\"if\\\",[[22,1,[\\\"deleted\\\"]],\\\"deleted\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,1,[\\\"place\\\"]],false],[0,\\\".\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[22,1,[\\\"formattedPrice\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[22,1,[\\\"creator\\\",\\\"name\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[22,1,[\\\"company\\\",\\\"shortName\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showPorts\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"loadingPort\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"unloadingPort\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showOperator\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"operator\\\",\\\"shortName\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showTransitTime\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"transitTime\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[\\\"transitTime\\\"]],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"offer.transitTimeTypes.\\\",[22,1,[\\\"transitTimeType\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"dateCreated\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showDescriptionSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\"],[12,\\\"title\\\",[28,[[22,1,[\\\"description\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"trunc-string\\\",[[22,1,[\\\"description\\\"]],[22,1,[\\\"descriptionTrimValue\\\"]]],[[\\\"hellip\\\"],[true]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showPreferredOfferSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"enabled\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"canMarkPreferredOffer\\\"]],[27,\\\"not\\\",[[22,1,[\\\"auction\\\",\\\"hasPreferredOffer\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"mark-preferred-offer-button\\\"],[11,\\\"class\\\",\\\"btn btn-sm btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"offer.mark\\\"],null],false],[0,\\\"\\\\n                            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"markAsPreferred\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[22,1,[\\\"isPreferred\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"common.yes\\\"],null],false],[0,\\\"\\\\n                        \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showPassToCarrierButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"displayPassToCarrierButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"transaction/create-transaction-button\\\",null,[[\\\"transport\\\",\\\"offer\\\",\\\"disabledEdition\\\",\\\"notTheBestOffer\\\"],[[23,[\\\"auction\\\",\\\"transport\\\"]],[22,1,[]],true,[27,\\\"not\\\",[[27,\\\"eq\\\",[[23,[\\\"auction\\\",\\\"bestOffer\\\",\\\"id\\\"]],[22,1,[\\\"id\\\"]]],null]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"canRevokeOffer\\\"]],[22,1,[\\\"enabled\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-danger\\\",[27,\\\"t\\\",[\\\"offer.revoke.alert\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"cancelOffer\\\",[22,1,[]]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"offer.revoke.label\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                         \\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/auction/offers-table/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/authorities-nav-header/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"oxiwNogt\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 text-right padding-bottom\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"link-to\\\",[\\\"users.index\\\",[27,\\\"query-params\\\",null,[[\\\"type\\\"],[[23,[\\\"roleGroup\\\",\\\"name\\\"]]]]]],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.usersList\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"authorities.index\\\",[23,[\\\"roleGroup\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.permissions\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"OTHERS_TAB\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"authorities.others\\\",[23,[\\\"roleGroup\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.settings\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/authorities-nav-header/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/authority-table/authority-row/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: 'tr',\n    customFieldActionType: Ember.computed('authority.actionType', function () {\n      return ['ACCESS_CUSTOM_FIELD', 'UPDATE_CUSTOM_FIELD'].includes(this.get('authority.name'));\n    }),\n    actions: {\n      delete: function (roleGroupAuthority) {\n        this.set('action', 'delete');\n        this.sendAction('action', roleGroupAuthority);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/authority-table/authority-row/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"WLEETahh\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"td\\\"],[12,\\\"data-field-name\\\",[28,[\\\"authority-\\\",[23,[\\\"authority\\\",\\\"name\\\"]]]]],[12,\\\"data-object-id\\\",[28,[[23,[\\\"authority\\\",\\\"authority\\\",\\\"id\\\"]]]]],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"settings.roleGroups.authorityLabels.\\\",[23,[\\\"authority\\\",\\\"name\\\"]]],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"customFieldActionType\\\"]]],null,{\\\"statements\\\":[[0,\\\"        - \\\"],[7,\\\"b\\\"],[9],[1,[23,[\\\"authority\\\",\\\"customFieldDefinition\\\",\\\"nameInAppropriateLanguage\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"not\\\",[[23,[\\\"authority\\\",\\\"canBeManaged\\\"]]],null],[27,\\\"not\\\",[[23,[\\\"authority\\\",\\\"assetId\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-lock\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"authority\\\",\\\"authorityRangePhrase\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[1,[23,[\\\"authority\\\",\\\"authorityRangePhraseInUpperCase\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[1,[23,[\\\"authority\\\",\\\"description\\\"]],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_AUTHORITIES\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"authority\\\",\\\"assetId\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"authority-restrictions.edit\\\",[23,[\\\"authority\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"settings.roleGroups.sureToDelete\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\",[23,[\\\"authority\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-trash\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/authority-table/authority-row/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/authority-table/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    intl: Ember.inject.service(),\n    sortedAuthorities: Ember.computed('', function () {\n      const authorities = this.get('authorities');\n      const authorityType = authorities[0] ? authorities[0].get('constructor.modelName') : undefined;\n\n      switch (authorityType) {\n        case 'role-group-authority':\n          // Uprawnienia podstawowe, sortujemy alfabetycznie\n          authorities.sort((a, b) => {\n            const authorityInAppropriateName = name => {\n              return this.get('intl').t(`settings.roleGroups.authorityLabels.${name}`);\n            };\n\n            return authorityInAppropriateName(a.get('name')).localeCompare(authorityInAppropriateName(b.get('name')));\n          });\n          return authorities;\n\n        case 'authority-restriction':\n          // Uprawnienia zależne od typu transportu:\n          // - uprawnienia dotyczące jednego cf oraz assetu są koło siebie,\n          // - ważniejsze authority (zależne od idx) są wyświetlane wyżej.\n          authorities.sort((a, b) => {\n            return parseInt(a.get('customFieldDefinition.id')) - parseInt(b.get('customFieldDefinition.id')) || parseInt(a.get('assetId')) - parseInt(b.get('assetId')) || parseInt(a.get('authority.idx')) - parseInt(b.get('authority.idx'));\n          });\n          return authorities;\n\n        default:\n          console.error('Znaleźliśmy nieznany typ uprawnienia podczas sortowania. Pomijamy sortowanie.');\n          return authorities;\n      }\n    }),\n    actions: {\n      delete: function (roleGroupAuthority) {\n        this.set('action', 'delete');\n        this.sendAction('action', roleGroupAuthority);\n      },\n      deleteAllAuthorities: function (roleGroupAuthorities) {\n        this.set('action', 'deleteAllAuthorities');\n        this.sendAction('action', roleGroupAuthorities);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/authority-table/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"fiShotqz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"authority\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"authorities\\\",\\\"length\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block margin-left\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.noAuthorities\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-responsive table-hover table-striped\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.actionType\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.conditions\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_AUTHORITIES\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"th\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.roleGroups.deleteAllAuthoritiesTitle\\\"],[[\\\"title\\\"],[[23,[\\\"panelTitle\\\"]]]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"settings.roleGroups.sureToDeleteAll\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"deleteAllAuthorities\\\",[23,[\\\"authorities\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-trash\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"sortedAuthorities\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"authority-table/authority-row\\\",null,[[\\\"authority\\\"],[[22,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/authority-table/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/awaiting-invitation-table/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({});\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/awaiting-invitation-table/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"JgWQXJBm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"invitation\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 col-sm-12\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"company.partnershipTable.awaitingLabel\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-responsive\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-hover table-condensed\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"company.partnershipTable.companyName\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"company.shortName\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"company.taxIdNumber\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"company.country\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"invitation.email\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"invitation.expirationDate\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"company\\\",\\\"awaitingInvitations\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"company\\\",\\\"name\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[22,1,[\\\"company\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"text\\\"],[11,\\\"class\\\",\\\"help-block\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.noData\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[22,1,[\\\"company\\\",\\\"shortName\\\"]],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[22,1,[\\\"company\\\",\\\"taxIdNumber\\\"]],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[22,1,[\\\"company\\\",\\\"country\\\",\\\"ibanSymbol\\\"]],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[22,1,[\\\"email\\\"]],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"expirationDate\\\"]],\\\"defaultDateTime\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/awaiting-invitation-table/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/button-with-confirmation/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: 'span',\n    type: 'button',\n    attributeBindings: ['dataButtonName:data-button-name', 'disabled', 'style'],\n    dataButtonName: 'delete',\n    disabled: function () {\n      return false;\n    }.property(),\n\n    click() {\n      const disabled = this.get('disabled');\n\n      if (disabled) {\n        return;\n      }\n\n      const text = this.get('text') || this.get('intl').t('common.confirmMessage');\n\n      if (confirm(text)) {\n        this.get('onConfirm')();\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/by-whom/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: service('session-account'),\n    tagName: 'span'\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/by-whom/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"1HQA1rua\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"person\\\",\\\"id\\\"]],[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"id\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"t\\\",[\\\"common.byYou\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"t\\\",[\\\"common.by\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"person\\\",\\\"name\\\"]],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.fromCompany\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"person\\\",\\\"company\\\",\\\"shortName\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/by-whom/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/checkpoint-blockade-message/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({});\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/checkpoint-blockade-message/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"dpYuBftK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"field\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"blockade-info\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[21,\\\"title\\\"],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-top inline-block\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"fields\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"text-left no-padding\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/checkpoint-blockade-message/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/checkpoint-blockade-reason-modal/controller\", [\"exports\", \"apollo/mixins/transports-mixin\", \"apollo/mixins/advice-utils-mixin\"], function (_exports, _transportsMixin, _adviceUtilsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_transportsMixin.default, _adviceUtilsMixin.default, {\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    errors: Ember.A(),\n    checkpoint: Ember.computed('model.id', function () {\n      return this.get('model');\n    }),\n    step: Ember.computed('checkpoint.step', function () {\n      return this.get('checkpoint.step.content');\n    }),\n    transport: Ember.computed('checkpoint.transport.id', function () {\n      const transportId = this.get('checkpoint.transport.id');\n      return this.get('store').peekRecord('transport', transportId);\n    }),\n    title: Ember.computed('checkpoint.{id,name}', function () {\n      return `${this.get('intl').t('checkpoint.blockLabel')}: ${this.get('checkpoint.name')}`;\n    }),\n    alertText: Ember.computed('checkpoint.name', function () {\n      return `Czy na pewno chcesz zablokować status: ${this.get('checkpoint.name')}`;\n    }),\n    isDuringConfirmation: Ember.computed('checkpoint.actionType', function () {\n      return this.get('checkpoint.actionType') === this.get('checkpoint.ACTIONS').CONFIRM;\n    }),\n    firstUnconfirmedCheckpoint: Ember.computed('transport.firstUnconfirmedCheckpoint', function () {\n      return this.get('transport.firstUnconfirmedCheckpoint');\n    }),\n    actions: {\n      async block(checkpoint) {\n        const self = this;\n        checkpoint.set('blockadeRequester', this.get('sessionAccount.currentUser'));\n\n        if (!checkpoint.validate()) {\n          console.debug(checkpoint.get('errors'));\n          return;\n        }\n\n        const path = this.get('apolloApiService').APOLLO_API.CHECKPOINTS.BLOCK;\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, {\n            id: checkpoint.get('id')\n          }, {\n            body: JSON.stringify(checkpoint)\n          });\n\n          if (response.ok) {\n            self.set('errors', []);\n            console.log('Zablokowaliśmy status :: ' + checkpoint);\n            checkpoint.reload();\n            self.reset(checkpoint);\n          } else {\n            console.debug('Błąd podczas blokowania statusu');\n            self.reset(checkpoint);\n          }\n        } catch (error) {\n          this.set('errors', [this.get('intl').t('common.defaultError')]);\n          console.error(error);\n        }\n      },\n\n      cancel(checkpoint) {\n        this.reset(checkpoint);\n      }\n\n    },\n\n    reset(checkpoint) {\n      checkpoint.set('isDuringAction', false);\n      this.send('hideModal');\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/checkpoint-blockade-reason-modal/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Wws7Odvd\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"showCancelButton\\\",\\\"cancel\\\",\\\"classNames\\\"],[[23,[\\\"title\\\"]],true,[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\",[23,[\\\"checkpoint\\\"]]],null],[23,[\\\"classes\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group form-group-padding \\\",[27,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"errors\\\",\\\"blockadeReason\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.choosingReason\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-7\\\"],[11,\\\"data-field-name\\\",\\\"checkpoint-blockade-reason\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"checkpoint\\\",\\\"blockadeReason\\\"]],[27,\\\"t\\\",[\\\"common.choosingReason\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"checkpoint\\\"]],\\\"blockadeReason\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons padding-top-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"dataButtonName\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-sm btn-danger btn-wide\\\",\\\"checkpoint-blockade-reason-modal-block-button\\\",[23,[\\\"alertText\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"block\\\",[23,[\\\"checkpoint\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"t\\\",[\\\"checkpoint.blockLabel\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"checkpoint\\\",\\\"task\\\",\\\"checkpointNameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/checkpoint-blockade-reason-modal/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/checkpoint/confirm-status-button/component\", [\"exports\", \"apollo/mixins/transport-form-mixin\", \"apollo/models/checkpoint-confirmation-modal-params\"], function (_exports, _transportFormMixin, _checkpointConfirmationModalParams) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_transportFormMixin.default, {\n    init(...args) {\n      this._super(...args);\n\n      (true && !(!!this.get('checkpoint')) && Ember.assert(this.get('intl').t('debug.requiredArgAndType', {\n        name: 'checkpoint',\n        type: 'Checkpoint Model'\n      }), !!this.get('checkpoint')));\n    },\n\n    tagName: '',\n    layoutName: Ember.computed(function () {\n      return this.get('renderInTable') ? 'components/checkpoint/confirm-status-button/guard' : 'components/checkpoint/confirm-status-button/default';\n    }),\n    action: 'showModal',\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    transport: Ember.computed.reads('checkpoint.transport'),\n    sessionAccount: Ember.inject.service('session-account'),\n    checkpointService: Ember.inject.service('checkpoint-service'),\n    weightService: Ember.inject.service('weight-service'),\n    checkpointNameInAppropriateLanguage: Ember.computed.reads('checkpoint.step.warehouse.nameInAppropriateLanguage'),\n    checkpointLabel: Ember.computed('checkpoint.{name,altCheckpointLabel}', function () {\n      return this.get('checkpoint.task.weighingIncluded') ? this.get('checkpoint.altCheckpointLabel') : this.get('checkpoint.name');\n    }),\n    isButtonDisabled: Ember.computed({\n      get() {\n        return false;\n      },\n\n      set(key, value) {\n        return value;\n      }\n\n    }),\n\n    toggleButtonState() {\n      this.toggleProperty('isButtonDisabled');\n    },\n\n    actions: {\n      async confirm(checkpoint) {\n        this.set('action', 'showModal');\n        this.toggleButtonState();\n        const checkpointModel = await checkpoint;\n\n        if (!checkpointModel.validate()) {\n          this.toggleButtonState();\n          return;\n        }\n\n        try {\n          const response = await this.get('checkpointService').confirmAndRefresh(checkpointModel);\n\n          if (checkpointModel.get('task.weighingIncluded') && checkpointModel.get('step.warehouse.weighingIncluded') && checkpointModel.get('transport.hasAutoWeight')) {\n            await this.get('weightService').automaticWeighing(checkpointModel);\n          }\n\n          if (response.ok) {\n            this.set('errors', []);\n            this.set('action', 'hidePopup'); // TODO 0335-deprecate-send-action https://github.com/emberjs/rfcs/blob/master/text/0335-deprecate-send-action.md\n\n            this.sendAction('action');\n            return;\n          }\n\n          const errors = await response.json();\n\n          if (!errors.type && !(errors.type === 'DATA_REQUIRED')) {\n            this.set('errors', [errors.errors]);\n            return;\n          }\n\n          const componentParams = _checkpointConfirmationModalParams.default.create({\n            checkpointModel,\n            weight: null,\n            isOverweight: errors.errors.includes('OVERWEIGHT'),\n            truckTypeRequired: errors.errors.includes('TRUCK_TYPE_REQUIRED')\n          }); // TODO: Refaktor \"odświeżania\" cf-ów przez initializeCustomFields\n\n\n          await this.initializeCustomFields(checkpoint.get('transport'));\n\n          if (errors.errors.includes('WEIGHT_REQUIRED')) {\n            const newWeight = this.createWeightRecord(checkpointModel);\n            componentParams.set('weight', newWeight);\n          }\n\n          if (errors.errors.includes('CUSTOM_MODAL_REQUIRED')) {\n            const modalName = checkpoint.get('task.customModalComponentName') || checkpoint.get('task.DEFAULT_CUSTOM_MODAL_COMPONENT_NAME');\n            return this.sendAction('action', 'components.task-custom-modals.' + modalName, checkpoint);\n          }\n\n          this.sendAction('action', 'checkpoint-confirmation-modal', componentParams);\n        } catch (e) {\n          console.error(e);\n        } finally {\n          this.toggleButtonState();\n        }\n      },\n\n      showModal(templateName, checkpoint) {\n        this.set('action', 'showModal');\n        this.sendAction('action', templateName, checkpoint);\n      }\n\n    },\n\n    createWeightRecord(checkpointModel) {\n      return this.get('store').createRecord('weight', {\n        task: checkpointModel.get('task'),\n        warehouse: checkpointModel.get('step.warehouse'),\n        transport: checkpointModel.get('transport'),\n        enabled: true,\n        dateCreated: new Date(),\n        confirmator: this.get('sessionAccount.currentUser')\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/checkpoint/confirm-status-button/default/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"68qxQZYD\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"task\\\",\\\"canBeConfirmedByRole\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"button\\\"],[12,\\\"disabled\\\",[28,[[27,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"isButtonDisabled\\\"]],[23,[\\\"checkpoint\\\",\\\"confirmButtonShouldBeDisabled\\\"]]],null],\\\"disabled\\\"],null]]]],[11,\\\"class\\\",\\\"btn btn-sm btn-primary btn-wide\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isButtonDisabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"checkpoints.confirm\\\"],null],false],[0,\\\": \\\"],[1,[21,\\\"checkpointLabel\\\"],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"step\\\",\\\"warehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"small\\\"],[9],[0,\\\"\\\\n                    (\\\"],[1,[21,\\\"checkpointNameInAppropriateLanguage\\\"],false],[0,\\\")\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"step\\\",\\\"company\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"small\\\"],[9],[0,\\\"\\\\n                    (\\\"],[1,[23,[\\\"checkpoint\\\",\\\"step\\\",\\\"company\\\",\\\"shortName\\\"]],false],[1,[27,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"step\\\",\\\"city\\\"]],[27,\\\"concat\\\",[\\\", \\\",[23,[\\\"checkpoint\\\",\\\"step\\\",\\\"city\\\"]]],null],\\\"\\\"],null],false],[0,\\\")\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"confirm\\\",[23,[\\\"checkpoint\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"t\\\",[\\\"statuses.waitingForConfirmation\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"checkpoint\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/checkpoint/confirm-status-button/default/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/checkpoint/confirm-status-button/guard/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"6y2To/5t\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"confirm-checkpoint\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[12,\\\"disabled\\\",[27,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"checkpoint\\\",\\\"hasUnsynchronizedWeight\\\"]],[23,[\\\"checkpoint\\\",\\\"confirmButtonShouldBeDisabled\\\"]]],null],\\\"disabled\\\"],null]],[12,\\\"style\\\",[27,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"altCheckpointColor\\\"]],[23,[\\\"checkpoint\\\",\\\"altCheckpointColor\\\"]],[23,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]]],null]],[12,\\\"title\\\",[28,[[27,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"confirmButtonShouldBeDisabled\\\"]],[23,[\\\"checkpoint\\\",\\\"checkpointBlockadeInfo\\\",\\\"title\\\"]]],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isButtonDisabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,[\\\"checkpoint\\\",\\\"altCheckpointLabel\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[3,\\\"action\\\",[[22,0,[]],\\\"confirm\\\",[23,[\\\"checkpoint\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/checkpoint/confirm-status-button/guard/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/checkpoint/reject-status-button/component\", [\"exports\", \"apollo/mixins/transport-form-mixin\"], function (_exports, _transportFormMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_transportFormMixin.default, {\n    init(...args) {\n      this._super(...args);\n\n      (true && !(!!this.get('checkpoint')) && Ember.assert(this.get('intl').t('debug.requiredArgAndType', {\n        name: 'checkpoint',\n        type: 'Checkpoint Model'\n      }), !!this.get('checkpoint')));\n    },\n\n    tagName: '',\n    intl: Ember.inject.service(),\n    action: 'showModal',\n    checkpoint: Ember.computed.reads('checkpointToReject'),\n    checkpointService: Ember.inject.service('checkpoint-service'),\n\n    confirmRejection() {\n      const msg = this.get('intl').t('checkpoint.rejectConfirm');\n      return confirm(msg);\n    },\n\n    actions: {\n      async rejectCheckpoint(checkpoint) {\n        const checkpointModel = await checkpoint;\n        const componentParams = {\n          checkpoint: checkpointModel\n        };\n        await this.initializeCustomFields(checkpoint.get('transport'));\n\n        if (checkpoint.get('hasCustomFieldsBlockade')) {\n          this.sendAction('action', 'checkpoint-rejection-modal', componentParams);\n          return;\n        }\n\n        if (!this.confirmRejection()) {\n          return;\n        }\n\n        this.get('checkpointService').reject(checkpoint);\n        checkpoint.reload();\n\n        if (!this.get('isFromGuardTable')) {\n          this.sendAction('hide');\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/checkpoint/reject-status-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"AoD3eJca\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"task\\\",\\\"canBeRejectedByRole\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-sm btn-danger btn-wide\\\"],[11,\\\"data-button-name\\\",\\\"reject-checkpoint\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"checkpoint.reject\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"checkpoint\\\",\\\"name\\\"]],false],[0,\\\"\\\\n    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"rejectCheckpoint\\\",[23,[\\\"checkpoint\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/checkpoint/reject-status-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/checkpoint/rejection-date-text/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    init(...args) {\n      this._super(...args);\n\n      (true && !(!!this.get('checkpoint')) && Ember.assert(this.get('intl').t('debug.requiredArgAndType', {\n        name: 'checkpoint',\n        type: 'Checkpoint Model'\n      }), !!this.get('checkpoint')));\n    },\n\n    tagName: '',\n    intl: Ember.inject.service(),\n    checkpointRejectionDateShouldBeVisible: Ember.computed('checkpoint.{canBeRejected,rejectionDate}', function () {\n      return !!this.get('checkpoint.task.canBeRejectedByRole') && !!this.get('checkpoint.rejectionDate');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/checkpoint/rejection-date-text/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"kgprOKw/\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"checkpointRejectionDateShouldBeVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"checkpoint-reject-date\\\"],[11,\\\"data-field-name\\\",\\\"checkpoint-reject-date\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"checkpoint.rejectionDate\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"checkpoint\\\",\\\"rejectionDate\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/checkpoint/rejection-date-text/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/checkpoint/weight-input/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    init(...args) {\n      this._super(...args);\n\n      (true && !(!!this.get('checkpoint')) && Ember.assert(this.get('intl').t('debug.requiredArgAndType', {\n        name: 'checkpoint',\n        type: 'Checkpoint Model'\n      }), !!this.get('checkpoint')));\n      (true && !(!!this.get('weight')) && Ember.assert(this.get('intl').t('debug.requiredArgAndType', {\n        name: 'weight',\n        type: 'Weight Model'\n      }), !!this.get('weight')));\n    },\n\n    intl: Ember.inject.service(),\n    weightService: Ember.inject.service('weight-service'),\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    canEditWeight: Ember.computed('transport.hasAutoWeight', function () {\n      if (this.get('checkpoint.transport.hasAutoWeight')) {\n        return true;\n      } else {\n        return !this.get('authorityCheckerService').actionCanBePerformed('ROLE_EDIT_WEIGHT', this.get('checkpoint.transport'));\n      }\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/checkpoint/weight-input/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"uWtybVFw\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group form-group-padding\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-6 control-label\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"checkpoint\\\",\\\"task\\\",\\\"checkpointNameInAppropriateLanguage\\\"]],false],[0,\\\" - \\\"],[1,[27,\\\"t\\\",[\\\"transport.weightSection.weight\\\"],null],false],[0,\\\" [\\\"],[1,[27,\\\"t\\\",[\\\"transport.weightSection.unit\\\"],null],false],[0,\\\"]\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-6 \\\",[27,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"currentWeight\\\",\\\"errors\\\",\\\"readOut\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"data-field-name\\\",[28,[\\\"weight-\\\",[23,[\\\"checkpoint\\\",\\\"warehouse\\\",\\\"name\\\"]],\\\"-\\\",[23,[\\\"checkpoint\\\",\\\"task\\\",\\\"checkpointNameInAppropriateLanguage\\\"]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"placeholder\\\",\\\"required\\\",\\\"value\\\"],[\\\"number\\\",\\\"form-control\\\",[23,[\\\"canEditWeight\\\"]],\\\"0,00\\\",true,[23,[\\\"weight\\\",\\\"readOut\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"weight\\\"]],\\\"readOut\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/checkpoint/weight-input/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/classification-resource/place-assignment/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    store: Ember.inject.service(),\n    shouldButtonBeDisabled: Ember.computed('resource.id', function () {\n      return this.get('resource.place.id') || !this.get('resource.active');\n    }),\n    buttonClass: Ember.computed('resource.id', function () {\n      if (this.get('resource.state') || !this.get('resource.transport') || this.get('shouldButtonBeDisabled')) {\n        return 'btn dark-font';\n      }\n\n      return 'btn';\n    }),\n\n    sendAssignPlace(resource, place) {\n      resource.set('place', place);\n      const assignPlaceData = JSON.stringify({\n        classificationResource: resource,\n        checkpointToConfirm: resource.get('transport.firstUnconfirmedCheckpoint.id')\n      });\n      const path = this.get('apolloApiService').APOLLO_API.CLASSIFICATION_RESOURCES.ASSIGN_PLACE;\n      this.get('apolloApiService').callApolloApi(path, null, {\n        body: assignPlaceData\n      }).then(() => {\n        resource.reload();\n        $('.assign-place-button').button('reset');\n      });\n    },\n\n    sendReserveClassificationResource(resource) {\n      const path = this.get('apolloApiService').APOLLO_API.CLASSIFICATION_RESOURCES.RESERVE;\n      this.get('apolloApiService').callApolloApi(path, null, {\n        body: JSON.stringify(resource)\n      }).then(response => {\n        return response.json();\n      }).then(data => {\n        this.store.findRecord('classification-resource', data.classificationResource.id);\n        $('.assign-place-button').button('reset');\n      });\n    },\n\n    actions: {\n      assignPlace(resource, place) {\n        const self = this;\n        const isDummyResource = resource.get('transport') === null;\n\n        if (isDummyResource) {\n          resource = {\n            enabled: true,\n            queue: place.get('queue.id'),\n            place: place.get('id')\n          };\n          self.sendReserveClassificationResource(resource);\n        } else {\n          self.sendAssignPlace(resource, place);\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/classification-resource/place-assignment/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"lGIo/8Ym\",\n    \"block\": \"{\\\"symbols\\\":[\\\"place\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row place-assignment\\\"],[12,\\\"data-transport-id\\\",[28,[[23,[\\\"resource\\\",\\\"transport\\\",\\\"id\\\"]]]]],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"place-assignment-header\\\"],[12,\\\"data-field-name\\\",[28,[[23,[\\\"resource\\\",\\\"carRegistrationNumber\\\"]]]]],[9],[0,\\\"\\\\n        \\\"],[1,[23,[\\\"resource\\\",\\\"ordinalNumber\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"resource\\\",\\\"carRegistrationNumber\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"resource\\\",\\\"classificationCheckpointsString\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"place-assignment-buttons\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"queue\\\",\\\"enabledPlaces\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[12,\\\"class\\\",[28,[[21,\\\"buttonClass\\\"],\\\" btn\\\"]]],[11,\\\"data-button-name\\\",\\\"assign-place\\\"],[12,\\\"style\\\",[27,\\\"place-button-style\\\",null,[[\\\"resource\\\",\\\"place\\\"],[[23,[\\\"resource\\\"]],[22,1,[]]]]]],[12,\\\"disabled\\\",[21,\\\"shouldButtonBeDisabled\\\"]],[9],[0,\\\"\\\\n                \\\"],[1,[22,1,[\\\"shortName\\\"]],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"assignPlace\\\",[23,[\\\"resource\\\"]],[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/classification-resource/place-assignment/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/anti-corruption-data-section/component\", [\"exports\", \"apollo/mixins/section-mixin\"], function (_exports, _sectionMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_sectionMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    dragAndDrop: Ember.inject.service('drag-and-drop-service'),\n    appliesSetting: Ember.computed(function () {\n      return this.get('sessionAccount').getAppliesSetting();\n    }),\n    principalCompany: Ember.computed(function () {\n      const principalCompanyId = localStorage.getItem('principalId');\n      return this.get('store').peekRecord('company', principalCompanyId);\n    }),\n    actions: {\n      showModal(templateName, model) {\n        this.set('action', 'showModal');\n        this.sendAction('action', templateName, model);\n      }\n\n    },\n\n    dragOver(event) {\n      const element = this.element;\n      this.get('dragAndDrop').dragOver(event, element);\n    },\n\n    dragLeave(event) {\n      const element = this.element;\n      this.get('dragAndDrop').dragLeave(event, element);\n    },\n\n    drop(event) {\n      const element = this.element;\n      this.get('dragAndDrop').drop(event, element);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/anti-corruption-data-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"hwj3la/y\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"section.state.label\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-5 form-control-static\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"sections/section-state\\\",null,[[\\\"section\\\"],[[23,[\\\"section\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"appliesSetting\\\",\\\"showStatementToDownload\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9 col-sm-offset-3\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"anti-corruption-section.statementFileDescription\\\"],[[\\\"company\\\"],[[23,[\\\"principalCompany\\\",\\\"shortName\\\"]]]]],false],[0,\\\":\\\\n                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[23,[\\\"section\\\",\\\"statementFilePL\\\",\\\"refLink\\\"]]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file clickable\\\"],[9],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.language.PL\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[23,[\\\"section\\\",\\\"statementFileEN\\\",\\\"refLink\\\"]]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file clickable\\\"],[9],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.language.ENG\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"appliesSetting\\\",\\\"showPatternToDownload\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9 col-sm-offset-3\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"anti-corruption-section.patternFileDescription\\\"],null],false],[0,\\\":\\\\n                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[23,[\\\"section\\\",\\\"patternFilePL\\\",\\\"refLink\\\"]]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file clickable\\\"],[9],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.language.PL\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[23,[\\\"section\\\",\\\"patternFileEN\\\",\\\"refLink\\\"]]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file clickable\\\"],[9],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.language.ENG\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"anti-corruption-section.signedFile\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-4\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"sections/upload-file\\\",null,[[\\\"section\\\",\\\"files\\\",\\\"fileType\\\"],[[23,[\\\"section\\\"]],[23,[\\\"section\\\",\\\"signedFiles\\\"]],\\\"ANTICORRUPTION\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"anti-corruption-section.internalNotes\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\",\\\"rows\\\"],[[23,[\\\"section\\\",\\\"internalNotes\\\"]],\\\"textarea\\\",\\\"form-control\\\",\\\"6\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 form-buttons margin-bottom\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"success\\\"],[9],[1,[21,\\\"successMessage\\\"],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"section\\\",\\\"canBeConfirmed\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-success\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"section.accept\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"confirm\\\",[23,[\\\"section\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"section\\\",\\\"canBeRejected\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"sections/reject-section-button\\\",null,[[\\\"section\\\"],[[23,[\\\"section\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"section\\\",\\\"canBeUpdated\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"update-document\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"section.update\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"update\\\",[23,[\\\"section\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/companies/apply-form/anti-corruption-data-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/blockade-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Component.extend({\n    store: service(),\n    intl: service(),\n    sessionAccount: service('session-account'),\n    classNames: ['padding-left']\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/blockade-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"YnGiwXbC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"b\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"partnership\\\",\\\"blockades\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"fa-icon\\\",[\\\"smile\\\",\\\"regular\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"blockades.noActiveBlockades\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"partnership\\\",\\\"blockades\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"dateCreated\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\" -\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,1,[\\\"notes\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"blockades.invalidSection\\\"],null],false],[0,\\\" : \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"sectionType.\\\",[22,1,[\\\"section\\\",\\\"name\\\"]]],null]],null],false],[10],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/companies/apply-form/blockade-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/component\", [\"exports\", \"apollo/mixins/section-mixin\", \"apollo/mixins/error-utils-mixin\"], function (_exports, _sectionMixin, _errorUtilsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Component.extend(_sectionMixin.default, _errorUtilsMixin.default, {\n    sessionAccount: service('session-account'),\n    store: service(),\n    intl: service(),\n    partnership: Ember.computed('model.company.partnershipWithPrincipal', function () {\n      return this.get('model.company.partnershipWithPrincipal');\n    }),\n    contractorsGroupTypes: Ember.computed('partnership.partnershipType.name', function () {\n      const self = this;\n\n      if (!this.get('partnership.partnershipType.name')) {\n        return;\n      }\n\n      return this.get('store').query('contractorsGroupType', {\n        principalCompanyId: localStorage.getItem('principalId'),\n        partnershipTypeName: self.get('partnership.partnershipType.name')\n      });\n    }),\n    insuranceTypes: Ember.computed('other', function () {\n      const countryIban = this.get('partnership.contractorCompany.country.ibanSymbol');\n      return this.get('store').peekAll('documentType').filterBy('groupName', 'INSURANCE').filter(dt => {\n        return !dt.get('ibanRestriction') || dt.get('ibanRestriction') === countryIban;\n      });\n    }),\n    showRequestVerificationButton: Ember.computed('partnership.verificationRequestSent', function () {\n      return !this.get('sessionAccount.currentUser.isPrincipal') && !this.get('partnership.verificationRequestSent');\n    }),\n    showApplyHistory: Ember.computed('', function () {\n      return this.get('sessionAccount').hasRole('ROLE_ACCESS_TO_APPLY_HISTORY');\n    }),\n    actions: {\n      showModal(templateName = 'transports.modals.create-transport', model) {\n        this.set('action', 'showMainModal');\n        this.sendAction('action', templateName, model);\n      },\n\n      sendRequestVerification: function () {\n        const self = this;\n        this.clearErrorBeforeSendRequestVerification();\n        this.get('partnership').set('sendRequestForVerification', true);\n\n        if (!this.get('partnership').validate()) {\n          this.get('partnership').set('sendRequestForVerification', false);\n          this.set('showRequestVerificationErrors', true);\n          $('html, body').animate({\n            scrollTop: 0\n          }, 'slow');\n          return;\n        }\n\n        this.get('partnership').save().then(p => {\n          self.set('showRequestVerificationErrors', false);\n          this.get('partnership').set('sendRequestForVerification', false);\n        }).catch(response => {\n          const errors = response.errors[0];\n          self.handleErrors(errors.contractorsGroup, 'contractors-group');\n          self.handleErrors(errors.contractorsGroupType, 'contractors-group-type');\n          self.get('partnership').set('sendRequestForVerification', false);\n          self.set('showRequestVerificationErrors', true);\n          $('html, body').animate({\n            scrollTop: 0\n          }, 'slow');\n        });\n      }\n    },\n\n    clearErrorBeforeSendRequestVerification() {\n      this.setProperties({\n        hasErrors: false,\n        showRequestVerificationErrors: false,\n        errors: []\n      });\n      this.get('store').peekAll('contractorsGroup').map(cg => {\n        cg.get('errors').clear();\n        cg.get('groupType.errors').clear();\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/contractors-group-section/component\", [\"exports\", \"apollo/mixins/error-utils-mixin\", \"apollo/config/environment\"], function (_exports, _errorUtilsMixin, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_errorUtilsMixin.default, {\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    classNames: ['padding-left'],\n\n    init() {\n      this._super(...arguments);\n\n      const self = this;\n      this.get('contractorsGroupTypes').then(groupTypes => {\n        groupTypes.forEach(gt => {\n          gt.get('contractorsGroups').forEach(group => {\n            const pcg = this.get('partnership.partnershipContractorsGroups').filterBy('contractorsGroup.id', group.get('id')).get('firstObject');\n\n            if (!pcg) {\n              this.get('store').createRecord('partnershipContractorsGroup', {\n                partnership: self.get('partnership'),\n                contractorsGroup: group,\n                enabled: false\n              });\n            }\n          });\n        });\n      });\n    },\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      this.send('rollbackChanges');\n    },\n\n    showGroupTypeTitle: Ember.computed('contractorsGroupTypes.length', function () {\n      return this.get('contractorsGroupTypes.length') > 1;\n    }),\n    showAddNewGroupButton: Ember.computed('', function () {\n      return this.get('sessionAccount').hasRole('ROLE_ADD_CONTRACTOR_GROUP');\n    }),\n    showEditGroupButton: Ember.computed('', function () {\n      return this.get('sessionAccount').hasRole('ROLE_EDIT_CONTRACTOR_GROUP');\n    }),\n    proxiedGroupsConfiguration: Ember.computed('contractorsGroupTypes.[]', 'contractorsGroupTypes.@each.contractorsGroups', 'partnership.partnershipContractorsGroups.[]', 'partnership.partnershipContractorsGroups.@each.enabled', 'partnership.partnershipContractorsGroups.@each.errorMessages', 'partnership.contractorCompany.headquarter.country', 'principalContractorsGroupType.[]', function () {\n      const partnership = this.get('partnership');\n      const partnershipContractorsGroups = this.get('partnership.partnershipContractorsGroups');\n      const principalContractorsGroupType = this.get('principalContractorsGroupType');\n      return this.get('contractorsGroupTypes').map(gt => {\n        const contractorsGroups = gt.get('contractorsGroups').filter(cg => cg !== null);\n        const shouldBeVisible = principalContractorsGroupType.filter(pcgt => pcgt.get('contractorsGroupType.id') === gt.id).get('firstObject').get('visible');\n        return Ember.ObjectProxy.create({\n          groupType: gt,\n          groups: contractorsGroups.map(g => {\n            const pcg = partnershipContractorsGroups.find(pcg => pcg.get('contractorsGroup.id') === g.get('id'));\n            return Ember.ObjectProxy.create({\n              content: g,\n              pcg,\n              disabled: g.shouldBeDisabled(partnership)\n            });\n          }),\n          visible: shouldBeVisible\n        });\n      });\n    }),\n    proxiedGroupsConfigurationLength: Ember.computed('proxiedGroupsConfiguration', function () {\n      return this.get('proxiedGroupsConfiguration.length');\n    }),\n    actions: {\n      toggleGroup: function (groupId) {\n        const group = this.get('store').peekRecord('contractorsGroup', groupId);\n        const pcg = this.get('partnership.partnershipContractorsGroups').filterBy('contractorsGroup.id', group.get('id')).get('firstObject');\n\n        if (group.get('name') === 'ADR' && !confirm(this.get('intl').t(!pcg.get('enabled') ? 'contractors-group.selectADRInfo' : 'contractors-group.unSelectADRInfo'))) {\n          return;\n        }\n\n        const shouldBeChecked = !this.get('partnership.contractorsGroupsIds').includes(group.get('id'));\n\n        if (pcg) {\n          pcg.set('enabled', shouldBeChecked);\n        } else if (shouldBeChecked) {\n          this.get('store').createRecord('partnershipContractorsGroup', {\n            partnership: this.get('partnership'),\n            contractorsGroup: group,\n            enabled: true\n          });\n        }\n      },\n      save: function () {\n        const self = this;\n        self.set('successMessage', '');\n        const token = this.get('sessionAccount').get('token');\n        const partnership = this.get('partnership');\n        const groupsData = partnership.get('contractorsGroups').map(g => g.get('id'));\n        self.get('store').peekAll('contractorsGroup').map(g => {\n          g.get('errors').clear();\n          g.get('groupType.errors').clear();\n        }); // TODO :: apollo-api-service\n\n        Ember.$.ajax({\n          url: `${_environment.default.serverURL}/partnerships/${partnership.get('id')}/groups`,\n          data: JSON.stringify({\n            partnership: partnership.get('id'),\n            groups: groupsData\n          }),\n          type: 'PUT',\n          contentType: 'application/json',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(() => {\n          const partnershipContractorsGroupsCopy = self.get('partnership.partnershipContractorsGroups').slice(0);\n          partnershipContractorsGroupsCopy.forEach(pcg => {\n            if (pcg !== undefined && !pcg.get('id') && pcg.unloadRecord) {\n              console.debug(`Unloading redundant partnership group for group ${pcg.get('contractorsGroup.name')}..`);\n              self.get('partnership.partnershipContractorsGroups').removeObject(pcg);\n              pcg.unloadRecord();\n            }\n          });\n          self.get('partnership').reload().then(() => {\n            self.set('successMessage', self.get('intl').t('section.successMessage'));\n          });\n        }, function (response) {\n          const errors = JSON.parse(response.responseText).errors;\n          self.handleErrors(errors.contractorsGroup, 'contractors-group');\n          self.handleErrors(errors.contractorsGroupType, 'contractors-group-type');\n        });\n      },\n      cancel: function () {\n        this.send('rollbackChanges');\n      },\n      addNewPrivateGroup: async function () {\n        const self = this;\n        const principalCompany = this.get('sessionAccount.principalCompany');\n        const groupType = await this.get('store').query('contractorsGroupType', {\n          getPrivateTypes: true,\n          partnershipTypeName: self.get('company.typeName')\n        });\n        const model = {\n          contractorsGroup: self.get('store').createRecord('contractorsGroup', {\n            principalCompany,\n            groupType: groupType.get('firstObject')\n          }),\n          groupType,\n          partnership: self.get('partnership')\n        };\n        self.set('action', 'showModal');\n        self.sendAction('action', 'contractors-group.modals.create-contractors-group', model);\n      },\n      showAddGroupModal: async function (groupType, groupId) {\n        const self = this;\n        const principalId = localStorage.getItem('principalId');\n        const principalCompany = self.get('store').peekRecord('company', principalId);\n        const existingContractorsGroup = self.get('store').peekRecord('contractorsGroup', groupId);\n        const model = {\n          contractorsGroup: existingContractorsGroup || self.get('store').createRecord('contractorsGroup', {\n            principalCompany,\n            groupType\n          }),\n          groupType,\n          partnership: self.get('partnership')\n        };\n        self.set('action', 'showModal');\n        self.sendAction('action', 'contractors-group.modals.create-contractors-group', model);\n      },\n\n      rollbackChanges() {\n        this.get('partnership').rollbackAttributes();\n        const groups = this.get('partnership.partnershipContractorsGroups').map(g => g);\n        groups.forEach(g => {\n          if (g && g.rollback) {\n            g.rollback();\n          }\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/contractors-group-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"bdBrQ7bC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"groupTypeProxy\\\",\\\"group\\\",\\\"group\\\",\\\"e\\\",\\\"e\\\",\\\"group\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"lt\\\",[[23,[\\\"proxiedGroupsConfigurationLength\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-field-name\\\",\\\"contractors-group-button\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"addNewPrivateGroup\\\"],null]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"contractors-group.addNewPrivateGroup\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"proxiedGroupsConfiguration\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,1,[\\\"visible\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showGroupTypeTitle\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 form-group h5 bold\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"contractors-group-type.\\\",[22,1,[\\\"groupType\\\",\\\"name\\\"]]],null]],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-group no-padding\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,1,[\\\"groups\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"btn \\\",[27,\\\"if\\\",[[22,6,[\\\"pcg\\\",\\\"enabled\\\"]],\\\"btn-success\\\",\\\"btn-default\\\"],null],\\\" \\\",[27,\\\"if\\\",[[22,6,[\\\"pcg\\\",\\\"errors\\\",\\\"length\\\"]],\\\"errors\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                                    \\\"],[7,\\\"span\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"toggleGroup\\\",[22,6,[\\\"id\\\"]]],null]],[12,\\\"disabled\\\",[22,6,[\\\"disabled\\\"]]],[9],[0,\\\"\\\\n\\\\n                                        \\\"],[1,[22,6,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showEditGroupButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                        | \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[11,\\\"data-field-name\\\",\\\"edit-contractors-group-button\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"showAddGroupModal\\\",[22,1,[\\\"groupType\\\"]],[22,6,[\\\"id\\\"]]],null]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showAddNewGroupButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-field-name\\\",\\\"contractors-group-button\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"showAddGroupModal\\\",[22,1,[\\\"groupType\\\"]]],null]],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"contractors-group.addGroup\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,1,[\\\"groupType\\\",\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"help-block errors\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[22,5,[\\\"message\\\"]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,1,[\\\"groups\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,3,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"help-block errors\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[22,4,[\\\"message\\\"]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[3]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"groupType\\\",\\\"name\\\"]],\\\"TYPES_OF_BUSINESS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"contractors-group.description.label\\\"],null],false],[0,\\\" -\\\\n                                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"clickable\\\"],[9],[1,[27,\\\"t\\\",[\\\"contractors-group.description.details\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"showDetails\\\"]]],null],[27,\\\"not\\\",[[23,[\\\"showDetails\\\"]]],null]]],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-left\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,1,[\\\"groups\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"p\\\"],[9],[7,\\\"label\\\"],[9],[1,[22,2,[\\\"nameInAppropriateLanguage\\\"]],false],[10],[0,\\\"\\\\n                                            - \\\"],[1,[22,2,[\\\"obligatoryDocumentsNames\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,2,[\\\"optionalDocumentsNames\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[1,[27,\\\"t\\\",[\\\"contractors-group.description.optionalDocuments\\\"],[[\\\"default\\\"],[\\\"contractors-group.description.default\\\"]]],false],[0,\\\" \\\"],[1,[22,2,[\\\"optionalDocumentsNames\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[22,2,[\\\"documentValidations\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[1,[27,\\\"t\\\",[\\\"contractors-group.description.notApplicable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                                    \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"contractors-group.description.ifYouDoNotHaveDocument\\\"],null],false],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons margin-top col-xs-12\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"success\\\"],[9],[1,[21,\\\"successMessage\\\"],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-info\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/companies/apply-form/contractors-group-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/history-section/component\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n\n  var _default = Ember.Component.extend({\n    store: service(),\n    sessionAccount: service('session-account'),\n    isOpened: false,\n    page: 1,\n    partnershipLogs: Ember.computed('', function () {\n      return Ember.A();\n    }),\n    loadLogs: Ember.observer('isOpened', 'page', 'max', function () {\n      const self = this;\n      const token = this.get('sessionAccount').get('token');\n      const partnership = this.get('partnership');\n      const partnershipLogs = this.get('partnershipLogs'); // TODO :: apollo-api-service\n\n      Ember.$.ajax({\n        url: _environment.default.serverURL + '/partnerships/' + partnership.get('id') + '/logs',\n        data: {\n          max: self.get('max'),\n          page: self.get('page')\n        },\n        type: 'GET',\n        beforeSend: function (xhr) {\n          xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n        }\n      }).then(function (json) {\n        partnershipLogs.clear();\n        json.partnershipLogs.sortBy('dateCreated').reverse().forEach(function (partnershipLog) {\n          partnershipLogs.pushObject(partnershipLog);\n        });\n        self.set('totalPages', json.meta.pagesCount);\n      });\n    }),\n    actions: {\n      togglePanel() {\n        console.log(`togglePanel from.. ${this.get('isOpened')}`);\n        this.toggleProperty('isOpened');\n      },\n\n      incrementPage() {\n        this.incrementProperty('page');\n      },\n\n      decrementPage() {\n        this.decrementProperty('page');\n      },\n\n      setPage(page) {\n        this.set('page', page);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/history-section/partnership-log/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({});\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/history-section/partnership-log/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Ib/OqAGk\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"partnership.logs.\\\",[23,[\\\"log\\\",\\\"event\\\"]]],null]],null],false],[0,\\\":\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"log\\\",\\\"sectionName\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"sectionType.\\\",[23,[\\\"log\\\",\\\"sectionName\\\"]]],null]],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"log\\\",\\\"subject\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[23,[\\\"log\\\",\\\"subject\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"log\\\",\\\"oldData\\\"]]],null,{\\\"statements\\\":[[0,\\\"    :: \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"old-value\\\"],[9],[1,[23,[\\\"log\\\",\\\"oldData\\\"]],false],[10],[0,\\\"\\\\n    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-long-arrow-right\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"new-value\\\"],[9],[1,[23,[\\\"log\\\",\\\"newData\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"log\\\",\\\"newData\\\"]]],null,{\\\"statements\\\":[[0,\\\"    :: \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"new-value\\\"],[9],[1,[23,[\\\"log\\\",\\\"newData\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/companies/apply-form/history-section/partnership-log/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/history-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"or0Jrmx+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"log\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-heading\\\"],[11,\\\"role\\\",\\\"tab\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"panel-title collapsed}}\\\"],[11,\\\"role\\\",\\\"button\\\"],[11,\\\"data-toggle\\\",\\\"collapse\\\"],[11,\\\"data-parent\\\",\\\"#accordion\\\"],[11,\\\"href\\\",\\\"#HISTORY\\\"],[11,\\\"aria-expanded\\\",\\\"false\\\"],[11,\\\"aria-controls\\\",\\\"HISTORY\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-history\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"sectionType.HISTORY\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"togglePanel\\\"],[[\\\"on\\\"],[[23,[\\\"click\\\"]]]]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"HISTORY\\\"],[11,\\\"class\\\",\\\"panel-collapse collapse\\\"],[11,\\\"role\\\",\\\"tabpanel\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-hover\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"log.dateCreated\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"log.actor\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"log.change\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"partnershipLogs\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"dateCreated\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,1,[\\\"actor\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"companies/apply-form/history-section/partnership-log\\\",null,[[\\\"log\\\"],[[22,1,[]]]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"pagination-buttons\\\",null,[[\\\"url\\\",\\\"page\\\",\\\"max\\\",\\\"totalPages\\\",\\\"navigateWithActions\\\",\\\"hideMaxCountPerPageSettings\\\"],[\\\"companies.show\\\",[23,[\\\"page\\\"]],[23,[\\\"max\\\"]],[23,[\\\"totalPages\\\"]],true,true]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/companies/apply-form/history-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/insurance-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    dragAndDrop: Ember.inject.service('drag-and-drop-service'),\n    groupName: Ember.computed('', function () {\n      return 'INSURANCE';\n    }),\n    archivedInsurances: Ember.computed('documentType.id', 'partnership.archivedInsurances', function () {\n      return this.get('partnership.archivedInsurances').filterBy('documentType.id', this.get('documentType.id'));\n    }),\n    actions: {\n      showModal(templateName, model) {\n        this.set('action', 'showModal');\n        this.sendAction('action', templateName, model);\n      },\n\n      refresh() {\n        this.get('partnership').reload().then(p => p.get('documents').reload());\n      },\n\n      showArchived() {\n        this.set('action', 'showModal');\n        const model = {\n          groupName: this.get('groupName'),\n          documentType: this.get('documentType'),\n          documents: this.get('archivedInsurances')\n        };\n        this.sendAction('action', 'documents.modals.document-list-modal', model);\n      }\n\n    },\n\n    dragOver(event) {\n      const element = this.element;\n      this.get('dragAndDrop').dragOver(event, element);\n    },\n\n    dragLeave(event) {\n      const element = this.element;\n      this.get('dragAndDrop').dragLeave(event, element);\n    },\n\n    drop(event) {\n      const element = this.element;\n      this.get('dragAndDrop').drop(event, element);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/insurance-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"9z1/q/cG\",\n    \"block\": \"{\\\"symbols\\\":[\\\"d\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"partnership\\\",\\\"activeInsurances\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"documentType\\\",\\\"id\\\"]],[23,[\\\"documentType\\\",\\\"id\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"documents-applies/document-form\\\",null,[[\\\"document\\\",\\\"documentType\\\"],[[22,1,[]],[23,[\\\"documentType\\\"]]]]],false],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 form-buttons padding-top margin-bottom\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"documents-applies/show-document-button\\\",null,[[\\\"partnership\\\",\\\"documentType\\\",\\\"groupName\\\"],[[23,[\\\"partnership\\\"]],[23,[\\\"documentType\\\"]],[23,[\\\"groupName\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.refresh\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"refresh\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"archivedInsurances\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"document.INSURANCE.showArchived\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showArchived\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/companies/apply-form/insurance-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/licences-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    dragAndDrop: Ember.inject.service('drag-and-drop-service'),\n    groupName: Ember.computed('', function () {\n      return 'LICENCE';\n    }),\n    documentTypes: Ember.computed('other', function () {\n      const countryIban = this.get('partnership.contractorCompany.country.ibanSymbol');\n      return this.get('store').peekAll('documentType').filterBy('groupName', this.get('groupName')).filter(dt => {\n        return !dt.get('ibanRestriction') || dt.get('ibanRestriction') === countryIban;\n      });\n    }),\n    actions: {\n      showModal(templateName, model) {\n        this.set('action', 'showModal');\n        this.sendAction('action', templateName, model);\n      },\n\n      refresh() {\n        this.get('partnership').reload().then(p => p.get('documents').reload());\n      },\n\n      showArchived() {\n        this.set('action', 'showModal');\n        const model = {\n          groupName: this.get('groupName'),\n          documentTypes: this.get('documentTypes'),\n          documents: this.get('partnership.archivedLicences')\n        };\n        this.sendAction('action', 'documents.modals.document-list-modal', model);\n      }\n\n    },\n\n    dragOver(event) {\n      const element = this.element;\n      this.get('dragAndDrop').dragOver(event, element);\n    },\n\n    dragLeave(event) {\n      const element = this.element;\n      this.get('dragAndDrop').dragLeave(event, element);\n    },\n\n    drop(event) {\n      const element = this.element;\n      this.get('dragAndDrop').drop(event, element);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/licences-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"XYmJ5hX+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"d\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"partnership\\\",\\\"activeLicences\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"documents-applies/document-form\\\",null,[[\\\"document\\\",\\\"documentTypes\\\"],[[22,1,[]],[23,[\\\"documentTypes\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 form-buttons margin-bottom\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"documents-applies/show-document-button\\\",null,[[\\\"partnership\\\",\\\"documentTypes\\\",\\\"groupName\\\"],[[23,[\\\"partnership\\\"]],[23,[\\\"documentTypes\\\"]],[23,[\\\"groupName\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.refresh\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"refresh\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"partnership\\\",\\\"archivedLicences\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"document.LICENCE.showArchived\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showArchived\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/companies/apply-form/licences-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/main-data-section/component\", [\"exports\", \"apollo/mixins/section-mixin\", \"apollo/config/environment\"], function (_exports, _sectionMixin, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_sectionMixin.default, {\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    dragAndDrop: Ember.inject.service('drag-and-drop-service'),\n\n    init() {\n      this._super(...arguments);\n\n      const self = this;\n\n      if (!this.get('company.headquarter.content')) {\n        const newAddress = this.get('store').createRecord('address', {\n          isHeadquarters: true,\n          enabled: true,\n          company: self.get('company'),\n          recipient: self.get('company.name')\n        });\n        this.get('company').set('headquarter', newAddress);\n      }\n\n      this.get('partnership').reload();\n    },\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      const companyObject = this.get('company').rollback ? this.get('company') : this.get('company.content');\n      companyObject.rollback();\n\n      if (this.get('section.content')) {\n        this.get('section.content').rollback();\n      }\n\n      companyObject.reload();\n    },\n\n    tosFileHref: Ember.computed('', function () {\n      const principalId = localStorage.getItem('principalId');\n      const token = this.get(\"sessionAccount\").get(\"token\");\n      return `${_environment.default.serverURL}/files/tos?token=${token}&principalId=${principalId}`;\n    }),\n    additionalDetailsDisabled: Ember.computed('', function () {\n      return !this.get('sessionAccount').hasRole('ROLE_EDIT_COMPANY');\n    }),\n    countries: Ember.computed(function () {\n      return this.get('store').peekAll('country');\n    }),\n    isTOSConfirmed: Ember.computed('partnership.termsOfService.isConfirmed', function () {\n      return this.get('partnership.termsOfService.isConfirmed');\n    }),\n    actions: {\n      showModal(templateName, model) {\n        this.set('action', 'showModal');\n        this.sendAction('action', templateName, model);\n      },\n\n      toggleTOSConfirmed() {\n        this.set('isTOSConfirmed', !this.get('isTOSConfirmed'));\n        this.set('partnership.termsOfService.isConfirmed', true);\n      }\n\n    },\n\n    dragOver(event) {\n      const element = this.element;\n      this.get('dragAndDrop').dragOver(event, element);\n    },\n\n    dragLeave(event) {\n      const element = this.element;\n      this.get('dragAndDrop').dragLeave(event, element);\n    },\n\n    drop(event) {\n      const element = this.element;\n      this.get('dragAndDrop').drop(event, element);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/main-data-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"CZaELLNQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"pp\\\",\\\"country\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal col-md-6 col-xs-12\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"partnership\\\",\\\"termsOfService\\\",\\\"isConfirmed\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"partnership\\\",\\\"termsOfService\\\",\\\"errors\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"input\\\"],[11,\\\"id\\\",\\\"\\\"],[12,\\\"checked\\\",[21,\\\"isTOSConfirmed\\\"]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"toggleTOSConfirmed\\\"],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"terms-of-service.label.acquiant\\\"],null],false],[0,\\\"\\\\n                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[21,\\\"tosFileHref\\\"]]]],[11,\\\"target\\\",\\\"_blank\\\"],[11,\\\"class\\\",\\\"clickable\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"terms-of-service.name\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"partnership\\\",\\\"termsOfService\\\"]],\\\"isConfirmed\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group info-message\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"form-control-static margin-left\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[21,\\\"tosFileHref\\\"]]]],[11,\\\"target\\\",\\\"_blank\\\"],[11,\\\"class\\\",\\\"clickable\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"terms-of-service.shortName\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"terms-of-service.label.confirmed\\\"],[[\\\"confirmationDate\\\",\\\"user\\\"],[[23,[\\\"partnership\\\",\\\"termsOfService\\\",\\\"formattedDate\\\"]],[23,[\\\"partnership\\\",\\\"termsOfService\\\",\\\"confirmatorName\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"info-message-window\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"terms-of-service.label.documents\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"control-label\\\"],[9],[0,\\\"\\\\n                        #\\\"],[1,[23,[\\\"partnership\\\",\\\"termsOfService\\\",\\\"id\\\"]],false],[0,\\\" [\\\"],[1,[23,[\\\"partnership\\\",\\\"termsOfService\\\",\\\"formattedConfirmationDate\\\"]],false],[0,\\\"\\\\n                        - \\\"],[1,[23,[\\\"partnership\\\",\\\"termsOfService\\\",\\\"formattedExpirationDate\\\"]],false],[0,\\\"] - \\\"],[1,[27,\\\"t\\\",[\\\"section.state.ACCEPTED\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"company.name\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"company\\\",\\\"name\\\"]],true]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"partnership\\\",\\\"errors\\\",\\\"contractorShortName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"company.shortName\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"partnership\\\",\\\"contractorShortName\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\",\\\"forApplies\\\",\\\"state\\\"],[[23,[\\\"company\\\"]],\\\"shortName\\\",true,[23,[\\\"company\\\",\\\"registrationInProgress\\\"]]]]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"partnership\\\"]],\\\"contractorShortName\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"company\\\",\\\"country\\\",\\\"isWithoutPostalCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"headquarter\\\",\\\"errors\\\",\\\"province\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"address.province\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"company\\\",\\\"headquarter\\\",\\\"province\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\",\\\"forApplies\\\",\\\"state\\\"],[[23,[\\\"company\\\"]],\\\"province\\\",true,[23,[\\\"company\\\",\\\"registrationInProgress\\\"]]]]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\",\\\"headquarter\\\"]],\\\"province\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"company.country\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12 form-control-static\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[23,[\\\"company\\\",\\\"country\\\",\\\"ibanSymbol\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"headquarter\\\",\\\"errors\\\",\\\"street\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"address.street\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"company\\\",\\\"headquarter\\\",\\\"street\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\",\\\"forApplies\\\",\\\"state\\\"],[[23,[\\\"company\\\"]],\\\"street\\\",true,[23,[\\\"company\\\",\\\"registrationInProgress\\\"]]]]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\",\\\"headquarter\\\"]],\\\"street\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"headquarter\\\",\\\"errors\\\",\\\"city\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"address.city\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"company\\\",\\\"headquarter\\\",\\\"city\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\",\\\"forApplies\\\",\\\"state\\\"],[[23,[\\\"company\\\"]],\\\"city\\\",true,[23,[\\\"company\\\",\\\"registrationInProgress\\\"]]]]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\",\\\"headquarter\\\"]],\\\"city\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"headquarter\\\",\\\"errors\\\",\\\"postal\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"address.postal\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3 col-xs-8\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"company\\\",\\\"headquarter\\\",\\\"postal\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\",\\\"forApplies\\\",\\\"state\\\"],[[23,[\\\"company\\\"]],\\\"postal\\\",true,[23,[\\\"company\\\",\\\"registrationInProgress\\\"]]]]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\",\\\"headquarter\\\"]],\\\"postal\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-3 col-xs-4 \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"headquarter\\\",\\\"errors\\\",\\\"country\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"disabled\\\",\\\"selected\\\",\\\"options\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\",\\\"forApplies\\\",\\\"state\\\"],[[23,[\\\"company\\\"]],\\\"country\\\",true,[23,[\\\"company\\\",\\\"registrationInProgress\\\"]]]]],[23,[\\\"company\\\",\\\"headquarter\\\",\\\"country\\\"]],[23,[\\\"countries\\\"]],\\\"ibanSymbol\\\",[27,\\\"t\\\",[\\\"company.selectCountry\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"company\\\",\\\"headquarter\\\",\\\"country\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,2,[\\\"ibanSymbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\",\\\"headquarter\\\"]],\\\"country\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"partnership\\\",\\\"errors\\\",\\\"contractorNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"company.contractorNumber\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"partnership\\\",\\\"contractorNumber\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\",\\\"forApplies\\\",\\\"state\\\"],[[23,[\\\"company\\\"]],\\\"contractorNumber\\\",true,[23,[\\\"company\\\",\\\"registrationInProgress\\\"]]]]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"partnership\\\"]],\\\"contractorNumber\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"errors\\\",\\\"taxIdNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"company.taxIdNumber\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-8\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"tax-id-number-field\\\",null,[[\\\"company\\\",\\\"disabled\\\"],[[23,[\\\"company\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\",\\\"forApplies\\\",\\\"state\\\"],[[23,[\\\"company\\\"]],\\\"taxIdNumber\\\",true,[23,[\\\"company\\\",\\\"registrationInProgress\\\"]]]]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"taxIdNumber\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-4\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"sections/upload-file\\\",null,[[\\\"canAddOnlyOneFile\\\",\\\"section\\\",\\\"file\\\",\\\"fileType\\\"],[true,[23,[\\\"section\\\"]],[23,[\\\"section\\\",\\\"nipFile\\\"]],\\\"NIP\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"errors\\\",\\\"regon\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"company.regon\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-8\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"company\\\",\\\"regon\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\",\\\"forApplies\\\",\\\"state\\\"],[[23,[\\\"company\\\"]],\\\"regon\\\",true,[23,[\\\"company\\\",\\\"registrationInProgress\\\"]]]]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"regon\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-4\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"sections/upload-file\\\",null,[[\\\"canAddOnlyOneFile\\\",\\\"section\\\",\\\"file\\\",\\\"fileType\\\"],[true,[23,[\\\"section\\\"]],[23,[\\\"section\\\",\\\"regonFile\\\"]],\\\"REGON\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"errors\\\",\\\"krs\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"company.krs\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-8\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"company\\\",\\\"krs\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\",\\\"forApplies\\\",\\\"state\\\"],[[23,[\\\"company\\\"]],\\\"krs\\\",true,[23,[\\\"company\\\",\\\"registrationInProgress\\\"]]]]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"krs\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-4\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"sections/upload-file\\\",null,[[\\\"canAddOnlyOneFile\\\",\\\"section\\\",\\\"file\\\",\\\"fileType\\\"],[true,[23,[\\\"section\\\"]],[23,[\\\"section\\\",\\\"krsFile\\\"]],\\\"KRS\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"errors\\\",\\\"pricingPlan\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xd-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"company.pricingPlan\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xd-12\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"disabled\\\",\\\"selected\\\",\\\"options\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\",\\\"forApplies\\\",\\\"state\\\"],[[23,[\\\"company\\\"]],\\\"pricingPlan\\\",true,[23,[\\\"company\\\",\\\"registrationInProgress\\\"]]]]],[23,[\\\"company\\\",\\\"pricingPlan\\\"]],[23,[\\\"sessionAccount\\\",\\\"pricingPlans\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"company\\\",\\\"pricingPlan\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"pricingPlans.\\\",[22,1,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"pricingPlan\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"errors\\\",\\\"maxNumberOfAccounts\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xd-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"company.maxNumberOfAccounts\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xd-12\\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"MAX_NUMBER_OF_ACCOUNTS\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"company\\\",\\\"maxNumberOfAccounts\\\"]],[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\",\\\"forApplies\\\",\\\"state\\\"],[[23,[\\\"company\\\"]],\\\"maxNumberOfAccounts\\\",true,[23,[\\\"company\\\",\\\"registrationInProgress\\\"]]]]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-info-circle text-info\\\"],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"company.maxNumberOfAccountsHint\\\"],null]],[9],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"maxNumberOfAccounts\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"company-representative\\\",null,[[\\\"model\\\",\\\"size\\\"],[[23,[\\\"partnership\\\"]],\\\"small\\\"]]],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"partnership\\\",\\\"errors\\\",\\\"additionalDetails\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xd-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"partnership.additionalDetails\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xd-12\\\"],[11,\\\"data-field-name\\\",\\\"additionalDetails\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\",\\\"rows\\\",\\\"disabled\\\"],[[23,[\\\"partnership\\\",\\\"additionalDetails\\\"]],\\\"textarea\\\",\\\"form-control\\\",\\\"4\\\",[23,[\\\"additionalDetailsDisabled\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\",\\\"partnershipWithCurrentCompany\\\"]],\\\"additionalDetails\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal col-md-6 col-xs-12\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"section.state.label\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8 col-xs-12 form-control-static\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"sections/section-state\\\",null,[[\\\"section\\\"],[[23,[\\\"section\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"company.legalStatus.label\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12  \\\",[27,\\\"if\\\",[[23,[\\\"company\\\",\\\"errors\\\",\\\"legalStatus\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"disable-company-field\\\",null,[[\\\"company\\\",\\\"fieldName\\\",\\\"forApplies\\\",\\\"state\\\"],[[23,[\\\"company\\\"]],\\\"legalStatus\\\",true,[23,[\\\"company\\\",\\\"registrationInProgress\\\"]]]]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-group col-xs-12 no-padding\\\"],[11,\\\"data-toggle\\\",\\\"buttons\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"company\\\",\\\"legalStatus\\\"]],\\\"limitedCompany\\\"],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"company.legalStatus.limitedCompany\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"company\\\",\\\"legalStatus\\\"]],\\\"businessActivity\\\"],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"company.legalStatus.businessActivity\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-group col-xs-12 no-padding\\\"],[11,\\\"data-toggle\\\",\\\"buttons\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"company\\\",\\\"legalStatus\\\"]],\\\"limitedCompany\\\"],null],\\\"active\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"company\\\",\\\"legalStatus\\\"]]],null],\\\"limitedCompany\\\"],null]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"input\\\"],[11,\\\"name\\\",\\\"options\\\"],[11,\\\"id\\\",\\\"option1\\\"],[11,\\\"autocomplete\\\",\\\"off\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[10],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"company.legalStatus.limitedCompany\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"company\\\",\\\"legalStatus\\\"]],\\\"businessActivity\\\"],null],\\\"active\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"company\\\",\\\"legalStatus\\\"]]],null],\\\"businessActivity\\\"],null]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"input\\\"],[11,\\\"name\\\",\\\"options\\\"],[11,\\\"id\\\",\\\"option2\\\"],[11,\\\"autocomplete\\\",\\\"off\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[10],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"company.legalStatus.businessActivity\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"legalStatus\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"company.registrationDate\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8 col-xs-12 form-control-static\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"section\\\",\\\"dateCreated\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row col-sm-12\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"company.descriptionOfTheFleet\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\",\\\"rows\\\"],[[23,[\\\"section\\\",\\\"fleetDescription\\\"]],\\\"textarea\\\",\\\"form-control\\\",\\\"2\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"company.possessedCertificates\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\",\\\"rows\\\"],[[23,[\\\"section\\\",\\\"certificates\\\"]],\\\"textarea\\\",\\\"form-control\\\",\\\"2\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 form-buttons margin-bottom\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"success\\\"],[9],[1,[21,\\\"successMessage\\\"],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"alert-text bold\\\"],[9],[1,[21,\\\"errors\\\"],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"section\\\",\\\"canBeConfirmed\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-success\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"section.accept\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"confirm\\\",[23,[\\\"section\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"section\\\",\\\"canBeRejected\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"sections/reject-section-button\\\",null,[[\\\"section\\\"],[[23,[\\\"section\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"section\\\",\\\"canBeUpdated\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"update-document\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"section.update\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"update\\\",[23,[\\\"section\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/companies/apply-form/main-data-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/secondary-data-section/component\", [\"exports\", \"apollo/mixins/section-mixin\"], function (_exports, _sectionMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Component.extend(_sectionMixin.default, {\n    store: service(),\n    dragAndDrop: service('drag-and-drop-service'),\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      const section = this.get('store').peekRecord('secondarySection', this.get('section.id'));\n\n      if (section && section.rollbackAttributes) {\n        section.rollbackAttributes();\n      }\n\n      if (this.get('section.partnership.content')) {\n        this.get('section.partnership.content').rollbackAttributes();\n      }\n    },\n\n    actions: {\n      showModal(templateName, model) {\n        this.set('action', 'showModal');\n        this.sendAction('action', templateName, model);\n      }\n\n    },\n\n    dragOver(event) {\n      const element = this.element;\n      this.get('dragAndDrop').dragOver(event, element);\n    },\n\n    dragLeave(event) {\n      const element = this.element;\n      this.get('dragAndDrop').dragLeave(event, element);\n    },\n\n    drop(event) {\n      const element = this.element;\n      this.get('dragAndDrop').drop(event, element);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/secondary-data-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"i/6CbpFi\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"section.state.label\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-5 form-control-static\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"section.state.\\\",[23,[\\\"section\\\",\\\"state\\\"]]],null]],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"section\\\",\\\"errors\\\",\\\"contractorNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                SBO\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-4\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"partnership\\\",\\\"contractorNumber\\\"]],[27,\\\"not\\\",[[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"isPrincipal\\\"]]],null]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"section\\\"]],\\\"contractorNumber\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"section\\\",\\\"errors\\\",\\\"bankAccountNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"secondary-section.bankAccountNumber\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-4\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"section\\\",\\\"bankAccountNumber\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"section\\\"]],\\\"bankAccountNumber\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-3\\\"],[9],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-5\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"secondary-section.bankFilePattern.label\\\"],null],false],[0,\\\":\\\\n                \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[23,[\\\"section\\\",\\\"bankPatternFilePL\\\",\\\"refLink\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file clickable\\\"],[9],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.language.PL\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[23,[\\\"section\\\",\\\"bankPatternFileENG\\\",\\\"refLink\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file clickable\\\"],[9],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.language.ENG\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"sections/upload-file\\\",null,[[\\\"section\\\",\\\"files\\\",\\\"fileType\\\"],[[23,[\\\"section\\\"]],[23,[\\\"section\\\",\\\"bankFiles\\\"]],\\\"BANK\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"secondary-section.otherAttachments\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-5\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"sections/upload-file\\\",null,[[\\\"section\\\",\\\"files\\\",\\\"fileType\\\"],[[23,[\\\"section\\\"]],[23,[\\\"section\\\",\\\"othersFiles\\\"]],\\\"OTHERS\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"isPrincipal\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"secondary-section.internalNotes\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\",\\\"rows\\\"],[[23,[\\\"section\\\",\\\"internalNotes\\\"]],\\\"textarea\\\",\\\"form-control\\\",\\\"6\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 form-buttons margin-bottom\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"success\\\"],[9],[1,[21,\\\"successMessage\\\"],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"section\\\",\\\"canBeConfirmed\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-success\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"section.accept\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"confirm\\\",[23,[\\\"section\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"section\\\",\\\"canBeRejected\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"sections/reject-section-button\\\",null,[[\\\"section\\\"],[[23,[\\\"section\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"section\\\",\\\"canBeUpdated\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"update-document\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"section.update\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"update\\\",[23,[\\\"section\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/companies/apply-form/secondary-data-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/apply-form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"kBWtAhD1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"dt\\\",\\\"cgt\\\",\\\"e\\\",\\\"groupType\\\",\\\"group\\\",\\\"e\\\",\\\"error\\\"],\\\"statements\\\":[[7,\\\"h2\\\"],[11,\\\"data-field-name\\\",\\\"COMPANY_NAME\\\"],[9],[1,[23,[\\\"model\\\",\\\"company\\\",\\\"name\\\"]],false],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"company.partnershipStatus.label\\\"],null],false],[0,\\\" : \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"company.partnershipStatus.\\\",[23,[\\\"partnership\\\",\\\"status\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showRequestVerificationErrors\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"partnership\\\",\\\"mainSection\\\",\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"small\\\"],[9],[1,[27,\\\"t\\\",[\\\"main-section.errors.hasErrors\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"partnership\\\",\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"small\\\"],[9],[1,[22,7,[\\\"message\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"contractorsGroupTypes\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,4,[\\\"contractorsGroups\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,5,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"help-block errors\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,6,[\\\"message\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null]],\\\"parameters\\\":[5]},null]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"contractorsGroupTypes\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,2,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"help-block errors\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,3,[\\\"message\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[2]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"toggle-section\\\",null,[[\\\"name\\\",\\\"iconClass\\\",\\\"shouldBeExpanded\\\"],[\\\"MAIN_DATA_TYPE\\\",\\\"fa fa-building\\\",[23,[\\\"partnership\\\",\\\"mainSection\\\",\\\"shouldBeExpanded\\\"]]]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"companies/apply-form/main-data-section\\\",null,[[\\\"company\\\",\\\"partnership\\\",\\\"section\\\"],[[23,[\\\"model\\\",\\\"company\\\"]],[23,[\\\"partnership\\\"]],[23,[\\\"partnership\\\",\\\"mainSection\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"toggle-section\\\",null,[[\\\"name\\\",\\\"iconClass\\\"],[\\\"GROUPS\\\",\\\"fa fa-users\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"companies/apply-form/contractors-group-section\\\",null,[[\\\"contractorsGroupTypes\\\",\\\"company\\\",\\\"partnership\\\",\\\"principalContractorsGroupType\\\"],[[23,[\\\"contractorsGroupTypes\\\"]],[23,[\\\"model\\\",\\\"company\\\"]],[23,[\\\"partnership\\\"]],[23,[\\\"model\\\",\\\"principalContractorsGroupType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"toggle-section\\\",null,[[\\\"name\\\",\\\"iconClass\\\",\\\"shouldBeExpanded\\\"],[\\\"LICENCE\\\",[27,\\\"document-icon\\\",null,[[\\\"documentTypeName\\\"],[\\\"LICENCE\\\"]]],[27,\\\"or\\\",[[23,[\\\"partnership\\\",\\\"hasUnapprovedLicences\\\"]],[23,[\\\"partnership\\\",\\\"hasNoActiveLicences\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"companies/apply-form/licences-section\\\",null,[[\\\"partnership\\\"],[[23,[\\\"partnership\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"insuranceTypes\\\"]]],null,{\\\"statements\\\":[[4,\\\"toggle-section\\\",null,[[\\\"name\\\",\\\"documentType\\\",\\\"partnership\\\",\\\"iconClass\\\"],[[22,1,[\\\"name\\\"]],[22,1,[]],[23,[\\\"partnership\\\"]],[27,\\\"document-icon\\\",null,[[\\\"documentTypeName\\\"],[[22,1,[\\\"name\\\"]]]]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"companies/apply-form/insurance-section\\\",null,[[\\\"partnership\\\",\\\"documentType\\\"],[[23,[\\\"partnership\\\"]],[22,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"partnership\\\",\\\"antiCorruptionSection\\\"]]],null,{\\\"statements\\\":[[4,\\\"toggle-section\\\",null,[[\\\"name\\\",\\\"iconClass\\\",\\\"shouldBeExpanded\\\"],[\\\"ANTI_CORRUPTION_TYPE\\\",\\\"fa fa-info-circle\\\",[23,[\\\"partnership\\\",\\\"antiCorruptionSection\\\",\\\"shouldBeExpanded\\\"]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"companies/apply-form/anti-corruption-data-section\\\",null,[[\\\"company\\\",\\\"section\\\",\\\"partnership\\\"],[[23,[\\\"model\\\",\\\"company\\\"]],[23,[\\\"partnership\\\",\\\"antiCorruptionSection\\\"]],[23,[\\\"partnership\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"toggle-section\\\",null,[[\\\"name\\\",\\\"iconClass\\\",\\\"shouldBeExpanded\\\"],[\\\"SECONDARY_DATA_TYPE\\\",\\\"fa fa-info-circle\\\",[23,[\\\"partnership\\\",\\\"secondarySection\\\",\\\"shouldBeExpanded\\\"]]]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"companies/apply-form/secondary-data-section\\\",null,[[\\\"company\\\",\\\"section\\\",\\\"partnership\\\"],[[23,[\\\"model\\\",\\\"company\\\"]],[23,[\\\"partnership\\\",\\\"secondarySection\\\"]],[23,[\\\"partnership\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showApplyHistory\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"companies/apply-form/history-section\\\",null,[[\\\"company\\\",\\\"partnership\\\"],[[23,[\\\"model\\\",\\\"company\\\"]],[23,[\\\"partnership\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"toggle-section\\\",null,[[\\\"name\\\",\\\"iconClass\\\",\\\"shouldBeExpanded\\\"],[\\\"BLOCKADES\\\",\\\"fa-regular fa-face-frown\\\",true]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"companies/apply-form/blockade-section\\\",null,[[\\\"partnership\\\"],[[23,[\\\"partnership\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showRequestVerificationButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-danger request-verification-button pull-right\\\"],[9],[1,[27,\\\"t\\\",[\\\"section.requestVerification\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"sendRequestVerification\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"carriers\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/companies/apply-form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/companies-table/company-row/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: 'tr',\n    partnership: Ember.computed('company.partnershipWithCurrentCompany', function () {\n      return this.get('company.partnershipWithCurrentCompany');\n    }),\n    mainSection: Ember.computed('partnership.mainSection', function () {\n      return this.get('partnership.mainSection');\n    }),\n    secondarySection: Ember.computed('partnership.secondarySection', function () {\n      return this.get('partnership.secondarySection');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/companies-table/company-row/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"NLUdSUhb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"d\\\",\\\"d\\\"],\\\"statements\\\":[[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"name\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"partnership\\\",\\\"isAuxiliary\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,[\\\"company\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"companies.show\\\",[23,[\\\"company\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,[\\\"company\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[10],[0,\\\"\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[11,\\\"data-field-name\\\",\\\"shortName\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"partnership\\\",\\\"isAuxiliary\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,[\\\"company\\\",\\\"shortName\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"companies.show\\\",[23,[\\\"company\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,[\\\"company\\\",\\\"shortName\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"contractorNumber\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"partnership\\\",\\\"isAuxiliary\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\",\\\"contractorNumber\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"companies.show\\\",[23,[\\\"company\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\",\\\"contractorNumber\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[11,\\\"data-field-name\\\",\\\"taxIdNumber\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[23,[\\\"company\\\",\\\"taxIdNumber\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"showCarriersTable\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"type\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"company.type.\\\",[23,[\\\"partnership\\\",\\\"partnershipType\\\",\\\"translationLabel\\\"]]],null]],[[\\\"default\\\"],[[27,\\\"concat\\\",[\\\"company.type.\\\",[23,[\\\"partnership\\\",\\\"partnershipType\\\",\\\"name\\\"]]],null]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2\\\"],[11,\\\"data-field-name\\\",\\\"ibanSymbol\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[23,[\\\"company\\\",\\\"country\\\",\\\"ibanSymbol\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[11,\\\"data-field-name\\\",\\\"street\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[23,[\\\"company\\\",\\\"headquarter\\\",\\\"street\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[11,\\\"data-field-name\\\",\\\"postal\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[23,[\\\"company\\\",\\\"headquarter\\\",\\\"postal\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[11,\\\"data-field-name\\\",\\\"city\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[23,[\\\"company\\\",\\\"headquarter\\\",\\\"city\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2\\\"],[11,\\\"data-field-name\\\",\\\"partnershipStatus\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"partnership\\\",\\\"isAuxiliary\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"section\\\"],[11,\\\"class\\\",\\\"no-wrap info\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"fa-handshake\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"partnership.contractor\\\"],null],false],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"small\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"partnership.contractorOfCompany\\\"],[[\\\"companyName\\\"],[[23,[\\\"partnership\\\",\\\"parentPartnership\\\",\\\"principalCompany\\\",\\\"shortName\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"section\\\"],[12,\\\"class\\\",[28,[\\\"no-wrap \\\",[23,[\\\"partnership\\\",\\\"statusClass\\\"]]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"fa-icon\\\",[[23,[\\\"partnership\\\",\\\"statusIcon\\\"]]],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"company.partnershipStatus.\\\",[23,[\\\"partnership\\\",\\\"status\\\"]]],null]],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"showCarriersTable\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2\\\"],[11,\\\"data-field-name\\\",\\\"invite\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[27,\\\"eq\\\",[[23,[\\\"company\\\",\\\"numberOfUsers\\\"]],0],null],[27,\\\"eq\\\",[[23,[\\\"partnership\\\",\\\"status\\\"]],[23,[\\\"partnership\\\",\\\"STATUS\\\",\\\"NO_INVITATION\\\"]]],null]],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"companies.invite\\\",[23,[\\\"company\\\",\\\"id\\\"]],[23,[\\\"partnership\\\",\\\"partnershipType\\\",\\\"name\\\"]]],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"invitation.invite\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showCarriersTable\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[11,\\\"data-field-name\\\",\\\"sections\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"mainSection\\\",\\\"hasBeenUpdated\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"section\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"section.state.\\\",[23,[\\\"mainSection\\\",\\\"state\\\"]]],null]],null],\\\" \\\",[27,\\\"t\\\",[\\\"section.label\\\"],null],\\\": \\\",[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"sectionType.\\\",[23,[\\\"mainSection\\\",\\\"name\\\"]]],null]],null]]]],[12,\\\"class\\\",[28,[\\\"no-wrap inline-block \\\",[27,\\\"concat\\\",[\\\"section-state-\\\",[23,[\\\"mainSection\\\",\\\"state\\\"]]],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"building\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"secondarySection\\\",\\\"hasBeenUpdated\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"section\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"section.state.\\\",[23,[\\\"secondarySection\\\",\\\"state\\\"]]],null]],null],\\\" \\\",[27,\\\"t\\\",[\\\"section.label\\\"],null],\\\": \\\",[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"sectionType.\\\",[23,[\\\"secondarySection\\\",\\\"name\\\"]]],null]],null]]]],[12,\\\"class\\\",[28,[\\\"no-wrap inline-block \\\",[27,\\\"concat\\\",[\\\"section-state-\\\",[23,[\\\"secondarySection\\\",\\\"state\\\"]]],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"info-circle\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"partnership\\\",\\\"updatedDocuments\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"section\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"section.state.\\\",[22,2,[\\\"state\\\"]]],null]],null],\\\" \\\",[27,\\\"t\\\",[\\\"section.label\\\"],null],\\\": \\\",[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"sectionType.\\\",[22,2,[\\\"name\\\"]]],null]],null]]]],[12,\\\"class\\\",[28,[\\\"no-wrap inline-block \\\",[27,\\\"concat\\\",[\\\"section-state-\\\",[22,2,[\\\"state\\\"]]],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"i\\\"],[12,\\\"class\\\",[27,\\\"document-icon\\\",null,[[\\\"documentTypeName\\\"],[[22,2,[\\\"name\\\"]]]]]],[9],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"partnership\\\",\\\"rejectedDocuments\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"section\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"section.state.\\\",[22,1,[\\\"state\\\"]]],null]],null],\\\" \\\",[27,\\\"t\\\",[\\\"section.label\\\"],null],\\\": \\\",[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"sectionType.\\\",[22,1,[\\\"name\\\"]]],null]],null]]]],[12,\\\"class\\\",[28,[\\\"no-wrap inline-block \\\",[27,\\\"concat\\\",[\\\"section-state-\\\",[22,1,[\\\"state\\\"]]],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"i\\\"],[12,\\\"class\\\",[27,\\\"document-icon\\\",null,[[\\\"documentTypeName\\\"],[[22,1,[\\\"name\\\"]]]]]],[9],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showCarriersTable\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[11,\\\"data-field-name\\\",\\\"update\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"partnership\\\",\\\"lastUpdatedSectionDate\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/companies/companies-table/company-row/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/registration-form/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    gusService: Ember.inject.service('gus-service'),\n    invitation: Ember.computed('model.invitation', function () {\n      return this.get('model.invitation');\n    }),\n    invitationCompany: Ember.computed('model.invitation.company', function () {\n      return this.get('invitation.company');\n    }),\n    didReceiveAttrs: async function () {\n      const self = this;\n      this.set('gusHasProblem', false);\n      const ibanSymbol = this.get('model.company.country.ibanSymbol');\n      const nip = this.get('model.company.taxIdNumber');\n      const nipVerificationPromise = this.get('gusService').verifyNip(ibanSymbol, nip);\n      nipVerificationPromise.then(response => {\n        const existingCompanyName = response.existingCompanyName;\n        const gusCompanyName = response.gusCompanyName;\n        console.log(`Odpowiedź z GUS: ${response}.`);\n\n        if (existingCompanyName || gusCompanyName) {\n          this.set('model.company.name', existingCompanyName != null ? existingCompanyName : gusCompanyName);\n          this.set('verifiedByGus', true);\n        }\n      }).catch(error => {\n        console.error(`Problem z połączeniem z GUS: ${error}`);\n        self.set('model.company.name', null);\n        self.set('verifiedByGus', false);\n        self.set('gusHasProblem', true);\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/companies/registration-form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"0V0/VYfc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"country\\\",\\\"lang\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"user.email\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[23,[\\\"model\\\",\\\"invitation\\\",\\\"email\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"name-field\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"user.name\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"input\\\",null,[[\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"autofocus\\\"],[\\\"name-field\\\",[23,[\\\"model\\\",\\\"user\\\",\\\"name\\\"]],[27,\\\"t\\\",[\\\"user.name\\\"],null],\\\"form-control\\\",\\\"autofocus\\\"]]],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"invitationCompany\\\",\\\"isLdapCompany\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"password-field\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"auth.password\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"input\\\",null,[[\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\"],[\\\"password-field\\\",[23,[\\\"model\\\",\\\"user\\\",\\\"password\\\"]],[27,\\\"t\\\",[\\\"auth.password\\\"],null],\\\"form-control password\\\",\\\"password\\\"]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"password-field\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"auth.repeatPassword\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\"],[[23,[\\\"model\\\",\\\"user\\\",\\\"repeatedNewPassword\\\"]],[27,\\\"t\\\",[\\\"auth.password\\\"],null],\\\"form-control password\\\",\\\"password\\\"]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"preferred-langueage\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"user.preferredLanguage\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"preferred-language\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"model\\\",\\\"user\\\",\\\"preferredLanguage\\\"]],[23,[\\\"model\\\",\\\"invitation\\\",\\\"availableLanguages\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"user\\\",\\\"preferredLanguage\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"languages.\\\",[22,2,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"company\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"company.label\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"control-static\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"model\\\",\\\"invitation\\\",\\\"company\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"isToJoinCompany\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"company.label\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"control-static\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"model\\\",\\\"invitation\\\",\\\"creator\\\",\\\"company\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"company-name-field\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"company.label\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"input\\\",null,[[\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"disabled\\\"],[\\\"company-name-field\\\",[23,[\\\"model\\\",\\\"company\\\",\\\"name\\\"]],[27,\\\"t\\\",[\\\"company.label\\\"],null],\\\"form-control\\\",[23,[\\\"verifiedByGus\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"gusHasProblem\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-warning margin-top\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"company.gusHasProblem\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"company-short-name-field\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.shortName\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"input\\\",null,[[\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\"],[\\\"company-short-name-field\\\",[23,[\\\"model\\\",\\\"company\\\",\\\"shortName\\\"]],[27,\\\"t\\\",[\\\"common.shortName\\\"],null],\\\"form-control\\\"]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"country-select\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"company.country\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"country-select\\\",\\\"form-control\\\",[23,[\\\"model\\\",\\\"company\\\",\\\"country\\\"]],[23,[\\\"model\\\",\\\"countries\\\"]],\\\"ibanSymbol\\\",[27,\\\"t\\\",[\\\"company.selectCountry\\\"],null],true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"company\\\",\\\"country\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,1,[\\\"ibanSymbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"tax-id-field\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"company.taxIdNumber\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"tax-id-number-field\\\",null,[[\\\"company\\\",\\\"disabled\\\"],[[23,[\\\"model\\\",\\\"company\\\"]],true]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/companies/registration-form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/company-auto-complete/component\", [\"exports\", \"apollo/pods/components/custom-auto-complete/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _component.default.extend({\n    valueProperty: \"id\",\n    urlAddress: \"/company/find\",\n    field: \"name\",\n    options: [],\n    suggestions: function () {\n      var inputVal = this.get(\"inputVal\") || \"\";\n      return this.get(\"options\").filter(function (item) {\n        return item.name.toLowerCase().indexOf(inputVal.toLowerCase()) > -1 || item.shortName.toLowerCase().indexOf(inputVal.toLowerCase()) > -1;\n      });\n    }.property(\"inputVal\", \"options.@each\"),\n    actions: {\n      selectItem: function (item) {\n        this.set(\"selectedFromList\", true);\n        this.set(\"selectedValue\", item.name);\n        this.sendAction('selectItem', item);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/company-nav-header/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    companyLabel: Ember.computed('company.partnershipWithPrincipal.partnershipType.name', function () {\n      return this.get('company.partnershipWithPrincipal.partnershipType.name') || 'COMPANY';\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/company-nav-header/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"qxAM2iBG\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 text-right padding-bottom\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"company-nav-overflow\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"companies.show\\\",[23,[\\\"company\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"contractor-card\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[[23,[\\\"companyLabel\\\"]],\\\".panel.label\\\"],null]],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"users.index\\\",[27,\\\"query-params\\\",null,[[\\\"companyId\\\"],[[23,[\\\"company\\\",\\\"id\\\"]]]]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"users-list\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"user.list\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"company\\\",\\\"isServiceman\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"workers.index\\\",[23,[\\\"company\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"workers-list\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"worker.workersList\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"company\\\",\\\"principalInDifferentPrincipalSpace\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"addresses.index\\\",[23,[\\\"company\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"addresses\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"company.addresses\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"company\\\",\\\"principalInDifferentPrincipalSpace\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"trucks.index\\\",[23,[\\\"company\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"trucks\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"trucks.label\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"company\\\",\\\"principalInDifferentPrincipalSpace\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"drivers.index\\\",[23,[\\\"company\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"drivers\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"driver.label\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"company\\\",\\\"showPartnershipTable\\\"]],[23,[\\\"company\\\",\\\"showAwaitingInvitations\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"partnerships.index\\\",[23,[\\\"company\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"partnerships\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"partnerships.label\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_COMPANY_RAMP\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"companies.ramp-edition\\\",[23,[\\\"company\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"ramp-edition\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"company.rampEdition.label\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_ALLOWED_DOMAINS\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"companies.allowed-domains\\\",[23,[\\\"company\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"allowed-domains\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"company.allowedDomains.label\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_USER_GROUPS\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"user-groups.index\\\",[23,[\\\"company\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"user-groups\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"userGroups.label\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/company-nav-header/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/company-representative/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n\n    init() {\n      this._super(...arguments);\n\n      if (!this.get('model.representativePhoneNumberPrefix')) {\n        this.set('model.representativePhoneNumberPrefix', '48');\n      }\n    },\n\n    shouldShowRepresentativeFields: Ember.computed(function () {\n      return this.get('sessionAccount').getSettingValue('COMPANY_FORM_SHOW_REPRESENTATIVE') === 'true';\n    }),\n    actions: {\n      setPhonePrefix: function (phonePrefix) {\n        this.get('model').set('representativePhoneNumberPrefix', phonePrefix);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/company-representative/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"T0coL6xz\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"shouldShowRepresentativeFields\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"representativeName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"big\\\"],null],\\\"col-sm-2\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"medium\\\"],null],\\\"col-sm-3\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"small\\\"],null],\\\"col-md-4 col-xd-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"partnership.representativeName\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"big\\\"],null],\\\"col-sm-10\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"medium\\\"],null],\\\"col-sm-9\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"small\\\"],null],\\\"col-md-7 col-xd-12\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"representativeName\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"representativeName\\\"]]]]],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"representativeName\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"representativeEmail\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"big\\\"],null],\\\"col-sm-2\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"medium\\\"],null],\\\"col-sm-3\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"small\\\"],null],\\\"col-md-4 col-xd-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"partnership.representativeEmail\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"big\\\"],null],\\\"col-sm-10\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"medium\\\"],null],\\\"col-sm-9\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"small\\\"],null],\\\"col-md-7 col-xd-12\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"representativeEmail\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"representativeEmail\\\"]]]]],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"representativeEmail\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"big\\\"],null],\\\"col-sm-2\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"medium\\\"],null],\\\"col-sm-3\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"small\\\"],null],\\\"col-md-4 col-xd-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"partnership.representativePhoneNumber\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"representativePhoneNumberPrefix\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"big\\\"],null],\\\"col-sm-1\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"medium\\\"],null],\\\"col-sm-1\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"small\\\"],null],\\\"col-md-2\\\"],null],\\\" form-group-padding\\\\n                                \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"representativePhoneNumberPrefix\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"phone-prefix\\\",null,[[\\\"setPhonePrefix\\\",\\\"existingPhonePrefix\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"setPhonePrefix\\\"],null],[23,[\\\"model\\\",\\\"representativePhoneNumberPrefix\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"representativePhoneNumber\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"big\\\"],null],\\\"col-sm-9\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"medium\\\"],null],\\\"col-sm-8\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"small\\\"],null],\\\"col-md-5\\\"],null],\\\"  form-group-padding\\\\n                                \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"representativePhoneNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"min\\\",\\\"max\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",\\\"number\\\",\\\"100000000\\\",\\\"999999999999\\\",[23,[\\\"model\\\",\\\"representativePhoneNumber\\\"]],[27,\\\"t\\\",[\\\"step.contactPerson.phoneNumber\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"model\\\"]],\\\"representativePhoneNumber\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/company-representative/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/company-transport-limit/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    partnership: Ember.computed(function () {\n      return this.get('model');\n    }),\n    shouldBeRendered: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_CAN_ACCESS_COMPANY_TRANSPORT_LIMIT');\n    }),\n    allowTransportLimitEdition: Ember.computed(function () {\n      return !this.get('sessionAccount').hasRole('ROLE_CAN_EDIT_COMPANY_TRANSPORT_LIMIT');\n    }),\n    shouldTransportsLimitDetailsBeRendered: Ember.computed(function () {\n      return this.get('partnership.transportLimit') != null && this.get('partnership.transportLimit') > 0;\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/company-transport-limit/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"jZxegXzx\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"shouldBeRendered\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"transportLimit\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"big\\\"],null],\\\"col-sm-2\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"medium\\\"],null],\\\"col-sm-3\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"small\\\"],null],\\\"col-md-4 col-xd-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"partnership.transportLimit\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"big\\\"],null],\\\"col-sm-10\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"medium\\\"],null],\\\"col-sm-9\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"small\\\"],null],\\\"col-md-7 col-xd-12\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"transports-limit\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"transportLimit\\\"]],[23,[\\\"allowTransportLimitEdition\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[7,\\\"small\\\"],[11,\\\"class\\\",\\\"text-muted\\\"],[9],[1,[27,\\\"t\\\",[\\\"partnership.transportLimitHint\\\"],null],false],[10],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"transportLimit\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"shouldTransportsLimitDetailsBeRendered\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"big\\\"],null],\\\"col-sm-2\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"medium\\\"],null],\\\"col-sm-3\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"small\\\"],null],\\\"col-md-4 col-xd-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"partnership.transportsCreatedCount\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"big\\\"],null],\\\"col-sm-10\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"medium\\\"],null],\\\"col-sm-9\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"small\\\"],null],\\\"col-md-7 col-xd-12\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"transports-created-count\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"transportsCreatedCount\\\"]],true]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group width-80 float-right\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"big\\\"],null],\\\"col-sm-2\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"medium\\\"],null],\\\"col-sm-3\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"small\\\"],null],\\\"col-md-4 col-xd-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"partnership.transportsCompletedCount\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"big\\\"],null],\\\"col-sm-10\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"medium\\\"],null],\\\"col-sm-9\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"small\\\"],null],\\\"col-md-7 col-xd-12\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"transports-finished-count\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"contractorCompletedTransportsCount\\\"]],true]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group width-80 float-right\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"big\\\"],null],\\\"col-sm-2\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"medium\\\"],null],\\\"col-sm-3\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"small\\\"],null],\\\"col-md-4 col-xd-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"partnership.transportsInProgressCount\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"big\\\"],null],\\\"col-sm-10\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"medium\\\"],null],\\\"col-sm-9\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"small\\\"],null],\\\"col-md-7 col-xd-12\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"transports-in-progress-count\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"contractorTransportsInProgressCount\\\"]],true]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/company-transport-limit/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/confirm-statuses/component\", [\"exports\", \"apollo/mixins/checkpoint-mixin\", \"apollo/mixins/transport-form-mixin\"], function (_exports, _checkpointMixin, _transportFormMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_checkpointMixin.default, _transportFormMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    checkpointService: Ember.inject.service(),\n    layoutName: Ember.computed(function () {\n      return this.get('isFromGuardTable') ? 'components/confirm-statuses/guard' : 'components/confirm-statuses/default';\n    }),\n    showTaskConfirmationDateForm: Ember.computed('transport.firstUnconfirmedCheckpoint.id', function () {\n      const userCanConfirmCheckpointDate = this.get('transport.firstUnconfirmedCheckpoint.task.canAddConfirmationDateByRole');\n      const userHasToAddCheckpointConfirmationDate = this.get('transport.firstUnconfirmedCheckpoint.task.userHasToAddCheckpointConfirmationDate');\n      return !!(userCanConfirmCheckpointDate || userHasToAddCheckpointConfirmationDate);\n    }),\n    showFirstMandatoryConfirmationButton: Ember.computed('transport.{firstMandatoryCheckpoint.id,firstUnconfirmedCheckpoint.id}', function () {\n      // Potwierdzanie poza kolejnością ROLE_CAN_SKIP_CHECKPOINT_CONFIRMATION [A-10199]\n      return !this.get('transport.firstMandatoryCheckpoint.isConfirmed') && this.get('transport.firstUnconfirmedCheckpoint.canBeSkipped');\n    }),\n    actions: {\n      revoke(checkpoint, hide) {\n        this.revoke(checkpoint);\n        hide();\n      },\n\n      showModal(templateName, checkpoint) {\n        this.sendAction('showModal', templateName, checkpoint);\n      },\n\n      hidePopup() {\n        if (this.get('isFromShowStatuses')) {\n          this.set('action', 'toggleStatusesPopup');\n          this.sendAction('action');\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/confirm-statuses/default/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"BHPl7ovv\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"isLate\\\"]],\\\"state-late\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isFromTransportModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-6\\\",\\\"col-xs-12 col-sm-6 \\\"],null],\\\" control-label text-to-color\\\"]]],[9],[0,\\\"\\\\n                \\\"],[1,[23,[\\\"transport\\\",\\\"stageName\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"firstUnconfirmedCheckpoint\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"firstUnconfirmedCheckpoint\\\",\\\"isBlocked\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-danger\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"checkpoint.blockText\\\"],[[\\\"name\\\"],[[23,[\\\"transport\\\",\\\"firstUnconfirmedCheckpoint\\\",\\\"blockadeRequester\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.choosingReason\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"transport\\\",\\\"firstUnconfirmedCheckpoint\\\",\\\"blockadeReason\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-6\\\"],null],\\\" \\\",[27,\\\"if\\\",[[23,[\\\"isFromTransportModal\\\"]],\\\"col-xs-12 col-sm-6\\\",\\\"col-xs-12 text-center\\\"],null],\\\" text-to-color\\\"]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"asPlainTemplate\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showTaskConfirmationDateForm\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"task-confirmation-date-form\\\",null,[[\\\"firstUnconfirmedCheckpoint\\\"],[[23,[\\\"transport\\\",\\\"firstUnconfirmedCheckpoint\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[1,[27,\\\"checkpoint/confirm-status-button\\\",null,[[\\\"checkpoint\\\"],[[23,[\\\"transport\\\",\\\"firstUnconfirmedCheckpoint\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showFirstMandatoryConfirmationButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"checkpoint/confirm-status-button\\\",null,[[\\\"checkpoint\\\"],[[23,[\\\"transport\\\",\\\"firstMandatoryCheckpoint\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[1,[27,\\\"checkpoint/reject-status-button\\\",null,[[\\\"checkpointToReject\\\"],[[23,[\\\"transport\\\",\\\"firstUnconfirmedCheckpoint\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"checkpoint/rejection-date-text\\\",null,[[\\\"checkpoint\\\"],[[23,[\\\"transport\\\",\\\"firstUnconfirmedCheckpoint\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-6\\\",\\\"col-xs-12 col-sm-6 \\\"],null],\\\" form-control-static\\\"]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"checkpoints.processFinished\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"firstUnconfirmedCheckpoint\\\",\\\"confirmButtonShouldBeDisabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 margin-top-big blockade-info text-center\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"checkpoint-blockade-message\\\",null,[[\\\"title\\\",\\\"fields\\\"],[[23,[\\\"transport\\\",\\\"firstUnconfirmedCheckpoint\\\",\\\"checkpointBlockadeInfo\\\",\\\"title\\\"]],[23,[\\\"transport\\\",\\\"firstUnconfirmedCheckpoint\\\",\\\"checkpointBlockadeInfo\\\",\\\"fields\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/confirm-statuses/default/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/confirm-statuses/guard/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"CrNjYcVX\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"isBlocked\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"label\\\"],[12,\\\"title\\\",[23,[\\\"checkpoint\\\",\\\"blockadeReason\\\"]]],[9],[1,[27,\\\"t\\\",[\\\"checkpoint.blockTextShort\\\"],[[\\\"name\\\"],[[23,[\\\"checkpoint\\\",\\\"blockadeRequester\\\",\\\"name\\\"]]]]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"canBeRejected\\\"]],\\\"margin-left\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"checkpoint/confirm-status-button\\\",null,[[\\\"checkpoint\\\",\\\"renderInTable\\\"],[[23,[\\\"transport\\\",\\\"firstUnconfirmedCheckpoint\\\"]],true]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showFirstMandatoryConfirmationButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"checkpoint/confirm-status-button\\\",null,[[\\\"checkpoint\\\",\\\"renderInTable\\\"],[[23,[\\\"transport\\\",\\\"firstMandatoryCheckpoint\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[1,[27,\\\"checkpoint/reject-status-button\\\",null,[[\\\"checkpoint\\\"],[[23,[\\\"checkpoint\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"checkpoint/rejection-date-text\\\",null,[[\\\"checkpoint\\\"],[[23,[\\\"transport\\\",\\\"firstUnconfirmedCheckpoint\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/confirm-statuses/guard/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/create-transport-button/component\", [\"exports\", \"apollo/mixins/step-mixin\"], function (_exports, _stepMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_stepMixin.default, {\n    tagName: 'a',\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    truckTypeService: Ember.inject.service('truck-type-service'),\n    routeService: Ember.inject.service('route-service'),\n    uuidService: Ember.inject.service('uuid-service'),\n    modalService: Ember.inject.service('modal-service'),\n    warehouseZoneTransportTypes: Ember.computed('', function () {\n      return this.get('store').peekAll('warehouse-zone-transport-type');\n    }).readOnly(),\n    handleDefaultCompanies: function (transport) {\n      const config = {\n        load: 'defaultLoadCompanyId',\n        unload: 'defaultUnloadCompanyId'\n      };\n\n      for (const stepType in config) {\n        const property = config[stepType];\n        const defaultCompanyId = transport.get(`transportType.${property}`);\n\n        if (defaultCompanyId) {\n          const steps = transport.get('steps').filter(s => s.get('stepTypeName') === stepType);\n          this.get('store').findRecord('company', defaultCompanyId).then(c => {\n            steps.forEach(s => {\n              s.set('company', c);\n\n              if (s.get('newAddressAsDefault')) {\n                s.set('address', this.get('store').createRecord('address', {\n                  company: c\n                }));\n              }\n            });\n          });\n        }\n      }\n    },\n    actions: {\n      // TODO :: Przenieść to do jakiegoś serwisu\n      async openTransportModal(transportType) {\n        const store = this.get('store');\n        const transport = store.createRecord('transport', {\n          transportType\n        });\n        console.log('Otwieramy okienko z formularzem nowego transportu...');\n\n        if (transportType.get('requiresTimeWindow') && !transportType.get('adviceSeparatedFromWindow') || transportType.get('adviceSavedWithTransport')) {\n          const advice = store.createRecord('advice', {\n            transport\n          });\n          transport.set('advice', advice);\n        }\n\n        const warehouses = transportType.get('warehousesForCurrentUser');\n        const isLoadStepInWarehouseByDefault = transportType.get('isLoadStepInWarehouseByDefault');\n        const isUnloadStepInWarehouseByDefault = transportType.get('isUnloadStepInWarehouseByDefault');\n        const ramp = this.get('rampId') ? store.peekRecord('ramp', this.get('rampId')) : null;\n        const timeWindow = ramp ? store.createRecord('timeWindow', {\n          ramp,\n          start: Date.parse(this.get('timeWindowStart')),\n          stop: Date.parse(this.get('timeWindowStop'))\n        }) : null;\n        this.get('sessionAccount.currentUser.company').then(comp => {\n          if (comp.get('partnershipType.name') === 'CARRIER') {\n            transport.set('carrierCompany', comp);\n          }\n        });\n        const TYPE_GROUPS = transportType.get('TYPE_GROUPS');\n\n        if (transportType.get('typeGroup') === TYPE_GROUPS.COLLECTION) {\n          // odbiór - pierwszy etap w magazynie, dowolna ilość rozładunków\n          const loadStep = store.createRecord('step', {\n            ownedByPrincipal: isLoadStepInWarehouseByDefault,\n            shouldHaveContractor: !transportType.get('hasVisibleSteps'),\n            stepTypeName: 'load',\n            orderInTransport: 0,\n            timeWindow,\n            temporaryStepId: this.uuidService.uuid()\n          });\n\n          if (warehouses.get('length') === 1) {\n            loadStep.set('warehouse', warehouses.get('firstObject'));\n          }\n\n          transport.get('steps').pushObject(loadStep);\n\n          if (transportType.get('hasVisibleSteps')) {\n            const unloadStep = store.createRecord('step', {\n              ownedByPrincipal: isUnloadStepInWarehouseByDefault,\n              shouldHaveContractor: true,\n              stepTypeName: 'unload',\n              orderInTransport: 1,\n              temporaryStepId: this.uuidService.uuid()\n            });\n            transport.get('steps').pushObject(unloadStep);\n          }\n        } else if (transportType.get('typeGroup') === TYPE_GROUPS.DELIVERY) {\n          // dostawa - ostatni etap w magazynie, dowolna ilość załadunków lub kurier - przyjazd do klienta, tylko jeden \"załadunek\"\n          const loadStep = store.createRecord('step', {\n            ownedByPrincipal: isLoadStepInWarehouseByDefault,\n            shouldHaveContractor: true,\n            stepTypeName: 'load',\n            orderInTransport: 0,\n            temporaryStepId: this.uuidService.uuid()\n          });\n          transport.get('steps').pushObject(loadStep);\n          const unloadStep = store.createRecord('step', {\n            ownedByPrincipal: isUnloadStepInWarehouseByDefault,\n            shouldHaveContractor: false,\n            stepTypeName: 'unload',\n            orderInTransport: 1,\n            temporaryStepId: this.uuidService.uuid()\n          });\n\n          if (warehouses.get('length') === 1) {\n            unloadStep.set('warehouse', warehouses.get('firstObject'));\n          }\n\n          transport.get('steps').pushObject(unloadStep);\n        } else if (transportType.get('typeGroup') === TYPE_GROUPS.SIMPLIFIED_DELIVERY || transportType.get('typeGroup') === TYPE_GROUPS.SERVICE) {\n          // Uproszczona dostawa - jeden etap - w magazynie\n          const unloadStep = store.createRecord('step', {\n            ownedByPrincipal: isUnloadStepInWarehouseByDefault,\n            shouldHaveContractor: transportType.get('allowsContractor'),\n            stepTypeName: 'unload',\n            orderInTransport: 0,\n            temporaryStepId: this.uuidService.uuid()\n          });\n\n          if (warehouses.get('length') === 1) {\n            unloadStep.set('warehouse', warehouses.get('firstObject'));\n          }\n\n          transport.get('steps').pushObject(unloadStep);\n        } else if (transportType.get('typeGroup') === TYPE_GROUPS.TRANSPORT) {\n          // zlecenie transportowe - dowolna ilość etapów, w dowolnej konfiguracji\n          const loadStep = store.createRecord('step', {\n            ownedByPrincipal: isLoadStepInWarehouseByDefault,\n            shouldHaveContractor: true,\n            stepTypeName: 'load',\n            orderInTransport: 0,\n            temporaryStepId: this.uuidService.uuid()\n          });\n          transport.get('steps').pushObject(loadStep); // zakładamy, że najczęściej 'transport' będzie kończył się rozładunkiem w magazynie klienta;\n          // użytkownik będzie mógł to zmienić podczas tworzenia transportu\n\n          const unloadStep = store.createRecord('step', {\n            ownedByPrincipal: isUnloadStepInWarehouseByDefault,\n            shouldHaveContractor: false,\n            stepTypeName: 'unload',\n            orderInTransport: 1,\n            temporaryStepId: this.uuidService.uuid()\n          });\n          transport.get('steps').pushObject(unloadStep);\n        } else if (transportType.get('typeGroup') === TYPE_GROUPS.TRANSFER_BETWEEN_WAREHOUSES) {\n          // Przerzuty - dwa etapy - oba w magazynie\n          const loadStep = store.createRecord('step', {\n            ownedByPrincipal: isLoadStepInWarehouseByDefault,\n            shouldHaveContractor: false,\n            stepTypeName: 'load',\n            orderInTransport: 0,\n            temporaryStepId: this.uuidService.uuid()\n          });\n          transport.get('steps').pushObject(loadStep);\n          const unloadStep = store.createRecord('step', {\n            ownedByPrincipal: isUnloadStepInWarehouseByDefault,\n            shouldHaveContractor: false,\n            stepTypeName: 'unload',\n            orderInTransport: 1,\n            temporaryStepId: this.uuidService.uuid()\n          });\n          transport.get('steps').pushObject(unloadStep);\n        } // Ustawiamy domyślny czas dostawy etapom, które nie znajdują się w magazynie -\n        // tylko w przypadku transportów, w których można podawać etapy.\n\n\n        if (transportType.get('hasVisibleSteps')) {\n          transport.get('steps').filterBy('ownedByPrincipal', false).forEach(step => {\n            step.setArrivalDate();\n          });\n        } // Ustawiamy domyślny czas dostawy etapom, które znajdują się w magazynie -\n        // tylko gdy właczona jest flaga\n\n\n        if (transportType.get('requiresArrivalAndDepartureDateInWarehouseStep')) {\n          transport.get('steps').filterBy('ownedByPrincipal', true).forEach(step => {\n            step.setArrivalDate();\n          });\n        } // Ustawiamy domyślny zakres czasu na awizację w przypadku transportów, które go wymagają.\n\n\n        if (transportType.get('requiresAdviceDateRestrictions')) {\n          transport.get('steps').filterBy('ownedByPrincipal').forEach(step => {\n            step.setAdviceRestrictionDates();\n          });\n        }\n\n        this.get('sessionAccount.currentUser.company').then(comp => {\n          const firstStepForContractor = transport.get('steps').filterBy('ownedByPrincipal', false).get('firstObject') || transport.get('steps.firstObject');\n\n          if (firstStepForContractor) {\n            const contractor = comp.get('partnershipType.name') === 'SUPPLIER' || comp.get('partnershipType.name') === 'OPERATOR' ? comp : store.createRecord('company', {});\n            firstStepForContractor.set('company', contractor);\n          }\n        });\n        transport.get('transportType').get('customFieldDefinitions').filterBy('enabled').forEach(function (definition) {\n          const customField = store.createRecord('customFieldValue', {\n            definition\n          });\n          transport.get('customFields').pushObject(customField);\n        });\n        transport.set('periodicTransport', this.get('store').createRecord('periodicTransport', {\n          frequency: 'DAILY',\n          startDate: moment().startOf('day').toDate()\n        }));\n        transport.createSerialTransport();\n        const loggedUserCompany = this.get('sessionAccount.currentUser.company');\n        const isServiceCompany = loggedUserCompany.get('partnershipType.name') === 'SERVICEMAN';\n\n        if (isServiceCompany) {\n          transport.set('serviceCompany', loggedUserCompany);\n        }\n\n        if (transportType.get('defaultServicemanCompanyId') && !isServiceCompany) {\n          store.findRecord('company', transportType.get('defaultServicemanCompanyId')).then(serviceCompany => transport.set('serviceCompany', serviceCompany));\n        } // tworzymy obiekty dla opakowań\n\n\n        this.handleStepPackageTypesForTransport(transport); // ustawiamy domyślne firmy na załadunku i rozładunku - jeśli transport ma je ustawione\n\n        this.handleDefaultCompanies(transport);\n        await this.truckTypeService.setTruckTypes(transport);\n\n        transport._createAmountOfCover();\n\n        if (transportType.get('priceListSetting.showRouteTemplate')) {\n          transport.set('availableRoutes', (await this.routeService.getAvailableRoutes(transportType)));\n        }\n\n        this.get('modalService').showModal(this.get('modalService').MODALS.TRANSPORT.CREATE_TRANSPORT, transport);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/create-transport-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ck8zH2hc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[11,\\\"class\\\",\\\"add-transport\\\"],[9],[0,\\\"\\\\n    \\\"],[14,1],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[22,0,[]],\\\"openTransportModal\\\",[23,[\\\"type\\\"]],[23,[\\\"model\\\"]]]],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/create-transport-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-auto-complete/component\", [\"exports\", \"apollo/config/environment\", \"jquery\"], function (_exports, _environment, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  let focusOutEvent;\n\n  var _default = Ember.Component.extend({\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    sessionAccount: Ember.inject.service('session-account'),\n    highlightIndex: -1,\n    escapedChars: Ember.A([40, 38, 13]),\n    visibility: Ember.String.htmlSafe('display: none;'),\n    inputClass: '',\n    inputClazz: Ember.computed(function () {\n      return 'typeahead form-control ' + this.get('inputClass');\n    }),\n    classNames: Ember.A(['custom-auto-complete']),\n    layoutName: 'components/custom-auto-complete',\n    allowEnteringNewValue: false,\n    defaultMax: 10,\n    KEYCODES: Object.freeze({\n      ENTER: 13,\n      TAB: 9,\n      ARROW_UP: 38,\n      ARROW_DOWN: 40\n    }),\n    max: Ember.computed('', function () {\n      return this.get('sessionAccount').getSettingValue('AUTO_COMPLETE_MAX') || this.get('defaultMax');\n    }),\n    // eslint-disable-next-line ember/no-observers\n    queryInputChanged: Ember.observer('inputVal', function () {\n      Ember.run.debounce(this, this.getOptionsFromServer, 500);\n    }),\n\n    getOptionsFromServer() {\n      const self = this;\n      const inputVal = this.get('inputVal') || '';\n      const data = {\n        query: inputVal,\n        field: this.field,\n        type: this.type,\n        autocomplete: true,\n        companyIds: this.companyIds,\n        companyId: this.companyId,\n        max: this.get('max'),\n        showPrincipalCompanies: this.showPrincipalCompanies,\n        carrierId: this.carrierId\n      };\n      const dataOptions = this.getDataOptions ? this.getDataOptions() : null;\n\n      if (dataOptions) {\n        Object.assign(data, dataOptions);\n      } // TODO :: apollo-api-service\n\n\n      _jquery.default.ajax({\n        type: 'GET',\n        url: _environment.default.serverURL + this.urlAddress,\n        data,\n        beforeSend: function (xhr) {\n          xhr.setRequestHeader('Authorization', 'Bearer ' + self.get('sessionAccount').get('token'));\n        }\n      }).then(function (resp) {\n        self.set('options', resp);\n      });\n    },\n\n    dropDownStyle: Ember.computed('visibility', function () {\n      return 'visibility: ' + this.get('visibility');\n    }),\n    click: function () {\n      if (this.$().find('input').is(':disabled') || this.get('asPlainTemplate')) {\n        console.debug('Element is disabled - not showing options.');\n        return;\n      }\n\n      if (typeof this.get('selectedValue') === 'undefined') {\n        this.set('inputVal', '');\n      }\n\n      Ember.run.debounce(this, this.getOptionsFromServer, 500);\n      this.set('visibility', Ember.String.htmlSafe('display: block;'));\n    },\n    keyUp: function (event) {\n      if (event.keyCode === 27) {\n        this.set('visibility', Ember.String.htmlSafe('display: none;'));\n      } else if (this.escapedChars.indexOf(event.keyCode) === -1) {\n        this.set('visibility', Ember.String.htmlSafe('display: block;'));\n        this.set('inputVal', (0, _jquery.default)(event.target).val());\n      }\n    },\n    focusIn: function () {\n      this.set('selectedFromList', false);\n\n      if (this.get('visibility') === 'display:none;') {\n        this.set('visibility', Ember.String.htmlSafe('display: block;'));\n      }\n    },\n    focusOut: function () {\n      clearTimeout(focusOutEvent);\n      const self = this;\n\n      const func = function () {\n        if (self.isDestroyed) {\n          return;\n        }\n\n        self.set('visibility', Ember.String.htmlSafe('display: none;'));\n\n        if (self.get('selectedFromList')) {\n          return;\n        }\n\n        const value = this.get('selectedValue');\n        const optionsToMatch = this.get('optionsToMatch') || [];\n        const prevValue = self.get('attrs.selectedValue');\n\n        if (self.get('allowEnteringNewValue')) {\n          console.debug('This field allows entering new values..');\n          self.sendAction('newValueEntered', value);\n        } else if (optionsToMatch.indexOf(value) === -1) {\n          if (value && value !== prevValue) {\n            console.log('Adding new option is disallowed. Clearing');\n            self.sendAction('clearSelection');\n            self.set('inputVal', null);\n            self.set('selectedValue', null);\n          } else if (!value) {\n            console.debug('User has removed value - we\\'re removing selection..');\n            self.sendAction('clearSelection');\n          }\n        }\n      };\n\n      focusOutEvent = Ember.run.later(this, func, 200);\n    },\n    keyDown: function (event) {\n      const {\n        keyCode\n      } = event;\n      const KEYCODES = this.get('KEYCODES');\n\n      const container = this._getSuggestionsContainer(event);\n\n      if (keyCode === KEYCODES.ENTER) {\n        event.preventDefault();\n      }\n\n      const ENTER_KEY_CODE = 13;\n\n      if (event.keyCode === ENTER_KEY_CODE) {\n        event.preventDefault();\n      }\n\n      if (!this._isVisible(container)) {\n        this._showSuggestions();\n\n        return;\n      }\n\n      switch (keyCode) {\n        case KEYCODES.ARROW_DOWN:\n          this.highlight('down', event);\n          break;\n\n        case KEYCODES.ARROW_UP:\n          this.highlight('up', event);\n          break;\n\n        case KEYCODES.ENTER:\n        case KEYCODES.TAB:\n          this._handleSelection();\n\n          break;\n      }\n    },\n\n    _getSuggestionsContainer(event) {\n      return event.target.closest('.typeahead-wrap').querySelector('.tt-suggestions');\n    },\n\n    _isVisible(element) {\n      if (!element) return false;\n      const style = window.getComputedStyle(element);\n      return style.display !== 'none';\n    },\n\n    _showSuggestions() {\n      this.set('visibility', Ember.String.htmlSafe('display: block;'));\n    },\n\n    _hideSuggestions() {\n      this.set('visibility', Ember.String.htmlSafe('display: none;'));\n    },\n\n    _handleSelection() {\n      const selectableSuggestion = this.get('selectableSuggestion');\n\n      if (!Ember.isBlank(selectableSuggestion)) {\n        this.send('selectItem', selectableSuggestion);\n\n        this._hideSuggestions();\n\n        return;\n      }\n\n      const value = this.get('selectedValue');\n      const optionsToMatch = this.get('optionsToMatch');\n\n      if (optionsToMatch.includes(value)) {\n        this.set('selectedFromList', true);\n\n        this._hideSuggestions();\n      }\n    },\n\n    highlight: function (direction, event) {\n      let newHighlightIndex = -1;\n\n      if (direction === 'down') {\n        newHighlightIndex = this.highlightIndex + 1;\n      } else if (this.highlightIndex > 0) {\n        newHighlightIndex = this.highlightIndex - 1;\n      }\n\n      if (newHighlightIndex < this.get('suggestions').length) {\n        if (this.highlightIndex > -1) {\n          const currentResult = this.get('suggestions').objectAt(this.highlightIndex);\n          Ember.set(currentResult, 'highlight', false);\n        }\n\n        this.set('highlightIndex', newHighlightIndex);\n\n        if (this.highlightIndex > -1) {\n          const nextResult = this.get('suggestions').objectAt(this.highlightIndex);\n          Ember.set(nextResult, 'highlight', true);\n          this.set('selectableSuggestion', nextResult);\n        }\n      }\n\n      if (newHighlightIndex > -1 && newHighlightIndex < this.get('suggestions.length')) {\n        const $container = (0, _jquery.default)(event.target).parent('.typeahead-wrap').find('.tt-suggestions');\n        const $elementToScrollTo = (0, _jquery.default)($container.find('.autocomplete-result')[newHighlightIndex]);\n        $container.scrollTop($elementToScrollTo.offset().top - $container.offset().top + $container.scrollTop() - 5);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-auto-complete/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"dQkyL0RV\",\n    \"block\": \"{\\\"symbols\\\":[\\\"result\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"typeahead-wrap\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\",\\\"autocomplete\\\",\\\"spellcheck\\\"],[[23,[\\\"inputClazz\\\"]],[23,[\\\"disabled\\\"]],[23,[\\\"selectedValue\\\"]],[23,[\\\"placeHolderText\\\"]],\\\"off\\\",\\\"false\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"suggestions\\\"]],[23,[\\\"noMesssagePlaceHolderText\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"tt-dropdown-menu\\\"],[12,\\\"style\\\",[21,\\\"visibility\\\"]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"tt-dataset-states\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"tt-suggestions\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"suggestions\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"suggestion \\\",[27,\\\"if\\\",[[22,1,[\\\"highlight\\\"]],\\\"highlight\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[14,2,[[22,1,[]]]],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"selectItem\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"message\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"p\\\"],[9],[1,[21,\\\"noMesssagePlaceHolderText\\\"],false],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/custom-auto-complete/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-field-auto-complete/component\", [\"exports\", \"apollo/pods/components/custom-auto-complete/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _component.default.extend({\n    urlAddress: '/custom-field-values/query',\n    field: 'value',\n    getDataOptions: function () {\n      return {\n        definitionId: this.definitionId\n      };\n    },\n    options: [],\n    suggestions: function () {\n      return this.get('options');\n    }.property('options.@each'),\n    optionsToMatch: function () {\n      const caseInsensitiveOptions = [];\n      this.get('options').filter(item => !!item.value).forEach(item => {\n        const value = item.value;\n        caseInsensitiveOptions.push(value.toLowerCase());\n      });\n      return caseInsensitiveOptions;\n    }.property('options.@each'),\n    actions: {\n      selectItem: function (item) {\n        this.set('selectedFromList', true);\n        this.set('selectedValue', item.index);\n        this.sendAction('selectItem', item);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-field-default-option/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    availableOptions: Ember.computed('model.options', function () {\n      const self = this;\n      return this.get('store').peekAll('customFieldOption').filter(option => {\n        return option.get('definition.id') === self.get('model.id') && option.get('enabled');\n      });\n    }),\n    actions: {\n      setDefaultOption(option) {\n        this.set('model.defaultOption', option);\n      },\n\n      toggleShowDefaultOptionSection() {\n        this.toggleProperty('model.showDefaultOptionSection');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-field-default-option/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"1kBv7Cef\",\n    \"block\": \"{\\\"symbols\\\":[\\\"opt\\\"],\\\"statements\\\":[[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"padding-top-big\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.defaultOption.title\\\"],null],false],[0,\\\"\\\\n    \\\"],[7,\\\"input\\\"],[12,\\\"onchange\\\",[27,\\\"action\\\",[[22,0,[]],\\\"toggleShowDefaultOptionSection\\\"],null]],[12,\\\"checked\\\",[23,[\\\"model\\\",\\\"showDefaultOptionSection\\\"]]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"showDefaultOptionSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"defaultOption\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.defaultOption.label\\\"],null],false],[0,\\\":\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8 form-control-static\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"allowClear\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"defaultOption\\\"]]],null],[23,[\\\"availableOptions\\\"]],true,true,[27,\\\"t\\\",[\\\"custom-field-definition.defaultOption.placeholder\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setDefaultOption\\\"],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"defaultOption\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block padding-top text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"custom-field-definition.defaultOption.hint\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/custom-field-default-option/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-field-definition-automatic-value/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    actions: {\n      toggleAutomaticValueEnabled() {\n        this.toggleProperty('model.automaticValueEnabled');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-field-definition-automatic-value/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"uLencu/R\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"padding-top-big\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.automaticValue.title\\\"],null],false],[0,\\\"\\\\n    \\\"],[7,\\\"input\\\"],[12,\\\"onchange\\\",[27,\\\"action\\\",[[22,0,[]],\\\"toggleAutomaticValueEnabled\\\"],null]],[12,\\\"checked\\\",[23,[\\\"model\\\",\\\"automaticValueEnabled\\\"]]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"automaticValueEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"automaticValue\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.automaticValue.define\\\"],null],false],[0,\\\":\\\\n            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-info-circle\\\"],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"custom-field-definition.automaticValue.hint\\\"],null]],[9],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"definition-automatic-value\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"automaticValue\\\"]]]]],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"automaticValue\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/custom-field-definition-automatic-value/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-field-dependency/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    availableDefinitions: Ember.computed('model.id', function () {\n      const transportTypeId = this.get('model.transportType.id');\n      return this.get('store').peekAll('customFieldDefinition').filter(definition => {\n        return definition.get('transportType.id') === transportTypeId && definition.get('isSelectType');\n      });\n    }),\n    availableOptions: Ember.computed('model.visibilityDependsOnDefinition.id', function () {\n      return this.get('model.visibilityDependsOnDefinition.options');\n    }),\n    definitionIsChosen: Ember.computed('model.visibilityDependsOnDefinition.id', function () {\n      return this.get('model.visibilityDependsOnDefinition.id');\n    }),\n    properHint: Ember.computed('model.obligatory', function () {\n      return this.get('model.obligatory') ? this.get('intl').t('custom-field-definition.makeFieldDependentOn.hint.obligatory') : this.get('intl').t('custom-field-definition.makeFieldDependentOn.hint.voluntary');\n    }),\n    showDependsOnTaskInfo: Ember.computed('model.visibilityDependsOnDefinition.task.id', function () {\n      return !!this.get('model.visibilityDependsOnDefinition.task.id');\n    }),\n    actions: {\n      setDefinition(definition) {\n        this.set('model.visibilityDependsOnDefinition', definition);\n        this.set('model.visibilityDependsOnOption', null);\n      },\n\n      setOption(optionId) {\n        const option = optionId ? this.get('store').peekRecord('customFieldOption', optionId) : null;\n        this.set('model.visibilityDependsOnOption', option);\n      },\n\n      toggleShowDependencySection() {\n        this.toggleProperty('model.showDependencySection');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-field-dependency/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ngXyFhAI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"opt\\\",\\\"def\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"availableDefinitions\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"padding-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.makeFieldDependentOn.title\\\"],null],false],[0,\\\"\\\\n        \\\"],[7,\\\"input\\\"],[11,\\\"data-button-name\\\",\\\"make-field-dependent-on\\\"],[12,\\\"onchange\\\",[27,\\\"action\\\",[[22,0,[]],\\\"toggleShowDependencySection\\\"],null]],[12,\\\"checked\\\",[23,[\\\"model\\\",\\\"showDependencySection\\\"]]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"showDependencySection\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group no-vertical-margin \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"visibilityDependsOnDefinition\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.visibilityDependsOnDefinition\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8 form-control-static\\\"],[11,\\\"data-field-name\\\",\\\"dependent-field-name\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"visibilityDependsOnDefinition\\\"]]],null],[23,[\\\"availableDefinitions\\\"]],true,[27,\\\"t\\\",[\\\"custom-field-definition.makeFieldDependentOn.definitionPlaceholder\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setDefinition\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,2,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"visibilityDependsOnDefinition\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showDependsOnTaskInfo\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"info margin-bottom-big\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.makeFieldDependentOn.dependsOnTaskInfo\\\"],null],false],[0,\\\":\\\\n                    \\\"],[7,\\\"b\\\"],[9],[1,[23,[\\\"model\\\",\\\"visibilityDependsOnDefinition\\\",\\\"task\\\",\\\"checkpointName\\\"]],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"visibilityDependsOnDefinition\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"visibilityDependsOnOption\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.visibilityDependsOnOption\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8 form-control-static\\\"],[11,\\\"data-field-name\\\",\\\"dependent-field-value\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"select\\\"],[11,\\\"class\\\",\\\"form-control\\\"],[12,\\\"disabled\\\",[27,\\\"not\\\",[[23,[\\\"definitionIsChosen\\\"]]],null]],[12,\\\"onchange\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setOption\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[9],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"\\\"],[12,\\\"selected\\\",[27,\\\"and\\\",[[23,[\\\"model\\\",\\\"visibilityDependsOnDefinition\\\",\\\"id\\\"]],[27,\\\"not\\\",[[23,[\\\"model\\\",\\\"visibilityDependsOnOption\\\",\\\"id\\\"]]],null]],null]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.makeFieldDependentOn.fieldCompleted\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"availableOptions\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"option\\\"],[12,\\\"value\\\",[28,[[22,1,[\\\"id\\\"]]]]],[12,\\\"selected\\\",[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"visibilityDependsOnOption\\\",\\\"id\\\"]],[22,1,[\\\"id\\\"]]],null]],[9],[0,\\\"\\\\n                                \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"visibilityDependsOnOption\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block padding-top text-center\\\"],[9],[1,[21,\\\"properHint\\\"],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/custom-field-dependency/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-field-option-dependency-modal/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    modalTitle: Ember.computed('', function () {\n      return this.get('intl').t('custom-field-option.editDependencies');\n    }),\n    availableDefinitions: Ember.computed('model.id', function () {\n      const self = this;\n      return this.get('store').peekAll('custom-field-definition').filter(cfd => {\n        return cfd.get('type') === 'select' && self.get('model.definition.transportType.id') === cfd.get('transportType.id') && self.get('model.definition.id') !== cfd.get('id');\n      });\n    }),\n    actions: {\n      close() {\n        this.send('hideModal');\n      },\n\n      cancel() {\n        this.get('model').rollback();\n        this.send('hideModal');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-field-option-dependency-modal/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"K3bTaAjK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"option\\\",\\\"definition\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\"],[[23,[\\\"modalTitle\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-info padding-bottom-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[9],[1,[27,\\\"t\\\",[\\\"custom-field-option.dependenciesHint\\\"],null],false],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-option.optionKey\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"option-key\\\"],[11,\\\"class\\\",\\\"col-xs-7\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"name\\\"]],true]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-option.relatedDefinition\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"related-definition\\\"],[11,\\\"class\\\",\\\"col-xs-7\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"options\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"relatedDefinition\\\"]],true,[27,\\\"t\\\",[\\\"custom-field-option.relatedDefinition\\\"],null],[23,[\\\"availableDefinitions\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"relatedDefinition\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,2,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"relatedDefinition\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label padding-bottom-big\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-option.relatedOptions\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"related-options\\\"],[11,\\\"class\\\",\\\"col-xs-7 padding-bottom-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select-multiple\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"placeholder\\\",\\\"options\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"model\\\",\\\"relatedOptions\\\"]],[27,\\\"t\\\",[\\\"custom-field-option.relatedOptions\\\"],null],[23,[\\\"model\\\",\\\"relatedDefinition\\\",\\\"options\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"relatedOptions\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"close-index-button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.ok\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"cancel-index-button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/custom-field-option-dependency-modal/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-field-options-table/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    availableTransportPanels: Ember.computed('model.id', function () {\n      return this.get('model.TRANSPORT_PANEL_VALUES');\n    }),\n    actions: {\n      addOption() {\n        const option = this.get('store').createRecord('custom-field-option', {});\n        this.get('model.options').pushObject(option);\n        this.get('model').validate();\n      },\n\n      removeOption(option) {\n        console.debug(`Removing option ${option.get('name')}..`);\n        option.set('enabled', false);\n        this.get('model').validate();\n      },\n\n      addDependency(option) {\n        this.set('action', 'showModal');\n        this.sendAction('action', 'components.custom-field-option-dependency-modal', option);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-field-options-table/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Plixl9Pm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"opt\\\",\\\"transportPanel\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"custom-field-options-table\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.options\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col col-2 description\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.name\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col col-2 description\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.englishName\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col col-2 description\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.alias\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col col-2\\\"],[9],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col col-2\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"enabledOptions\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-2 \\\",[27,\\\"if\\\",[[22,1,[\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[22,1,[\\\"name\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,1,[]],\\\"name\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-2 \\\",[27,\\\"if\\\",[[22,1,[\\\"errors\\\",\\\"englishName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[22,1,[\\\"englishName\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,1,[]],\\\"englishName\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-2 \\\",[27,\\\"if\\\",[[22,1,[\\\"errors\\\",\\\"alias\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[22,1,[\\\"alias\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,1,[]],\\\"alias\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col col-2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"allowClear\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"\\\",true,true,[22,1,[\\\"transportPanel\\\"]],[23,[\\\"availableTransportPanels\\\"]],false,[27,\\\"t\\\",[\\\"transportPanel.selectPlaceholder\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[22,1,[\\\"transportPanel\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"transportPanel.\\\",[22,2,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"fa-icon\\\",[\\\"minus\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-option.remove\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"removeOption\\\",[22,1,[]]]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[12,\\\"disabled\\\",[27,\\\"if\\\",[[27,\\\"not\\\",[[22,1,[\\\"id\\\"]]],null],\\\"disabled\\\",\\\"\\\"],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-option.editDependencies\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addDependency\\\",[22,1,[]]]],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"row \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"options\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col col-2\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-option.add\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addOption\\\"]],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"options\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/custom-field-options-table/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-field-value-formatted/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({});\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-field-value-formatted/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"vpnHHvyS\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"definition\\\",\\\"isOnlyDateType\\\"]],[23,[\\\"value\\\",\\\"value\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"value\\\",\\\"value\\\"]],\\\"short\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"definition\\\",\\\"isDateTimeType\\\"]],[23,[\\\"value\\\",\\\"value\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"value\\\",\\\"value\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"definition\\\",\\\"isSelectType\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[23,[\\\"value\\\",\\\"option\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[1,[23,[\\\"value\\\",\\\"value\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/custom-field-value-formatted/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-modal/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\n  var _default = Ember.Component.extend({\n    // eslint-disable-next-line ember/no-component-lifecycle-hooks\n    didInsertElement: function () {\n      this._super(...arguments);\n\n      const modalId = this.get('modalId');\n      console.log(`Pokazujemy okienko ${modalId}...`);\n      const $mainModal = (0, _jquery.default)(`#${modalId}`);\n      $mainModal.on('shown.bs.modal', function () {\n        console.debug(`Wyświetliliśmy na ekranie modal ${modalId}.`);\n        $mainModal.find('.focus-input').focus(); // A-373\n\n        $mainModal.find('input:text, textarea').change(function () {\n          (0, _jquery.default)(this).val((0, _jquery.default)(this).val().trim());\n        });\n      });\n      $mainModal.on('hidden.bs.modal', function () {\n        console.debug('Zamykamy modal...');\n        (0, _jquery.default)('.modal-backdrop').remove();\n        const outletName = this.get('outletName') ? this.get('outletName') : 'main-modal';\n        Ember.getOwner(this).lookup('route:application').disconnectOutlet({\n          outlet: outletName,\n          parentView: 'application'\n        }); // Ta akcja wykona się, gdy podamy `cancel` w komponencie, np. `{{#custom-modal cancel=(action 'myAction')}}` sprawi,\n        // że po zamknięciu okienka, wykona się akcja `myAction`.\n        //\n        // Zamknięcie okienka można uzyskać albo wykonując `this.send('hideModal')`, albo dodając\n        // `data-dismiss=\"modal\"` do wybranego przycisku.\n\n        const skipCancelAction = (0, _jquery.default)(`#${outletName}`).data('skip-cancel-action');\n\n        if (this.cancel && !skipCancelAction) {\n          this.cancel();\n        }\n      }.bind(this)); // To ważne, by zainicjalizować modal **po** dodaniu nasłuchiwaczy `shown.bs.modal` itp.\n      // por. https://stackoverflow.com/a/25466850/2224598\n      //\n      // `backdrop: 'static'` <-- sprawia, że okienko **nie** zamyka się po kliknięciu poza jego obszar\n\n      $mainModal.modal({\n        backdrop: 'static'\n      }); // Nie chcemy, żeby po zamknięciu modalu drugiego poziomu -- np. okienka dodawania/edycji indeksów\n      // otwierane z poziomu formularza transportu, który też jest modalem -- usuwała się klasa `modal-open`\n      // przypisywana do `body` po otwarciu okienka. Klasa ta pozwala na przewijanie (scroll) okienka\n      // modalowego. Zamknięcie modalu drugiego poziomu (sub-modal) usuwa tę klasę,\n      // przez co psuje się przewijanie np. formularza transportów po zamknięciu okienka indeksów.\n      //\n      // Problem jest znany: https://github.com/twbs/bootstrap/issues/15260. Rozwiązanie też zaczerpnąłem z tego wątku.\n\n      (0, _jquery.default)('#sub-modal').on('hidden.bs.modal', function () {\n        console.debug('Zamykamy modal drugiego poziomu (sub-modal) po wykonaniu akcji \\'close\\'...');\n        (0, _jquery.default)('body').addClass('modal-open');\n      }); // TODO: Nie powinniśmy przypisywać `draggable()` do całego okienka, bo nie można wtedy zaznaczać tekstu\n\n      if (this.get('allowDraggable')) {\n        $mainModal.find('.modal-content').draggable();\n      }\n    },\n    action: '',\n    modalId: Ember.computed('outletName', function () {\n      return this.get('outletName') || 'main-modal';\n    }),\n    showCancelButton: Ember.computed(function () {\n      return false;\n    }),\n    allowDraggable: Ember.computed(function () {\n      return true;\n    }),\n    yieldWithLayout: Ember.computed(function () {\n      return true;\n    }),\n    actions: {\n      close: function () {\n        this.set('action', 'hideModal');\n        this.sendAction('action');\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-modal/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"GwJViXIX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[12,\\\"id\\\",[28,[[21,\\\"modalId\\\"]]]],[11,\\\"class\\\",\\\"modal\\\"],[11,\\\"role\\\",\\\"dialog\\\"],[11,\\\"tabindex\\\",\\\"-1\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"modal-dialog \\\",[21,\\\"classNames\\\"]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-content\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"yieldWithLayout\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-header\\\"],[12,\\\"data-field-name\\\",[28,[[23,[\\\"transportType\\\",\\\"alias\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"bold col-xs-12\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[21,\\\"title\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showCancelButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-times pull-right clickable\\\"],[11,\\\"data-button-name\\\",\\\"close\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"subtitle\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"small\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[21,\\\"subtitle\\\"],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-body\\\"],[9],[0,\\\"\\\\n                    \\\"],[14,1],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/custom-modal/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-popover/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    destroyPopovers() {\n      this.set('isOpened', false);\n      $('.popover').each(function () {\n        $(this).popover('destroy');\n      });\n    },\n\n    showPopover(element, class1, class2) {\n      this.destroyPopovers();\n      const $el = $(element);\n      this.set('isOpened', true); // popover('destroy') wykonuje się asynchronicznie, co jest trochę zaskakujące,\n      // i czasem nie zdążył się wykonać, gdy próbowaliśmy utworzyć nowy popover;\n      // na razie wydaje mi się, że rozwiązanie z setTimeout jest faktycznie najlepsze\n      // http://stackoverflow.com/a/27345242/2224598\n\n      setTimeout(function () {\n        const $popover = $el.find(class1).popover({\n          html: true,\n          content: function () {\n            return $el.find(class2).html();\n          }\n        });\n        $el.find(class1).popover(\"show\");\n\n        if ($popover.find(\".window-details\").length) {\n          //dostosowanie położenie elementu dla szczegółów okien czasowych\n          const $popover = $('.popover');\n          const $arrow = $('.arrow');\n\n          if ($popover.position()) {\n            $popover.css('left', $popover.position().left + $arrow.position().left - $popover.outerWidth(true) / 2);\n            $arrow.css('left', 200);\n          }\n        }\n      }, 50);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-popover/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"sM+bVZit\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/custom-popover/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-switch/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({});\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/custom-switch/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"dKPGB/BC\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row panel panel-default no-vertical-margin padding-bottom padding-top flex-space-between flex\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"b\\\"],[9],[1,[21,\\\"firstOption\\\"],false],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"material-switch\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"input\\\"],[11,\\\"id\\\",\\\"customSwitch\\\"],[12,\\\"onchange\\\",[21,\\\"onSwichAction\\\"]],[12,\\\"value\\\",[21,\\\"value\\\"]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"customSwitch\\\"],[11,\\\"class\\\",\\\"label-success\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"b\\\"],[9],[1,[21,\\\"secondOption\\\"],false],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/custom-switch/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/date-formatter-test/component\", [\"exports\", \"apollo/utils/functions/date/get-offset\", \"apollo/utils/functions/date/get-offset-relative-to\"], function (_exports, _getOffset, _getOffsetRelativeTo) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    dateFormatterService: Ember.inject.service('date.date-formatter-service'),\n    testDate: null,\n    dateInput: '',\n    localeInput: '',\n    timeZoneInput: '',\n    fallbackInput: 'Invalid Date',\n    // Timer for auto-update\n    autoUpdateTimer: null,\n    autoUpdateEnabled: false,\n    flatpickrDate: null,\n    flatpickrDateTimestamp: Ember.computed('flatpickrDate', function () {\n      if (Ember.get(this, 'flatpickrDate')) {\n        return Ember.get(this, 'flatpickrDate.firstObject').getTime();\n      }\n\n      return null;\n    }),\n    flatpickrShortDate: null,\n    flatpickrShortDateTimestamp: Ember.computed('flatpickrShortDate', function () {\n      if (Ember.get(this, 'flatpickrShortDate')) {\n        return Ember.get(this, 'flatpickrShortDate.firstObject').getTime();\n      }\n\n      return null;\n    }),\n    results: Object.freeze([]),\n    availableLocales: Ember.computed(function () {\n      return [{\n        id: 'cs',\n        name: 'Česky'\n      }, {\n        id: 'de',\n        name: 'Deutsch'\n      }, {\n        id: 'es',\n        name: 'Español'\n      }, {\n        id: 'en',\n        name: 'English'\n      }, {\n        id: 'it',\n        name: 'Italiano'\n      }, {\n        id: 'pl',\n        name: 'Polski'\n      }, {\n        id: 'tr',\n        name: 'Türkçe'\n      }];\n    }),\n    availableTimeZones: Ember.computed(function () {\n      return this.localeTimezoneHolder.supportedTimeZones().map(ianaLocale => {\n        return {\n          id: ianaLocale,\n          name: ianaLocale.split('/')[1]\n        };\n      });\n    }),\n    timeZoneOffsetForTimeZoneInput: null,\n    timeZoneOffsetRelativeToPoland: null,\n\n    // Initialize with the current date\n    init() {\n      this._super(...arguments);\n\n      const now = new Date();\n      Ember.set(this, 'testDate', now);\n      Ember.set(this, 'dateInput', now.toISOString().substring(0, 16)); // Format for datetime-local input\n\n      Ember.set(this, 'autoUpdateEnabled', true); // Default to auto-update enabled\n\n      this.runAllTests();\n\n      this._startAutoUpdate();\n    },\n\n    willDestroy() {\n      this._super(...arguments);\n\n      this._stopAutoUpdate();\n    },\n\n    _startAutoUpdate() {\n      if (Ember.get(this, 'autoUpdateEnabled')) {\n        // Create a timer that updates the date every second\n        const timer = Ember.run.later(this, function () {\n          this.setToNow();\n\n          this._startAutoUpdate(); // Schedule the next update\n\n        }, 1000);\n        Ember.set(this, 'autoUpdateTimer', timer);\n      }\n    },\n\n    _stopAutoUpdate() {\n      const timer = Ember.get(this, 'autoUpdateTimer');\n\n      if (timer) {\n        Ember.run.cancel(timer);\n        Ember.set(this, 'autoUpdateTimer', null);\n      }\n    },\n\n    toggleAutoUpdate() {\n      const currentState = Ember.get(this, 'autoUpdateEnabled');\n      Ember.set(this, 'autoUpdateEnabled', !currentState);\n\n      if (!currentState) {\n        this._startAutoUpdate();\n      } else {\n        this._stopAutoUpdate();\n      }\n    },\n\n    updateDate(event) {\n      Ember.set(this, 'dateInput', event.target.value);\n      Ember.set(this, 'testDate', new Date(event.target.value));\n    },\n\n    updateLocale(locale) {\n      Ember.set(this, 'localeInput', locale.id);\n    },\n\n    updateTimeZone(tz) {\n      Ember.set(this, 'timeZoneInput', tz.id);\n    },\n\n    updateFallback(event) {\n      Ember.set(this, 'fallbackInput', event.target.value);\n    },\n\n    setToNow() {\n      const now = new Date();\n      Ember.set(this, 'dateInput', now.toISOString().substring(0, 16));\n      Ember.set(this, 'testDate', now);\n      this.runAllTests();\n    },\n\n    setToInvalidDate() {\n      Ember.set(this, 'dateInput', 'Not a date');\n      Ember.set(this, 'testDate', new Date(Ember.get(this, 'dateInput')));\n      this.runAllTests();\n    },\n\n    setToPastDate() {\n      const pastDate = new Date();\n      pastDate.setFullYear(pastDate.getFullYear() - 1);\n      Ember.set(this, 'dateInput', pastDate.toISOString().substring(0, 16));\n      Ember.set(this, 'testDate', pastDate);\n      this.runAllTests();\n    },\n\n    setToFutureDate() {\n      const futureDate = new Date();\n      futureDate.setFullYear(futureDate.getFullYear() + 1);\n      Ember.set(this, 'dateInput', futureDate.toISOString().substring(0, 16));\n      Ember.set(this, 'testDate', futureDate);\n      this.runAllTests();\n    },\n\n    runAllTests() {\n      // Create options object based on user inputs\n      const options = {};\n\n      if (Ember.get(this, 'localeInput')) {\n        options.locale = Ember.get(this, 'localeInput');\n      }\n\n      if (Ember.get(this, 'timeZoneInput')) {\n        options.timeZone = Ember.get(this, 'timeZoneInput');\n      }\n\n      Ember.set(this, 'timeZoneOffsetForTimeZoneInput', (0, _getOffset.getOffset)(Ember.get(this, 'timeZoneInput') || this.localeTimezoneHolder.timeZone));\n      Ember.set(this, 'timeZoneOffsetRelativeToPoland', (0, _getOffsetRelativeTo.getOffsetRelativeTo)(Ember.get(this, 'timeZoneInput') || this.localeTimezoneHolder.timeZone, 'Europe/Warsaw')); // Run all formatting tests and collect results\n\n      const results = [{\n        name: 'Full Date Time',\n        method: 'formatFullDateTime',\n        result: this.formatWithMethod('formatFullDateTime', options)\n      }, {\n        name: 'Full Date',\n        method: 'formatFullDate',\n        result: this.formatWithMethod('formatFullDate', options)\n      }, {\n        name: 'Medium Date',\n        method: 'formatMediumDate',\n        result: this.formatWithMethod('formatMediumDate', options)\n      }, {\n        name: 'Short Date',\n        method: 'formatShortDate',\n        result: this.formatWithMethod('formatShortDate', options)\n      }, {\n        name: 'Full Time',\n        method: 'formatFullTime',\n        result: this.formatWithMethod('formatFullTime', options)\n      }, {\n        name: 'Short Time',\n        method: 'formatShortTime',\n        result: this.formatWithMethod('formatShortTime', options)\n      }, {\n        name: 'Custom (Month/Year)',\n        method: 'formatCustom',\n        result: Ember.get(this, 'dateFormatterService').formatCustom(Ember.get(this, 'testDate'), {\n          month: 'long',\n          year: 'numeric'\n        }, options)\n      }, {\n        name: 'Custom (Weekday)',\n        method: 'formatCustom',\n        result: Ember.get(this, 'dateFormatterService').formatCustom(Ember.get(this, 'testDate'), {\n          weekday: 'long'\n        }, options)\n      }, {\n        name: 'Custom (24h Time)',\n        method: 'formatCustom',\n        result: Ember.get(this, 'dateFormatterService').formatCustom(Ember.get(this, 'testDate'), {\n          hour: '2-digit',\n          minute: '2-digit',\n          second: '2-digit',\n          hourCycle: 'h23'\n        }, options)\n      }]; // Add helper examples\n\n      results.push({\n        name: 'Helper Example (Full)',\n        method: 'my-format-date helper',\n        result: this.getHelperSyntax('full')\n      });\n      results.push({\n        name: 'Helper Example (Custom)',\n        method: 'my-format-date helper',\n        result: this.getHelperSyntax('custom')\n      });\n      Ember.set(this, 'results', results);\n    },\n\n    formatWithMethod(methodName, options) {\n      // Call the method on the dateFormatter service and apply fallback\n      return Ember.get(this, 'dateFormatterService')[methodName](Ember.get(this, 'testDate'), options);\n    },\n\n    getHelperSyntax(style) {\n      // Generate example helper syntax with current settings\n      let syntax = `{{my-format-date date '${style}'`;\n\n      if (Ember.get(this, 'localeInput')) {\n        syntax += ` locale=\"${Ember.get(this, 'localeInput')}\"`;\n      }\n\n      if (Ember.get(this, 'timeZoneInput')) {\n        syntax += ` timeZone=\"${Ember.get(this, 'timeZoneInput')}\"`;\n      }\n\n      if (Ember.get(this, 'fallbackInput') !== 'Invalid Date') {\n        syntax += ` fallback=\"${Ember.get(this, 'fallbackInput')}\"`;\n      }\n\n      if (style === 'custom') {\n        syntax += ' year=\"numeric\" month=\"long\" day=\"numeric\"';\n      }\n\n      syntax += '}}';\n      return syntax;\n    },\n\n    setGlobalLocale(locale) {\n      Ember.get(this, 'localeTimezoneHolder').setLocale(locale);\n      this.runAllTests();\n    },\n\n    setGlobalTimeZone(timeZone) {\n      Ember.get(this, 'localeTimezoneHolder').setTimeZone(timeZone.id);\n      this.runAllTests();\n    },\n\n    actions: {\n      updateDate(date) {\n        this.updateDate(date);\n\n        if (Ember.get(this, 'autoUpdateEnabled')) {\n          this.toggleAutoUpdate();\n        }\n      },\n\n      updateLocale(locale) {\n        this.updateLocale(locale);\n      },\n\n      updateTimeZone(tz) {\n        this.updateTimeZone(tz);\n      },\n\n      updateFallback(fallback) {\n        this.updateFallback(fallback);\n      },\n\n      setToNow() {\n        this.setToNow();\n      },\n\n      setToInvalidDate() {\n        this.setToInvalidDate();\n\n        if (Ember.get(this, 'autoUpdateEnabled')) {\n          this.toggleAutoUpdate();\n        }\n      },\n\n      setToPastDate() {\n        this.setToPastDate();\n      },\n\n      setToFutureDate() {\n        this.setToFutureDate();\n      },\n\n      runAllTests() {\n        this.runAllTests();\n      },\n\n      setGlobalLocale(locale) {\n        this.setGlobalLocale(locale);\n      },\n\n      setGlobalTimeZone(timeZone) {\n        this.setGlobalTimeZone(timeZone);\n      },\n\n      toggleAutoUpdate() {\n        this.toggleAutoUpdate();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/date-formatter-test/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"VsbHZ7ix\",\n    \"block\": \"{\\\"symbols\\\":[\\\"result\\\",\\\"tz\\\",\\\"localeOption\\\",\\\"tz\\\",\\\"locale\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"date-formatter-test\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"Ustawienia dat i stref czasowych oraz testy formatowania\\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"test-form\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-section\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h3\\\"],[9],[0,\\\"Przełączniki lokalne\\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"test-date\\\"],[9],[0,\\\"Data testowa:\\\"],[10],[0,\\\"\\\\n\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"auto-update-control\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"autoUpdateEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[23,[\\\"results\\\",\\\"firstObject\\\",\\\"result\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"input\\\"],[11,\\\"id\\\",\\\"test-date\\\"],[12,\\\"value\\\",[21,\\\"dateInput\\\"]],[12,\\\"onchange\\\",[27,\\\"action\\\",[[22,0,[]],\\\"updateDate\\\"],null]],[12,\\\"disabled\\\",[21,\\\"autoUpdateEnabled\\\"]],[11,\\\"type\\\",\\\"datetime-local\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[7,\\\"button\\\"],[12,\\\"class\\\",[28,[\\\"auto-update-toggle \\\",[27,\\\"if\\\",[[23,[\\\"autoUpdateEnabled\\\"]],\\\"active\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"toggleAutoUpdate\\\"],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"autoUpdateEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            Wyłącz Auto-Update\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            Włącz Auto-Update\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setToNow\\\"],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"Ustaw obecną datę\\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setToInvalidDate\\\"],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"Ustaw błędną date\\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"locale-override\\\"],[9],[0,\\\"Nadpisz język (Locale):\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"triggerClass\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"onchange\\\"],[\\\"locale-override\\\",\\\"form-control\\\",[27,\\\"find-by\\\",[\\\"id\\\",[23,[\\\"localeInput\\\"]],[23,[\\\"availableLocales\\\"]]],null],[23,[\\\"availableLocales\\\"]],true,\\\"name\\\",[27,\\\"action\\\",[[22,0,[]],\\\"updateLocale\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,5,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"timezone-override\\\"],[9],[0,\\\"Nadpisz strefę czasową:\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"triggerClass\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"onchange\\\"],[\\\"timezone-override\\\",\\\"form-control\\\",[27,\\\"find-by\\\",[\\\"id\\\",[23,[\\\"timeZoneInput\\\"]],[23,[\\\"availableTimeZones\\\"]]],null],[23,[\\\"availableTimeZones\\\"]],true,\\\"name\\\",[27,\\\"action\\\",[[22,0,[]],\\\"updateTimeZone\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,4,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"fallback-input\\\"],[9],[0,\\\"Fallback Text:\\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"id\\\",\\\"value\\\",\\\"class\\\"],[\\\"fallback-input\\\",[23,[\\\"fallbackInput\\\"]],\\\"form-control\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-action\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"primary\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"runAllTests\\\"],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    Przetestuj formatowanie\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-section\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h3\\\"],[9],[0,\\\"Ustawienia globalne (localeTimezoneHolder)\\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[9],[0,\\\"Obecny język: \\\"],[7,\\\"strong\\\"],[9],[1,[23,[\\\"localeTimezoneHolder\\\",\\\"locale\\\"]],false],[10],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button-group\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"availableLocales\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"button\\\"],[12,\\\"class\\\",[28,[\\\"small \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"localeTimezoneHolder\\\",\\\"locale\\\"]],[22,3,[\\\"id\\\"]]],null],\\\"active\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setGlobalLocale\\\",[22,3,[\\\"id\\\"]]],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,3,[\\\"name\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[9],[0,\\\"Obecna strefa czasowa: \\\"],[7,\\\"strong\\\"],[9],[1,[23,[\\\"localeTimezoneHolder\\\",\\\"timeZone\\\"]],false],[10],[10],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"text-danger\\\"],[9],[7,\\\"small\\\"],[9],[0,\\\"Uwaga! Zmieniasz na własne ryzyko bo jeszcze nie wszystko jest do tego dostosowane!\\\"],[10],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"triggerClass\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"onchange\\\"],[\\\"timezone-override\\\",\\\"form-control\\\",[27,\\\"find-by\\\",[\\\"id\\\",[23,[\\\"localeTimezoneHolder\\\",\\\"timeZone\\\"]],[23,[\\\"availableTimeZones\\\"]]],null],[23,[\\\"availableTimeZones\\\"]],true,\\\"name\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setGlobalTimeZone\\\"],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,2,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"results-section\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[9],[0,\\\"Formatowanie daty i czasu\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"results-table\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"Typ formatu\\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"Metoda\\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"Wynik\\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[9],[1,[22,1,[\\\"name\\\"]],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[9],[7,\\\"code\\\"],[9],[1,[22,1,[\\\"method\\\"]],false],[10],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"result-value\\\"],[9],[1,[22,1,[\\\"result\\\"]],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"results-section\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[9],[0,\\\"Przesunięcie czasowe\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"results-table\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"Strefa czasowa\\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"Przesunięcie względem aktualnego czasu UTC [min]\\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"Przesunięcie względem aktualnego czasu Polski [min]\\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"timeZoneInput\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[21,\\\"timeZoneInput\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"get\\\",[[27,\\\"find-by\\\",[\\\"id\\\",[23,[\\\"localeTimezoneHolder\\\",\\\"timeZone\\\"]],[23,[\\\"availableTimeZones\\\"]]],null],\\\"id\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[9],[7,\\\"code\\\"],[9],[1,[21,\\\"timeZoneOffsetForTimeZoneInput\\\"],false],[10],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[9],[7,\\\"code\\\"],[9],[1,[21,\\\"timeZoneOffsetRelativeToPoland\\\"],false],[10],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"results-section\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[9],[0,\\\"Ember Flatpickr\\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                Default date time\\\\n                \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"disabled\\\",\\\"formatType\\\",\\\"class\\\"],[[23,[\\\"flatpickrDate\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"flatpickrDate\\\"]]],null]],null],[23,[\\\"fromDisabled\\\"]],\\\"defaultDateTime\\\",\\\"form-control date-chooser\\\"]]],false],[0,\\\"\\\\n                Date obj: \\\"],[1,[21,\\\"flatpickrDate\\\"],false],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    Date obj timestamp: \\\"],[1,[21,\\\"flatpickrDateTimestamp\\\"],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                Short date\\\\n                \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"disabled\\\",\\\"formatType\\\",\\\"class\\\"],[[23,[\\\"flatpickrShortDate\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"flatpickrShortDate\\\"]]],null]],null],[23,[\\\"fromDisabled\\\"]],\\\"shortDate\\\",\\\"form-control date-chooser\\\"]]],false],[0,\\\"\\\\n                Date obj: \\\"],[1,[21,\\\"flatpickrShortDate\\\"],false],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    Date obj timestamp: \\\"],[1,[21,\\\"flatpickrShortDateTimestamp\\\"],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/date-formatter-test/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/delivery-panel/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    intl: Ember.inject.service(),\n    init: function () {\n      this._super(...arguments);\n    },\n    deliveryTitle: Ember.computed('delivery.{deliverySetting.autoGenerateDeliveryNumber,deliveryNumber,' + 'loadStep.isInWarehouse,loadStep.warehouse.nameInAppropriateLanguage,loadStep.address.recipient,' + 'unloadStep.isInWarehouse,unloadStep.warehouse.nameInAppropriateLanguage,unloadStep.address.recipient}', function () {\n      const delivery = this.get('delivery');\n      const deliveryLabel = this.get('intl').t('delivery.label');\n      const isAutoGenerateDeliveryNumberEnabled = delivery.get('deliverySetting.autoGenerateDeliveryNumber');\n      const loadStep = delivery.get('loadStep');\n      const unloadStep = delivery.get('unloadStep');\n      const loadStepName = loadStep.get('isInWarehouse') ? loadStep.get('warehouse.nameInAppropriateLanguage') : loadStep.get('address.recipient');\n      const unloadStepName = unloadStep.get('isInWarehouse') ? unloadStep.get('warehouse.nameInAppropriateLanguage') : unloadStep.get('address.recipient');\n\n      if (!isAutoGenerateDeliveryNumberEnabled) {\n        return `${deliveryLabel} ${delivery.deliveryNumber} - ${loadStepName} - ${unloadStepName}`;\n      } else {\n        return `${deliveryLabel} - ${loadStepName} - ${unloadStepName}`;\n      }\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/delivery-panel/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"fLozhnXo\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"expandable-panel\\\",null,[[\\\"title\\\",\\\"componentName\\\",\\\"objectId\\\"],[[23,[\\\"deliveryTitle\\\"]],\\\"transport-delivery-section\\\",[23,[\\\"delivery\\\",\\\"id\\\"]]]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"transport/delivery-section\\\",null,[[\\\"transport\\\",\\\"delivery\\\",\\\"disabled\\\",\\\"isInTransport\\\",\\\"transportType\\\",\\\"packageTypes\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"delivery\\\"]],[23,[\\\"delivery\\\",\\\"isFromSap\\\"]],true,[23,[\\\"transport\\\",\\\"transportType\\\"]],[23,[\\\"packageTypes\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/delivery-panel/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/documents-applies/document-form/component\", [\"exports\", \"apollo/mixins/section-mixin\"], function (_exports, _sectionMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_sectionMixin.default, {\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    language: Ember.computed(function () {\n      return this.get('intl.locale')[0];\n    }),\n    currencies: Ember.computed('', function () {\n      return this.get('store').peekAll('currency');\n    }),\n    section: Ember.computed('document', function () {\n      return this.get('document');\n    }),\n    isEditionDisabled: Ember.computed('section.id', 'section.canBeUpdated', function () {\n      if (!this.get('section.id')) {\n        return false;\n      }\n\n      return !this.get('section.canBeUpdated');\n    }),\n    documentTypeGroupName: Ember.computed('document.documentType', function () {\n      return this.get('document.documentType.groupName');\n    }),\n    shouldShowDocumentNumber: Ember.computed('document.number', 'document.state', function () {\n      const state = this.get('document.state');\n      return state !== 'ARCHIVED' || state === 'ARCHIVED' && !!this.get('document.number');\n    }),\n    actions: {\n      showModal(templateName, model) {\n        this.set('action', 'showModal');\n        this.sendAction('action', templateName, model);\n      },\n\n      hideModal() {\n        this.set('action', 'hideModal');\n        this.sendAction('action');\n      },\n\n      setDocumentType(id) {\n        const documentType = this.get('documentTypes').findBy('id', id);\n        this.get('document').set('documentType', documentType);\n      },\n\n      setExpirationDate(dateValues) {\n        Ember.run.next(() => {\n          this.get('document').set('expirationDate', dateValues[0]);\n        });\n      },\n\n      setExpirationDateFrom(dateValues) {\n        Ember.run.next(() => {\n          this.get('document').set('expirationDateFrom', dateValues[0]);\n        });\n      },\n\n      save() {\n        const self = this;\n        this.set('savingInProgress', true);\n\n        if (!this.get('document').validate()) {\n          console.debug('Document did not pass validation.');\n          self.set('savingInProgress', false);\n          return;\n        }\n\n        this.get('document').save().then(savedDocument => {\n          console.log(`Document ${savedDocument.get('id')} has been saved.`);\n          self.setProperties({\n            savingInProgress: false,\n            errors: []\n          });\n          self.send('hideModal');\n          self.send('refreshSection', savedDocument);\n        }).catch(response => {\n          self.setProperties({\n            savingInProgress: false,\n            errors: response.errors\n          });\n        });\n      },\n\n      cancel() {\n        this.get('document').rollback();\n        this.set('errors', []);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/documents-applies/document-form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"vLvikGNK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"c\\\",\\\"documentType\\\"],\\\"statements\\\":[[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal section row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\"],[11,\\\"hidden\\\",\\\"\\\"],[12,\\\"data-field-name\\\",[28,[\\\"document-id-\\\",[23,[\\\"document\\\",\\\"id\\\"]]]]],[9],[0,\\\"document-id\\\"],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"section.state.label\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8 col-xs-12 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"sections/section-state\\\",null,[[\\\"section\\\"],[[23,[\\\"document\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"shouldShowDocumentNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[12,\\\"for\\\",[28,[[27,\\\"concat\\\",[\\\"document-number-\\\",[23,[\\\"document\\\",\\\"id\\\"]]],null]]]],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"document.\\\",[23,[\\\"document\\\",\\\"groupName\\\"]],\\\".number\\\"],null]],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"number\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control focus-input\\\",[27,\\\"concat\\\",[\\\"document-number-\\\",[23,[\\\"document\\\",\\\"id\\\"]]],null],[23,[\\\"document\\\",\\\"number\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"document\\\"]],\\\"number\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"documentTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[12,\\\"for\\\",[28,[[27,\\\"concat\\\",[\\\"document-type-select-\\\",[23,[\\\"document\\\",\\\"id\\\"]]],null]]]],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"document.documentType\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"documentType\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"select\\\"],[11,\\\"name\\\",\\\"documentType\\\"],[12,\\\"id\\\",[28,[[27,\\\"concat\\\",[\\\"document-type-select-\\\",[23,[\\\"document\\\",\\\"id\\\"]]],null]]]],[11,\\\"class\\\",\\\"form-control\\\"],[12,\\\"onchange\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setDocumentType\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12,\\\"disabled\\\",[21,\\\"isEditionDisabled\\\"]],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"document.documentType\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"documentTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"option\\\"],[12,\\\"value\\\",[28,[[22,2,[\\\"id\\\"]]]]],[12,\\\"selected\\\",[27,\\\"eq\\\",[[23,[\\\"document\\\",\\\"documentType\\\",\\\"id\\\"]],[22,2,[\\\"id\\\"]]],null]],[9],[0,\\\"\\\\n\\\\n                                \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"sectionType.\\\",[22,2,[\\\"name\\\"]]],null]],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"documentType\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 no-padding\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"document\\\"]],\\\"documentType\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"documentTypeGroupName\\\"]],\\\"MAPPING\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[12,\\\"for\\\",[28,[[27,\\\"concat\\\",[\\\"document-expiration-date-from-\\\",[23,[\\\"document\\\",\\\"id\\\"]]],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"document.\\\",[23,[\\\"document\\\",\\\"groupName\\\"]],\\\".expirationDateFrom\\\"],null]],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-4 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"expirationDateFrom\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"expirationDateFrom\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"disabled\\\",\\\"formatType\\\",\\\"class\\\",\\\"nativeFlatpickrOptions\\\"],[[27,\\\"readonly\\\",[[23,[\\\"document\\\",\\\"expirationDateFrom\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"setExpirationDateFrom\\\"],null],[23,[\\\"isEditionDisabled\\\"]],\\\"shortDate\\\",\\\"form-control\\\",[27,\\\"hash\\\",null,[[\\\"minuteIncrement\\\",\\\"static\\\"],[[23,[\\\"timeWindowOffsetInterval\\\"]],false]]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"expirationDateFrom\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 no-padding\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"document\\\"]],\\\"expirationDateFrom\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"expirationDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[12,\\\"for\\\",[28,[[27,\\\"concat\\\",[\\\"document-expiration-date-\\\",[23,[\\\"document\\\",\\\"id\\\"]]],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"document.\\\",[23,[\\\"document\\\",\\\"groupName\\\"]],\\\".expirationDate\\\"],null]],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-4 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"expirationDate\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"expirationDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"disabled\\\",\\\"formatType\\\",\\\"class\\\",\\\"nativeFlatpickrOptions\\\"],[[27,\\\"readonly\\\",[[23,[\\\"document\\\",\\\"expirationDate\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"setExpirationDate\\\"],null],[23,[\\\"isEditionDisabled\\\"]],\\\"shortDate\\\",\\\"form-control\\\",[27,\\\"hash\\\",null,[[\\\"minuteIncrement\\\",\\\"static\\\"],[[23,[\\\"timeWindowOffsetInterval\\\"]],false]]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"expirationDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 no-padding\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"document\\\"]],\\\"expirationDate\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"document\\\",\\\"state\\\"]],[23,[\\\"document\\\",\\\"STATES\\\",\\\"EXPIRED\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-8 col-xs-offset-4 padding-top\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"errors\\\"],[9],[1,[27,\\\"t\\\",[\\\"document.expired\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[27,\\\"eq\\\",[[23,[\\\"document\\\",\\\"howManyDaysBeforeDocumentExpirationDateCarrierShouldBeBlocked\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"span\\\"],[9],[1,[27,\\\"t\\\",[\\\"document.expirationShiftInfo\\\"],[[\\\"days\\\",\\\"date\\\"],[[23,[\\\"document\\\",\\\"howManyDaysBeforeDocumentExpirationDateCarrierShouldBeBlocked\\\"]],[23,[\\\"document\\\",\\\"calculatedExpirationDate\\\"]]]]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"isInsurance\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[12,\\\"for\\\",[28,[[27,\\\"concat\\\",[\\\"document-amount-input-\\\",[23,[\\\"document\\\",\\\"id\\\"]]],null]]]],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"document.amount\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8 col-xs-12 no-padding\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-row\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-7 col-xs-8 \\\",[27,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"amount\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"pattern\\\",\\\"min\\\",\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"placeholder\\\"],[\\\"number\\\",\\\"5\\\",\\\"^[0-9]+\\\\\\\\.[0-9][0-9]$\\\",\\\"0\\\",\\\"form-control\\\",[27,\\\"concat\\\",[\\\"document-amount-input-\\\",[23,[\\\"document\\\",\\\"id\\\"]]],null],[23,[\\\"document\\\",\\\"amount\\\"]],[23,[\\\"isEditionDisabled\\\"]],[27,\\\"t\\\",[\\\"document.amount\\\"],null]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"document\\\"]],\\\"amount\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-5 col-xs-4 \\\",[27,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"currency\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"document\\\",\\\"currency\\\"]]],null],[23,[\\\"currencies\\\"]],true,\\\"symbol\\\",[27,\\\"t\\\",[\\\"common.currency\\\"],null],[23,[\\\"isEditionDisabled\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"document\\\",\\\"currency\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[22,1,[\\\"symbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"document\\\"]],\\\"currency\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[12,\\\"for\\\",[28,[[27,\\\"concat\\\",[\\\"document-scope-\\\",[23,[\\\"document\\\",\\\"id\\\"]]],null]]]],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"document.scopeOfInsurance\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"scopeOfInsurance\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[27,\\\"concat\\\",[\\\"document-scope-\\\",[23,[\\\"document\\\",\\\"id\\\"]]],null],[23,[\\\"document\\\",\\\"scopeOfInsurance\\\"]],[27,\\\"or\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"document\\\",\\\"isDomestic\\\"]]],null]]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"document\\\"]],\\\"scopeOfInsurance\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"document\\\",\\\"isActive\\\"]],[27,\\\"not\\\",[[23,[\\\"modal\\\"]]],null]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"files\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"document.files\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-warning\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"document.noFilesWarning\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"files\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.documents.dragAndDrop\\\"],null],false],[0,\\\": \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"sections/upload-file\\\",null,[[\\\"section\\\",\\\"files\\\",\\\"fileType\\\",\\\"elementZone\\\"],[[23,[\\\"section\\\"]],[23,[\\\"document\\\",\\\"files\\\"]],[23,[\\\"document\\\",\\\"groupName\\\"]],[22,0,[\\\"element\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"isActive\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 form-buttons\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"success\\\"],[9],[1,[21,\\\"successMessage\\\"],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"canBeConfirmed\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"operationInProgress\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"common.operationInProgress\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"accept-document\\\"],[11,\\\"class\\\",\\\"btn btn-success\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"section.accept\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"confirm\\\",[23,[\\\"document\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"canBeRejected\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"sections/reject-section-button\\\",null,[[\\\"section\\\"],[[23,[\\\"document\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"canBeUpdated\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"update-document\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"section.update\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"update\\\",[23,[\\\"document\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_APPLY_SECTIONS\\\"],null]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"document.disableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"disable\\\",[23,[\\\"document\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"fa-icon\\\",[\\\"ban\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.disable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons margin-top col-xs-12\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"savingInProgress\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"document.\\\",[23,[\\\"document\\\",\\\"groupName\\\"]],\\\".savingInProgress\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"document.\\\",[23,[\\\"document\\\",\\\"groupName\\\"]],\\\".save\\\"],null]],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/documents-applies/document-form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/documents-applies/show-document-button/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: 'span',\n    store: Ember.inject.service(),\n    actions: {\n      showDocumentForm(groupName) {\n        const partnership = this.get('partnership');\n        const isInsurance = groupName === 'INSURANCE';\n        let currency;\n\n        if (isInsurance) {\n          const countryIban = this.get('partnership.contractorCompany.country.ibanSymbol');\n          const defaultCurrencySymbol = countryIban === 'PL' ? 'PLN' : 'EUR';\n          currency = this.get('store').peekAll('currency').findBy('symbol', defaultCurrencySymbol);\n        }\n\n        const documentTypes = this.get('documentTypes');\n        const documentType = this.get('documentType') || documentTypes.get('firstObject');\n        const suggestedExpirationDate = moment().add(1, 'year').startOf('day').toDate();\n        const suggestedExpirationDateFrom = isInsurance ? moment().startOf('day').toDate() : null;\n        const scopeOfInsurance = this.get('documentType.ibanRestriction') === 'PL' ? 'Polska' : '';\n        const documentModel = this.get('store').createRecord('document', {\n          partnership: partnership,\n          documentType: documentType,\n          expirationDate: suggestedExpirationDate,\n          expirationDateFrom: suggestedExpirationDateFrom,\n          currency: currency,\n          scopeOfInsurance: scopeOfInsurance\n        });\n        const model = {\n          documentTypes: documentTypes,\n          document: documentModel\n        };\n        this.set('action', 'showModal');\n        this.sendAction('action', 'documents.modals.document-modal', model);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/documents-applies/show-document-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"9OlffuW2\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"show-document-button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"document.\\\",[23,[\\\"groupName\\\"]],\\\".create\\\"],null]],null],false],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showDocumentForm\\\",[23,[\\\"groupName\\\"]]]],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/documents-applies/show-document-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/documents-transport/add-document-button/component\", [\"exports\", \"apollo/mixins/attachment-mixin\"], function (_exports, _attachmentMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Component.extend(_attachmentMixin.default, {\n    sessionAccount: service('session-account'),\n    showAddDocumentButton: Ember.computed('transport.transportType', function () {\n      if (!this.get('transport')) {\n        return false;\n      }\n\n      return this.get('transport').actionCanBePerformed ? this.get('transport').actionCanBePerformed('ADD_DOCUMENTS') : this.get('transport.content').actionCanBePerformed('ADD_DOCUMENTS');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/documents-transport/add-document-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"xOa6mCQV\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-lg-12\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.documents.dragAndDrop\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"additionalAddFileButton\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showAddDocumentButton\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"browserOld\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"transport.noFilesForOldBrowsers\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"file-upload\\\",null,[[\\\"transport\\\",\\\"resourceUrl\\\",\\\"dropZone\\\"],[[23,[\\\"transport\\\"]],\\\"/files/\\\",[22,0,[\\\"element\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"btn btn-primary btn-file\\\"],[9],[0,\\\"\\\\n                                    \\\"],[7,\\\"input\\\"],[11,\\\"id\\\",\\\"upload-files\\\"],[12,\\\"onchange\\\",[27,\\\"action\\\",[[22,0,[]],\\\"addFiles\\\"],null]],[11,\\\"multiple\\\",\\\"multiple\\\"],[11,\\\"type\\\",\\\"file\\\"],[9],[10],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"common.uploadFile\\\"],null],false],[0,\\\"...\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/documents-transport/add-document-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/driver-auto-complete/component\", [\"exports\", \"apollo/pods/components/custom-auto-complete/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _component.default.extend({\n    valueProperty: 'id',\n    urlAddress: '/driver/find',\n    field: 'driverName',\n    options: Ember.A([]),\n    suggestions: Ember.computed('inputVal', 'options.[]', function () {\n      const inputVal = this.get('inputVal') || '';\n      return this.get('options').filter(function (item) {\n        if (inputVal.length > 0 && item.driverName && item.driverName.length > 0) {\n          return item.driverName.toLowerCase().indexOf(inputVal.toLowerCase()) > -1;\n        }\n\n        return item;\n      });\n    }),\n    optionsToMatch: Ember.computed('options.[]', function () {\n      const caseInsensitiveOptions = [];\n      this.get('options').forEach(function (item) {\n        const value = item.driverName;\n        caseInsensitiveOptions.push(value);\n        caseInsensitiveOptions.push(value.toLowerCase());\n      });\n      return caseInsensitiveOptions;\n    }),\n    actions: {\n      selectItem: function (item) {\n        if (!item) {\n          return;\n        }\n\n        this.set('selectedFromList', true);\n        this.set('selectedValue', item.driverName);\n        this.sendAction('selectItem', item);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/drivers/drivers-list/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    columns: Ember.computed(function () {\n      return [{\n        propertyName: 'driverName',\n        title: this.get('intl').t('driver.name'),\n        className: 'column-driver-name'\n      }, {\n        propertyName: 'phoneNumber',\n        title: this.get('intl').t('driver.phoneNumber'),\n        className: 'column-phone-number'\n      }, {\n        propertyName: 'ibanSymbol',\n        title: this.get('intl').t('driver.country'),\n        className: 'column-country'\n      }, {\n        propertyName: 'documentType',\n        title: this.get('intl').t('driver.documentType.label'),\n        className: 'column-document-type',\n        filterWithSelect: true,\n        predefinedFilterOptions: [{\n          value: 'ID_CARD',\n          label: this.get('intl').t('driver.documentType.ID_CARD')\n        }, {\n          value: 'PASSPORT',\n          label: this.get('intl').t('driver.documentType.PASSPORT')\n        }]\n      }, {\n        propertyName: 'documentNumber',\n        title: this.get('intl').t('driver.documentNumber'),\n        className: 'column-document-number'\n      }, {\n        propertyName: 'lastUpdated',\n        title: this.get('intl').t('driver.lastUpdated'),\n        className: 'column-last-updated',\n        componentForFilterCell: 'server-table/filters/date-filter'\n      }];\n    }),\n    actions: {\n      openAddDriverModal(company, driver) {\n        if (!driver) {\n          driver = this.get('store').createRecord('driver', {\n            documentType: 'ID_CARD',\n            enabled: true,\n            owner: company,\n            country: this.get('store').peekAll('country').filterBy('ibanSymbol', 'PL').get('firstObject')\n          });\n        }\n\n        this.set('action', 'showModal');\n        this.sendAction('action', 'companies.modals.add-driver', driver);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/drivers/drivers-list/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"hFdUP13h\",\n    \"block\": \"{\\\"symbols\\\":[\\\"mt\\\",\\\"footer\\\",\\\"table\\\",\\\"body\\\",\\\"driver\\\",\\\"index\\\",\\\"header\\\"],\\\"statements\\\":[[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"no-margin\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"driver.label\\\"],null],false],[0,\\\" (\\\"],[1,[23,[\\\"drivers\\\",\\\"meta\\\",\\\"itemsCount\\\"]],false],[0,\\\")\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_DRIVER\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-right\\\"],[9],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"openAddDriverModal\\\",[23,[\\\"company\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"server-table\\\",null,[[\\\"clear\\\",\\\"data\\\",\\\"saveSuccessMessage\\\",\\\"columns\\\"],[[23,[\\\"clear\\\"]],[23,[\\\"drivers\\\"]],[23,[\\\"saveSuccessMessage\\\"]],[23,[\\\"columns\\\"]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom padding-bottom-big\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[22,1,[\\\"global-filter\\\"]],false],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-right\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"clear\\\"]]],null]],null]],[9],[1,[27,\\\"t\\\",[\\\"common.clearFilters\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"borderless-wrapper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,1,[\\\"table\\\"]],\\\"expected `mt.table` to be a contextual component but found a string. Did you mean `(component mt.table)`? ('apollo/pods/components/drivers/drivers-list/template.hbs' @ L24:C15) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,3,[\\\"header\\\"]],\\\"expected `table.header` to be a contextual component but found a string. Did you mean `(component table.header)`? ('apollo/pods/components/drivers/drivers-list/template.hbs' @ L25:C19) \\\"],null]],[[\\\"class\\\"],[\\\"companies-table-header\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,7,[\\\"row-sorting\\\"]],false],[0,\\\"\\\\n                    \\\"],[1,[22,7,[\\\"row-filtering\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,3,[\\\"body\\\"]],\\\"expected `table.body` to be a contextual component but found a string. Did you mean `(component table.body)`? ('apollo/pods/components/drivers/drivers-list/template.hbs' @ L29:C19) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,4,[\\\"visibleContent\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"driver-name\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_DRIVER\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"text-link\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[22,5,[\\\"name\\\"]],false],[0,\\\"\\\\n                                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"openAddDriverModal\\\",[23,[\\\"company\\\"]],[22,5,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[22,5,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,5,[\\\"phoneNumberPrefix\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    +\\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"phone-number-prefix\\\"],[9],[1,[22,5,[\\\"phoneNumberPrefix\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                                \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"phone-number\\\"],[9],[1,[22,5,[\\\"phoneNumber\\\"]],false],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"country\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,5,[\\\"country\\\",\\\"ibanSymbol\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"document-type\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"driver.documentType.\\\",[22,5,[\\\"documentType\\\"]]],null]],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"document-number\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,5,[\\\"documentNumber\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"last-updated\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"my-format-date\\\",[[22,5,[\\\"lastUpdated\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5,6]},null]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,1,[\\\"footer\\\"]],\\\"expected `mt.footer` to be a contextual component but found a string. Did you mean `(component mt.footer)`? ('apollo/pods/components/drivers/drivers-list/template.hbs' @ L65:C15) \\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[22,2,[\\\"pagination-numeric\\\"]],false],[0,\\\"\\\\n                \\\"],[1,[22,2,[\\\"pagination-simple\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/drivers/drivers-list/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/dummy-input-plug/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    range: Ember.computed('rows', function () {\n      let range = parseInt(this.get('rows'));\n\n      if (range === 1) {\n        return range;\n      } else {\n        range -= 2;\n      }\n\n      return range < 0 ? 0 : range;\n    }),\n    numberOfInputs: Ember.computed('rows', function () {\n      let numberOfInputs = parseInt(this.get('rows'));\n      return numberOfInputs < 0 ? 0 : numberOfInputs;\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/dummy-input-plug/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"zuvNYvnC\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"numberOfInputs\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 col-xs-12\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\"],[\\\"text\\\",\\\"form-control\\\",true]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 col-xs-12 dummy-field\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\"],[\\\"text\\\",\\\"form-control\\\",true]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"template-loop\\\",null,[[\\\"range\\\"],[[23,[\\\"range\\\"]]]],{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 dummy-field dummy-field-left\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\"],[\\\"text\\\",\\\"form-control\\\",true]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8 col-xs-12 dummy-field dummy-field-right\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\"],[\\\"text\\\",\\\"form-control\\\",true]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 col-xs-12 dummy-field\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\"],[\\\"text\\\",\\\"form-control\\\",true]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/dummy-input-plug/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/errors-alert/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({});\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/errors-alert/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"KuW6vzdg\",\n    \"block\": \"{\\\"symbols\\\":[\\\"error\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"detail\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[\\\"detail\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/errors-alert/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/expandable-panel/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    init: function () {\n      this._super(...arguments);\n\n      this.set('isOpen', this.get('defaultOpen'));\n    },\n    // eslint-disable-next-line ember/no-observers\n    performActionOnOpen: Ember.observer('isOpen', function () {\n      if (!this.get('isOpen')) {\n        return;\n      }\n\n      if (this.onOpen) {\n        this.onOpen();\n      }\n    }),\n    showErrors: Ember.computed('errors', function () {\n      if (this.get('errors') && this.get('errors').filter(error => error !== undefined).length > 0) {\n        if (!this.isOpen) {\n          // eslint-disable-next-line ember/no-side-effects\n          this.send('togglePanel');\n        }\n\n        return 'has-error';\n      } else {\n        return '';\n      }\n    }),\n    // eslint-disable-next-line ember/no-observers\n    closeSection: Ember.observer('closeAllSections', function () {\n      if (this.get('isOpen')) {\n        this.set('isOpen', false);\n      }\n    }),\n    actions: {\n      togglePanel: function () {\n        this.toggleProperty('isOpen');\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/expandable-panel/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"0B04h5HV\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[12,\\\"data-component-name\\\",[28,[[21,\\\"componentName\\\"]]]],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-heading clickable\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"togglePanel\\\"],null]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h5\\\"],[12,\\\"class\\\",[28,[[27,\\\"concat\\\",[\\\"panel-title \\\",[23,[\\\"titleClass\\\"]]],null],\\\" \\\",[21,\\\"showErrors\\\"]]]],[12,\\\"data-object-id\\\",[28,[[21,\\\"objectId\\\"]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"customIconClass\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"i\\\"],[12,\\\"class\\\",[28,[[21,\\\"customIconClass\\\"],\\\" margin-right-small\\\"]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[1,[21,\\\"title\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showNumberOfElements\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[9],[0,\\\" (\\\"],[1,[21,\\\"numberOfElements\\\"],false],[0,\\\")\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"additionalTitle\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[12,\\\"class\\\",[27,\\\"concat\\\",[\\\"pull-right \\\",[23,[\\\"additionalTitleClass\\\"]]],null]],[9],[1,[21,\\\"additionalTitle\\\"],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isOpen\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body small-padding\\\"],[9],[0,\\\"\\\\n                \\\"],[14,1],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/expandable-panel/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/field-error-message/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n\n  var _default = Ember.Component.extend({\n    intl: service(),\n    tagName: 'span',\n    attributeBindings: ['customFieldName:data-field-name'],\n    customFieldName: 'field-error-span',\n    generalErrors: ['blank', 'blankSelect', 'blankCheckbox', 'tooShort', 'tooLong', 'positiveNumber', 'positiveInteger', 'timeHour', 'noNegativeNumber', 'number', 'invalidDatesSequence', 'invalidQuantity', 'orderInTransport'],\n    messageKey: Ember.computed('modelName', 'error.attribute', 'error.message', function () {\n      if (this.get('generalErrors').some(r => this.get('error.message').indexOf(r) >= 0)) {\n        return `errors.${this.get('error.message')}`;\n      }\n\n      return `${this.get('modelName')}.errors.${this.get('error.attribute')}.${this.get('error.message')}`;\n    }),\n    errorMessage: Ember.computed('messageKey', 'error.message', function () {\n      const key = this.get('messageKey');\n\n      if (this.get('intl').exists(key)) {\n        return this.get('intl').t(key);\n      } else {\n        return this.get('error.message');\n      }\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/field-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\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"R1G7sHna\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[21,\\\"errorMessage\\\"],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/field-error-message/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/file-upload/component\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    action: '',\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    FILE_SIZE_ERROR: 'Uploaded bytes exceed file size',\n    // eslint-disable-next-line ember/no-component-lifecycle-hooks\n    didInsertElement: function () {\n      this._super(...arguments);\n\n      const self = this;\n      const token = this.get('sessionAccount').get('token');\n      const transportId = this.get('transport.id');\n      const sectionId = this.get('section.id');\n      const properId = transportId || sectionId;\n      const isFromDocsModalOrSection = this.get('isFromDocsModal') || this.get('isFromSection');\n      const dropZone = this.get('elementZone') || this.element;\n      this.$().find('.file-upload-input').attr('data-url', _environment.default.serverURL + this.get('resourceUrl')).fileupload({\n        autoUpload: true,\n        // dropZone odpowiada za element który ma nasłuchiwać\n        // eventu \"drop\" po przeciągnięciu plików na niego\n        dropZone,\n        formData: function () {\n          return [{\n            name: 'transportId',\n            value: transportId\n          }, {\n            name: 'sectionId',\n            value: sectionId\n          }, {\n            name: 'fileType',\n            value: self.get('fileType')\n          }, {\n            name: 'token',\n            value: token\n          }];\n        },\n        submit: function (e, data) {\n          if (data.files.some(it => it.size === 0)) {\n            if (isFromDocsModalOrSection) {\n              self.set('action', 'fileUploadFail');\n              self.sendAction('action', properId);\n            }\n\n            $('.progress').hide();\n            alert(self.get('intl').t('errors.emptyFile'));\n            return false;\n          }\n\n          return true;\n        },\n        progress: function (e, data) {\n          console.debug('File upload in progress..');\n\n          if (isFromDocsModalOrSection) {\n            self.set('action', 'fileUploadStarted');\n            self.sendAction('action');\n          }\n\n          const progressBar = self.$().find('.progress');\n          progressBar.show();\n          const progress = parseInt(data.loaded / data.total * 100, 10);\n          progressBar.find('.bar').css('width', progress + '%');\n        },\n        done: function () {\n          if (isFromDocsModalOrSection) {\n            self.set('action', 'fileUploadSuccess');\n            self.sendAction('action', properId);\n          }\n\n          if (!isFromDocsModalOrSection) {\n            self.get('transport').reload();\n          }\n\n          $('.progress').hide();\n        },\n        fail: function (jqXHR, textStatus) {\n          if (isFromDocsModalOrSection) {\n            self.set('action', 'fileUploadFail');\n            self.sendAction('action', properId);\n          }\n\n          $('.progress').hide();\n\n          if (textStatus.jqXHR.status === 409) {\n            alert(self.get('intl').t('errors.fileAlreadyExists'));\n            return;\n          }\n\n          if (textStatus.jqXHR.status === 413 || textStatus.messages.uploadedBytes === self.FILE_SIZE_ERROR) {\n            alert(self.get('intl').t('errors.fileTooLarge'));\n            return;\n          }\n\n          alert(self.get('intl').t('errors.fileUploadError'));\n        }\n      });\n    },\n\n    // eslint-disable-next-line ember/no-component-lifecycle-hooks\n    willDestroyElement() {\n      this._super(...arguments);\n\n      this.$().find('.file-upload-input').fileupload('destroy');\n    },\n\n    change: function (e) {\n      if (this.get('transport.id')) {\n        // walidujemy ilość przesłanych do zlecenia plików\n        const maxCountString = this.get('sessionAccount').getSettingValue('MAX_SIMULTANEOUSLY_ADDED_FILES_COUNT');\n        const maxCount = maxCountString ? Number(maxCountString) : null;\n        const filesCount = e.target.files ? e.target.files.length : 0;\n\n        if (maxCount && maxCount < filesCount) {\n          alert(this.get('intl').t('document.maxCountExceeded', {\n            maxCount\n          }));\n          return;\n        }\n      }\n\n      console.log('change ' + e);\n      const event = jQuery.Event('change');\n      event.target = e.target;\n      this.$().find('.file-upload-input').trigger(event);\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/file-upload/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"fdK/0E7W\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"file-upload-button\\\"],[11,\\\"class\\\",\\\"btn btn-default btn-file\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"common.uploadFile\\\"],null],false],[0,\\\" \\\"],[7,\\\"input\\\"],[11,\\\"class\\\",\\\"file-upload-input\\\"],[11,\\\"name\\\",\\\"files[]\\\"],[11,\\\"multiple\\\",\\\"\\\"],[11,\\\"type\\\",\\\"file\\\"],[9],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"style\\\",\\\"display: none\\\"],[11,\\\"class\\\",\\\"progress\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"bar\\\"],[11,\\\"style\\\",\\\"width: 0%;\\\"],[9],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/file-upload/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/files-server-table/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    intl: Ember.inject.service(),\n    tagName: '',\n    filteredFiles: undefined,\n    myPageSizes: Ember.computed(function () {\n      return [{\n        label: 5,\n        value: 5\n      }, {\n        label: 10,\n        value: 10\n      }, {\n        label: 20,\n        value: 20\n      }, {\n        label: 30,\n        value: 30\n      }, {\n        label: 40,\n        value: 40\n      }, {\n        label: 50,\n        value: 50\n      }];\n    }),\n    columns: Ember.computed(function () {\n      return [{\n        propertyName: 'transport',\n        title: this.get('intl').t('files.table.column.transport')\n      }, {\n        propertyName: 'transport-erp-indetifier',\n        filteredBy: 'transportErpIdentifier',\n        title: this.get('intl').t('files.table.column.erpIdentifier')\n      }, {\n        propertyName: 'transport-alt-identifier',\n        filteredBy: 'transportAltIdentifier',\n        title: this.get('intl').t('files.table.column.altIdentifier')\n      }, {\n        propertyName: 'transport-contractor',\n        filteredBy: 'transportContractor',\n        title: this.get('intl').t('files.table.column.contractor')\n      }, {\n        propertyName: 'name',\n        title: this.get('intl').t('files.table.column.name')\n      }, {\n        propertyName: 'date',\n        title: this.get('intl').t('files.table.column.fileDate'),\n        className: 'column-date',\n        filteredBy: 'dateRange',\n        componentForFilterCell: 'server-table/filters/date-range-filter'\n      }, {\n        propertyName: 'transport-load-date',\n        title: this.get('intl').t('files.table.column.transportLoadDate'),\n        className: 'column-date',\n        filteredBy: 'transportLoadDateRange',\n        componentForFilterCell: 'server-table/filters/date-range-filter'\n      }, {\n        propertyName: 'warehouse',\n        title: this.get('intl').t('files.table.column.warehouse')\n      }];\n    }),\n    actions: {\n      setFiles(files) {\n        this.set('filteredFiles', files);\n      },\n\n      saveFileSet: function () {\n        this.saveFiles(this.get('filteredFiles'));\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/files-server-table/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"HywxYECL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"mt\\\",\\\"footer\\\",\\\"table\\\",\\\"body\\\",\\\"file\\\",\\\"header\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        Lista plików\\\\n        \\\"],[7,\\\"button\\\"],[12,\\\"disabled\\\",[28,[[27,\\\"if\\\",[[23,[\\\"buttonDisabled\\\"]],\\\"disabled\\\"],null]]]],[11,\\\"data-button-name\\\",\\\"prepare-file-set\\\"],[11,\\\"class\\\",\\\"btn btn-primary pull-right\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"saveFileSet\\\"],null]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"buttonDisabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                Pobierz pliki\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"server-table\\\",null,[[\\\"onFilteredContentChanged\\\",\\\"clear\\\",\\\"data\\\",\\\"columns\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"setFiles\\\"],null],[23,[\\\"clear\\\"]],[23,[\\\"files\\\"]],[23,[\\\"columns\\\"]]]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom padding-bottom-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-left\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"clear\\\"]]],null]],null]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.clearFilters\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"borderless-wrapper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,1,[\\\"table\\\"]],\\\"expected `mt.table` to be a contextual component but found a string. Did you mean `(component mt.table)`? ('apollo/pods/components/files-server-table/template.hbs' @ L27:C11) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,3,[\\\"header\\\"]],\\\"expected `table.header` to be a contextual component but found a string. Did you mean `(component table.header)`? ('apollo/pods/components/files-server-table/template.hbs' @ L28:C15) \\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,6,[\\\"row-sorting\\\"]],false],[0,\\\"\\\\n                \\\"],[1,[22,6,[\\\"row-filtering\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,3,[\\\"body\\\"]],\\\"expected `table.body` to be a contextual component but found a string. Did you mean `(component table.body)`? ('apollo/pods/components/files-server-table/template.hbs' @ L32:C15) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,4,[\\\"visibleContent\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[11,\\\"data-field-name\\\",\\\"transport-internal-index\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,5,[\\\"transport\\\",\\\"internalIndex\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[11,\\\"data-field-name\\\",\\\"transport-erp-identifier\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,5,[\\\"transport\\\",\\\"erpIdentifier\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[11,\\\"data-field-name\\\",\\\"transport-alt-identifier\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,5,[\\\"transport\\\",\\\"altIdentifier\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[11,\\\"data-field-name\\\",\\\"transport-contractor\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,5,[\\\"transport\\\",\\\"firstContractor\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3\\\"],[11,\\\"data-field-name\\\",\\\"file-name\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,5,[\\\"name\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3\\\"],[11,\\\"data-field-name\\\",\\\"file-date-created\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"my-format-date\\\",[[22,5,[\\\"date\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3\\\"],[11,\\\"data-field-name\\\",\\\"transport-load-date\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"my-format-date\\\",[[22,5,[\\\"transport\\\",\\\"earliestTimeWindowStart\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3\\\"],[11,\\\"data-field-name\\\",\\\"warehouse\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,5,[\\\"transport\\\",\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[3]},null],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,1,[\\\"footer\\\"]],\\\"expected `mt.footer` to be a contextual component but found a string. Did you mean `(component mt.footer)`? ('apollo/pods/components/files-server-table/template.hbs' @ L63:C11) \\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,2,[\\\"size-select\\\"]],\\\"expected `footer.size-select` to be a contextual component but found a string. Did you mean `(component footer.size-select)`? ('apollo/pods/components/files-server-table/template.hbs' @ L66:C22) \\\"],null]],[[\\\"pageSizeOptions\\\"],[[23,[\\\"myPageSizes\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[22,2,[\\\"pagination-numeric\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/files-server-table/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/free-subsequent-spots/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    dateUtils: Ember.inject.service('date-utils'),\n    intl: Ember.inject.service(),\n\n    // eslint-disable-next-line ember/no-component-lifecycle-hooks\n    willDestroyElement() {\n      this._super(...arguments);\n\n      this.set('freeSubsequentSpots', Ember.A());\n      this.set('showSearchSpotsButton', false);\n    },\n\n    formattedCurrentStart: Ember.computed('', function () {\n      return this.get('dateUtils').formatDate(this.get('transport.exceptionInformation.initialStart'));\n    }),\n    sortedFreeSubsequentSpots: Ember.computed('freeSubsequentSpots.[]', function () {\n      return this.get('freeSubsequentSpots').sortBy('ramp.idx');\n    }),\n    infoAboutCurrentSpot: Ember.computed('', function () {\n      return Ember.String.htmlSafe(this.get('intl').t('freeSubsequentSpots.infoAboutCurrentSpot', {\n        currentRamp: this.get('transport.exceptionInformation.rampName'),\n        currentStart: this.get('formattedCurrentStart')\n      }));\n    }),\n    infoAboutWindowSize: Ember.computed('', function () {\n      return Ember.String.htmlSafe(this.get('intl').t('freeSubsequentSpots.infoAboutWindowSize', {\n        windowSizeInMinutes: this.get('transport.exceptionInformation.windowSizeInMinutes')\n      }));\n    }),\n    actions: {\n      createAdvice(timeWindowCandidate) {\n        this.set('freeSubsequentSpots', Ember.A());\n        this.handleClickWithSpot(timeWindowCandidate);\n      },\n\n      search(transport) {\n        this.searchForFreeSubsequentSpots(transport);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/free-subsequent-spots/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"akRwQGfG\",\n    \"block\": \"{\\\"symbols\\\":[\\\"timeWindowCandidate\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row free-subsequent-spots\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showSearchSpotsButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-info show-search-spots-btn\\\"],[11,\\\"data-button-name\\\",\\\"show-search-spots-btn\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"freeSubsequentSpots.showSearchSpotsButton\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"search\\\",[23,[\\\"transport\\\"]]]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"freeSubsequentSpots\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[9],[1,[21,\\\"infoAboutCurrentSpot\\\"],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[9],[1,[21,\\\"infoAboutWindowSize\\\"],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[9],[1,[27,\\\"t\\\",[\\\"freeSubsequentSpots.suggestionsHeader\\\"],null],false],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"table\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"sortedFreeSubsequentSpots\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"t\\\",[\\\"ramp.label\\\"],null],false],[0,\\\": \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[1,[22,1,[\\\"ramp\\\",\\\"name\\\"]],false],[10],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.hour\\\"],null],false],[0,\\\": \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"start\\\"]],\\\"defaultDateTime\\\"],null],false],[10],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-info btn-sm create-advice-btn\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"advice.add\\\"],null],false],[0,\\\"\\\\n                            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"createAdvice\\\",[22,1,[]]]],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/free-subsequent-spots/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/iframe-component/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"hSI2PId8\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"iframe\\\"],[12,\\\"id\\\",[28,[[21,\\\"title\\\"],\\\"_IFRAME\\\"]]],[12,\\\"title\\\",[28,[[21,\\\"title\\\"]]]],[12,\\\"width\\\",[28,[[21,\\\"width\\\"]]]],[12,\\\"height\\\",[28,[[21,\\\"height\\\"]]]],[12,\\\"src\\\",[21,\\\"url\\\"]],[9],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/iframe-component/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/index-quantity-type-table/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    enums: Ember.inject.service('enum-service'),\n    aliases: Ember.computed('', function () {\n      return this.get('enums').get('indexQuantityTypeAliases');\n    }),\n    indexQuantityTypesList: Ember.computed('indexQuantityTypes', function () {\n      return this.get('indexQuantityTypes').toArray();\n    }),\n    columns: Ember.computed(function () {\n      const columns = [{\n        propertyName: 'id',\n        title: this.get('intl').t('common.id'),\n        className: 'column-delivery-number',\n        disableSorting: true\n      }, {\n        propertyName: 'name',\n        title: this.get('intl').t('indexQuantityTypes.name'),\n        className: 'column-delivery-number',\n        disableSorting: true\n      }, {\n        propertyName: 'nameEn',\n        title: this.get('intl').t('indexQuantityTypes.nameEn'),\n        className: 'column-delivery-client',\n        disableSorting: true\n      }, {\n        propertyName: 'alias',\n        title: this.get('intl').t('indexQuantityTypes.alias'),\n        className: 'column-delivery-load',\n        disableSorting: true\n      }, {\n        propertyName: 'obligatory',\n        title: this.get('intl').t('indexQuantityTypes.obligatory'),\n        className: 'column-delivery-unload',\n        disableSorting: true\n      }, {\n        propertyName: 'conditionallyObligatory',\n        title: this.get('intl').t('indexQuantityTypes.conditionallyObligatory'),\n        className: 'column-delivery-unload',\n        disableSorting: true\n      }, {\n        propertyName: 'requiresUnit',\n        title: this.get('intl').t('indexQuantityTypes.requiresUnit'),\n        className: 'column-delivery-unload',\n        disableSorting: true\n      }, {\n        propertyName: 'editableViaSchedule',\n        title: this.get('intl').t('indexQuantityTypes.editableViaSchedule'),\n        className: 'column-delivery-unload',\n        disableSorting: true\n      }, {\n        propertyName: 'enabledForIncompleteLoading',\n        title: this.get('intl').t('indexQuantityTypes.enabledForIncompleteLoading'),\n        className: 'column-delivery-unload',\n        disableSorting: true\n      }];\n      return columns;\n    }),\n    actions: {\n      save(iqt) {\n        const self = this;\n\n        if (!iqt.validate()) {\n          console.log('IndexQuantityType nie przeszedł walidacji!');\n          return;\n        }\n\n        iqt.save().then(() => {\n          const msg = self.get('intl').t('common.saved');\n          self.set('actionMessage', msg);\n        }).catch(response => {\n          const msg = this.get('intl').t('common.error');\n          self.set('actionMessage', msg);\n          self.set('errors', response.errors);\n        });\n      },\n\n      update(id) {\n        this.set('errors', []);\n        const self = this;\n        const indexQuantityType = this.get('indexQuantityTypesList').filterBy('id', id).get('firstObject');\n        indexQuantityType.save().then(() => {\n          const msg = self.get('intl').t('common.saveSuccessMessage') + ` ${id}`;\n          self.set('actionMessage', msg);\n        }).catch(response => {\n          const msg = this.get('intl').t('common.error') + ` ${id}`;\n          self.set('actionMessage', msg);\n          self.set('errors', response.errors);\n        });\n      },\n\n      disable(id) {\n        this.set('errors', []);\n        const indexQuantityType = this.get('indexQuantityTypesList').filterBy('id', id).get('firstObject');\n        indexQuantityType.deleteRecord();\n        indexQuantityType.save();\n        this.get('indexQuantityTypesList').removeObject(indexQuantityType);\n      },\n\n      newIndexQuantityType() {\n        const newIqt = this.get('store').createRecord('indexQuantityType', {\n          transportType: this.get('transportType')\n        });\n        this.get('indexQuantityTypesList').pushObject(newIqt);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/index-quantity-type-table/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"HL/6uW/z\",\n    \"block\": \"{\\\"symbols\\\":[\\\"mt\\\",\\\"table\\\",\\\"body\\\",\\\"iqt\\\",\\\"alias\\\",\\\"header\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table table-hover table-rows-bordered table-header-bold table-bordered-details\\\"],[11,\\\"id\\\",\\\"price-list-table\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[21,\\\"actionMessage\\\"],false],[0,\\\"\\\\n\\\"],[4,\\\"server-table\\\",null,[[\\\"data\\\",\\\"columns\\\"],[[23,[\\\"indexQuantityTypesList\\\"]],[23,[\\\"columns\\\"]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"borderless-wrapper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,1,[\\\"table\\\"]],\\\"expected `mt.table` to be a contextual component but found a string. Did you mean `(component mt.table)`? ('apollo/pods/components/index-quantity-type-table/template.hbs' @ L7:C15) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,2,[\\\"header\\\"]],\\\"expected `table.header` to be a contextual component but found a string. Did you mean `(component table.header)`? ('apollo/pods/components/index-quantity-type-table/template.hbs' @ L8:C19) \\\"],null]],[[\\\"class\\\"],[\\\"index-quantity-types-table-header\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,6,[\\\"row-sorting\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,2,[\\\"body\\\"]],\\\"expected `table.body` to be a contextual component but found a string. Did you mean `(component table.body)`? ('apollo/pods/components/index-quantity-type-table/template.hbs' @ L11:C19) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,3,[\\\"visibleContent\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[1,[22,4,[\\\"id\\\"]],false],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,4,[\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\"],[[22,4,[\\\"name\\\"]],\\\"text\\\",\\\"form-control\\\"]]],false],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,4,[]],\\\"name\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,4,[\\\"errors\\\",\\\"nameEn\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\"],[[22,4,[\\\"nameEn\\\"]],\\\"text\\\",\\\"form-control\\\"]]],false],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,4,[]],\\\"nameEn\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[22,4,[\\\"alias\\\"]]],null],[23,[\\\"aliases\\\"]],true,[27,\\\"t\\\",[\\\"indexQuantityTypes.alias\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[22,4,[\\\"alias\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[22,5,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[22,4,[\\\"obligatory\\\"]]]]],false],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[22,4,[\\\"conditionallyObligatory\\\"]]]]],false],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[22,4,[\\\"requiresUnit\\\"]]]]],false],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[22,4,[\\\"editableViaSchedule\\\"]]]]],false],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[22,4,[\\\"enabledForIncompleteLoading\\\"]]]]],false],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,4,[\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[1,[27,\\\"fa-icon\\\",[\\\"check\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"update\\\",[22,4,[\\\"id\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[1,[27,\\\"fa-icon\\\",[\\\"floppy-disk\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\",[22,4,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-danger\\\"],[9],[1,[27,\\\"fa-icon\\\",[\\\"trash\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"disable\\\",[22,4,[\\\"id\\\"]]]],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-info pull-left margin-top\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"newIndexQuantityType\\\"]],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/index-quantity-type-table/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/inspection-modal/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    errors: Ember.A([]),\n    transport: Ember.computed('model', function () {\n      return this.get('model');\n    }),\n    actions: {\n      cancel: function () {\n        this.get('transport.customFields').forEach(cf => {\n          cf.rollbackAttributes();\n        });\n      },\n      save: function (transport) {\n        const self = this;\n\n        if (!transport.validate()) {\n          console.log('Błędy walidacji');\n          return;\n        }\n\n        transport.save().then(_ => {\n          self.send('hideModal');\n          self.set('errors', []);\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/inspection-modal/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"RWqb716m\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"showCancelButton\\\",\\\"cancel\\\",\\\"classNames\\\"],[[23,[\\\"title\\\"]],true,[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\",[23,[\\\"transport\\\"]]],null],[23,[\\\"classes\\\"]]]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal row\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"transport/custom-fields-section\\\",null,[[\\\"transport\\\",\\\"inspectionPanelSection\\\"],[[23,[\\\"transport\\\"]],true]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons padding-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\",[23,[\\\"transport\\\"]]]],[10],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/inspection-modal/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/invitation-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"hrcSsLQU\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"h4\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"invitations.show\\\",[23,[\\\"invitation\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"received\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"long-arrow-left\\\"],null],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[23,[\\\"invitation\\\",\\\"creator\\\",\\\"name\\\"]],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.fromCompany\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"invitation\\\",\\\"creator\\\",\\\"company\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"long-arrow-right\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"invitation\\\",\\\"email\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"invitations.show\\\",[23,[\\\"invitation\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"section\\\"],[12,\\\"class\\\",[23,[\\\"invitation\\\",\\\"status\\\",\\\"class\\\"]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"fa-icon\\\",[[23,[\\\"invitation\\\",\\\"status\\\",\\\"icon\\\"]]],null],false],[0,\\\" \\\"],[1,[23,[\\\"invitation\\\",\\\"status\\\",\\\"name\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"small\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.type\\\"],null],false],[0,\\\": \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"invitation.type.\\\",[23,[\\\"invitation\\\",\\\"typeTranslationKey\\\"]]],null]],[[\\\"default\\\"],[[27,\\\"concat\\\",[\\\"invitation.type.\\\",[23,[\\\"invitation\\\",\\\"type\\\"]]],null]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"small\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"invitation\\\",\\\"isAccepted\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"invitation.acceptedSummary\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"invitation\\\",\\\"dateAccepted\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"by-whom\\\",null,[[\\\"person\\\"],[[23,[\\\"invitation\\\",\\\"personWhoAccepted\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"invitation\\\",\\\"isRejected\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"invitation.rejectedSummary\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"invitation\\\",\\\"dateRejected\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"by-whom\\\",null,[[\\\"person\\\"],[[23,[\\\"invitation\\\",\\\"personWhoRejected\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/invitation-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/link-to/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.LinkComponent.extend({\n    attributeBindings: Ember.A(['data-button-name', 'data-field-name', 'title'])\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/loading-spinner/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({});\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/loading-spinner/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"UryO4iH+\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fa fa-spinner fa-spin h4\\\"],[9],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/loading-spinner/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/locale-aware-flatpickr/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n   * LocaleAwareFlatpickr - A wrapper for ember-flatpickr that integrates with DateFormatterService.\n   * This component is aware of current user locale and timezone and will adjust it's formatting based on that.\n   *\n   * Usage example:\n   * {{locale-aware-flatpickr\n   *   date=this.date\n   *   onChange=(action 'action')\n   *   formatType=\"defaultDateTime\"\n   *   locale=\"en-US\"\n   *   timeZone=\"UTC\"\n   *   nativeFlatpickrOptions=(hash\n   *     enableTime=true\n   *   )\n   * }}\n   *\n   * SAUCE: {@link https://flatpickr.js.org/options/}\n   */\n  var _default = Ember.Component.extend({\n    tagName: '',\n    date: null,\n    onChange: null,\n    onOpen: null,\n    onClose: null,\n    class: '',\n    formatType: 'defaultDateTime',\n    nativeFlatpickrOptions: null,\n    localeTimezoneHolder: Ember.inject.service('date.locale-timezone-holder-service'),\n    dateFormatterService: Ember.inject.service('date.date-formatter-service'),\n    use12HourTime: Ember.computed('localeTimezoneHolder.locale', function () {\n      return this.localeTimezoneHolder.use12HourClock();\n    }),\n\n    /**\n     * Determine which formatter function to use based on formatType\n     */\n    formatterFunction: Ember.computed('formatType', function () {\n      const formatType = this.get('formatType') || 'defaultDateTime';\n      const formatterMap = {\n        fullDateTime: 'formatFullDateTime',\n        fullDate: 'formatFullDate',\n        mediumDate: 'formatMediumDate',\n        shortDate: 'formatShortDate',\n        defaultDateTime: 'formatDefaultDateTime',\n        fullTime: 'formatFullTime',\n        shortTime: 'formatShortTime'\n      };\n      return formatterMap[formatType] || 'formatDefaultDateTime';\n    }),\n\n    formatDate(date) {\n      if (!date) return '';\n      const dateFormatterService = this.get('dateFormatterService');\n      const formatterFn = this.get('formatterFunction');\n\n      const options = this._getFormatterOptions();\n\n      return dateFormatterService[formatterFn](date, options);\n    },\n\n    _getFormatterOptions() {\n      const options = {};\n      const locale = this.get('locale');\n      const timeZone = this.get('timeZone');\n\n      if (locale) {\n        options.locale = locale;\n      }\n\n      if (timeZone) {\n        options.timeZone = timeZone;\n      }\n\n      return options;\n    },\n\n    mergedFlatpickrOptions: Ember.computed('nativeFlatpickrOptions', 'formatterFunction', 'class', function () {\n      const self = this;\n      const defaultOptions = {\n        altInput: true,\n        allowInput: true,\n        altInputClass: this.get('class')\n      };\n      const userOptions = this.get('nativeFlatpickrOptions') || {};\n      return Object.assign({}, defaultOptions, userOptions, {\n        // Override the formatDate function to use our DateFormatter service\n        formatDate: function (dateObj, format) {\n          if (isNaN(dateObj.getTime())) {\n            return '';\n          }\n\n          return self.formatDate(dateObj);\n        }\n      });\n    }),\n    actions: {\n      handleChange(...args) {\n        const onChange = this.get('onChange');\n\n        if (onChange && typeof onChange === 'function') {\n          onChange(...args);\n        }\n      },\n\n      handleOpen(...args) {\n        const onOpen = this.get('onOpen');\n\n        if (onOpen && typeof onOpen === 'function') {\n          onOpen(...args);\n        }\n      },\n\n      handleClose(...args) {\n        const onClose = this.get('onClose');\n\n        if (onClose && typeof onClose === 'function') {\n          onClose(...args);\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/locale-aware-flatpickr/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"xOYEj1oS\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"ember-flatpickr\\\",null,[[\\\"date\\\",\\\"locale\\\",\\\"onChange\\\",\\\"onOpen\\\",\\\"onClose\\\",\\\"id\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"formatDate\\\",\\\"altFormat\\\",\\\"altInput\\\",\\\"altInputClass\\\",\\\"allowInput\\\",\\\"allowInvalidPreload\\\",\\\"appendTo\\\",\\\"ariaDateFormat\\\",\\\"conjunction\\\",\\\"clickOpens\\\",\\\"dateFormat\\\",\\\"defaultDate\\\",\\\"defaultHour\\\",\\\"disableMobile\\\",\\\"enableTime\\\",\\\"enableSeconds\\\",\\\"hourIncrement\\\",\\\"inline\\\",\\\"maxDate\\\",\\\"minDate\\\",\\\"minuteIncrement\\\",\\\"mode\\\",\\\"nextArrow\\\",\\\"prevArrow\\\",\\\"noCalendar\\\",\\\"shorthandCurrentMonth\\\",\\\"static\\\",\\\"showMonths\\\",\\\"time_24hr\\\",\\\"weekNumbers\\\",\\\"wrap\\\",\\\"monthSelectorType\\\"],[[23,[\\\"date\\\"]],[23,[\\\"localeTimezoneHolder\\\",\\\"locale\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"handleChange\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"handleOpen\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"handleClose\\\"],null],[23,[\\\"id\\\"]],[23,[\\\"placeholder\\\"]],[23,[\\\"disabled\\\"]],[23,[\\\"mergedFlatpickrOptions\\\",\\\"formatDate\\\"]],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"formatDate\\\"]],\\\"F j, Y\\\"],null],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"altInput\\\"]],false],null],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"altInputClass\\\"]],\\\"\\\"],null],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"allowInput\\\"]],false],null],[23,[\\\"mergedFlatpickrOptions\\\",\\\"allowInvalidPreload\\\"]],[23,[\\\"mergedFlatpickrOptions\\\",\\\"appendTo\\\"]],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"ariaDateFormat\\\"]],\\\"F j, Y\\\"],null],[23,[\\\"mergedFlatpickrOptions\\\",\\\"conjunction\\\"]],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"clickOpens\\\"]],true],null],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"dateFormat\\\"]],\\\"Y-m-d\\\"],null],[23,[\\\"mergedFlatpickrOptions\\\",\\\"defaultDate\\\"]],[23,[\\\"mergedFlatpickrOptions\\\",\\\"defaultHour\\\"]],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"disableMobile\\\"]],false],null],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"enableTime\\\"]],false],null],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"enableSeconds\\\"]],false],null],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"hourIncrement\\\"]],1],null],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"inline\\\"]],false],null],[23,[\\\"mergedFlatpickrOptions\\\",\\\"maxDate\\\"]],[23,[\\\"mergedFlatpickrOptions\\\",\\\"minDate\\\"]],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"minuteIncrement\\\"]],5],null],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"mode\\\"]],\\\"single\\\"],null],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"nextArrow\\\"]],\\\">\\\"],null],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"prevArrow\\\"]],\\\"<\\\"],null],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"noCalendar\\\"]],false],null],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"shorthandCurrentMonth\\\"]],false],null],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"static\\\"]],false],null],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"showMonths\\\"]],1],null],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"time_24hr\\\"]],[27,\\\"not\\\",[[23,[\\\"use12HourTime\\\"]]],null]],null],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"weekNumber\\\"]],false],null],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"wrap\\\"]],false],null],[27,\\\"or\\\",[[23,[\\\"mergedFlatpickrOptions\\\",\\\"monthSelectorType\\\"]],\\\"dropdown\\\"],null]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/locale-aware-flatpickr/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/log-api-request/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    formattedLog: Ember.computed('log', function () {\n      const log = this.get('log.request');\n      return JSON.stringify(JSON.parse(log), undefined, 2);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/log-api-request/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"/gniUkcJ\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"card card-body\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"pre\\\"],[11,\\\"id\\\",\\\"log-api-request\\\"],[9],[0,\\\"\\\"],[1,[21,\\\"formattedLog\\\"],false],[0,\\\"    \\\"],[10],[0,\\\"\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/log-api-request/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/log-change/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    tagName: 'span',\n    PROPERTIES_WITH_CLASS_INFORMATION: ['dateCreated'],\n    PROPERTIES_WITH_ADDITIONAL_PROPERTIES: ['orderInTransport'],\n    fieldErrors: Ember.computed('model.errors.[]', function () {\n      const fieldName = this.get('fieldName');\n      return this.get('model.errors.' + fieldName);\n    }),\n    className: Ember.computed('log.className', function () {\n      const modelName = this.get('log.className');\n      return modelName ? modelName.charAt(0).toLowerCase() + modelName.substr(1) : '';\n    }),\n    classTranslationName: Ember.computed('className', function () {\n      if (this.get('className') === 'personNotification' || this.get('className') === 'roleGroupAuthority' || !this.PROPERTIES_WITH_CLASS_INFORMATION.includes(this.get('log.propertyName'))) {\n        return '';\n      }\n\n      if (this.get('className') === 'auction') {\n        return `(${this.getAuctionSettingTranslation('label')})`;\n      } else if (this.get('className') === 'index') {\n        return `(${this.getIndexSettingTranslation('label')})`;\n      }\n\n      const key = `${this.get('className')}.label`;\n      return `(${this.get('intl').t(key)})`;\n    }),\n    additionalDetails: Ember.computed('log.propertyName', function () {\n      if (!this.PROPERTIES_WITH_ADDITIONAL_PROPERTIES.includes(this.get('log.propertyName'))) {\n        return '';\n      }\n\n      const object = this.get('store').peekRecord(this.get('className'), this.get('log.persistedObjectId'));\n      return object ? `[${object.get('stringLabel')}]` : '';\n    }),\n    label: Ember.computed('className', 'log.propertyName', 'fallbackLabel', function () {\n      if (this.get('className') === 'auction') {\n        return this.getAuctionSettingTranslation(this.get('log.propertyName'));\n      } else if (this.get('className') === 'index') {\n        return this.getIndexSettingTranslation(this.get('log.propertyName'));\n      } else if (this.get('className') === 'indexQuantity') {\n        return this.get('store').peekRecord('index-quantity', this.get('log.persistedObjectId')).get('indexQuantityType.name');\n      } else if (this.get('className') === 'personNotification') {\n        return '';\n      } else if (this.get('className') === 'personRamp') {\n        return '';\n      } else if (this.get('className') === 'companyRamp') {\n        return '';\n      } else if (this.get('className') === 'roleGroupAuthority') {\n        return '';\n      } else if (this.get('className') === 'file') {\n        return '';\n      }\n\n      const classKey = this.get('className') === 'partnership' ? 'partnership' : 'transport';\n      const key = `${this.get('className')}.${this.get('log.propertyName')}`;\n      const fallbackTransportKey = `${classKey}.${this.get('log.propertyName')}`;\n      return this.get('intl').t(key, {\n        default: fallbackTransportKey\n      });\n    }),\n\n    getAuctionSettingTranslation(propertyName) {\n      const auctionSetting = this.get('sessionAccount').getAuctionSetting(this.get('log.transportTypeId'));\n      const translationKey = auctionSetting.get('translationKey');\n      const fallbackAuctionKey = `auction.${propertyName}`;\n      const fallbackTransportKey = `transport.${propertyName}`;\n      const key = `${this.get('className')}.${translationKey}.${propertyName}`;\n      return this.get('intl').t(key, {\n        default: [fallbackAuctionKey, fallbackTransportKey]\n      });\n    },\n\n    getIndexSettingTranslation(propertyName) {\n      const indexSetting = this.get('sessionAccount').getIndexSetting(this.get('log.transportTypeId'));\n      const translationKey = indexSetting.get('translationKey');\n      const fallbackIndexKey = `index.${propertyName}`;\n      const fallbackTransportKey = `transport.${propertyName}`;\n      const key = `${this.get('className')}.${translationKey}.${propertyName}`;\n      return this.get('intl').t(key, {\n        default: [fallbackIndexKey, fallbackTransportKey]\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/log-change/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"xqy5TnZW\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"span\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[21,\\\"label\\\"],false],[0,\\\" \\\"],[1,[21,\\\"classTranslationName\\\"],false],[0,\\\" \\\"],[1,[21,\\\"additionalDetails\\\"],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"log\\\",\\\"oldValueFormat\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"old-value\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[23,[\\\"log\\\",\\\"oldValueFormat\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"log\\\",\\\"oldValueFormat\\\"]],[23,[\\\"log\\\",\\\"newValueFormat\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-long-arrow-right\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"log\\\",\\\"newValueFormat\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"new-value\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[23,[\\\"log\\\",\\\"newValueFormat\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/log-change/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/log-group-change/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"HIE8iMFV\",\n    \"block\": \"{\\\"symbols\\\":[\\\"change\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[23,[\\\"log\\\",\\\"eventLabel\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"log\\\",\\\"changes\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"log-change\\\",null,[[\\\"log\\\"],[[22,1,[]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/log-group-change/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/log-label/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    languageService: Ember.inject.service('language-service'),\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    label: Ember.computed('userActivityTransportLabel', 'log.transportId', 'log.className', function () {\n      if (this.get('log.transportId')) {\n        return this.get('userActivityTransportLabel');\n      } else if (this.get('log.className') === 'Partnership') {\n        return this.get('intl').t(\"log.partnership\", {\n          id: this.get('log.persistedObjectId')\n        });\n      } else {\n        return \"\";\n      }\n    }),\n    userActivityTransportLabel: Ember.computed('', function () {\n      const transportTypeId = this.get('log.changes.firstObject.transportTypeId');\n      const transportIdentifier = this.get('log.changes.firstObject.transportIdentifier');\n\n      if (!transportTypeId) {\n        return;\n      }\n\n      const propertyName = this.get('languageService').findProperLanguageVersion('name', 'englishName');\n      const label = this.get('store').peekRecord('transportType', transportTypeId).get(propertyName);\n      return [label, transportIdentifier].filter(o => o).join(\" \");\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/log-label/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Uqn1LuBB\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"mode\\\"]],\\\"USER\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[21,\\\"label\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[1,[23,[\\\"log\\\",\\\"actor\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/log-label/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/login-page-logo-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ggiNqELL\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"hide-on-small-landscape\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"black\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"auth.description\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"h5\\\"],[11,\\\"class\\\",\\\"no-padding no-vertical-margin\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"img\\\"],[11,\\\"class\\\",\\\"logintegra-logo-login-page\\\"],[11,\\\"src\\\",\\\"/assets/images/logintegra-logo-new-dark.png\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"help.label\\\"],null],false],[0,\\\": \\\"],[1,[27,\\\"t\\\",[\\\"logintegraEmail\\\"],null],false],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"logintegraPhone\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"footer-resize responsive-main-hide\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"http://logintegra.com\\\"],[11,\\\"class\\\",\\\"black\\\"],[9],[0,\\\"\\\\n                        © \\\"],[1,[21,\\\"currentYear\\\"],false],[0,\\\" Logintegra sp. z o.o.. Wszelkie prawa zastrzeżone.\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"hide-on-small-landscape\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"logo\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"img\\\"],[12,\\\"src\\\",[28,[[21,\\\"logo\\\"]]]],[11,\\\"class\\\",\\\"company-logo img-responsive\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/images/logintegra-logo.png\\\"],[11,\\\"class\\\",\\\"company-logo img-responsive\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/login-page-logo-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/logs-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    classNames: ['logs-div'],\n    groupingLogService: Ember.inject.service('grouping-log-service'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    isApiIntegrationLogs: Ember.computed(function () {\n      return this.get('apiIntegration');\n    }),\n    isARTRLogs: Ember.computed(function () {\n      return this.get('artrLogs');\n    }),\n    isSuperUser: Ember.computed('sessionAccount.isSuperUser', function () {\n      return this.get('sessionAccount.isSuperUser');\n    }),\n    logs: Ember.computed('logsProxy', function () {\n      if (this.get('isApiIntegrationLogs') || this.get('isARTRLogs')) {\n        return this.get('logsProxy').sortBy('dateCreated').reverse();\n      }\n\n      return this.get('groupingLogService').groupLogs(this.get('logsProxy').sortBy('dateCreated').reverse());\n    }),\n    actions: {\n      getIntegrationRequestLog: function (log) {\n        if (!log.request) {\n          this.getIntegrationRequestLog(log);\n        }\n      },\n      resend: async function (log) {\n        if (!confirm(this.get('intl').t('log.integration.sureToResend'))) {\n          return;\n        }\n\n        const logId = log.get('id');\n        const path = this.get('apolloApiService').APOLLO_API.TRANSPORTS.RESEND_API_MESSAGE;\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, {\n            logId\n          });\n\n          if (response.ok) {\n            alert(this.get('intl').t('log.integration.resendSuccess'));\n            this.refreshLogs(log.get('transport'));\n          } else {\n            alert(this.get('intl').t('log.integration.resendFailed'));\n          }\n        } catch (error) {\n          alert(this.get('intl').t('common.defaultError'));\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/logs-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"TPftbNDG\",\n    \"block\": \"{\\\"symbols\\\":[\\\"log\\\"],\\\"statements\\\":[[7,\\\"table\\\"],[11,\\\"id\\\",\\\"logs-table\\\"],[11,\\\"class\\\",\\\"table table-hover\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"artrLogs\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                \\\"],[1,\\\"ID\\\",false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"log.requestType\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"log.dateCreated\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isSuperUser\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"log.method\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"log.response\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"log.request\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"log.url\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"log.dateCreated\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"mode\\\"]],\\\"USER\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"log.object\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"log.actor\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"log.change\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"apiIntegration\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"log.method\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"log.response\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_API_MESSAGE_RESENDING\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"logs\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"artrLogs\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"id\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"requestType\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"dateCreated\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isSuperUser\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"httpMethod\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"response\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"request\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"url\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"dateCreated\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"log-label\\\",null,[[\\\"mode\\\",\\\"log\\\"],[[23,[\\\"mode\\\"]],[22,1,[]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"log-group-change\\\",null,[[\\\"log\\\"],[[22,1,[]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"apiIntegration\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"httpMethod\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"responseCode\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary btn-sm\\\"],[11,\\\"data-button-name\\\",\\\"\\\"],[11,\\\"data-toggle\\\",\\\"collapse\\\"],[12,\\\"data-target\\\",[28,[\\\"#log-\\\",[22,1,[\\\"id\\\"]]]]],[11,\\\"aria-expanded\\\",\\\"false\\\"],[12,\\\"aria-controls\\\",[28,[\\\"#log-\\\",[22,1,[\\\"id\\\"]]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"log.request\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"getIntegrationRequestLog\\\",[22,1,[]]]],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_API_MESSAGE_RESENDING\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"canBeResend\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary btn-sm\\\"],[11,\\\"data-button-name\\\",\\\"resend-message\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"log.integration.resend\\\"],null],false],[0,\\\"\\\\n                                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"resend\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"apiIntegration\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\"],[11,\\\"class\\\",\\\"collapse\\\"],[12,\\\"id\\\",[28,[\\\"log-\\\",[22,1,[\\\"id\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[11,\\\"colspan\\\",\\\"6\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[22,1,[\\\"request\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"common.loadingData\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"log-api-request\\\",null,[[\\\"log\\\"],[[22,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/logs-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/max-pallet/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Component.extend({\n    store: service(),\n    sessionAccount: service('session-account'),\n    classNames: ['clickable'],\n\n    init() {\n      const self = this;\n\n      self._super();\n\n      self.get('store').queryRecord('maxPallet', {\n        warehouseId: self.get('warehouse.id'),\n        day: self.get('day.date').toDate()\n      }).then(mp => {\n        if (mp && !self.get('isTemplate')) {\n          self.set('maxPallet', mp);\n        } else {\n          const maxPallet = self.get('store').createRecord('maxPallet', {\n            warehouse: self.get('warehouse'),\n            day: self.get('day.date').toDate(),\n            quantity: 0\n          });\n          self.set('maxPallet', maxPallet);\n        }\n      });\n    },\n\n    willDestroy() {\n      const self = this;\n\n      self._super();\n\n      if (!self.get('maxPallet.id')) {\n        self.get('maxPallet').unloadRecord();\n      }\n    },\n\n    maxPallet: Ember.computed(function () {}),\n\n    click() {\n      const self = this;\n\n      if (!this.get('sessionAccount').hasRole('ROLE_CAN_CREATE_MAX_PALLET')) {\n        return;\n      }\n\n      if (self.get('isTemplate')) {\n        self.set('maxPallet.oldQuantity', self.get('maxPallet.quantity'));\n        self.set('maxPallet.isTemplate', self.get('isTemplate'));\n      }\n\n      const model = Ember.Object.create({\n        longNameDay: this.get('day.longName'),\n        maxPallet: this.get('maxPallet')\n      });\n      self.set('action', 'showModal');\n      this.sendAction('action', 'max-pallet.modals.create', model);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/max-pallet/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"8DPh6RDz\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"span\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"gte\\\",[[23,[\\\"numberOfPallets\\\"]],[23,[\\\"maxPallet\\\",\\\"quantity\\\"]]],null],\\\"too-much-pallets\\\"],null]]]],[9],[0,\\\"\\\\n    \\\"],[1,[21,\\\"numberOfPallets\\\"],false],[0,\\\"/\\\"],[1,[23,[\\\"maxPallet\\\",\\\"quantity\\\"]],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/max-pallet/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/modals/address-unloading-time/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    tagName: '',\n    actions: {\n      onCloseHandler: function () {\n        if (!this.get('addressUnloadingTime.id')) {\n          this.get('addressUnloadingTime').rollbackAttributes();\n        }\n\n        this.onClose();\n      },\n\n      saveOrUpdate(addressUnloadingTime) {\n        if (!addressUnloadingTime.validate()) {\n          console.debug(`addressUnloadingTime validation errors ${addressUnloadingTime.errors.map(e => e.message).join(',')}`);\n          return;\n        }\n\n        addressUnloadingTime.save().then(() => {\n          this.onClose();\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/modals/address-unloading-time/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"HHiieEfE\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"modal-dialog\\\",null,null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section\\\"],[11,\\\"data-field-name\\\",\\\"address-unloading-time-modal\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-header\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"bold col-xs-12\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"address.addressUnloadingTime.label\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-body\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"addressUnloadingTime\\\",\\\"errors\\\",\\\"daysToUnload\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"address.addressUnloadingTime.daysToUnload\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[11,\\\"data-field-name\\\",\\\"days-to-unload\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",\\\"3\\\",[23,[\\\"addressUnloadingTime\\\",\\\"daysToUnload\\\"]],[23,[\\\"canNotEdit\\\"]]]]],false],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"addressUnloadingTime\\\"]],\\\"daysToUnload\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"addressUnloadingTime\\\",\\\"errors\\\",\\\"monday\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"address.addressUnloadingTime.monday\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[11,\\\"data-field-name\\\",\\\"unloading-time-monday\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",\\\"11:00\\\",[23,[\\\"addressUnloadingTime\\\",\\\"monday\\\"]],[23,[\\\"canNotEdit\\\"]]]]],false],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"addressUnloadingTime\\\"]],\\\"monday\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"addressUnloadingTime\\\",\\\"errors\\\",\\\"tuesday\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"address.addressUnloadingTime.tuesday\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[11,\\\"data-field-name\\\",\\\"unloading-time-tuesday\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",\\\"11:00\\\",[23,[\\\"addressUnloadingTime\\\",\\\"tuesday\\\"]],[23,[\\\"canNotEdit\\\"]]]]],false],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"addressUnloadingTime\\\"]],\\\"tuesday\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"addressUnloadingTime\\\",\\\"errors\\\",\\\"wednesday\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"address.addressUnloadingTime.wednesday\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[11,\\\"data-field-name\\\",\\\"unloading-time-wednesday\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",\\\"11:00\\\",[23,[\\\"addressUnloadingTime\\\",\\\"wednesday\\\"]],[23,[\\\"canNotEdit\\\"]]]]],false],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"addressUnloadingTime\\\"]],\\\"wednesday\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"addressUnloadingTime\\\",\\\"errors\\\",\\\"thursday\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"address.addressUnloadingTime.thursday\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[11,\\\"data-field-name\\\",\\\"unloading-time-thursday\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",\\\"11:00\\\",[23,[\\\"addressUnloadingTime\\\",\\\"thursday\\\"]],[23,[\\\"canNotEdit\\\"]]]]],false],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"addressUnloadingTime\\\"]],\\\"thursday\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"addressUnloadingTime\\\",\\\"errors\\\",\\\"friday\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"address.addressUnloadingTime.friday\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[11,\\\"data-field-name\\\",\\\"unloading-time-friday\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",\\\"11:00\\\",[23,[\\\"addressUnloadingTime\\\",\\\"friday\\\"]],[23,[\\\"canNotEdit\\\"]]]]],false],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"addressUnloadingTime\\\"]],\\\"friday\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"addressUnloadingTime\\\",\\\"errors\\\",\\\"saturday\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"address.addressUnloadingTime.saturday\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[11,\\\"data-field-name\\\",\\\"unloading-time-saturday\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",\\\"11:00\\\",[23,[\\\"addressUnloadingTime\\\",\\\"saturday\\\"]],[23,[\\\"canNotEdit\\\"]]]]],false],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"addressUnloadingTime\\\"]],\\\"saturday\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"addressUnloadingTime\\\",\\\"errors\\\",\\\"sunday\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"address.addressUnloadingTime.sunday\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[11,\\\"data-field-name\\\",\\\"unloading-time-sunday\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",\\\"11:00\\\",[23,[\\\"addressUnloadingTime\\\",\\\"sunday\\\"]],[23,[\\\"canNotEdit\\\"]]]]],false],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"addressUnloadingTime\\\"]],\\\"sunday\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"saveOrUpdate\\\",[23,[\\\"addressUnloadingTime\\\"]]],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-secondary\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"onCloseHandler\\\"],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/modals/address-unloading-time/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/modals/remove-transport-relation/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    selectedRelation: null,\n    sessionAccount: Ember.inject.service('session-account'),\n    tagName: '',\n    relations: Ember.computed.reads('relatedTo'),\n    actions: {\n      onDeleteHandler: function () {\n        if (!this.get('selectedRelation')) {\n          return;\n        }\n\n        this.onDelete(this.get('selectedRelation'));\n        this.send('onCloseHandler');\n      },\n      onCloseHandler: function () {\n        this.set('selectedRelation', null);\n        this.onClose();\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/modals/remove-transport-relation/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"C0iRSxGq\",\n    \"block\": \"{\\\"symbols\\\":[\\\"relation\\\"],\\\"statements\\\":[[4,\\\"modal-dialog\\\",null,[[\\\"onClose\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"onCloseHandler\\\"],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section\\\"],[11,\\\"data-field-name\\\",\\\"remove-relation-modal\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-header\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"bold col-xs-12\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.relations.removeRelation\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-body\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-small\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"relations\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"radio-option\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"radio-container\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"input\\\"],[11,\\\"name\\\",\\\"delete-relation\\\"],[12,\\\"value\\\",[22,1,[\\\"id\\\"]]],[12,\\\"checked\\\",[27,\\\"eq\\\",[[23,[\\\"selectedRelation\\\",\\\"id\\\"]],[22,1,[\\\"id\\\"]]],null]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"selectedRelation\\\"]]],null],[22,1,[]]],null]],[11,\\\"type\\\",\\\"radio\\\"],[9],[10],[0,\\\"\\\\n                                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"radio-label\\\"],[9],[1,[22,1,[\\\"relationIdentifier\\\"]],false],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-danger\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"onDeleteHandler\\\"],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-secondary\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"onCloseHandler\\\"],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/modals/remove-transport-relation/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/modals/schedule-action-select/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    tagName: '',\n    userHasRoleToCreateDedicatedWindow: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_MANAGE_DEDICATED_WINDOWS');\n    }),\n    userHasRoleToCreateBlockadeWindow: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_BLOCK_RAMPS');\n    }),\n    actions: {\n      onCloseHandler: function () {\n        this.onClose();\n      },\n      createBlockedWindow: function () {\n        const model = this.get('scheduleActionSelectModel');\n        this.createBlockedWindow(model.get('start'), model.get('stop'), model.get('rampId'), model.get('selectedCompany'));\n        this.onClose();\n      },\n\n      showModal(templateName, checkpoint) {\n        // Potrzebne do obsługi otwierania modalu z formularzem transportu\n        this.set('action', 'showModal');\n        this.sendAction('action', templateName, checkpoint);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/modals/schedule-action-select/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"TWH0MKRR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tt\\\"],\\\"statements\\\":[[4,\\\"modal-dialog\\\",null,[[\\\"onClose\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"onCloseHandler\\\"],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section\\\"],[11,\\\"data-field-name\\\",\\\"action-select-modal\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-header\\\"],[12,\\\"data-field-name\\\",[28,[[23,[\\\"transportType\\\",\\\"alias\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"bold col-xs-12\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"scheduleActionSelectModal.title\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-body\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-small\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"scheduleActionSelectModel\\\",\\\"availableTransportTypesInWarehouseZone\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"scheduleActionSelectModal.createTransport\\\"],null],false],[0,\\\":\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"scheduleActionSelectModel\\\",\\\"availableTransportTypesInWarehouseZone\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"create-transport-button\\\",null,[[\\\"timeWindowStart\\\",\\\"timeWindowStop\\\",\\\"rampId\\\",\\\"type\\\"],[[23,[\\\"scheduleActionSelectModel\\\",\\\"start\\\"]],[23,[\\\"scheduleActionSelectModel\\\",\\\"stop\\\"]],[23,[\\\"scheduleActionSelectModel\\\",\\\"rampId\\\"]],[22,1,[]]]],{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[12,\\\"data-field-name\\\",[28,[\\\"create-\\\",[22,1,[\\\"alias\\\"]]]]],[9],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"onCloseHandler\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"userHasRoleToCreateBlockadeWindow\\\"]],[23,[\\\"userHasRoleToCreateDedicatedWindow\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"scheduleActionSelectModal.addWindow\\\"],null],false],[0,\\\":\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"userHasRoleToCreateBlockadeWindow\\\"]],[23,[\\\"scheduleActionSelectModel\\\",\\\"showBlockadeWindowButton\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-field-name\\\",\\\"create-blocked-window\\\"],[9],[1,[27,\\\"t\\\",[\\\"scheduleActionSelectModal.blockedWindow\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"createBlockedWindow\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"userHasRoleToCreateDedicatedWindow\\\"]],[23,[\\\"scheduleActionSelectModel\\\",\\\"showDedicatedWindowButton\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-field-name\\\",\\\"create-dedicated-window\\\"],[9],[1,[27,\\\"t\\\",[\\\"scheduleActionSelectModal.dedicatedWindow\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"createBlockedWindow\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-secondary\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"onCloseHandler\\\"],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/modals/schedule-action-select/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/modals/transaction-invoice-form/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    actionProgressToast: Ember.inject.service('action-progress-service'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n\n    async init() {\n      this._super(...arguments);\n\n      const transaction = await this.get('transaction');\n      const transactionFreightPrice = transaction.get('price');\n      transaction.set('invoicePrice', transactionFreightPrice);\n    },\n\n    currencyList: Ember.computed('transaction', function () {\n      return this.get('store').peekAll('currency');\n    }),\n    actions: {\n      async save() {\n        const self = this;\n        const transaction = await this.get('transaction');\n        const transport = transaction.get('transport');\n        this.set('transaction.isInvoiceForm', true);\n\n        if (!transaction.validate()) {\n          return;\n        }\n\n        const path = this.get('apolloApiService').APOLLO_API.TRANSACTIONS.SAVE_INVOICE;\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, {\n            id: transaction.get('id')\n          }, {\n            body: JSON.stringify(transaction)\n          });\n\n          if (response.ok) {\n            this.set('transaction.isInvoiceForm', false);\n            this.get('store').findRecord('transport', transport.get('id')).then(transport => {\n              transport.reload();\n              self.actionProgressToast.showSuccessToast(this.get('intl').t('notificationToast.transactions.invoice.success'));\n              self.onClose();\n            });\n          }\n        } catch (error) {\n          this.actionProgressToast.showErrorToast(this.get('intl').t('notificationToast.transactions.invoice.error') + error);\n          console.error(error);\n        }\n      },\n\n      onCloseHandler: function () {\n        this.onClose();\n      },\n      cancel: function () {\n        console.debug('Zamykamy okienko dodawania faktury...');\n        this.get('transaction.content').rollback();\n        this.onClose();\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/modals/transaction-invoice-form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"/SDzgl0C\",\n    \"block\": \"{\\\"symbols\\\":[\\\"c\\\"],\\\"statements\\\":[[4,\\\"modal-dialog\\\",null,[[\\\"onClose\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"onCloseHandler\\\"],null]]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-header\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"bold col-xs-12\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"columns.INVOICE\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transaction.invoiceNumber\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-7 no-padding \\\",[27,\\\"if\\\",[[23,[\\\"transaction\\\",\\\"errors\\\",\\\"invoiceNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"invoice-number\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\"],[[23,[\\\"transaction\\\",\\\"invoiceNumber\\\"]],\\\"text\\\",\\\"form-control\\\",[27,\\\"t\\\",[\\\"transaction.invoiceNumber\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transaction\\\"]],\\\"invoiceNumber\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"transaction-price-label-translation\\\",null,[[\\\"transaction\\\"],[[23,[\\\"transaction\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-7 no-padding\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-7 no-left-padding \\\",[27,\\\"if\\\",[[23,[\\\"transaction\\\",\\\"errors\\\",\\\"invoicePrice\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"invoice-price\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"pattern\\\",\\\"min\\\",\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"number\\\",\\\"5\\\",\\\"^[0-9]+\\\\\\\\.[0-9][0-9]$\\\",\\\"0\\\",\\\"form-control\\\",[23,[\\\"transaction\\\",\\\"invoicePrice\\\"]],\\\"0.00\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transaction\\\"]],\\\"invoicePrice\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-5 no-padding pull-right\\\"],[11,\\\"data-field-name\\\",\\\"invoice-currency\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"transaction\\\",\\\"invoiceCurrency\\\"]]],null],[23,[\\\"currencyList\\\"]],true,\\\"symbol\\\",[27,\\\"t\\\",[\\\"common.currency\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"transaction\\\",\\\"invoiceCurrency\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"span\\\"],[12,\\\"data-option-name\\\",[22,1,[\\\"symbol\\\"]]],[9],[1,[22,1,[\\\"symbol\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"small\\\"],[9],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-circle-info\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"transaction.price\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"transaction\\\",\\\"price\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"transaction\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/modals/transaction-invoice-form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/mode-of-transportations/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\n  var _default = Ember.Component.extend({\n    tagName: 'tr'\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/mode-of-transportations/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\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"U8P1vpcg\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"registration-number\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CAN_UPDATE_VEHICLE_MAIN_DATA_SECTION\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"mode-of-transportation.edit\\\",[23,[\\\"truck\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,[\\\"truck\\\",\\\"registrationNumber\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,[\\\"truck\\\",\\\"registrationNumber\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"owner\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"companies.show\\\",[23,[\\\"truck\\\",\\\"owner\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,[\\\"truck\\\",\\\"owner\\\",\\\"shortName\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"brand\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[23,[\\\"truck\\\",\\\"vehicleMainSection\\\",\\\"brand\\\"]],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"model\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[23,[\\\"truck\\\",\\\"vehicleMainSection\\\",\\\"subcontractor\\\"]],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"serial-number-of-recorder\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[23,[\\\"truck\\\",\\\"vehicleMainSection\\\",\\\"serialNumberOfRecorder\\\"]],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"last-sensor-calibration-certificate\\\"],[12,\\\"class\\\",[28,[[23,[\\\"truck\\\",\\\"lastSensorCalibrationCertificate\\\",\\\"certificateWarningClass\\\"]]]]],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"truck\\\",\\\"lastSensorCalibrationCertificateDate\\\"]],\\\"short\\\"],null],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"last-summer-mapping\\\"],[12,\\\"class\\\",[28,[[23,[\\\"truck\\\",\\\"lastSummerMapping\\\",\\\"mappingWarningClass\\\"]]]]],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"truck\\\",\\\"lastSummerMappingDate\\\"]],\\\"short\\\"],null],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"last-winter-mapping\\\"],[12,\\\"class\\\",[28,[[23,[\\\"truck\\\",\\\"lastWinterMapping\\\",\\\"mappingWarningClass\\\"]]]]],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"truck\\\",\\\"lastWinterMappingDate\\\"]],\\\"short\\\"],null],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"status-name\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"section\\\"],[12,\\\"class\\\",[28,[\\\"no-wrap \\\",[23,[\\\"truck\\\",\\\"statusClass\\\"]]]]],[9],[0,\\\"\\\\n           \\\"],[1,[27,\\\"fa-icon\\\",[[23,[\\\"truck\\\",\\\"statusIcon\\\"]]],null],false],[0,\\\" \\\"],[1,[23,[\\\"truck\\\",\\\"statusName\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/mode-of-transportations/table/row/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/multiple-time-windows-modal/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    numberOfTransportTimeWindowsToHandle: Ember.computed('transportToHandle', function () {\n      return this.get('transportToHandle') ? this.get('transportToHandle.stepsWithWarehouse').length : 0;\n    }),\n    numberOfCurrentlyHandledTimeWindow: Ember.computed('transportToHandle', function () {\n      // numerowanie zaczynamy od 1\n      return this.get('transportToHandle.stepsWithWindow').length + 1;\n    }),\n    canDiscardAdviceRestrictions: Ember.computed('transportToHandle.transportType', function () {\n      const transportTypeId = this.get('transportToHandle.transportType.id');\n      return this.get('sessionAccount.currentUser').canDiscardAdviceRestrictions(transportTypeId);\n    }),\n    modalTitle: Ember.computed('', function () {\n      return 'Transport #' + this.get('transportToHandle.identifier') + \" \" + this.get('intl').t('step.timeWindow') + \" \" + this.get('numberOfCurrentlyHandledTimeWindow') + \" \" + this.get('intl').t('common.outOf') + \" \" + this.get('numberOfTransportTimeWindowsToHandle');\n    }),\n    actions: {\n      cancelTransportCreation() {\n        this.set('hideModalAction', 'hideModal');\n        this.set('cancelTransportAction', 'cancelTransportCreation');\n        this.sendAction('hideModalAction');\n        this.sendAction('cancelTransportAction');\n      },\n\n      close() {\n        this.set('actionName', 'closeMultipleTimeWindowsModal');\n        this.sendAction('actionName');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/multiple-time-windows-modal/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"e/oGJsn3\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"showCancelButton\\\"],[[23,[\\\"modalTitle\\\"]],true]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"h4\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.youWereMovedToWarehouse\\\"],null],false],[0,\\\" \\\"],[7,\\\"b\\\"],[9],[1,[23,[\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"warehouse\\\",\\\"address\\\",\\\"street\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"small\\\"],[9],[0,\\\"\\\\n                    (\\\"],[1,[23,[\\\"warehouse\\\",\\\"address\\\",\\\"street\\\"]],false],[0,\\\", \\\"],[1,[23,[\\\"warehouse\\\",\\\"address\\\",\\\"city\\\"]],false],[0,\\\")\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"h5\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.timeWindowSummaryInfo\\\"],null],false],[0,\\\" \\\"],[7,\\\"b\\\"],[9],[1,[27,\\\"t\\\",[\\\"step.timeWindow\\\"],null],false],[0,\\\" \\\"],[1,[21,\\\"numberOfCurrentlyHandledTimeWindow\\\"],false],[0,\\\"/\\\"],[1,[21,\\\"numberOfTransportTimeWindowsToHandle\\\"],false],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"warehouseStepToHandle\\\",\\\"minAdviceDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"step.timeRangeForAdvice\\\"],null],false],[0,\\\":\\\\n\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"alert-text bold\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"warehouseStepToHandle\\\",\\\"minAdviceDate\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                - \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"warehouseStepToHandle\\\",\\\"maxAdviceDate\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canDiscardAdviceRestrictions\\\"]]],null,{\\\"statements\\\":[[0,\\\"            (\\\"],[1,[27,\\\"t\\\",[\\\"step.timeRangeForAdviceDoesNotApply\\\"],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.further\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-secondary\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.cancelProcess\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"cancelTransportCreation\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/multiple-time-windows-modal/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/notification-bell/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    sentNotificationService: Ember.inject.service(),\n    tagName: '',\n    classNames: Ember.A(['dropdown']),\n    storedNotifications: Ember.computed(function () {\n      return this.store.peekAll('sentNotification');\n    }),\n    sortedNotifications: Ember.computed('storedNotifications.length', function () {\n      return this.get('storedNotifications').sortBy('time').reverse();\n    }),\n    totalNotificationsCount: Ember.computed('storedNotifications.length', function () {\n      return this.sentNotificationService.totalItems;\n    }),\n    notificationsCurrentPage: Ember.computed('storedNotifications.[]', function () {\n      return this.sentNotificationService.currentPage;\n    }),\n    notificationsPerPage: Ember.computed(function () {\n      return this.sentNotificationService.DEFAULT_PAGE_SIZE;\n    }),\n    hasMoreNotifications: Ember.computed('storedNotifications.length', function () {\n      return this.get('storedNotifications.length') < this.get('totalNotificationsCount');\n    }),\n    actions: {\n      markAsRead(notificationModel) {\n        this.sentNotificationService.markAsRead(notificationModel);\n      },\n\n      toggleShowNotifications() {\n        this.toggleProperty('showNotifications');\n      },\n\n      showOlder() {\n        this.sentNotificationService.loadNotifications(this.sentNotificationService.nextPage());\n      },\n\n      showAll() {// TODO\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/notification-bell/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Clj9XZps\",\n    \"block\": \"{\\\"symbols\\\":[\\\"notification\\\"],\\\"statements\\\":[[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[11,\\\"id\\\",\\\"notifications-button\\\"],[11,\\\"class\\\",\\\"dropdown-toggle\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"bell\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"storedNotifications\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"badge\\\"],[9],[1,[21,\\\"totalNotificationsCount\\\"],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[3,\\\"action\\\",[[22,0,[]],\\\"toggleShowNotifications\\\"]],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showNotifications\\\"]]],null,{\\\"statements\\\":[[4,\\\"modal-dialog\\\",null,[[\\\"onClose\\\",\\\"containerClassNames\\\",\\\"target\\\",\\\"attachment\\\",\\\"targetAttachment\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"toggleShowNotifications\\\"],null],\\\"notification-menu\\\",\\\"#notifications-button\\\",\\\"top right\\\",\\\"bottom left\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"notification-header\\\"],[9],[1,[27,\\\"t\\\",[\\\"sentNotifications.popup.label\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"storedNotifications\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"notification-list\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"sortedNotifications\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"notification-item\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"notification-content\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"notification-message\\\"],[9],[1,[22,1,[\\\"message\\\"]],false],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"notification-time\\\"],[9],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"dateCreated\\\"]],\\\"defaultDateTime\\\"],null],false],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"button\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"sentNotifications.popup.markAsRead\\\"],null]]]],[11,\\\"class\\\",\\\"btn btn-link mark-read\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"xmark\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"markAsRead\\\",[22,1,[]]]],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"hasMoreNotifications\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-link show-older\\\"],[9],[1,[27,\\\"t\\\",[\\\"sentNotifications.popup.showOlder\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"showOlder\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[false],null,{\\\"statements\\\":[[0,\\\"                \\\"],[2,\\\" TODO Pokaż wszystkie notyfikacje \\\"],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"showAllNotifications\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary show-all\\\"],[9],[0,\\\"Pokaż wszystkie\\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showAll\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"no-notifications\\\"],[9],[1,[27,\\\"t\\\",[\\\"sentNotifications.popup.notificationsEmpty\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/notification-bell/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/notification-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    userAccessService: Ember.inject.service('user-access-service'),\n    disableNotificationEditing: Ember.computed('user.id', function () {\n      const userId = this.get('user.id');\n      return !this.get('userAccessService').canAccess(userId, 'ROLE_EDIT_USERS_NOTIFICATION', 'ROLE_EDIT_MY_NOTIFICATION');\n    }),\n    notificationsTransportTypes: Ember.computed('allNotifications', function () {\n      if (!this.get('allNotifications')) {\n        return [];\n      }\n\n      let notificationArray = Ember.A(this.get('allNotifications').map(n => n.get('transportType')).uniqBy('id').sort((a, b) => {\n        const nameA = a.get('nameInAppropriateLanguage');\n        const nameB = b.get('nameInAppropriateLanguage');\n\n        if (nameA === nameB) {\n          return 0;\n        } else if (Ember.isEmpty(nameA)) {\n          return 1;\n        } else if (Ember.isEmpty(nameB)) {\n          return -1;\n        } else {\n          return nameA.localeCompare(nameB);\n        }\n      }));\n      notificationArray.concat(this.get('allNotifications').map(a => {\n        return a.get('transportType') === null;\n      }));\n      return notificationArray;\n    }),\n    actions: {\n      setGroupMode(notification, mode) {\n        if (!this.setGroupMode) {\n          return;\n        }\n\n        this.setGroupMode(notification, mode);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/notification-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"2xC+gIHp\",\n    \"block\": \"{\\\"symbols\\\":[\\\"ntt\\\",\\\"n\\\",\\\"idx\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"notificationsTransportTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"expandable-panel\\\",null,[[\\\"objectId\\\",\\\"componentName\\\",\\\"title\\\",\\\"titleClass\\\",\\\"defaultOpen\\\"],[[22,1,[\\\"id\\\"]],[27,\\\"concat\\\",[\\\"notification-section-\\\",[27,\\\"if\\\",[[22,1,[\\\"alias\\\"]],[22,1,[\\\"alias\\\"]],\\\"other\\\"],null]],null],[27,\\\"if\\\",[[22,1,[\\\"nameInAppropriateLanguage\\\"]],[22,1,[\\\"nameInAppropriateLanguage\\\"]],[27,\\\"t\\\",[\\\"common.other\\\"],null]],null],\\\"bold\\\",false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[27,\\\"find-proper-notification\\\",null,[[\\\"notifications\\\",\\\"transportTypeId\\\"],[[23,[\\\"notifications\\\"]],[22,1,[\\\"id\\\"]]]]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[27,\\\"eq\\\",[[22,3,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"padding-left \\\",[27,\\\"if\\\",[[23,[\\\"showUserGroupsSection\\\"]],\\\"padding-bottom\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"checked\\\",\\\"disabled\\\"],[\\\"checkbox\\\",[27,\\\"concat\\\",[\\\"person-notification-\\\",[22,2,[\\\"id\\\"]]],null],[22,2,[\\\"checked\\\"]],[23,[\\\"disableNotificationEditing\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[12,\\\"for\\\",[28,[[27,\\\"concat\\\",[\\\"person-notification-\\\",[22,2,[\\\"id\\\"]]],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"notification.\\\",[22,2,[\\\"getNotificationName\\\"]],\\\".label\\\"],null]],[[\\\"checkpointName\\\",\\\"transportTypeName\\\"],[[22,2,[\\\"task\\\",\\\"checkpointNameInAppropriateLanguage\\\"]],[22,2,[\\\"transportTypeName\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"showUserGroupsSection\\\"]],\\\"padding-bottom\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"small\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"notification.\\\",[22,2,[\\\"getNotificationName\\\"]],\\\".desc\\\"],null]],[[\\\"checkpointName\\\"],[[22,2,[\\\"task\\\",\\\"checkpointNameInAppropriateLanguage\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showUserGroupsSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"data-toggle\\\",\\\"buttons\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-default small-font \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[22,2,[\\\"mode\\\"]],\\\"MODE_USER\\\"],null],\\\"active\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setGroupMode\\\",[22,2,[]],\\\"MODE_USER\\\"],null]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"input\\\"],[11,\\\"name\\\",\\\"options\\\"],[11,\\\"id\\\",\\\"option1\\\"],[11,\\\"autocomplete\\\",\\\"off\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[10],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"user.userGroup.myTransports\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"user\\\",\\\"userGroup\\\",\\\"mainGroup\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-default small-font \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[22,2,[\\\"mode\\\"]],\\\"MODE_GROUP\\\"],null],\\\"active\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setGroupMode\\\",[22,2,[]],\\\"MODE_GROUP\\\"],null]],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"input\\\"],[11,\\\"name\\\",\\\"options\\\"],[11,\\\"id\\\",\\\"option2\\\"],[11,\\\"autocomplete\\\",\\\"off\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[10],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"user.userGroup.myGroupsTransports\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"user\\\",\\\"userGroup\\\",\\\"canSeeOtherGroupsTransports\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-default small-font \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[22,2,[\\\"mode\\\"]],\\\"MODE_ALL\\\"],null],\\\"active\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setGroupMode\\\",[22,2,[]],\\\"MODE_ALL\\\"],null]],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"input\\\"],[11,\\\"name\\\",\\\"options\\\"],[11,\\\"id\\\",\\\"option3\\\"],[11,\\\"autocomplete\\\",\\\"off\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[10],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"user.userGroup.allTransports\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2,3]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"roleGroup\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"notifications.noNotificationsForRole\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"notifications.selectRole\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/notification-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/packages-table/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n   * PackagesTable - A powerful, customizable table component with advanced features\n   *\n   * @typedef {Object} ColumnDefinition\n   * @property {string} key - Unique identifier for the column\n   * @property {string} label - Display label for the column header\n   * @property {boolean} [sortable=false] - Enable/disable sorting for this column\n   * @property {boolean} [summable=false] - Enable sum calculation for numeric columns\n   * @property {string} [tdClass] - Custom CSS class for the column\n   * @property {Function} [template] - Custom template for column rendering\n   *\n   * @typedef {Object} PackagesTableArgs\n   * @property {ColumnDefinition[]} columns - Columns configuration\n   * @property {Object[]} rows - Data rows to be displayed\n   * @property {string} [noDataMessage=\"No data available\"] - Message when no rows are present\n   * @property {boolean} [striped=false] - Apply zebra-striping to table rows\n   * @property {boolean} [hover=false] - Add hover effect to table rows\n   * @property {boolean} [showSummary=false] - Display a summary row for summable columns\n   * @property {string} [defaultSortKey=null] - Sets a defaultSortKey if specified\n   * @property {string} [tableClass] - Additional CSS classes for the table\n   * @property {boolean} [actionColumn=false] - Enable an action column for row-level actions\n   * @property {Function} [onSort] - Callback for custom sorting logic\n   *\n   * @class PackagesTable\n   * @description A versatile table component with advanced features like sorting, summary calculations, and flexible column configurations\n   *\n   * @example\n   * // Basic usage\n   * {{packages-table\n   *   columns=(array\n   *      (hash key=\"test1\" label=\"Label1\" sortable=true)\n   *      (hash key=\"test2\" label=\"Label2\" sortable=true template=(component \"packages-table/templates/status-badge\"))\n   *      (hash key=\"test3\" label=\"Label3\" summable=true sumFunction: (row, columns) => {return row['price'] * row['quantity']})\n   *   )\n   *   rows=(array\n   *      (hash test1=1 test2=(hash status=\"completed\"))\n   *      (hash test1=2 test2=(hash status=\"pending\"))\n   *   )\n   *   noDataMessage=\"No packages found\"\n   *   striped=true\n   *   hover=true\n   *   onSort=(action \"handleSort\")\n   * }}\n   *\n   * @example\n   * // With action column\n   * {{#packages-table\n   *   columns=\n   *   rows=\n   *   actionColumn=true\n   *   as |package|\n   * }}\n   *   <button {{on \"click\" (action \"editPackage\" package)}}>Edit</button>\n   *   <button {{on \"click\" (action \"deletePackage\" package)}}>Delete</button>\n   * {{/packages-table}}\n   */\n  var _default = Ember.Component.extend({\n    _columns: Ember.computed('columns.[]', function () {\n      return this.columns || Ember.A([]);\n    }),\n    _rows: Ember.computed('rows.[]', function () {\n      return this.rows || Ember.A([]);\n    }),\n    sortKey: Ember.computed({\n      get(key) {\n        return this.defaultSortKey || null;\n      },\n\n      set(key, value) {\n        return value;\n      }\n\n    }),\n    sortDirection: Ember.computed({\n      get(key) {\n        return 'asc';\n      },\n\n      set(key, value) {\n        return value;\n      }\n\n    }),\n    sortedRows: Ember.computed('_rows', 'sortKey', 'sortDirection', function () {\n      if (!this.sortKey) {\n        return this._rows;\n      }\n\n      return this._rows.toSorted((a, b) => {\n        if (!a || !b) return -1;\n        const valA = a[this.sortKey];\n        const valB = b[this.sortKey];\n        if (valA === valB) return 0;\n        const comparison = valA > valB ? 1 : -1;\n        return this.sortDirection === 'asc' ? comparison : -comparison;\n      });\n    }),\n    columnSums: Ember.computed('_rows.[]', '_columns.@each.summable', 'sortedRows.[]', function () {\n      const calculateColumnSum = (column, rows) => {\n        // If a custom sum function is provided, use it\n        if (column.sumFunction) {\n          return rows.reduce((total, row) => total + column.sumFunction(row, this._columns), 0);\n        } // Default numeric summing\n\n\n        return rows.reduce((total, row) => {\n          const value = parseFloat(row[column.key]);\n          return isNaN(value) ? total : total + value;\n        }, 0);\n      }; // Only process columns marked as summable\n\n\n      return this._columns.filter(column => column.summable).reduce((sums, column) => {\n        sums[column.key] = calculateColumnSum(column, this.sortedRows);\n        return sums;\n      }, {});\n    }),\n    actions: {\n      /**\n       * Handles sorting when a column header is clicked\n       * @param {Object} column - The column to sort by\n       * @param {string} column.key - Unique key for the column\n       * @param {boolean} column.sortable - Whether the column is sortable\n       */\n      sortBy(column) {\n        if (!column.sortable) return;\n\n        if (this.sortKey === column.key) {\n          this.set('sortDirection', this.sortDirection === 'asc' ? 'desc' : 'asc');\n        } else {\n          this.set('sortKey', column.key);\n          this.set('sortDirection', 'asc');\n        } // TODO\n        // Custom sort or default implementation\n        // if (this.onSort) {\n        //     this.onSort(this.sortKey, this.sortDirection)\n        // }\n\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/packages-table/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"3GL/ukp1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"column\\\",\\\"row\\\",\\\"column\\\",\\\"context\\\",\\\"column\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"table\\\"],[12,\\\"class\\\",[28,[\\\"table flexible-table\\\\n    \\\",[27,\\\"if\\\",[[23,[\\\"striped\\\"]],\\\"table-striped\\\"],null],\\\"\\\\n    \\\",[27,\\\"if\\\",[[23,[\\\"hover\\\"]],\\\"table-hover\\\"],null],\\\"\\\\n    \\\",[21,\\\"tableClass\\\"]]]],[9],[0,\\\"\\\\n    \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,0,[\\\"columns\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"th\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,5,[\\\"sortable\\\"]],\\\"sortable\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[22,5,[\\\"label\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,0,[\\\"sortKey\\\"]],[22,5,[\\\"key\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"sort-indicator\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,0,[\\\"sortDirection\\\"]],\\\"asc\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"sort-up\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"sort-down\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"sortBy\\\",[22,5,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"actionColumn\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"action-column\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,0,[\\\"sortedRows\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,0,[\\\"columns\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\"],[12,\\\"data-label\\\",[28,[[22,3,[\\\"label\\\"]]]]],[12,\\\"class\\\",[28,[[22,3,[\\\"tdClass\\\"]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,3,[\\\"template\\\"]]],null,{\\\"statements\\\":[[4,\\\"with\\\",[[27,\\\"hash\\\",null,[[\\\"row\\\"],[[27,\\\"get\\\",[[22,2,[]],[22,3,[\\\"key\\\"]]],null]]]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"component\\\",[[22,3,[\\\"template\\\"]]],[[\\\"context\\\"],[[22,4,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"get\\\",[[22,2,[]],[22,3,[\\\"key\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"actionColumn\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"action-column\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-group\\\"],[9],[0,\\\"\\\\n                        \\\"],[14,6,[[22,2,[]]]],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\"],[11,\\\"class\\\",\\\"no-data\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[12,\\\"colspan\\\",[28,[[22,0,[\\\"columns\\\",\\\"length\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[21,\\\"noDataMessage\\\"],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"actionColumn\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"action-column\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showSummary\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tfoot\\\"],[11,\\\"class\\\",\\\"table-summary\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,0,[\\\"columns\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,1,[\\\"summable\\\"]],\\\"summable-column\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"summable\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.sum\\\"],null],false],[0,\\\": \\\"],[1,[27,\\\"get\\\",[[22,0,[\\\"columnSums\\\"]],[22,1,[\\\"key\\\"]]],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[4,\\\"if\\\",[[23,[\\\"actionColumn\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"action-column\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/packages-table/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/packages-table/templates/package-stacking-factor-row/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: '',\n    intl: Ember.inject.service(),\n    contextValue: Ember.computed('context.row', function () {\n      return this.context.row;\n    }),\n    stackingFactorValue: Ember.computed('contextValue', function () {\n      const rowValue = this.get('contextValue');\n\n      if (isNaN(rowValue) || rowValue === null) {\n        return '';\n      }\n\n      return this.intl.t(`transport.packagesSection.stackingFactorOptions.${this.context.row}`);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/packages-table/templates/package-stacking-factor-row/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ZuES80UV\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[21,\\\"stackingFactorValue\\\"],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/packages-table/templates/package-stacking-factor-row/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/packages-table/templates/package-type-row/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: '',\n    intl: Ember.inject.service(),\n    packageTypeName: Ember.computed('context.row.name', function () {\n      return this.context.row.get('name') ? this.intl.t(`packageTypes.${this.context.row.get('name')}.label`) : '';\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/packages-table/templates/package-type-row/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ZEFEHsQ5\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[21,\\\"packageTypeName\\\"],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/packages-table/templates/package-type-row/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/pagination-buttons/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    /**\n     * Określa, czy zmiana stron będzie odbywała się przy pomocy route'a (link-to) czy przy pomocy akcji\n     */\n    navigateWithActions: Ember.computed('', function () {\n      return false;\n    }),\n    separator: Ember.computed(function () {\n      return '...';\n    }).readOnly(),\n    pageOffset: Ember.computed(function () {\n      return 2;\n    }).readOnly(),\n    availableMaxPages: Ember.computed(function () {\n      return ['10', '25', '100'];\n    }),\n    prevPage: Ember.computed('page', function () {\n      return (parseInt(this.get('page')) || 1) - 1;\n    }),\n    nextPage: Ember.computed('page', function () {\n      return (parseInt(this.get('page')) || 1) + 1;\n    }),\n    firstVisiblePage: Ember.computed('page', function () {\n      return Math.max(1, parseInt(this.get('page')) - this.get('pageOffset'));\n    }),\n    lastVisiblePage: Ember.computed('page', 'totalPages', function () {\n      return Math.min(parseInt(this.get('totalPages')), parseInt(this.get('page')) + this.get('pageOffset'));\n    }),\n\n    /**\n     * Wyświetlamy aktualną stronę plus-minus `pageOffset` stron, oraz pierwszą i ostatnią stronę\n     * - jeśli jeszcze nie są widoczne.\n     *\n     * Na przykład, dla `pageOffset` = 2, dostaniemy:\n     * 1: 1, 2, 3, ..., 99,\n     * 4: 1, 2, 3, 4, 5, 6, ..., 99,\n     * 13: 1, ..., 11, 12, 13, 14, 15, ..., 99,\n     * 98: 1, ..., 96, 97, 98, 99.\n     */\n    availablePages: Ember.computed('totalPages', 'firstVisiblePage', 'lastVisiblePage', function () {\n      const pages = [];\n      const firstVisiblePage = this.get('firstVisiblePage');\n      const lastVisiblePage = this.get('lastVisiblePage');\n      const lastPage = parseInt(this.get('totalPages'));\n\n      if (firstVisiblePage !== 1) {\n        pages.push(1);\n\n        if (firstVisiblePage - 1 > 1) {\n          pages.push(this.get('separator'));\n        }\n      }\n\n      for (let idx = firstVisiblePage; idx <= lastVisiblePage; idx++) {\n        pages.push(idx.toString());\n      }\n\n      if (lastVisiblePage !== lastPage) {\n        if (lastPage - lastVisiblePage > 1) {\n          pages.push(this.get('separator'));\n        }\n\n        pages.push(lastPage);\n      }\n\n      return pages;\n    }),\n    isLastPage: Ember.computed('page', 'totalPages', function () {\n      return (parseInt(this.get('page')) || 1) >= parseInt(this.get('totalPages'));\n    }),\n    isFirstPage: Ember.computed('page', function () {\n      return (parseInt(this.get('page')) || 1) === 1;\n    }),\n    actions: {\n      incrementPage() {\n        this.set('action', 'incrementPage');\n        this.sendAction('action');\n      },\n\n      decrementPage() {\n        this.set('action', 'decrementPage');\n        this.sendAction('action');\n      },\n\n      setPage(page) {\n        this.set('action', 'setPage');\n        this.sendAction('action', page);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/pagination-buttons/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"e2e/a+mr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"mp\\\",\\\"p\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"pagination\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"isFirstPage\\\"]],\\\"disabled\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"navigateWithActions\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"isFirstPage\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"a\\\"],[11,\\\"disabled\\\",\\\"true\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"fa-icon\\\",[\\\"angle-double-left\\\"],null],false],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3\\\"],[9],[0,\\\"\\\\n                         \\\"],[1,[27,\\\"t\\\",[\\\"common.previous\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"fa-icon\\\",[\\\"angle-double-left\\\"],null],false],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3\\\"],[9],[0,\\\"\\\\n                         \\\"],[1,[27,\\\"t\\\",[\\\"common.previous\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"decrementPage\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"link-to\\\",[[23,[\\\"url\\\"]],[27,\\\"query-params\\\",null,[[\\\"page\\\"],[[23,[\\\"prevPage\\\"]]]]]],[[\\\"disabled\\\"],[[27,\\\"eq\\\",[[23,[\\\"page\\\"]],\\\"1\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"angle-double-left\\\"],null],false],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3\\\"],[9],[0,\\\"\\\\n                         \\\"],[1,[27,\\\"t\\\",[\\\"common.previous\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"availablePages\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"li\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"page\\\"]],[22,2,[]]],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,2,[]],[23,[\\\"separator\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[11,\\\"disabled\\\",\\\"disabled\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,2,[]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"navigateWithActions\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,2,[]],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"setPage\\\",[22,2,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"link-to\\\",[[23,[\\\"url\\\"]],[27,\\\"query-params\\\",null,[[\\\"page\\\"],[[22,2,[]]]]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,2,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"isLastPage\\\"]],\\\"disabled\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"navigateWithActions\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"isLastPage\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"a\\\"],[11,\\\"disabled\\\",\\\"true\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.next\\\"],null],false],[0,\\\" \\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"angle-double-right\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.next\\\"],null],false],[0,\\\" \\\\n                    \\\"],[10],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"fa-icon\\\",[\\\"angle-double-right\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"incrementPage\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"link-to\\\",[[23,[\\\"url\\\"]],[27,\\\"query-params\\\",null,[[\\\"page\\\"],[[23,[\\\"nextPage\\\"]]]]]],[[\\\"disabled\\\"],[[23,[\\\"isLastPage\\\"]]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.next\\\"],null],false],[0,\\\" \\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"angle-double-right\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"hideMaxCountPerPageSettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right responsive-hide-lvl3\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"pagination\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"availableMaxPages\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"li\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"max\\\"]],[22,1,[]]],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[[23,[\\\"url\\\"]],[27,\\\"query-params\\\",null,[[\\\"max\\\",\\\"page\\\"],[[22,1,[]],1]]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/pagination-buttons/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/paid-feature-info/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    isVisible: Ember.computed('authority', function () {\n      const companyPricingPlan = this.get('sessionAccount.currentUser.company.pricingPlan');\n      const plansWithFeatureAllowed = this.get('sessionAccount.authoritiesDependentOnPricingPlan')[this.get('authority')];\n      return plansWithFeatureAllowed && !plansWithFeatureAllowed.includes(companyPricingPlan);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/paid-feature-info/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"+PPzYe+r\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"span\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-exclamation-triangle warning\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"paidFeaturesInfo.authorities.\\\",[23,[\\\"authority\\\"]]],null]],null],true],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"paidFeaturesInfo.label\\\"],null],false],[0,\\\": \\\"],[7,\\\"a\\\"],[11,\\\"target\\\",\\\"_blank\\\"],[11,\\\"href\\\",\\\"https://logintegra.com/cennik-pakietow/\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"https://logintegra.com/cennik-pakietow/\\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/paid-feature-info/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/partnership-table/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    CARRIER: 'CARRIER',\n    SUPPLIER: 'SUPPLIER',\n    OPERATOR: 'OPERATOR',\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    sessionAccount: Ember.inject.service('session-account'),\n    newContractorType: Ember.computed('company.partnershipType.name', function () {\n      const companyPartnershipType = this.get('company.partnershipType.name');\n      return companyPartnershipType === 'CARRIER' ? 'SUPPLIER' : 'CARRIER';\n    }),\n    filteredPartnerships: Ember.computed('partnerships.[]', function () {\n      return this.get('partnerships').filter(p => p.get('principalCompany.id') === this.get('company.id') || !p.get('principalCompany.isPrincipal'));\n    }),\n    findCurrentCompanyPartnershipSide: function () {\n      const newContractorType = this.get('newContractorType');\n      return newContractorType === 'CARRIER' ? 'principalCompany' : 'contractorCompany';\n    },\n    actions: {\n      openAddPartnershipModal() {\n        const partnershipType = this.get('store').peekAll('partnershipType').find(pt => pt.get('name') === 'CARRIER');\n        const currentCompanyPartnershipSide = this.findCurrentCompanyPartnershipSide();\n        const newContractorType = this.get('newContractorType');\n        const partnership = this.get('store').createRecord('partnership', {\n          status: 'NO_INVITATION',\n          type: 'DEFAULT'\n        });\n        const company = this.get('company');\n        partnership.set('partnershipType', partnershipType);\n        partnership.set(currentCompanyPartnershipSide, company);\n        this.showModal('companies.modals.add-partnership', {\n          partnership,\n          company,\n          newContractorType\n        });\n      },\n\n      async connectAllContractors() {\n        const company = this.get('company');\n        const principalId = localStorage.getItem('principalId');\n        const principalCompany = this.get('store').peekRecord('company', principalId);\n        const contractorsType = company.get('partnershipType.name') === 'CARRIER' ? 'SUPPLIER' : 'CARRIER';\n        const settingKey = this.get('sessionAccount').getSettingValue('SUPPLIER_FIELD_IN_COMPANY_DETAILS_TRANSLATION_KEY');\n        const contractorsTypeKey = settingKey ? `${contractorsType}.${settingKey}` : contractorsType;\n        const fallbackKey = `partnership.connectAll.${contractorsType}`;\n        const key = `partnership.connectAll.${contractorsTypeKey}`;\n        const msg = this.get('intl').t('partnership.connectAll.cofirmMsg', {\n          companyName: company.get('name'),\n          contractorsType: this.get('intl').t(key, {\n            default: fallbackKey\n          }),\n          principalCompanyName: principalCompany.get('name')\n        });\n\n        if (!confirm(msg)) {\n          return;\n        }\n\n        const data = JSON.stringify({\n          principalCompany: {\n            id: principalId\n          },\n          company: {\n            id: company.get('id')\n          },\n          contractorsType\n        });\n        const path = this.get('apolloApiService').APOLLO_API.PARTNERSHIPS.CONNECT_ALL;\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, null, {\n            body: data\n          });\n\n          if (response.ok) {\n            alert(this.get('intl').t('partnership.connectAll.success'));\n            window.location.reload();\n          } else {\n            const error = await response.json();\n            alert(error.errors);\n          }\n        } catch (error) {\n          alert(this.get('intl').t('common.defaultError'));\n          console.error(error);\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/partnership-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\n  var _default = Ember.Component.extend({\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    tagName: 'tr',\n    companyFromPartnership: Ember.computed('partnership', 'company', function () {\n      if (this.get('partnership.principalCompany.id') === this.get('company.id')) {\n        return this.get('partnership.contractorCompany');\n      } else if (!this.get('partnership.isPrincipal')) {\n        return this.get('partnership.principalCompany');\n      }\n    }),\n    canDeletePartnership: Ember.computed('company.isPrincipalInGeneral', 'companyFromPartnership.isPrincipalInGeneral', function () {\n      return this.get('sessionAccount').hasRole(\"ROLE_MANAGE_PARTNERSHIP\") && !this.get('companyFromPartnership.isPrincipalInGeneral') && !this.get('company.isPrincipalInGeneral');\n    }),\n    actions: {\n      delete(partnership) {\n        if (!confirm(this.get('intl').t('partnership.deleteMsg'))) {\n          return;\n        }\n\n        partnership.destroyRecord().then(() => {\n          const msg = this.get('intl').t('common.saveSuccessMessage');\n          alert(msg);\n        }).catch(response => {\n          alert(response.errors);\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/partnership-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\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"A9KSTLMZ\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"name\\\"],[9],[1,[23,[\\\"companyFromPartnership\\\",\\\"name\\\"]],false],[10],[0,\\\"\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"shortname\\\"],[9],[1,[23,[\\\"companyFromPartnership\\\",\\\"shortName\\\"]],false],[10],[0,\\\"\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"tax-id-number\\\"],[9],[1,[23,[\\\"companyFromPartnership\\\",\\\"taxIdNumber\\\"]],false],[10],[0,\\\"\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"iban-symbol\\\"],[9],[1,[23,[\\\"companyFromPartnership\\\",\\\"country\\\",\\\"ibanSymbol\\\"]],false],[10],[0,\\\"\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"date-created\\\"],[9],[1,[27,\\\"my-format-date\\\",[[23,[\\\"partnership\\\",\\\"dateCreated\\\"]],\\\"defaultDateTime\\\"],null],false],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canDeletePartnership\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\"],[12,\\\"data-field-name\\\",[27,\\\"concat\\\",[\\\"delete-company-\\\",[23,[\\\"companyFromPartnership\\\",\\\"shortName\\\"]]],null]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"delete\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"delete\\\",[23,[\\\"partnership\\\"]]]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/partnership-table/row/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/partnership-table/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ZDYiOzrS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"p\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 col-sm-12\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"company.partnershipTable.label\\\"],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_PARTNERSHIP\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"data-field-name\\\",\\\"add-partnership\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"partnership.add.hint\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"partnership.add.label\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"openAddPartnershipModal\\\"]],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"data-field-name\\\",\\\"add-all-partnerships\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"partnership.connectAll.label\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"connectAllContractors\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"scrollable-modal-section\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-responsive\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\"],[11,\\\"data-field-name\\\",\\\"partnerships-table\\\"],[11,\\\"class\\\",\\\"table table-hover table-condensed\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"company.partnershipTable.companyName\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"company.shortName\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"company.taxIdNumber\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"company.country\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"partnership.dateCreated\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_PARTNERSHIP\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"filteredPartnerships\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"partnership-table/row\\\",null,[[\\\"partnership\\\",\\\"company\\\"],[[22,1,[]],[23,[\\\"company\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"partnerships\\\",\\\"isPending\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"common.loadingData\\\"],null],false],[0,\\\" \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/images/ajax-loader.gif\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/partnership-table/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/paste-area/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: 'span',\n    didInsertElement: function () {\n      this._super();\n\n      const self = this;\n      const BACKSPACE_CODE = 8; // Pozwalamy tylko wklejać i usuwać tekst w polu tekstowym.\n\n      this.$('textarea').on('keydown', function (event) {\n        return event.ctrlKey || event.keyCode === BACKSPACE_CODE;\n      });\n      this.$('textarea').on('paste', function () {\n        Ember.run.debounce(self, self.notifyAboutPastedContent, 100);\n      });\n    },\n\n    notifyAboutPastedContent() {\n      const content = this.$('textarea').val();\n      this.get('onPaste')(content);\n      this.$('textarea').val('');\n    },\n\n    actions: {\n      clearContent() {\n        this.$('textarea').val('');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/paste-area/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"nboF0c2B\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"textarea\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"rows\\\"],[\\\"textarea\\\",\\\"form-control non-resizable paste-area inline-block\\\",\\\"Ctrl+V\\\",\\\"1\\\"]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/paste-area/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/patron-auto-complete/component\", [\"exports\", \"apollo/pods/components/custom-auto-complete/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _component.default.extend({\n    valueProperty: 'id',\n    urlAddress: '/company/patrons',\n    options: [],\n    suggestions: function () {\n      return this.get('options');\n    }.property('options.@each'),\n    actions: {\n      selectItem: function (item) {\n        this.set('selectedFromList', true);\n        this.set('selectedValue', item.name);\n        this.sendAction('selectItem', item);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/periodic-transport-form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"YwlsBhGa\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"recurring-transport-form\\\",null,[[\\\"type\\\",\\\"isActive\\\",\\\"model\\\",\\\"transport\\\",\\\"labelTranslationKey\\\"],[\\\"periodicTransport\\\",[23,[\\\"transport\\\",\\\"periodicTransportActive\\\"]],[23,[\\\"transport\\\",\\\"periodicTransport\\\"]],[23,[\\\"transport\\\"]],\\\"periodicTransport.label\\\"]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/periodic-transport-form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/phone-prefix/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n\n    init() {\n      this._super(...arguments);\n\n      Ember.run.once(this, function () {\n        if (!this.get('existingPhonePrefix')) {\n          const phonePrefix = this.get('defaultPhonePrefix.phonePrefix');\n          this.setPhonePrefix(phonePrefix);\n        }\n      });\n    },\n\n    defaultPhonePrefix: Ember.computed('sessionAccount.currentUser.company.country.id', function () {\n      const countryId = this.get('sessionAccount.currentUser.company.country.id');\n      return this.get('phonePrefixes').find(country => country.id === countryId);\n    }),\n    selectedPhonePrefix: Ember.computed('advice.driverMobilePhonePrefix', 'existingPhonePrefix', function () {\n      const defaultPrefix = this.get('defaultPhonePrefix');\n      const existingPrefix = this.get('store').peekAll('country').find(country => country.phonePrefix === this.get('existingPhonePrefix'));\n      return existingPrefix || defaultPrefix;\n    }),\n    disabled: Ember.computed(function () {\n      return this.get('advice.disabled') || this.get('shouldBeDisabled');\n    }),\n    phonePrefixes: Ember.computed(function () {\n      const sortedPhonePrefixes = this.get('store').peekAll('country').map(country => {\n        return {\n          id: country.id,\n          phonePrefix: country.phonePrefix,\n          ibanSymbol: country.ibanSymbol\n        };\n      }).sortBy('ibanSymbol');\n      const polishPhonePrefix = sortedPhonePrefixes.find(element => element.ibanSymbol === 'PL');\n      const index = sortedPhonePrefixes.indexOf(polishPhonePrefix); // chcemy mieć polski kierunkowy na pierwszym miejscu\n\n      sortedPhonePrefixes.splice(index, 1);\n      sortedPhonePrefixes.unshift(polishPhonePrefix);\n      return sortedPhonePrefixes;\n    }),\n\n    searchForPhonePrefix(term, obj) {\n      const phonePrefixes = obj.options;\n      const lowerCaseTerm = term.toLowerCase();\n      return phonePrefixes.filter(element => {\n        return element.ibanSymbol.toLowerCase().includes(lowerCaseTerm) || element.phonePrefix.toLowerCase().includes(lowerCaseTerm);\n      });\n    },\n\n    actions: {\n      setPhonePrefix: function (phonePrefix) {\n        this.set('selectedPhonePrefix', phonePrefix);\n        this.setPhonePrefix(phonePrefix.phonePrefix);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/phone-prefix/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"avJZ7vOK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"phonePrefix\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input-group\\\"],[11,\\\"data-field-name\\\",\\\"phone-number-prefix\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon\\\"],[11,\\\"id\\\",\\\"numberPrefix\\\"],[9],[0,\\\"+\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"search\\\",\\\"disabled\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"selectedPhonePrefix\\\"]],[23,[\\\"phonePrefixes\\\"]],[23,[\\\"searchForPhonePrefix\\\"]],[23,[\\\"disabled\\\"]],true,[27,\\\"t\\\",[\\\"common.driverMobilePhonePrefix.placeholder\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setPhonePrefix\\\"],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[22,1,[\\\"ibanSymbol\\\"]],false],[0,\\\" : \\\"],[1,[22,1,[\\\"phonePrefix\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/phone-prefix/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/planning/custom-fields-section/custom-field/component\", [\"exports\", \"apollo/mixins/transport-form-mixin\"], function (_exports, _transportFormMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_transportFormMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    enabledOptionsWithDependency: Ember.computed('', function () {\n      const pairs = this.get('customFieldPairs');\n      const options = this.get('pair.definition.enabledOptions');\n      const avialableOptions = [];\n      options.forEach(option => {\n        const relatedDef = option.get('relatedDefinition.content');\n\n        if (relatedDef === null) {\n          avialableOptions.push(option);\n        } else {\n          pairs.forEach(pair => {\n            if (pair.definition === relatedDef) {\n              const value = pair.value.get('option');\n              option.get('relatedOptions').forEach(rOpt => {\n                if (rOpt === value.contuent) {\n                  avialableOptions.push(option);\n                }\n              });\n            }\n          });\n        }\n      });\n      return avialableOptions;\n    }),\n    actions: {\n      setOption(pair, option) {\n        const self = this;\n        pair.value.set('option', option);\n        pair.value.set('hasDirtyAttributes', true); // Żeby znikały czerwone ramki, gdy nie są już potrzebne.\n\n        if (pair.value.get('errors.length') > 0) {\n          pair.value.validate();\n        }\n\n        if (pair.definition.get('isSelectType') && pair.value.get('option.transportPanel')) {\n          const transportPanelClass = pair.definition.get('TRANSPORT_PANEL_CLASS')[pair.value.get('option.transportPanel')];\n          self.openPanel(transportPanelClass);\n        }\n      },\n\n      setCustomFieldData(pair, option) {\n        pair.value.set('value', option.value || option);\n      },\n\n      removeCustomField(pair) {\n        if (!pair.value) {\n          return;\n        }\n\n        pair.value.set('value', null);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/planning/custom-fields-section/custom-field/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"lBrvuldk\",\n    \"block\": \"{\\\"symbols\\\":[\\\"result\\\",\\\"opt\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"pair\\\",\\\"value\\\",\\\"shouldDataBeHidden\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"dummy-input-plug\\\",null,[[\\\"rows\\\"],[1]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"pair\\\",\\\"definition\\\",\\\"hasAutomaticValueEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"autocomplete\\\",\\\"disabled\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"pair\\\",\\\"value\\\",\\\"value\\\"]],\\\"off\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"pair\\\",\\\"definition\\\",\\\"isDateType\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"not-inline-block\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"disabled\\\",\\\"onChange\\\",\\\"formatType\\\",\\\"class\\\",\\\"nativeFlatpickrOptions\\\"],[[27,\\\"if\\\",[[23,[\\\"pair\\\",\\\"value\\\",\\\"value\\\"]],[23,[\\\"pair\\\",\\\"value\\\",\\\"value\\\"]],null],null],[23,[\\\"pair\\\",\\\"value\\\",\\\"editionDisabled\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"pair\\\",\\\"value\\\",\\\"value\\\"]]],null]],null],[27,\\\"if\\\",[[23,[\\\"pair\\\",\\\"definition\\\",\\\"isDateTimeType\\\"]],\\\"defaultDateTime\\\",\\\"shortDate\\\"],null],\\\"form-control date-chooser\\\",[27,\\\"hash\\\",null,[[\\\"minuteIncrement\\\",\\\"enableTime\\\"],[1,[23,[\\\"pair\\\",\\\"definition\\\",\\\"isDateTimeType\\\"]]]]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"pair\\\",\\\"value\\\"]],\\\"no-vertical-margin\\\",\\\"value\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"pair\\\",\\\"definition\\\",\\\"isSelectType\\\"]]],null,{\\\"statements\\\":[[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"allowClear\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"autocomplete\\\",\\\"onchange\\\"],[\\\"form-control custom-field-select\\\",[27,\\\"readonly\\\",[[23,[\\\"pair\\\",\\\"value\\\",\\\"option\\\"]]],null],[23,[\\\"enabledOptionsWithDependency\\\"]],true,true,\\\"nameInAppropriateLanguage\\\",[23,[\\\"placeholder\\\"]],[23,[\\\"pair\\\",\\\"value\\\",\\\"editionDisabled\\\"]],\\\"off\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setOption\\\",[23,[\\\"pair\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"custom-field-select-value\\\"],[9],[1,[22,2,[\\\"nameInAppropriateLanguage\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"pair\\\",\\\"value\\\"]],\\\"no-vertical-margin\\\",\\\"option\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"pair\\\",\\\"definition\\\",\\\"isNumberType\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"autocomplete\\\",\\\"disabled\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"pair\\\",\\\"value\\\",\\\"value\\\"]],\\\"off\\\",[23,[\\\"pair\\\",\\\"value\\\",\\\"editionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"pair\\\",\\\"value\\\"]],\\\"no-vertical-margin\\\",\\\"value\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"pair\\\",\\\"definition\\\",\\\"isTextAreaType\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"value\\\",\\\"class\\\",\\\"rows\\\",\\\"autocomplete\\\",\\\"disabled\\\"],[[23,[\\\"pair\\\",\\\"value\\\",\\\"value\\\"]],\\\"form-control vertical-resizable-only\\\",[23,[\\\"pair\\\",\\\"definition\\\",\\\"textAreaRowsNumber\\\"]],\\\"off\\\",[23,[\\\"pair\\\",\\\"value\\\",\\\"editionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"pair\\\",\\\"definition\\\",\\\"autocompleteEnabled\\\"]]],null,{\\\"statements\\\":[[4,\\\"custom-field-auto-complete\\\",null,[[\\\"field\\\",\\\"definitionId\\\",\\\"allowEnteringNewValue\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"newValueEntered\\\",\\\"clearSelection\\\",\\\"autocomplete\\\",\\\"disabled\\\"],[\\\"value\\\",[23,[\\\"pair\\\",\\\"definition\\\",\\\"id\\\"]],true,[27,\\\"readonly\\\",[[23,[\\\"pair\\\",\\\"value\\\",\\\"value\\\"]]],null],[27,\\\"t\\\",[\\\"custom-field-value.autoCompletePlaceholder\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setCustomFieldData\\\",[23,[\\\"pair\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"setCustomFieldData\\\",[23,[\\\"pair\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"removeCustomField\\\",[23,[\\\"pair\\\"]]],null],\\\"off\\\",[23,[\\\"pair\\\",\\\"value\\\",\\\"editionDisabled\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"value\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"pair\\\",\\\"value\\\"]],\\\"no-vertical-margin\\\",\\\"value\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"input\\\",[[27,\\\"-input-type\\\",[[23,[\\\"pair\\\",\\\"definition\\\",\\\"type\\\"]]],null]],[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"autocomplete\\\",\\\"disabled\\\"],[[23,[\\\"pair\\\",\\\"definition\\\",\\\"type\\\"]],\\\"form-control\\\",[23,[\\\"pair\\\",\\\"value\\\",\\\"value\\\"]],\\\"off\\\",[23,[\\\"pair\\\",\\\"value\\\",\\\"editionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"pair\\\",\\\"value\\\"]],\\\"no-vertical-margin\\\",\\\"value\\\"]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/planning/custom-fields-section/custom-field/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/planning/custom-fields-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"QInEzulw\",\n    \"block\": \"{\\\"symbols\\\":[\\\"pair\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"customFields\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[22,1,[\\\"definition\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"value\\\",\\\"changeMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"alert-text\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-exclamation-circle\\\"],[12,\\\"title\\\",[28,[[22,1,[\\\"value\\\",\\\"changeMessage\\\"]]]]],[9],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-7 col-xs-12 \\\",[27,\\\"if\\\",[[22,1,[\\\"value\\\",\\\"errors\\\",\\\"option\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-type\\\",\\\"custom-field\\\"],[12,\\\"data-field-name\\\",[28,[[22,1,[\\\"definition\\\",\\\"englishNameTrimmed\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"planning/custom-fields-section/custom-field\\\",null,[[\\\"pair\\\",\\\"customFields\\\",\\\"placeholder\\\"],[[22,1,[]],[23,[\\\"customFields\\\"]],[27,\\\"t\\\",[\\\"common.selectValue\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/planning/custom-fields-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/planning/delivery-step-section/component\", [\"exports\", \"apollo/mixins/step-mixin\"], function (_exports, _stepMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_stepMixin.default, {\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    classNames: Ember.A(['step-responsive-width']),\n    dateUtils: Ember.inject.service('date-utils'),\n    arrivalDateFormat: 'DD.MM.YYYY HH:mm',\n    addNewAddress: false,\n    companyType: 'SUPPLIER',\n    showContactPersonDetails: Ember.computed('delivery.unloadContactPersonDetails', function () {\n      return this.get('delivery.unloadContactPersonDetails') !== null;\n    }),\n    loadStepFormattedArrivalDate: Ember.computed('delivery.loadStep.arrivalDate', function () {\n      return this.get('delivery.loadStep.arrivalDate') ? this.get('dateUtils').formatDate(this.get('delivery.loadStep.arrivalDate'), this.get('arrivalDateFormat')) : '';\n    }),\n    loadStepFormattedRealDate: Ember.computed('delivery.realLoadDate', function () {\n      return this.get('delivery.realLoadDate') ? this.get('dateUtils').formatDate(this.get('delivery.realLoadDate'), this.get('arrivalDateFormat')) : '';\n    }),\n    loadStepFormattedMinAdviceDate: Ember.computed('delivery.loadStep.minAdviceDate', function () {\n      return this.get('delivery.loadStep.minAdviceDate') ? this.get('dateUtils').formatDate(this.get('delivery.loadStep.minAdviceDate'), this.get('arrivalDateFormat')) : '';\n    }),\n    loadStepFormattedMaxAdviceDate: Ember.computed('delivery.loadStep.maxAdviceDate', function () {\n      return this.get('delivery.loadStep.maxAdviceDate') ? this.get('dateUtils').formatDate(this.get('delivery.loadStep.maxAdviceDate'), this.get('arrivalDateFormat')) : '';\n    }),\n    unloadStepFormattedArrivalDate: Ember.computed('delivery.unloadStep.arrivalDate', function () {\n      return this.get('delivery.unloadStep.arrivalDate') ? this.get('dateUtils').formatDate(this.get('delivery.unloadStep.arrivalDate'), this.get('arrivalDateFormat')) : '';\n    }),\n    unloadStepFormattedRealDate: Ember.computed('delivery.realUnloadDate', function () {\n      return this.get('delivery.realUnloadDate') ? this.get('dateUtils').formatDate(this.get('delivery.realUnloadDate'), this.get('arrivalDateFormat')) : '';\n    }),\n    unloadStepFormattedMinAdviceDate: Ember.computed('delivery.unloadStep.minAdviceDate', function () {\n      return this.get('delivery.unloadStep.minAdviceDate') ? this.get('dateUtils').formatDate(this.get('delivery.unloadStep.minAdviceDate'), this.get('arrivalDateFormat')) : '';\n    }),\n    useStepDateRange: Ember.computed('transportType.requiresAdviceDateRestrictions', function () {\n      return !!this.get('transportType.requiresAdviceDateRestrictions');\n    }),\n    useStepArrivalDate: Ember.computed('transportType.{requiresArrivalAndDepartureDate,requiresArrivalAndDepartureDateInWarehouseStep}', function () {\n      return !this.get('step.isInWarehouse') && this.get('transportType.requiresArrivalAndDepartureDate') || this.get('step.isInWarehouse') && this.get('transportTyperequiresArrivalAndDepartureDateInWarehouseStep');\n    }),\n    unloadStepFormattedMaxAdviceDate: Ember.computed('delivery.unloadStep.maxAdviceDate', function () {\n      return this.get('delivery.unloadStep.maxAdviceDate') ? this.get('dateUtils').formatDate(this.get('delivery.unloadStep.maxAdviceDate'), this.get('arrivalDateFormat')) : '';\n    }),\n    loadStepAddress: Ember.computed('delivery.loadStep.{address,warehouse.address}', function () {\n      return this.get('delivery.loadStep.isInWarehouse') ? this.get('delivery.loadStep.warehouse.address') : this.get('delivery.loadStep.address');\n    }),\n    defaultPrefix: Ember.computed('step.contactPersonMobilePhonePrefix', function () {\n      return this.get('step.contactPersonMobilePhonePrefix');\n    }),\n    countries: Ember.computed(function () {\n      return this.get('store').peekAll('country').sortBy('ibanSymbol');\n    }),\n    address: Ember.computed('step.address', function () {\n      return this.get('step.address');\n    }),\n    addressSummary: Ember.computed('address.{recipient,city,postal,street}', function () {\n      if (this.get('address.recipient')) {\n        return this.get('address.recipient');\n      }\n\n      if (this.get('address.street')) {\n        return `${this.get('address.street')}, ${this.get('address.city')}, ${this.get('address.postal')}`;\n      }\n\n      return '';\n    }).readOnly(),\n    companyToFindAddress: Ember.computed('step.company.id', 'sessionAccount.currentUser.company.id', function () {\n      if (this.get('step.company.id')) {\n        return this.get('step.company.id');\n      }\n\n      if (this.get('step.stepTypeName') === 'load' && this.transportType.get('defaultLoadCompanyId')) {\n        return this.transportType.get('defaultLoadCompanyId');\n      } else if (this.get('step.stepTypeName') === 'unload' && this.transportType.get('defaultUnloadCompanyId')) {\n        return this.transportType.get('defaultUnloadCompanyId');\n      }\n\n      return this.get('sessionAccount.currentUser.company.id');\n    }),\n    stepCountryField: Ember.computed('step.address.country', function () {\n      return this.get('step.address.country');\n    }),\n    showWarehouseCheckbox: Ember.computed('transportType.{allowLoadStepTypeChange,allowUnloadStepTypeChange}', function () {\n      return this.get('step.stepTypeName') === 'load' ? this.get('transportType.allowLoadStepTypeChange') : this.get('transportType.allowUnloadStepTypeChange');\n    }),\n    shouldShowSupplierField: Ember.computed('delivery.transportType', function () {\n      return this.get('authorityCheckerService').findPositiveAuthorityRestrictionsByActionType('ACCESS_SUPPLIER_COMPANY_FIELD', this.get('delivery.transportType.id'));\n    }),\n    actions: {\n      setArrivalDate(step, dateValues) {\n        step.set('arrivalDate', dateValues[0]);\n      },\n\n      setWarehouse(warehouse) {\n        this.get('step').set('warehouse', warehouse);\n        this.get('step.errors').remove('warehouse');\n      },\n\n      setAddressData(address) {\n        const self = this;\n\n        if (address.id) {\n          this.get('store').findRecord('address', address.id).then(a => {\n            self.get('step').set('address', a);\n          });\n        } else {\n          this.get('step.address').setProperties({\n            street: address.street,\n            postal: address.postal,\n            city: address.city\n          });\n          this.get('store').findRecord('country', address.country).then(c => {\n            self.get('step.address').set('country', c);\n          });\n        }\n      },\n\n      removeAddress() {\n        console.debug('Removing address from step..');\n        this.get('step').set('address', null);\n      },\n\n      setPhonePrefix(phonePrefix) {\n        this.set('step.contactPersonMobilePhonePrefix', phonePrefix);\n      },\n\n      toggleNewAddress(step) {\n        if (this.get('addNewAddress')) {\n          this.send('deleteAddressFromStep', step);\n          this.set('addNewAddress', false);\n        } else {\n          this.send('setAddressForStep', step);\n          this.set('addNewAddress', true);\n        }\n      },\n\n      deleteAddressFromStep(step) {\n        step.get('address').then(address => {\n          address.unloadRecord();\n          step.set('address', null);\n        });\n      },\n\n      setAddressForStep(step) {\n        const self = this;\n        step.set('address', self.get('store').createRecord('address', {\n          company: self.get('sessionAccount.currentUser.company'),\n          enabled: true\n        }));\n      },\n\n      setContractorCompanyData(step, item) {\n        this.set('companyToFindAddress', item.id);\n        this.get('store').findRecord('company', item.id).then(company => {\n          step.set('companyGroup', null);\n          step.set('company', company);\n          step.set('address', null);\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/planning/delivery-step-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"zHZbjT8f\",\n    \"block\": \"{\\\"symbols\\\":[\\\"country\\\",\\\"result\\\",\\\"result\\\",\\\"w\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showWarehouseCheckbox\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"components/show-warehouse-checkbox\\\",null,[[\\\"step\\\"],[[23,[\\\"step\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"isInWarehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group form-group-padding\\\\n        \\\",[27,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"step\\\",\\\"isLoad\\\"]],[23,[\\\"delivery\\\",\\\"errors\\\",\\\"loadStep\\\"]]],null],\\\"has-error\\\"],null],\\\"\\\\n        \\\",[27,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"not\\\",[[23,[\\\"step\\\",\\\"isLoad\\\"]]],null],[23,[\\\"delivery\\\",\\\"errors\\\",\\\"unloadStep\\\"]]],null],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"step-warehouse\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.recipient\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"warehouse-select-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"warehouse-select\\\",\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"step\\\",\\\"warehouse\\\"]]],null],[23,[\\\"transportType\\\",\\\"warehousesForCurrentUser\\\"]],true,\\\"name\\\",[27,\\\"t\\\",[\\\"transport.warehouse\\\"],null],[23,[\\\"disabled\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setWarehouse\\\"],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,4,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"delivery\\\"]],[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"isLoad\\\"]],\\\"loadStep\\\",\\\"unloadStep\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-field\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"unloadStep-street\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.street\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"street-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",true,[23,[\\\"step\\\",\\\"warehouse\\\",\\\"address\\\",\\\"street\\\"]],[27,\\\"t\\\",[\\\"address.street\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-field\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.postalAndCity\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12 flex-space-between\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-2 no-padding padding-right-small\\\"],[12,\\\"data-field-name\\\",[28,[\\\"postal-code-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",true,[23,[\\\"step\\\",\\\"warehouse\\\",\\\"address\\\",\\\"postal\\\"]],[27,\\\"t\\\",[\\\"address.postal\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8 col-xs-3 no-padding\\\"],[12,\\\"data-field-name\\\",[28,[\\\"city-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",true,[23,[\\\"step\\\",\\\"warehouse\\\",\\\"address\\\",\\\"city\\\"]],[27,\\\"t\\\",[\\\"address.city\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-field\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.country\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"country-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",true,[23,[\\\"step\\\",\\\"warehouse\\\",\\\"address\\\",\\\"country\\\",\\\"name\\\"]],[27,\\\"t\\\",[\\\"address.country\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group form-group-padding\\\\n        \\\",[27,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"step\\\",\\\"isLoad\\\"]],[23,[\\\"delivery\\\",\\\"errors\\\",\\\"loadStep\\\"]]],null],\\\"has-error\\\"],null],\\\"\\\\n        \\\",[27,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"not\\\",[[23,[\\\"step\\\",\\\"isLoad\\\"]]],null],[23,[\\\"delivery\\\",\\\"errors\\\",\\\"unloadStep\\\"]]],null],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"shouldShowSupplierField\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"step-company\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"company.type.SUPPLIER.DELIVERY\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"company\\\"]],\\\"has-error\\\"],null],\\\" col-md-6 col-xs-11\\\"]]],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"company-auto-complete\\\",null,[[\\\"inputClass\\\",\\\"type\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"disabled\\\"],[\\\"dummy\\\",[23,[\\\"companyType\\\"]],[27,\\\"readonly\\\",[[23,[\\\"step\\\",\\\"companyLabel\\\"]]],null],[27,\\\"t\\\",[\\\"transport.company.autoCompletePlaceholder\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setContractorCompanyData\\\",[23,[\\\"step\\\"]]],null],[23,[\\\"disabled\\\"]]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,3,[\\\"shortName\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"step-warehouse\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.recipient\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-6 col-xs-11\\\"],[12,\\\"data-field-name\\\",[28,[\\\"recipient-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"addNewAddress\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"address-add-new\\\",null,[[\\\"step\\\"],[[23,[\\\"step\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"address-auto-complete\\\",null,[[\\\"field\\\",\\\"companyId\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"clearSelection\\\",\\\"disabled\\\"],[\\\"any\\\",[23,[\\\"companyToFindAddress\\\"]],[27,\\\"readonly\\\",[[23,[\\\"addressSummary\\\"]]],null],[27,\\\"t\\\",[\\\"address.autoCompletePlaceholder\\\"],null],\\\"setAddressData\\\",\\\"removeAddress\\\",[23,[\\\"disabled\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,2,[\\\"recipient\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,2,[\\\"postal\\\"]],false],[0,\\\" \\\"],[1,[22,2,[\\\"city\\\"]],false],[0,\\\", \\\"],[1,[22,2,[\\\"street\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"delivery\\\"]],[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"isLoad\\\"]],\\\"loadStep\\\",\\\"unloadStep\\\"],null],\\\"has-error\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"disabled\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-1 col-xs-1 center-icon-in-form no-horizontal-padding\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"enable-new-address\\\"],[11,\\\"class\\\",\\\"center-icon-in-form\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"addNewAddress\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-minus\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"address.removeAddress\\\"],null]]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"address.addNewAddress\\\"],null]]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"toggleNewAddress\\\",[23,[\\\"step\\\"]]]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-field\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"unloadStep-street\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.street\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"street-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[27,\\\"not\\\",[[23,[\\\"addNewAddress\\\"]]],null],[23,[\\\"step\\\",\\\"address\\\",\\\"street\\\"]],[27,\\\"t\\\",[\\\"address.street\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-field\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.postalAndCity\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12 flex-space-between\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-2 no-padding padding-right-small\\\"],[12,\\\"data-field-name\\\",[28,[\\\"postal-code-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[27,\\\"not\\\",[[23,[\\\"addNewAddress\\\"]]],null],[23,[\\\"step\\\",\\\"address\\\",\\\"postal\\\"]],[27,\\\"t\\\",[\\\"address.postal\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8 col-xs-3 no-padding\\\"],[12,\\\"data-field-name\\\",[28,[\\\"city-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[27,\\\"not\\\",[[23,[\\\"addNewAddress\\\"]]],null],[23,[\\\"step\\\",\\\"address\\\",\\\"city\\\"]],[27,\\\"t\\\",[\\\"address.city\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-field\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.country\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"country-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"addNewAddress\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",true,[23,[\\\"step\\\",\\\"address\\\",\\\"country\\\",\\\"name\\\"]],[27,\\\"t\\\",[\\\"address.country\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"stepCountryField\\\"]]],null],[23,[\\\"countries\\\"]],true,\\\"searchFieldCountry\\\",[27,\\\"t\\\",[\\\"transport.selectCountry\\\"],null],[27,\\\"not\\\",[[23,[\\\"addNewAddress\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"step\\\",\\\"address\\\",\\\"country\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"disabled\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],[23,[\\\"delivery\\\",\\\"loadStep\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"loadStepFormattedMinAdviceDate\\\"]],[23,[\\\"loadStepFormattedMaxAdviceDate\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"loadStepFormattedMinAdviceDate\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.minAdviceDate\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"time-range-from-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"loadStepFormattedMinAdviceDate\\\"]],[27,\\\"t\\\",[\\\"delivery.step.minAdviceDate\\\"],null],\\\"form-control\\\",\\\"text\\\",true]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"loadStepFormattedMaxAdviceDate\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.maxAdviceDate\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"time-range-to-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"loadStepFormattedMaxAdviceDate\\\"]],[27,\\\"t\\\",[\\\"delivery.step.maxAdviceDate\\\"],null],\\\"form-control\\\",\\\"text\\\",true]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"loadStepFormattedArrivalDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"loadStepFormattedArrivalDate\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.loadArrivalDate\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"loadStepFormattedArrivalDate\\\"]],[27,\\\"t\\\",[\\\"delivery.step.loadArrivalDate\\\"],null],\\\"form-control\\\",\\\"text\\\",true]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"loadStepFormattedRealDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"loadStepFormattedRealDate\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.loadRealDate\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"loadStepFormattedRealDate\\\"]],[27,\\\"t\\\",[\\\"delivery.step.loadRealDate\\\"],null],\\\"form-control\\\",\\\"text\\\",true]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],[23,[\\\"delivery\\\",\\\"unloadStep\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"unloadStepFormattedMinAdviceDate\\\"]],[23,[\\\"unloadStepFormattedMaxAdviceDate\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"unloadStepFormattedMinAdviceDate\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.minAdviceDate\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"time-range-from-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"unloadStepFormattedMinAdviceDate\\\"]],[27,\\\"t\\\",[\\\"delivery.step.minAdviceDate\\\"],null],\\\"form-control\\\",\\\"text\\\",true]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"unloadStepFormattedMaxAdviceDate\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.maxAdviceDate\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"time-range-to-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"unloadStepFormattedMaxAdviceDate\\\"]],[27,\\\"t\\\",[\\\"delivery.step.maxAdviceDate\\\"],null],\\\"form-control\\\",\\\"text\\\",true]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"unloadStepFormattedArrivalDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"unloadStepFormattedArrivalDate\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.unloadArrivalDate\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"unload-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"unloadStepFormattedArrivalDate\\\"]],[27,\\\"t\\\",[\\\"delivery.step.unloadArrivalDate\\\"],null],\\\"form-control\\\",\\\"text\\\",true]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"unloadStepFormattedRealDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"unloadStepFormattedRealDate\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.loadRealDate\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"unload-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"unloadStepFormattedRealDate\\\"]],[27,\\\"t\\\",[\\\"delivery.step.unloadRealDate\\\"],null],\\\"form-control\\\",\\\"text\\\",true]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row padding-top\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"useStepDateRange\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"step\\\",\\\"isLoad\\\"]],[23,[\\\"delivery\\\",\\\"errors\\\",\\\"loadStepMaxAdviceDate\\\"]]],null],\\\"has-error\\\"],null],\\\"\\\\n                \\\",[27,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"not\\\",[[23,[\\\"step\\\",\\\"isLoad\\\"]]],null],[23,[\\\"delivery\\\",\\\"errors\\\",\\\"unloadStepMaxAdviceDate\\\"]]],null],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"transport/advice-date-restrictions-section\\\",null,[[\\\"step\\\",\\\"transportType\\\",\\\"planningView\\\",\\\"disabled\\\"],[[23,[\\\"step\\\"]],[23,[\\\"transportType\\\"]],true,[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-offset-5 col-md-7 col-xs-12\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"delivery\\\"]],[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"isLoad\\\"]],\\\"loadStepMaxAdviceDate\\\",\\\"unloadStepMaxAdviceDate\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"useStepArrivalDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group row\\\\n                \\\",[27,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"step\\\",\\\"isLoad\\\"]],[23,[\\\"delivery\\\",\\\"errors\\\",\\\"loadStepArrivalDate\\\"]]],null],\\\"has-error\\\"],null],\\\"\\\\n                \\\",[27,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"not\\\",[[23,[\\\"step\\\",\\\"isLoad\\\"]]],null],[23,[\\\"delivery\\\",\\\"errors\\\",\\\"unloadStepArrivalDate\\\"]]],null],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"isLoad\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"transport.arrivalDate\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"transport.departureDate\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"formatType\\\",\\\"class\\\",\\\"nativeFlatpickrOptions\\\"],[[27,\\\"readonly\\\",[[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"arrivalDate\\\"]],[23,[\\\"step\\\",\\\"arrivalDate\\\"]],null],null]],null],[27,\\\"action\\\",[[22,0,[]],\\\"setArrivalDate\\\",[23,[\\\"step\\\"]]],null],\\\"defaultDateTime\\\",\\\"form-control\\\",[27,\\\"hash\\\",null,[[\\\"minuteIncrement\\\",\\\"enableTime\\\"],[15,true]]]]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"delivery\\\"]],[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"isLoad\\\"]],\\\"loadStepArrivalDate\\\",\\\"unloadStepArrivalDate\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"disabled\\\"]],[23,[\\\"showContactPersonDetails\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group row\\\\n                            \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"contactPerson\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.contactPersonDetails\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"contact-person-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",true,[23,[\\\"delivery\\\",\\\"unloadContactPersonDetails\\\"]],[27,\\\"t\\\",[\\\"step.contactPerson.label\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\"]],\\\"contactPerson\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"disabled\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group row\\\\n                            \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"contactPerson\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.contactPersonDetails\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"contact-person-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"contactPerson\\\"]],[27,\\\"t\\\",[\\\"step.contactPerson.label\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\"]],\\\"contactPerson\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"step.contactPerson.phoneNumber\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12 flex-space-between\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-2 col-xs-2 no-padding padding-right-small\\\"],[12,\\\"data-field-name\\\",[28,[\\\"contact-person-phone-prefix-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"phone-prefix\\\",null,[[\\\"setPhonePrefix\\\",\\\"existingPhonePrefix\\\",\\\"disabled\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"setPhonePrefix\\\"],null],[23,[\\\"defaultPrefix\\\"]],[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-3 no-padding \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"contactPersonMobilePhoneNumber\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"data-field-name\\\",[28,[\\\"contact-person-phone-number-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"min\\\",\\\"max\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",\\\"number\\\",\\\"100000000\\\",\\\"999999999999\\\",[23,[\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"contactPersonMobilePhoneNumber\\\"]],[27,\\\"t\\\",[\\\"step.contactPerson.phoneNumber\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\"]],\\\"contactPersonMobilePhoneNumber\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/planning/delivery-step-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/planning/delivery-table/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    intl: Ember.inject.service(),\n    enums: Ember.inject.service('enum-service'),\n    incoterms: Ember.computed('', function () {\n      return this.get('enums').get('incoterms');\n    }),\n    disableFiltering: Ember.computed('filters', function () {\n      return !this.get('filters');\n    }),\n    columns: Ember.computed(function () {\n      const columns = [{\n        propertyName: 'deliveryNumber',\n        title: this.get('intl').t('delivery.deliveryNumber'),\n        className: 'column-delivery-number',\n        disableFiltering: this.get('disableFiltering'),\n        disableSorting: true\n      }, {\n        propertyName: 'unloadAddressRecipient',\n        title: this.get('intl').t('common.client'),\n        className: 'column-delivery-client',\n        disableFiltering: this.get('disableFiltering'),\n        disableSorting: true\n      }, {\n        propertyName: 'loadStepPostalAndCity',\n        title: this.get('intl').t('delivery.step.load'),\n        className: 'column-delivery-load',\n        disableFiltering: this.get('disableFiltering'),\n        disableSorting: true\n      }, {\n        propertyName: 'unloadStepPostalAndCity',\n        title: this.get('intl').t('delivery.step.unload'),\n        className: 'column-delivery-unload',\n        disableFiltering: this.get('disableFiltering'),\n        disableSorting: true\n      }];\n\n      if (this.get('disableFiltering')) {\n        columns.push({\n          propertyName: 'unloadArrivalOrMinAdviceDate',\n          title: this.get('intl').t('common.plannedDate'),\n          className: 'column-delivery-plannedDate',\n          disableFiltering: true,\n          disableSorting: true\n        });\n      } else {\n        columns.push({\n          propertyName: 'unloadArrivalOrMinAdviceDate',\n          title: this.get('intl').t('common.plannedDate'),\n          className: 'column-delivery-plannedDate',\n          componentForFilterCell: 'server-table/filters/date-time-filter'\n        });\n      }\n\n      columns.push({\n        propertyName: 'incoterms',\n        title: this.get('intl').t('delivery.incoterms'),\n        className: 'column-delivery-incoterms',\n        filterWithSelect: true,\n        predefinedFilterOptions: this.get('incoterms'),\n        disableFiltering: this.get('disableFiltering'),\n        disableSorting: true\n      }, {\n        propertyName: 'grossWeight',\n        title: this.get('intl').t('common.grossWeightKg'),\n        className: 'column-delivery-grossWeight',\n        disableFiltering: this.get('disableFiltering'),\n        disableSorting: true\n      });\n      return columns;\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/planning/delivery-table/delivery-row/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: '',\n    modalService: Ember.inject.service('modal-service'),\n    sessionAccount: Ember.inject.service('session-account'),\n    canDeleteDelivery: Ember.computed('', function () {\n      return this.get('sessionAccount').hasRole('ROLE_CAN_DELETE_DELIVERY');\n    }),\n    actions: {\n      show() {\n        const modalPath = this.get('modalService').MODALS.DELIVERIES.CREATE;\n        const delivery = this.get('delivery');\n        const model = {\n          delivery,\n          transportType: this.get('transportType'),\n          customFields: this.get('customFieldsList')\n        };\n        this.get('modalService').showModal(modalPath, model);\n      },\n\n      deleteDelivery(delivery) {\n        delivery.deleteRecord();\n        delivery.save();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/planning/delivery-table/delivery-row/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"7D0rk18p\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"draggable-object\\\",null,[[\\\"content\\\",\\\"isSortable\\\",\\\"tagName\\\"],[[23,[\\\"delivery\\\"]],true,\\\"tr\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\" btn btn-sm btn-success\\\"],[9],[1,[23,[\\\"delivery\\\",\\\"deliveryNumber\\\"]],false],[3,\\\"action\\\",[[22,0,[]],\\\"show\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\"],[9],[4,\\\"if\\\",[[23,[\\\"delivery\\\",\\\"unloadStep\\\",\\\"address\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[23,[\\\"delivery\\\",\\\"unloadStep\\\",\\\"address\\\",\\\"recipient\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,[\\\"delivery\\\",\\\"unloadStep\\\",\\\"warehouse\\\",\\\"address\\\",\\\"recipient\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"delivery\\\",\\\"loadStep\\\",\\\"address\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,[\\\"delivery\\\",\\\"loadStep\\\",\\\"address\\\",\\\"postal\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"delivery\\\",\\\"loadStep\\\",\\\"address\\\",\\\"city\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,[\\\"delivery\\\",\\\"loadStep\\\",\\\"warehouse\\\",\\\"address\\\",\\\"postal\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"delivery\\\",\\\"loadStep\\\",\\\"warehouse\\\",\\\"address\\\",\\\"city\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"delivery\\\",\\\"unloadStep\\\",\\\"address\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,[\\\"delivery\\\",\\\"unloadStep\\\",\\\"address\\\",\\\"postal\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"delivery\\\",\\\"unloadStep\\\",\\\"address\\\",\\\"city\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,[\\\"delivery\\\",\\\"unloadStep\\\",\\\"warehouse\\\",\\\"address\\\",\\\"postal\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"delivery\\\",\\\"unloadStep\\\",\\\"warehouse\\\",\\\"address\\\",\\\"city\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"delivery\\\",\\\"unloadStep\\\",\\\"arrivalDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"delivery\\\",\\\"unloadStep\\\",\\\"arrivalDate\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"delivery\\\",\\\"unloadStep\\\",\\\"minAdviceDate\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\"],[11,\\\"style\\\",\\\"text-align: center\\\"],[9],[1,[23,[\\\"delivery\\\",\\\"incoterms\\\"]],false],[10],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"value\\\"],[11,\\\"style\\\",\\\"text-align: right\\\"],[9],[1,[23,[\\\"delivery\\\",\\\"grossWeight\\\"]],false],[0,\\\" kg\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canDeleteDelivery\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-danger\\\",[27,\\\"t\\\",[\\\"delivery.delete\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"deleteDelivery\\\",[23,[\\\"delivery\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-trash\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/planning/delivery-table/delivery-row/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/planning/delivery-table/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"cCBYDJwg\",\n    \"block\": \"{\\\"symbols\\\":[\\\"mt\\\",\\\"table\\\",\\\"body\\\",\\\"delivery\\\",\\\"header\\\"],\\\"statements\\\":[[4,\\\"server-table\\\",null,[[\\\"data\\\",\\\"columns\\\"],[[23,[\\\"deliveries\\\"]],[23,[\\\"columns\\\"]]]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"borderless-wrapper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,1,[\\\"table\\\"]],\\\"expected `mt.table` to be a contextual component but found a string. Did you mean `(component mt.table)`? ('apollo/pods/components/planning/delivery-table/template.hbs' @ L5:C11) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,2,[\\\"header\\\"]],\\\"expected `table.header` to be a contextual component but found a string. Did you mean `(component table.header)`? ('apollo/pods/components/planning/delivery-table/template.hbs' @ L6:C15) \\\"],null]],[[\\\"class\\\"],[\\\"planning-delivery-table-header\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,5,[\\\"row-sorting\\\"]],false],[0,\\\"\\\\n                \\\"],[1,[22,5,[\\\"row-filtering\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,2,[\\\"body\\\"]],\\\"expected `table.body` to be a contextual component but found a string. Did you mean `(component table.body)`? ('apollo/pods/components/planning/delivery-table/template.hbs' @ L10:C15) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,3,[\\\"visibleContent\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"planning/delivery-table/delivery-row\\\",null,[[\\\"delivery\\\",\\\"customFieldsList\\\",\\\"transportType\\\"],[[22,4,[]],[23,[\\\"customFieldsList\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[2]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/planning/delivery-table/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/planning/modals/add-transport/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    store: service(),\n    deliveryService: service(),\n    intl: service(),\n    basicTransport: Ember.computed('model.basicTransport', function () {\n      return this.get('model.basicTransport');\n    }),\n    availableTransportTypes: Ember.computed('model.availableTransportTypes', function () {\n      return this.get('model.availableTransportTypes');\n    }),\n    showRouteTemplate: Ember.computed('transportType.priceListSetting.showRouteTemplate', function () {\n      return this.get('transportType.priceListSetting.showRouteTemplate');\n    }),\n    routes: Ember.computed('model.availableRoutes', function () {\n      return this.get('model.availableRoutes').sortBy('name');\n    }),\n    transportType: Ember.computed('model.transportType', function () {\n      return this.get('model.transportType');\n    }),\n    customFields: Ember.computed('model.customFields', function () {\n      const definitions = this.get('model.customFields');\n      const pairs = [];\n\n      for (let i = 0; i < definitions.get('length'); i++) {\n        const definition = definitions.objectAt(i);\n        const transport = this.get('basicTransport');\n        const value = this.store.createRecord('customFieldValue', {\n          definition,\n          transport,\n          option: definition.get('defaultOption')\n        });\n        transport.get('customFields').addObject(value);\n        pairs[i] = {\n          value,\n          definition\n        };\n      }\n\n      return pairs;\n    }),\n    unloadObsoleteObjectsAndCloseModal: async function () {\n      this.get('customFields').forEach(cf => {\n        if (cf.value) {\n          cf.value.destroyRecord();\n        }\n      });\n      this.send('hideModal');\n    },\n    showAmountOfCover: Ember.computed('transportType.isAmountOfCoverVisible', function () {\n      return this.get('transportType.isAmountOfCoverVisible');\n    }),\n    canNotEditMainData: Ember.computed('sessionAccount', function () {\n      return !this.get('basicTransport').actionCanBePerformed('UPDATE_MAIN_DATA_SECTION');\n    }),\n    actions: {\n      onRouteTemplateSelect(route) {\n        this.set('basicTransport.routeTemplate', route);\n      },\n\n      async save() {\n        if (!this.get('basicTransport').validate({\n          only: ['routeTemplate', 'customFields', 'amountOfCover']\n        })) {\n          return;\n        }\n\n        await this.deliveryService.createNewBasicTransport(this.get('basicTransport'));\n        this.send('refreshModel');\n        this.set('errors', Ember.A([]));\n        this.unloadObsoleteObjectsAndCloseModal();\n      },\n\n      cancel() {\n        this.unloadObsoleteObjectsAndCloseModal();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/planning/modals/add-transport/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"yNN7OUW1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"error\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\"],[\\\"Nowa wysyłka\\\"]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showRouteTemplate\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"components/route/route-template-select\\\",null,[[\\\"transport\\\",\\\"availableRoutes\\\",\\\"onSelect\\\"],[[23,[\\\"basicTransport\\\"]],[23,[\\\"routes\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"onRouteTemplateSelect\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"planning/custom-fields-section\\\",null,[[\\\"customFields\\\"],[[23,[\\\"customFields\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showAmountOfCover\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"components/amount-of-cover-section\\\",null,[[\\\"amountOfCover\\\",\\\"transport\\\",\\\"disabled\\\",\\\"label\\\"],[[23,[\\\"basicTransport\\\",\\\"amountOfCover\\\"]],[23,[\\\"basicTransport\\\"]],[23,[\\\"canNotEditMainData\\\"]],[27,\\\"t\\\",[\\\"transport.amountOfCover\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons padding-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/planning/modals/add-transport/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/planning/not-planned-panel/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    uuidService: Ember.inject.service('uuid-service'),\n    modalService: Ember.inject.service('modal-service'),\n    transportTypeSettingService: Ember.inject.service('transport-type-settings-service'),\n    deliveryService: Ember.inject.service('delivery-service'),\n    totalWeight: Ember.computed('deliveries.@each.grossWeight', function () {\n      const deliveries = this.get('deliveries');\n      let totalWeight = 0;\n      deliveries.forEach(delivery => {\n        totalWeight += delivery.get('grossWeight');\n      });\n      return totalWeight;\n    }),\n    customFieldsPairs: Ember.computed('customFields', function () {\n      const definitions = this.get('customFields');\n      return this.deliveryService.findCustomFieldPairs(definitions);\n    }),\n    canCreateDelivery: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_CAN_CREATE_DELIVERY');\n    }),\n    deliveries: Ember.computed('model.deliveries.{length,@each.id,[]}', function () {\n      return this.get('model.deliveries').sortBy('id');\n    }),\n    actions: {\n      newDelivery: async function () {\n        const self = this;\n        const transportType = await this.get('transportType');\n        const delivery = this.store.createRecord('delivery', {\n          transportType,\n          deliverySetting: await this.transportTypeSettingService.getDeliverySettings(transportType)\n        });\n        await this.deliveryService.autoGenerateDeliveryNumber(delivery);\n        const isLoadStepInWarehouseByDefault = transportType.get('isLoadStepInWarehouseByDefault');\n        const isUnloadStepInWarehouseByDefault = transportType.get('isUnloadStepInWarehouseByDefault');\n        const loadContactPersonDefaultName = this.sessionAccount.get('currentUser.name');\n        const loadContactPersonDefaultPhone = this.sessionAccount.get('currentUser.mobilePhoneNumber');\n        delivery.set('loadStep', self.get('store').createRecord('step', {\n          ownedByPrincipal: isLoadStepInWarehouseByDefault,\n          stepTypeName: 'load',\n          orderInTransport: 0,\n          contactPerson: loadContactPersonDefaultName,\n          contactPersonMobilePhoneNumber: loadContactPersonDefaultPhone\n        }));\n        delivery.set('unloadStep', self.get('store').createRecord('step', {\n          ownedByPrincipal: isUnloadStepInWarehouseByDefault,\n          stepTypeName: 'unload',\n          orderInTransport: 1\n        }));\n        delivery.set('packaging', Ember.A([]));\n        this.deliveryService.createSimplePackaging(delivery);\n        const model = {\n          customFields: this.get('customFieldsPairs'),\n          delivery,\n          transportType,\n          packageTypes: this.get('packageTypes')\n        };\n        const modalPath = this.get('modalService').MODALS.DELIVERIES.CREATE;\n        this.get('modalService').showModal(modalPath, model);\n      },\n\n      async releaseDelivery(obj) {\n        const response = await this.apolloApiService.callApolloApi(this.apolloApiService.APOLLO_API.PLANNING.REMOVE_DELIVERY_FROM_TRANSPORT, null, {\n          body: JSON.stringify({\n            deliveryId: obj.get('id')\n          })\n        });\n\n        if (response.ok) {\n          this.set('action', 'refreshModel');\n          this.sendAction('action');\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/planning/not-planned-panel/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Lww9OclS\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-lg-6\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-heading\\\"],[11,\\\"style\\\",\\\"font-weight: bold; font-size: 18px;padding-right: 8px;height: 52px;vertical-align: middle\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"style\\\",\\\"padding-top: 5px\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"delivery.toPlan\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canCreateDelivery\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-info pull-right\\\"],[11,\\\"style\\\",\\\"margin-top: -6px\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"newDelivery\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"draggable-object-target\\\",null,[[\\\"action\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"releaseDelivery\\\"],null]]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"planning/delivery-table\\\",null,[[\\\"customFieldsList\\\",\\\"deliveries\\\",\\\"transportType\\\",\\\"filters\\\"],[[23,[\\\"customFields\\\"]],[23,[\\\"deliveries\\\"]],[23,[\\\"transportType\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-footer\\\"],[11,\\\"style\\\",\\\"padding-right: 8px;padding-left: 8px;height: 42px\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[11,\\\"data-field-name\\\",\\\"unplanned-total-weight\\\"],[9],[1,[21,\\\"totalWeight\\\"],false],[0,\\\" kg\\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/planning/not-planned-panel/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/planning/planned-panel/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    actionProgressToast: Ember.inject.service('action-progress-service'),\n    modalService: Ember.inject.service('modal-service'),\n    intl: Ember.inject.service(),\n    deliveryService: Ember.inject.service('delivery-service'),\n    store: Ember.inject.service(),\n    transportTypeSettingService: Ember.inject.service('transport-type-settings-service'),\n    routeService: Ember.inject.service('route-service'),\n    computedTransports: Ember.computed('deliveries.{length,[]}', 'transports.{length,@each.id,@each.internalIndex,[]}', function () {\n      return this.get('transports').sortBy('internalIndex');\n    }),\n    validateDeliveryLoadCity: function (transport, delivery) {\n      return transport.get('deliveries').every(d => {\n        if (d.get('loadStep.isInWarehouse')) {\n          return d.get('loadStep.warehouse.address.city') === delivery.get('loadStep.warehouse.address.city');\n        } else {\n          return d.get('loadStep.address.city') === delivery.get('loadStep.address.city');\n        }\n      });\n    },\n    actions: {\n      async createBasicTransport() {\n        const customFields = await this.get('customFields');\n        const transportType = await this.get('transportType');\n        const isAmountOfCoverVisible = transportType.get('isAmountOfCoverVisible');\n        const basicTransport = await this.get('store').createRecord('transport', {\n          transportType\n        });\n        const showRoutes = await transportType.get('priceListSetting.showRouteTemplate');\n        let availableRoutes;\n\n        if (showRoutes) {\n          availableRoutes = await this.routeService.getAvailableRoutes(transportType);\n        }\n\n        if (!showRoutes && customFields.length < 1 && !isAmountOfCoverVisible) {\n          await this.deliveryService.createNewBasicTransport(basicTransport);\n          this.set('action', 'refreshModel');\n          this.sendAction('action');\n          return;\n        }\n\n        if (isAmountOfCoverVisible) {\n          basicTransport._createAmountOfCover();\n        }\n\n        this.get('modalService').showModal(this.get('modalService').MODALS.DELIVERIES.ADD_TRANSPORT, {\n          transportType,\n          availableRoutes,\n          customFields,\n          basicTransport\n        });\n      },\n\n      async addDelivery(transport, obj) {\n        const transportType = transport.get('transportType');\n        const deliverySettings = await this.transportTypeSettingService.getDeliverySettings(transportType);\n\n        if (deliverySettings.checkCompatibilityOfLoadingCity && !this.validateDeliveryLoadCity(transport, obj)) {\n          this.actionProgressToast.showErrorToast(this.get('intl').t('notificationToast.deliveryTransport.ADD_DELIVERY_TO_TRANSPORT.error'));\n          console.error('Niezgodne miasta na załadunku !');\n          return;\n        }\n\n        const response = await this.apolloApiService.callApolloApi(this.apolloApiService.APOLLO_API.PLANNING.ADD_DELIVERY_TO_TRANSPORT, null, {\n          body: JSON.stringify({\n            transportId: transport.get('id'),\n            deliveryId: obj.get('id')\n          })\n        });\n\n        if (response.ok) {\n          this.set('action', 'refreshModel');\n          this.sendAction('action');\n        }\n      },\n\n      refreshModel() {\n        this.set('action', 'refreshModel');\n        this.sendAction('action');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/planning/planned-panel/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"V58zjU2o\",\n    \"block\": \"{\\\"symbols\\\":[\\\"transport\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"computedTransports\\\"]]],null,{\\\"statements\\\":[[4,\\\"draggable-object-target\\\",null,[[\\\"action\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"addDelivery\\\",[22,1,[]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"planning/planned-panel/transport-panel\\\",null,[[\\\"transport\\\",\\\"transportType\\\"],[[22,1,[]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[7,\\\"row\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transportType\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-lg-12\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-info pull-right\\\"],[11,\\\"style\\\",\\\"margin-top: -6px\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.order\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"createBasicTransport\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/planning/planned-panel/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/planning/planned-panel/transport-panel/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    actionProgressToast: Ember.inject.service('action-progress-service'),\n    intl: Ember.inject.service(),\n    store: Ember.inject.service('store'),\n    currentDeliveries: Ember.computed('transport.deliveries', function () {\n      return this.get('transport.deliveries');\n    }),\n    totalWeight: Ember.computed('currentDeliveries.@each.grossWeight', function () {\n      const deliveries = this.get('currentDeliveries');\n      let totalWeight = 0;\n      deliveries.forEach(delivery => {\n        totalWeight += delivery.get('grossWeight');\n      });\n      return totalWeight;\n    }),\n    basicTransportLabel: Ember.computed('transport.{internalIndex,customFieldValuesString,amountOfCover.amount,amountOfCover.currency.symbol}', function () {\n      const transport = this.get('transport');\n      const transportType = transport.get('transportType');\n      const amount = transport.get('amountOfCover.amount');\n      const labelParts = [transport.get('internalIndex')];\n      const customFields = transport.get('customFieldValuesString');\n\n      if (customFields) {\n        labelParts.push(` - ${customFields}`);\n      }\n\n      if (transportType.get('isAmountOfCoverVisible') && amount) {\n        const currency = transport.get('amountOfCover.currency.symbol');\n        labelParts.push(` - ${this.get('intl').t('transport.amountOfCover')} ${amount} ${currency}`);\n      }\n\n      return labelParts.join('');\n    }),\n    actions: {\n      async releaseTransport() {\n        const self = this;\n        self.actionProgressToast.showLoadingToast(this.get('intl').t('notificationToast.deliveryTransport.CREATE.loading') + this.get('transport').get('internalIndex'));\n\n        try {\n          const response = await this.apolloApiService.callApolloApi(this.apolloApiService.APOLLO_API.PLANNING.RELEASE_TRANSPORT, null, {\n            body: JSON.stringify({\n              transportId: this.get('transport.id')\n            })\n          });\n\n          if (response.ok) {\n            self.actionProgressToast.showSuccessToast(this.get('intl').t('notificationToast.deliveryTransport.CREATE.success') + this.get('transport').get('internalIndex'));\n            this.get('transport').reload();\n            this.set('action', 'refreshModel');\n            this.sendAction('action');\n            return;\n          } else {\n            const err = await response.json();\n            self.actionProgressToast.showErrorToast(this.get('intl').t('notificationToast.deliveryTransport.CREATE.error') + this.get('transport').get('internalIndex'), err.errors);\n          }\n        } catch (e) {\n          self.actionProgressToast.showErrorToast(this.get('intl').t('notificationToast.deliveryTransport.CREATE.error') + this.get('transport').get('internalIndex'));\n          console.log(e);\n        }\n      },\n\n      async deleteTransport(transport) {\n        const path = this.apolloApiService.APOLLO_API.PLANNING.DELETE_BASIC_TRANSPORT;\n        const response = await this.apolloApiService.callApolloApi(path, {\n          transportId: transport.get('id')\n        });\n\n        if (!response.ok) {\n          const error = await response.json();\n          console.error('Błąd podczas usuwania wstępnego transportu. ' + error.errors);\n        }\n\n        transport.set('deleted', true);\n        transport.unloadRecord();\n        this.set('action', 'refreshModel');\n        this.sendAction('action');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/planning/planned-panel/transport-panel/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"+/JxYtvP\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-lg-12\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-heading\\\"],[11,\\\"style\\\",\\\"font-weight: bold; font-size: 18px;padding-right: 8px;height: 52px;vertical-align: middle\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"style\\\",\\\"padding-top: 5px\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.order\\\"],null],false],[0,\\\" \\\"],[1,[21,\\\"basicTransportLabel\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"routeTemplate\\\",\\\"name\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            - \\\"],[1,[23,[\\\"transport\\\",\\\"routeTemplate\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"button-with-confirmation\\\",null,[[\\\"onConfirm\\\",\\\"text\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"deleteTransport\\\",[23,[\\\"transport\\\"]]],null],[27,\\\"t\\\",[\\\"transport.deleteTransport\\\"],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-square-xmark delete-icon clickable\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transport.delete\\\"],null]]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[1,[27,\\\"planning/delivery-table\\\",null,[[\\\"customFieldsList\\\",\\\"deliveries\\\",\\\"transportType\\\",\\\"filters\\\"],[[23,[\\\"customFields\\\"]],[23,[\\\"currentDeliveries\\\"]],[23,[\\\"transportType\\\"]],false]]],false],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-footer\\\"],[11,\\\"style\\\",\\\"padding-right: 8px;padding-left: 8px;height: 50px\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"currentDeliveries\\\",\\\"length\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-info pull-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.plan\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"releaseTransport\\\"]],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-footer\\\"],[11,\\\"style\\\",\\\"padding-right: 8px;padding-left: 8px;height: 42px\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[11,\\\"data-field-name\\\",\\\"planned-total-weight\\\"],[9],[1,[21,\\\"totalWeight\\\"],false],[0,\\\" kg\\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/planning/planned-panel/transport-panel/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/planning/table-nav/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: 'div',\n    classNames: Ember.A(['planning-nav-section']),\n    actions: {\n      setTransportTypeMode(mode) {\n        this.set('actionName', 'setTransportTypeMode');\n        this.sendAction('actionName', mode);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/planning/table-nav/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"+JyEqgad\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tt\\\",\\\"tt\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"show-on-big-screens horizontal-scroll small-padding\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"availableTransportTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"btn-group\\\"],[11,\\\"role\\\",\\\"group\\\"],[12,\\\"data-button-name\\\",[22,2,[\\\"alias\\\"]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"planning.index\\\",[22,2,[\\\"alias\\\"]]],null]]]],[12,\\\"class\\\",[28,[\\\"btn btn-default \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"transportTypeMode\\\"]],[22,2,[\\\"alias\\\"]]],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[22,2,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"hide-on-big-screens form-inline\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"transport-type-mode-select\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"table.transports.selectType\\\"],null],false],[0,\\\":\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"select\\\"],[11,\\\"name\\\",\\\"typeMode\\\"],[11,\\\"id\\\",\\\"transport-type-mode-select\\\"],[11,\\\"class\\\",\\\"form-control\\\"],[12,\\\"onchange\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setTransportTypeMode\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"availableTransportTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"option\\\"],[12,\\\"value\\\",[28,[[22,1,[\\\"alias\\\"]]]]],[12,\\\"data-option-name\\\",[28,[[22,1,[\\\"alias\\\"]]]]],[12,\\\"selected\\\",[27,\\\"eq\\\",[[23,[\\\"transportTypeMode\\\"]],[22,1,[\\\"alias\\\"]]],null]],[9],[0,\\\"\\\\n                \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/planning/table-nav/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/popup-dialog/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    actions: {\n      closeDialog() {\n        this.sendAction('removePopupDialog');\n      }\n\n    },\n    show: function () {\n      this.$('.popup-dialog').dialog({\n        dialogClass: 'popup-dialog-container',\n        modal: false,\n        backdrop: 'static',\n        width: 350,\n        position: {\n          my: \"left top\",\n          at: \"right bottom\"\n        }\n      }).on('dialogclose', function () {\n        if (!this.isDestroyed) {\n          this.sendAction('close');\n        }\n      }.bind(this));\n    }.on('didInsertElement')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/popup-dialog/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"HQlKJRGx\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"popup-dialog\\\"],[11,\\\"role\\\",\\\"dialog\\\"],[9],[0,\\\"\\\\n    \\\"],[14,1],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/popup-dialog/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/popup-message/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    defaultMargin: \"2rem\",\n\n    didRender() {\n      Ember.$('.popup-message').css(this.get('position'), this.get('defaultMargin'));\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/popup-message/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"iUTmsESa\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"popup-message\\\"],[9],[0,\\\"\\\\n    \\\"],[14,1],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/popup-message/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/price-list/route-offers-table/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: 'div',\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    classNames: ['route-offers-table'],\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    numberOfAllOffers: Ember.computed('offers.length', function () {\n      return this.get('offers.length');\n    }),\n    defaultDisplayLimit: Ember.computed('sessionAccount', function () {\n      const DEFAULT_LIMIT = 6;\n      const limit = this.get('sessionAccount').getSettingValue('DEFAULT_NUMBER_OF_DISPLAYED_OFFERS') || DEFAULT_LIMIT;\n      return parseInt(limit);\n    }),\n    displayLimit: Ember.computed('defaultDisplayLimit', function () {\n      return this.get('defaultDisplayLimit');\n    }),\n    slicedOffers: Ember.computed('offers', 'displayLimit', function () {\n      return this.get('offers').slice(0, this.get('displayLimit'));\n    }),\n    numberOfDisplayedOffers: Ember.computed('slicedOffers.length', function () {\n      return this.get('slicedOffers.length');\n    }),\n    lengthOfNextSlice: Ember.computed('numberOfAllOffers', 'numberOfDisplayedOffers', 'defaultDisplayLimit', function () {\n      const numberOfRemainingOffers = this.get('numberOfAllOffers') - this.get('numberOfDisplayedOffers');\n      return Math.min(numberOfRemainingOffers, this.get('defaultDisplayLimit'));\n    }),\n    showMoreShouldBeVisible: Ember.computed('numberOfAllOffers', 'numberOfDisplayedOffers', function () {\n      return this.get('numberOfDisplayedOffers') < this.get('numberOfAllOffers');\n    }),\n    actions: {\n      increaseDisplayLimit() {\n        const newLimit = this.get('displayLimit') + this.get('defaultDisplayLimit');\n        this.set('displayLimit', newLimit);\n      },\n\n      async confirm(offer) {\n        console.log(`confirm ${offer}...`);\n\n        if (!confirm(this.get('intl').t('route.offer.confirmation.message'))) {\n          return;\n        }\n\n        const offerId = offer.id;\n        const path = this.get('apolloApiService').APOLLO_API.ROUTE_OFFERS.CONFIRM;\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, {\n            offerId\n          });\n\n          if (response.ok) {\n            console.log(` > Potwierdziliśmy ofertę ${offer}`);\n            offer.reload();\n          } else {\n            alert(this.get('intl').t('route.offer.confirmation.failure'));\n          }\n        } catch (error) {\n          alert(this.get('intl').t('common.defaultError'));\n        }\n      },\n\n      edit(offer) {\n        this.openEditRateModal(offer);\n      },\n\n      delete(offer) {\n        const hasAuth = this.get('sessionAccount').hasAuthorityInTransportType('ROLE_CAN_DELETE_ROUTE_OFFER', offer.get('route.transportType.id'));\n\n        if (!hasAuth) {\n          console.error('Użytkownik nie ma uprawnień do usuwania ofert');\n          return;\n        }\n\n        if (!confirm(this.get('intl').t('route.offer.deleteMessage'))) {\n          return;\n        }\n\n        offer.deleteRecord();\n        offer.save().then(deletedOffer => {\n          console.debug(`Usunięto ofertę ${deletedOffer.id}`);\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/price-list/route-offers-table/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"4fhI33cD\",\n    \"block\": \"{\\\"symbols\\\":[\\\"offer\\\"],\\\"statements\\\":[[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-condensed table-header-bold\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"route-offer-number\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"route.offer.number\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"route-offer-date\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"route.offer.date\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"route-offer-validity\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"route.offer.validity\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"route-offer-carrier\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"route.offer.carrier\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"route-truck-type\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transport.truckType\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"route-offer-price\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"route.offer.price\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"route-offer-confirmed\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"route.offer.confirmed\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"route-offer-edition\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"route.offer.edition\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"route-offer-delete\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"slicedOffers\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,1,[\\\"confirmed\\\"]],\\\"text-success\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-sm vertical-margin-small\\\"],[11,\\\"data-button-name\\\",\\\"route-offer-details-button\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[22,1,[\\\"id\\\"]],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"edit\\\",[22,1,[]]]],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,1,[\\\"confirmed\\\"]],\\\"text-success\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"dateCreated\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"dateCreated\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,1,[\\\"confirmed\\\"]],\\\"text-success\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[22,1,[\\\"validityDateStart\\\"]],[22,1,[\\\"validityDateEnd\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"validityDateStart\\\"]],\\\"short\\\"],null],false],[0,\\\" — \\\"],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"validityDateEnd\\\"]],\\\"short\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,1,[\\\"confirmed\\\"]],\\\"text-success\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[22,1,[\\\"company\\\",\\\"shortName\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,1,[\\\"confirmed\\\"]],\\\"text-success\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[22,1,[\\\"truckType\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,1,[\\\"confirmed\\\"]],\\\"text-success\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[22,1,[\\\"price\\\"]],false],[0,\\\" \\\"],[1,[22,1,[\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,1,[\\\"confirmed\\\"]],\\\"text-success\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"confirmed\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"dateConfirmed\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"route-offer-accept\\\"],[11,\\\"class\\\",\\\"btn btn-success\\\"],[12,\\\"disabled\\\",[27,\\\"not\\\",[[27,\\\"has-authority-to-route\\\",[\\\"ROLE_CAN_CONFIRM_ROUTE_OFFER\\\",[22,1,[\\\"route\\\"]]],null]],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"section.accept\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"confirm\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"route-offer-edit\\\"],[11,\\\"class\\\",\\\"btn btn-secondary\\\"],[12,\\\"disabled\\\",[27,\\\"not\\\",[[27,\\\"has-authority-to-route\\\",[\\\"ROLE_CAN_EDIT_ROUTE_OFFER\\\",[22,1,[\\\"route\\\"]]],null]],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.edit\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"edit\\\",[22,1,[]]]],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"route-offer-delete\\\"],[11,\\\"class\\\",\\\"btn btn-secondary\\\"],[12,\\\"disabled\\\",[27,\\\"not\\\",[[27,\\\"has-authority-to-route\\\",[\\\"ROLE_CAN_DELETE_ROUTE_OFFER\\\",[22,1,[\\\"route\\\"]]],null]],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"delete\\\",[22,1,[]]]],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showMoreShouldBeVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"route.offer.showMore\\\"],[[\\\"n\\\"],[[23,[\\\"lengthOfNextSlice\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"increaseDisplayLimit\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/price-list/route-offers-table/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/price-list/routes-table-nav/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: 'div',\n    classNames: Ember.A(['price-list-nav-section']),\n    actions: {\n      setTransportTypeMode(mode) {\n        this.set('actionName', 'setTransportTypeMode');\n        this.sendAction('actionName', mode);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/price-list/routes-table-nav/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"/hj0fRQm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tt\\\",\\\"tt\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"show-on-big-screens horizontal-scroll small-padding\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"availableTransportTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"btn-group\\\"],[11,\\\"role\\\",\\\"group\\\"],[12,\\\"data-button-name\\\",[22,2,[\\\"alias\\\"]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"price-list.index\\\",[22,2,[\\\"alias\\\"]],[27,\\\"query-params\\\",null,[[\\\"max\\\",\\\"page\\\"],[[23,[\\\"max\\\"]],1]]]],null]]]],[12,\\\"class\\\",[28,[\\\"btn btn-default \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"transportTypeMode\\\"]],[22,2,[\\\"alias\\\"]]],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[22,2,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"hide-on-big-screens form-inline\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"transport-type-mode-select\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"table.transports.selectType\\\"],null],false],[0,\\\":\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"select\\\"],[11,\\\"name\\\",\\\"typeMode\\\"],[11,\\\"id\\\",\\\"transport-type-mode-select\\\"],[11,\\\"class\\\",\\\"form-control\\\"],[12,\\\"onchange\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setTransportTypeMode\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"availableTransportTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"option\\\"],[12,\\\"value\\\",[28,[[22,1,[\\\"alias\\\"]]]]],[12,\\\"data-option-name\\\",[28,[[22,1,[\\\"alias\\\"]]]]],[12,\\\"selected\\\",[27,\\\"eq\\\",[[23,[\\\"transportTypeMode\\\"]],[22,1,[\\\"alias\\\"]]],null]],[9],[0,\\\"\\\\n                \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/price-list/routes-table-nav/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/price-list/routes-table/component\", [\"exports\", \"apollo/mixins/form-utils-mixin\"], function (_exports, _formUtilsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_formUtilsMixin.default, {\n    tagName: 'div',\n    classNames: Ember.A(['price-list-table']),\n    intl: Ember.inject.service(),\n    globalFilter: Ember.computed({\n      get() {\n        return '';\n      },\n\n      set(key, value) {\n        return value;\n      }\n\n    }),\n    unloadRouteAddresses: Ember.computed('routeAddresses.{[],length}', function () {\n      return this.get('routeAddresses').filter(ra => ra.get('stepType') === 'unload').uniqBy('address.id');\n    }),\n    loadRouteAddresses: Ember.computed('routeAddresses.{[],length}', function () {\n      return this.get('routeAddresses').filter(ra => ra.get('stepType') === 'load').uniqBy('address.id');\n    }),\n    maxRowsInTable: Ember.computed('maxRowsInTable', function () {\n      return localStorage.getItem('MAX_ROWS_IN_PRICE_LIST_TABLE') || 10;\n    }),\n    _filterCountries: function (addresses) {\n      const countries = [];\n\n      if (!addresses) {\n        return [];\n      }\n\n      addresses.forEach(ra => {\n        const obj = {\n          value: ra.get('address.country.ibanSymbol'),\n          label: ra.get('address.country.ibanSymbol')\n        };\n\n        if (!countries.some(c => c.value === obj.value)) {\n          countries.push(obj);\n        }\n      });\n      return countries;\n    },\n    loadCountries: Ember.computed('loadRouteAddresses.{[],length}', function () {\n      return this._filterCountries(this.get('loadRouteAddresses'));\n    }),\n    unloadCountries: Ember.computed('unloadRouteAddresses.{[],length}', function () {\n      return this._filterCountries(this.get('unloadRouteAddresses'));\n    }),\n    columns: Ember.computed(function () {\n      const table = [{\n        propertyName: 'routeId',\n        title: this.get('intl').t('common.id'),\n        className: 'route-id',\n        datafieldName: 'IDENTIFIER'\n      }, {\n        propertyName: 'routeName',\n        title: this.get('intl').t('route.name'),\n        className: 'route-name',\n        datafieldName: 'ROUTE_NAME'\n      }, {\n        propertyName: 'routeLoadAddressRecipient',\n        title: this.get('intl').t('route.address.load'),\n        className: 'route-load-address-recipient',\n        datafieldName: 'LOAD_ADDRESS'\n      }, {\n        propertyName: 'routeLoadAddressCountry',\n        title: this.get('intl').t('route.address.country'),\n        className: 'route-load-address-country',\n        datafieldName: 'LOAD_COUNTRY'\n      }, {\n        propertyName: 'routeLoadAddressPostal',\n        title: this.get('intl').t('route.address.postal'),\n        className: 'route-load-address-postal',\n        datafieldName: 'LOAD_POSTAL'\n      }, {\n        propertyName: 'routeLoadAddressCity',\n        title: this.get('intl').t('route.address.city'),\n        className: 'route-load-address-city',\n        datafieldName: 'LOAD_CITY'\n      }, {\n        propertyName: 'routeUnloadAddressRecipient',\n        title: this.get('intl').t('route.address.unload'),\n        className: 'route-unload-address-recipient',\n        datafieldName: 'UNLOAD_ADDRESS'\n      }, {\n        propertyName: 'routeUnloadAddressCountry',\n        title: this.get('intl').t('route.address.country'),\n        className: 'route-unload-address-country',\n        datafieldName: 'UNLOAD_COUNTRY'\n      }, {\n        propertyName: 'routeUnloadAddressPostal',\n        title: this.get('intl').t('route.address.postal'),\n        className: 'route-unload-address-postal',\n        datafieldName: 'UNLOAD_POSTAL'\n      }, {\n        propertyName: 'routeUnloadAddressCity',\n        title: this.get('intl').t('route.address.city'),\n        dataColumnName: 'route-unload-address-city',\n        datafieldName: 'UNLOAD_CITY'\n      }]; // Custom Fieldy\n\n      const definitions = this.get('transportType.customFieldDefinitionsIncludedInPriceList');\n      definitions.forEach(cfd => {\n        const name = cfd.get('nameInAppropriateLanguage');\n        const cf = {\n          propertyName: 'routeCustomField_' + cfd.get('id'),\n          title: name,\n          className: cfd.get('englishName'),\n          dataClassName: cfd.get('englishName'),\n          filterWithSelect: true,\n          disableFiltering: false,\n          // TODO A-11168\n          predefinedFilterOptions: []\n        };\n        const options = [];\n        cfd.options.forEach(option => {\n          options.push(option.get('name'));\n        });\n        cf.predefinedFilterOptions = options;\n        table.push(cf);\n      }); // Najlepsza oferta\n\n      table.push({\n        propertyName: 'routeBestOffer',\n        title: Ember.String.htmlSafe(this.get('intl').t('route.bestOffer') + ' <i class=\"fa fa-info-circle\" title=\"' + Ember.String.htmlSafe(this.get('intl').t('route.routeTableLegend.present') + '&#10;' + this.get('intl').t('route.routeTableLegend.black') + '&#10;' + this.get('intl').t('route.routeTableLegend.green') + '&#10;' + this.get('intl').t('route.routeTableLegend.missing')) + '\"></i>')\n      });\n      return table;\n    }),\n    actions: {\n      showModal(modal, route) {\n        this.set('action', 'showModal');\n        this.sendAction('action', modal, route);\n      },\n\n      setMaxRows(mt) {\n        const count = mt.publicAPI.recordsCount;\n        localStorage.setItem('MAX_ROWS_IN_PRICE_LIST_TABLE', count);\n        const msg = this.get('intl').t('common.saveSuccessMessage');\n        this.set('saveSuccessMessage', msg);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/price-list/routes-table/route-filter-select/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: 'div',\n    filters: Ember.A(['ACCEPTED', 'NEEDS_ACCEPTATION', 'NO_OFFERS']),\n    // eslint-disable-next-line ember/no-observers\n    clearFilters: Ember.observer('clear', function () {\n      this.set('globalFilter', null);\n    }),\n    actions: {\n      setFilter(filter) {\n        this.set('globalFilter', filter);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/price-list/routes-table/route-filter-select/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"0gzgX1TS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"filter\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom padding-bottom-big\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-3\\\"],[11,\\\"data-field-name\\\",\\\"route-filter-select\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"selected\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"filters\\\"]],true,\\\"Wybierz filtr\\\",[23,[\\\"globalFilter\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setFilter\\\"],null]]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"route.globalFilters.\\\",[22,1,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-left\\\"],[11,\\\"data-field-name\\\",\\\"route-clear-filters\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"clear\\\"]]],null]],null]],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"common.clearFilters\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/price-list/routes-table/route-filter-select/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/price-list/routes-table/route/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: '',\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    acceptationWarrning: Ember.computed('route.hasUnacceptedOffers', function () {\n      if (this.get('route.hasUnacceptedOffers')) {\n        return Ember.String.htmlSafe('<i class=\"fa fa-warning\" title=\"' + this.get('intl').t('route.hasUnacceptedOffers') + '\"></i>');\n      }\n\n      return Ember.String.htmlSafe('&nbsp;');\n    }),\n    _openModal: async function (routeOffer) {\n      const route = await routeOffer.get('route');\n      const truckTypes = await this.get('store').query('truck-type', {\n        transportTypeId: route.get('transportType.id')\n      });\n      const disabled = !this.get('sessionAccount').hasAuthorityInTransportType('ROLE_CAN_EDIT_ROUTE_OFFER', route.get('transportType.id'));\n      const model = {\n        routeOffer,\n        route,\n        truckTypes,\n        disabled\n      };\n      this.set('action', 'showModal');\n      this.sendAction('action', 'price-list.modals.rate-form', model);\n    },\n    actions: {\n      toggleOffers(route) {\n        route.toggleProperty('hasVisibleOffers');\n      },\n\n      showRouteForm(route) {\n        console.log(`Wyświetlamy formularz trasy ${route.get('id')}...`);\n        this.set('action', 'showModal');\n        this.sendAction('action', 'routes.modals.route-form.show', route);\n      },\n\n      async openAddNewRateModal(route) {\n        const routeOffer = this.get('store').createRecord('route-offer', {\n          route\n        });\n        await this._openModal(routeOffer);\n      },\n\n      async openEditRateModal(routeOffer) {\n        await this._openModal(routeOffer);\n      },\n\n      deleteRoute(route) {\n        route.deleteRecord();\n        route.save();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/price-list/routes-table/route/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"JFruUHc5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"pair\\\",\\\"ra\\\",\\\"ra\\\",\\\"ra\\\",\\\"ra\\\",\\\"ra\\\",\\\"ra\\\",\\\"ra\\\",\\\"ra\\\"],\\\"statements\\\":[[7,\\\"tr\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"route\\\",\\\"hasVisibleOffers\\\"]],\\\"table-has-details\\\"],null]]]],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"IDENTIFIER\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-sm vertical-margin-small\\\"],[11,\\\"data-button-name\\\",\\\"route-form-button\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"route\\\",\\\"id\\\"]],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showRouteForm\\\",[23,[\\\"route\\\"]]]],[10],[0,\\\"\\\\n        \\\"],[1,[21,\\\"acceptationWarrning\\\"],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"ROUTE_NAME\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"route\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_PLACE\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"route\\\",\\\"loadAddresses\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,9,[\\\"recipient\\\"]],false],[0,\\\" \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[9]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_COUNTRY\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"route\\\",\\\"loadAddresses\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,8,[\\\"country\\\",\\\"ibanSymbol\\\"]],false],[0,\\\" \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_POSTAL\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"route\\\",\\\"loadAddresses\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,7,[\\\"postal\\\"]],false],[0,\\\" \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_CITY\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"route\\\",\\\"loadAddresses\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,6,[\\\"city\\\"]],false],[0,\\\" \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_PLACE\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"route\\\",\\\"unloadAddresses\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,5,[\\\"recipient\\\"]],false],[0,\\\" \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_COUNTRY\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"route\\\",\\\"unloadAddresses\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,4,[\\\"country\\\",\\\"ibanSymbol\\\"]],false],[0,\\\" \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_POSTAL\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"route\\\",\\\"unloadAddresses\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,3,[\\\"postal\\\"]],false],[0,\\\" \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_CITY\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"route\\\",\\\"unloadAddresses\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,2,[\\\"city\\\"]],false],[0,\\\" \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"route\\\",\\\"customFieldPairs\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[12,\\\"data-column-name\\\",[28,[[22,1,[\\\"definition\\\",\\\"englishName\\\"]]]]],[12,\\\"class\\\",[28,[\\\"text-center \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"CUSTOM_FIELDS\\\"]]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"custom-field-value-formatted\\\",null,[[\\\"definition\\\",\\\"value\\\"],[[22,1,[\\\"definition\\\"]],[22,1,[\\\"value\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"BEST_OFFER\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"route\\\",\\\"bestOffer\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"route-best-offer \\\",[27,\\\"if\\\",[[23,[\\\"route\\\",\\\"bestOffer\\\",\\\"confirmed\\\"]],\\\"text-success\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[23,[\\\"route\\\",\\\"bestOffer\\\",\\\"price\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"route\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\" (\\\"],[1,[23,[\\\"route\\\",\\\"bestOffer\\\",\\\"company\\\",\\\"shortName\\\"]],false],[0,\\\")\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"route-add-new-rate\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[12,\\\"disabled\\\",[27,\\\"not\\\",[[27,\\\"has-authority-to-route\\\",[\\\"ROLE_CAN_CREATE_ROUTE_OFFER\\\",[23,[\\\"route\\\"]]],null]],null]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"route.addNewRate\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"openAddNewRateModal\\\",[23,[\\\"route\\\"]]]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"route\\\",\\\"routeOffers\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"show-route-offers\\\"],[11,\\\"class\\\",\\\"btn\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"route.offer.toggleTable\\\"],null]]]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"route\\\",\\\"hasVisibleOffers\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-angle-up\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-angle-down text-success\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"toggleOffers\\\",[23,[\\\"route\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"route\\\",\\\"canBeDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"route.sureToDelete\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"deleteRoute\\\",[23,[\\\"route\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"delete-route\\\"],[11,\\\"class\\\",\\\"fa fa-trash\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"route\\\",\\\"hasVisibleOffers\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\"],[11,\\\"class\\\",\\\"table-details\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\"],[11,\\\"colspan\\\",\\\"20\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default no-vertical-margin\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body no-top-padding\\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"no-top-padding bold\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"route.rates.label\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"price-list/route-offers-table\\\",null,[[\\\"openEditRateModal\\\",\\\"offers\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"openEditRateModal\\\"],null],[23,[\\\"route\\\",\\\"sortedOffers\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/price-list/routes-table/route/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/price-list/routes-table/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Oqmx/Yse\",\n    \"block\": \"{\\\"symbols\\\":[\\\"mt\\\",\\\"footer\\\",\\\"table\\\",\\\"body\\\",\\\"route\\\",\\\"index\\\",\\\"header\\\",\\\"rf\\\",\\\"column\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table table-hover table-rows-bordered table-header-bold table-bordered-details\\\"],[11,\\\"id\\\",\\\"price-list-table\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"price-list/routes-table/route-filter-select\\\",null,[[\\\"globalFilter\\\",\\\"clear\\\"],[[23,[\\\"globalFilter\\\"]],[23,[\\\"clear\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"server-table\\\",null,[[\\\"clear\\\",\\\"maxRowsInTable\\\",\\\"data\\\",\\\"columns\\\",\\\"filterString\\\"],[[23,[\\\"clear\\\"]],[23,[\\\"maxRowsInTable\\\"]],[23,[\\\"routes\\\"]],[23,[\\\"columns\\\"]],[23,[\\\"globalFilter\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"borderless-wrapper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,1,[\\\"table\\\"]],\\\"expected `mt.table` to be a contextual component but found a string. Did you mean `(component mt.table)`? ('apollo/pods/components/price-list/routes-table/template.hbs' @ L11:C15) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,3,[\\\"header\\\"]],\\\"expected `table.header` to be a contextual component but found a string. Did you mean `(component table.header)`? ('apollo/pods/components/price-list/routes-table/template.hbs' @ L12:C19) \\\"],null]],[[\\\"class\\\"],[\\\"routes-table-header\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,7,[\\\"row-sorting\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,7,[\\\"row-filtering\\\"]],\\\"expected `header.row-filtering` to be a contextual component but found a string. Did you mean `(component header.row-filtering)`? ('apollo/pods/components/price-list/routes-table/template.hbs' @ L14:C23) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,8,[\\\"visibleProcessedColumns\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"th\\\"],[12,\\\"data-column-name\\\",[28,[[22,9,[\\\"datafieldName\\\"]]]]],[12,\\\"class\\\",[28,[[22,9,[\\\"className\\\"]],\\\" table-header\\\"]]],[9],[1,[27,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,8,[\\\"row-filtering-cell\\\"]],\\\"expected `rf.row-filtering-cell` to be a contextual component but found a string. Did you mean `(component rf.row-filtering-cell)`? ('apollo/pods/components/price-list/routes-table/template.hbs' @ L17:C76) \\\"],null]],[[\\\"column\\\"],[[22,9,[]]]]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[9]},null]],\\\"parameters\\\":[8]},null]],\\\"parameters\\\":[7]},null],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,3,[\\\"body\\\"]],\\\"expected `table.body` to be a contextual component but found a string. Did you mean `(component table.body)`? ('apollo/pods/components/price-list/routes-table/template.hbs' @ L21:C19) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,4,[\\\"visibleContent\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"price-list/routes-table/route\\\",null,[[\\\"route\\\"],[[22,5,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5,6]},null]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,1,[\\\"footer\\\"]],\\\"expected `mt.footer` to be a contextual component but found a string. Did you mean `(component mt.footer)`? ('apollo/pods/components/price-list/routes-table/template.hbs' @ L28:C15) \\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,2,[\\\"size-select\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[22,2,[\\\"pagination-numeric\\\"]],false],[0,\\\"\\\\n                \\\"],[1,[22,2,[\\\"pagination-simple\\\"]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.perPage\\\"],null],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setMaxRows\\\",[22,1,[]]],null]],[11,\\\"class\\\",\\\"clickable\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"common.save\\\"],null]]]],[9],[0,\\\" \\\"],[1,[27,\\\"fa-icon\\\",[\\\"floppy-disk\\\"],null],false],[0,\\\" \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"success\\\"],[9],[1,[21,\\\"saveSuccessMessage\\\"],false],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/price-list/routes-table/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/product-auto-complete/component\", [\"exports\", \"apollo/pods/components/custom-auto-complete/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _component.default.extend({\n    valueProperty: 'id',\n    urlAddress: '/products',\n    field: 'index',\n    options: [],\n    suggestions: function () {\n      return this.get('options');\n    }.property('options.@each'),\n    optionsToMatch: function () {\n      if (!this.get('options')) {\n        return [];\n      }\n\n      const caseInsensitiveOptions = [];\n      this.get('options').forEach(function (item) {\n        const value = item.index;\n        caseInsensitiveOptions.push(value.toLowerCase());\n      });\n      return caseInsensitiveOptions;\n    }.property('options.@each'),\n    actions: {\n      selectItem: function (item) {\n        this.set('selectedFromList', true);\n        this.set('selectedValue', item.index);\n        this.sendAction('selectItem', item);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/queue-status/modals/send-sms/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    intl: Ember.inject.service(),\n    errors: [],\n\n    clearComponent() {\n      this.set('errors', []);\n      this.set('message', null);\n    },\n\n    actions: {\n      async sendSms(queue, message) {\n        const self = this;\n\n        if (!message) {\n          self.set('errors', [this.get('intl').t('errors.blank')]);\n          return;\n        }\n\n        const data = JSON.stringify({\n          queueId: queue.get('id'),\n          message\n        });\n        const path = this.get('apolloApiService').APOLLO_API.NOTIFICATIONS.SEND_SMS;\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, null, {\n            body: data\n          });\n\n          if (response.ok) {\n            jQuery(`#${queue.get('id')}`).modal('hide');\n            self.clearComponent();\n          } else {\n            const error = await response.json();\n            self.set('errors', error.errors);\n          }\n        } catch (error) {\n          this.set('errors', [this.get('intl').t('common.defaultError')]);\n          console.error(error);\n        }\n      },\n\n      close(queue) {\n        jQuery(`#${queue.get('id')}`).modal('hide');\n        this.clearComponent();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/queue-status/modals/send-sms/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"rIBY0DjJ\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal fade send-sms-modal\\\"],[12,\\\"id\\\",[28,[[23,[\\\"queue\\\",\\\"id\\\"]]]]],[11,\\\"role\\\",\\\"dialog\\\"],[11,\\\"aria-labelledby\\\",\\\"send-sms-modal-title\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-dialog\\\"],[11,\\\"role\\\",\\\"document\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-content\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-header\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close modal-close\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-times\\\"],[9],[10],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\",[23,[\\\"queue\\\"]]]],[10],[0,\\\"\\\\n                \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"modal-title\\\"],[11,\\\"id\\\",\\\"send-sms-modal-title\\\"],[9],[1,[27,\\\"t\\\",[\\\"queuesStatus.sendSmsModal.title\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"queue\\\",\\\"nameInAppropriateLanguage\\\"]],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-body\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"form\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"type\\\",\\\"class\\\",\\\"rows\\\"],[[23,[\\\"message\\\"]],[27,\\\"t\\\",[\\\"queuesStatus.sendSmsModal.messagePlaceholder\\\"],null],\\\"textarea\\\",\\\"form-control\\\",\\\"4\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"close\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.close\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\",[23,[\\\"queue\\\"]]]],[10],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"send-sms\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.send\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"sendSms\\\",[23,[\\\"queue\\\"]],[23,[\\\"message\\\"]]]],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/queue-status/modals/send-sms/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/radio-button-group/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    property: Ember.computed('model', 'propertyName', function () {\n      return this.get(`model.${this.get('propertyName')}`);\n    }),\n    actions: {\n      setProperty(value) {\n        this.get('model').set(this.get('propertyName'), value);\n        this.notifyPropertyChange('property');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/radio-button-group/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ruuU4r72\",\n    \"block\": \"{\\\"symbols\\\":[\\\"option\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-group\\\"],[11,\\\"data-toggle\\\",\\\"buttons\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"options\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"button\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-default \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"property\\\"]],[22,1,[]]],null],\\\"active checked\\\"],null]]]],[12,\\\"disabled\\\",[21,\\\"disabled\\\"]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setProperty\\\",[22,1,[]]],null]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"input\\\"],[11,\\\"name\\\",\\\"options\\\"],[12,\\\"id\\\",[22,1,[]]],[11,\\\"autocomplete\\\",\\\"off\\\"],[12,\\\"disabled\\\",[21,\\\"disabled\\\"]],[11,\\\"type\\\",\\\"radio\\\"],[9],[10],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[[23,[\\\"translationKeyPrefix\\\"]],[22,1,[]]],null]],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/radio-button-group/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/ramp-schedule/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    classNames: ['ramp-header'],\n    classNameBindings: ['isZoneIdxEven:even'],\n    isZoneIdxEven: function () {\n      return this.get('zoneIdx') % 2 === 0;\n    }.property('zoneIdx'),\n    attributeBindings: ['data-schedule-ramp', 'data-zone-name', 'data-ramp-short-name', 'style'],\n    'data-schedule-ramp': function () {\n      return \"\" + this.ramp.id;\n    }.property('ramp.id'),\n    'data-zone-name': function () {\n      return this.get('ramp.warehouseZone.name');\n    }.property('ramp.warehouseZone.name'),\n    'data-ramp-short-name': function () {\n      return this.get('ramp.shortName');\n    }.property('ramp.shortName'),\n    style: function () {\n      return `width: ${this.get('width')}%`.htmlSafe();\n    }.property('width'),\n    moreThan8Columns: function () {\n      return this.get('viewedColumns') > 8;\n    }.property('viewedColumns'),\n    toggleWholeRampWindow: \"toggleWholeRampWindow\",\n    click: function (event) {\n      var div = event.target;\n      var $div = $(div);\n      var date = $div.closest('.day-header').data('schedule-date');\n      var time = moment(date, 'YYYY-MM-DD').toDate();\n      var rampId = this.ramp.id;\n      this.sendAction(\"toggleWholeRampWindow\", time, rampId);\n    },\n    numberOfPallets: Ember.computed('numberOfPalletsPerRamps', function () {\n      const n = this.get('numberOfPalletsPerRamps')[this.get('ramp.id')];\n      return n ? n : 0;\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/ramp-schedule/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"CQgfgPdt\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"ramp-label\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"moreThan8Columns\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,[\\\"ramp\\\",\\\"shortName\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"hidden-md hidden-sm hidden-xs\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"ramp\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"hidden-lg\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"ramp\\\",\\\"shortName\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,[\\\"numberOfPalletsPerRamps\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"max-pallets\\\"],[11,\\\"data-field-name\\\",\\\"max-pallet-per-ramp\\\"],[9],[0,\\\"\\\\n           \\\"],[1,[21,\\\"numberOfPallets\\\"],false],[0,\\\"/\\\"],[1,[23,[\\\"ramp\\\",\\\"maxPallet\\\",\\\"quantity\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/ramp-schedule/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/ramps-checkboxes/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"qsJK6fGK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"w\\\",\\\"r\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"proxiedWarehouses\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"disabled\\\",\\\"change\\\"],[\\\"checkbox\\\",[22,1,[\\\"checked\\\"]],[23,[\\\"canNotEditRamps\\\"]],[27,\\\"action\\\",[[22,0,[]],[23,[\\\"changeAction\\\"]],[22,1,[]]],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"ramp-checkboxes\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,1,[\\\"proxiedRamps\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label-not-bold\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"disabled\\\"],[\\\"checkbox\\\",[22,2,[\\\"checked\\\"]],[23,[\\\"canNotEditRamps\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[22,2,[\\\"name\\\"]],false],[0,\\\" [\\\"],[1,[22,2,[\\\"warehouseZone\\\",\\\"name\\\"]],false],[0,\\\"]\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/ramps-checkboxes/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/recurring-transport-form/component\", [\"exports\", \"apollo/mixins/form-utils-mixin\"], function (_exports, _formUtilsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_formUtilsMixin.default, {\n    async init() {\n      this._super(...arguments); // Tymczasowym fix do [A-14679], sprawia że opcja `Co Tydzień` będzie automatycznie wybrana\n      // podczas tworzenia transportów seryjnych\n\n\n      const model = await this.get('model');\n\n      if (this.get('type') === 'serialTransport') {\n        model.set('frequency', 'WEEKLY');\n      }\n    },\n\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    frequencyOptions: ['DAILY', 'WEEKLY', 'MONTHLY'],\n    // Zgodnie z [A-14679] zlecenia seryjne na razie mają mieć tylko opcję 'Co Tydzień'\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    serialFrequencyOptions: ['WEEKLY'],\n    getFrequencyOptions: Ember.computed('isSerialTransport', function () {\n      return this.get('isSerialTransport') ? this.get('serialFrequencyOptions') : this.get('frequencyOptions');\n    }),\n    // eslint-disable-next-line ember/no-on-calls-in-components\n    setCheckedDays: Ember.on('init', function () {\n      if (!this.get('transport.id')) {\n        return;\n      }\n\n      const currentDaysString = this.get('model.dayNumbers') ? this.get('model.dayNumbers') : '';\n      currentDaysString.split(',').filter(idx => idx).forEach(idx => Ember.set(this.findDay(idx), 'checked', true));\n    }),\n    daysOfWeek: Ember.computed('firstStepDate', function () {\n      const days = [];\n      const checkedDay = this.get('isSerialTransport') ? moment(this.get('firstStepDate')).day() : null;\n\n      for (let i = 1; i <= 7; i++) {\n        days.push({\n          idx: i,\n          checked: i === checkedDay,\n          disabled: i === checkedDay || this.get('editionDisabled')\n        });\n      }\n\n      if (checkedDay) {\n        this.clearCheckedDays();\n        this.updateDayNumbers(checkedDay, true);\n      }\n\n      return days;\n    }),\n    firstStepDate: Ember.computed('transport.firstStep.startDate', function () {\n      return this.get('transport.firstStep.startDate');\n    }),\n    fromDate: Ember.computed('isSerialTransport', 'model.startDate', 'firstStepDate', function () {\n      if (this.get('isSerialTransport')) {\n        return this.get('firstStepDate');\n      }\n\n      return this.get('model.startDate') || null;\n    }),\n    isSerialTransport: Ember.computed('type', function () {\n      return this.get('type') === 'serialTransport';\n    }),\n    fromDisabled: Ember.computed('editionDisabled', function () {\n      return this.get('editionDisabled');\n    }),\n    editionDisabled: Ember.computed('transport.id', function () {\n      return this.get('transport.id');\n    }),\n\n    clearCheckedDays() {\n      this.set('model.dayNumbers', '');\n    },\n\n    updateDayNumbers(dayIdx, newChecked) {\n      const currentDaysString = this.get('model.dayNumbers') ? this.get('model.dayNumbers') : '';\n      const currentDays = new Set(currentDaysString.split(',').filter(x => x));\n\n      if (newChecked) {\n        currentDays.add(`${dayIdx}`);\n      } else {\n        currentDays.delete(`${dayIdx}`);\n      }\n\n      this.set('model.dayNumbers', [...currentDays].sort().join(','));\n    },\n\n    findDay: function (idx) {\n      return this.get('daysOfWeek').find(d => Number(d.idx) === Number(idx));\n    },\n    actions: {\n      checkDay(idx) {\n        const day = this.findDay(idx);\n        const newChecked = !day.checked;\n        Ember.set(day, 'checked', newChecked);\n        this.updateDayNumbers(day.idx, newChecked);\n      },\n\n      setDate(propertyName, date) {\n        if (propertyName === 'transport.serialTransport.startDate') {\n          // A-14722, zrefaktoruje to przy okazji refaktoru dat\n          const inputDate = date[0];\n          const startDate = this.get('fromDate'); // Calculate the initial days difference between startDate and inputDate\n          // Create date objects with time component removed to ignore hours/minutes/seconds\n\n          const normalizedInputDate = new Date(inputDate.getFullYear(), inputDate.getMonth(), inputDate.getDate());\n          const normalizedStartDate = new Date(startDate.getFullYear(), startDate.getMonth(), startDate.getDate());\n          const daysDifference = Math.floor((normalizedInputDate - normalizedStartDate) / (24 * 60 * 60 * 1000)); // Update each subsequent step with daysDifference\n\n          this.get('transport.sortedSteps').forEach(step => {\n            const newArrivalDate = new Date(step.get('arrivalDate')).setDate(step.get('arrivalDate').getDate() + daysDifference);\n            step.set('arrivalDate', new Date(newArrivalDate));\n          });\n        }\n\n        this.set(propertyName, date[0]);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/recurring-transport-form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"FGEL/el9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"day\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[[23,[\\\"labelTranslationKey\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[12,\\\"data-field-name\\\",[28,[[21,\\\"type\\\"],\\\"-checkbox\\\"]]],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"disabled\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"editionDisabled\\\"]],[23,[\\\"isActive\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isActive\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"frequency\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[[23,[\\\"type\\\"]],\\\".frequency\\\"],null]],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[12,\\\"data-field-name\\\",[28,[[21,\\\"type\\\"],\\\"-frequency\\\"]]],[9],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"radio-button-group\\\",null,[[\\\"options\\\",\\\"disabled\\\",\\\"model\\\",\\\"propertyName\\\",\\\"translationKeyPrefix\\\"],[[23,[\\\"getFrequencyOptions\\\"]],[23,[\\\"editionDisabled\\\"]],[23,[\\\"model\\\"]],\\\"frequency\\\",\\\"periodicTransport.frequencies.\\\"]]],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"frequency\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"startDate\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.from\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[12,\\\"data-field-name\\\",[28,[[21,\\\"type\\\"],\\\"-start-date\\\"]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"disabled\\\",\\\"formatType\\\",\\\"class\\\"],[[23,[\\\"fromDate\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setDate\\\",[27,\\\"concat\\\",[\\\"transport.\\\",[23,[\\\"type\\\"]],\\\".startDate\\\"],null]],null],[23,[\\\"fromDisabled\\\"]],\\\"shortDate\\\",\\\"form-control date-chooser\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"startDate\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"endDate\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.to\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[12,\\\"data-field-name\\\",[28,[[21,\\\"type\\\"],\\\"-end-date\\\"]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"disabled\\\",\\\"formatType\\\",\\\"class\\\"],[[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"endDate\\\"]],[23,[\\\"model\\\",\\\"endDate\\\"]],null],null],[27,\\\"action\\\",[[22,0,[]],\\\"setDate\\\",[27,\\\"concat\\\",[\\\"transport.\\\",[23,[\\\"type\\\"]],\\\".endDate\\\"],null]],null],[23,[\\\"editionDisabled\\\"]],\\\"shortDate\\\",\\\"form-control date-chooser\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"endDate\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"frequency\\\"]],\\\"WEEKLY\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.daysOfWeek.label\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null],\\\" \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"dayNumbers\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"data-field-name\\\",[28,[[21,\\\"type\\\"],\\\"-days\\\"]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-group\\\"],[11,\\\"data-toggle\\\",\\\"buttons\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"daysOfWeek\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-default \\\",[27,\\\"if\\\",[[22,1,[\\\"checked\\\"]],\\\"active checked\\\"],null]]]],[12,\\\"data-field-idx\\\",[28,[[22,1,[\\\"idx\\\"]]]]],[12,\\\"disabled\\\",[28,[[22,1,[\\\"disabled\\\"]]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"input\\\"],[12,\\\"checked\\\",[22,1,[\\\"checked\\\"]]],[12,\\\"disabled\\\",[22,1,[\\\"disabled\\\"]]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"checkDay\\\",[22,1,[\\\"idx\\\"]]],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"common.daysOfWeek.\\\",[22,1,[\\\"idx\\\"]]],null]],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"dayNumbers\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/recurring-transport-form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/refresh-button/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    tagName: 'button',\n    classNames: ['btn', 'btn-default'],\n    attributeBindings: ['disabled', 'data-field-name'],\n    disabled: function () {\n      return false;\n    }.property(),\n\n    click() {\n      const self = this;\n      self.set('disabled', true);\n      Ember.run.later(self, function () {\n        self.set('disabled', false);\n      }, 1000);\n      this.set('action', 'poll');\n      this.sendAction(\"action\");\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/refresh-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Rf3cy+oK\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"common.refresh\\\"],null],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/refresh-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/related-to-labels-has-to-wait/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    isMasterTransport: Ember.computed('transport.isMasterTransportInHasToWaitFor', function () {\n      return this.get('transport.isMasterTransportInHasToWaitFor');\n    }),\n    title: Ember.computed('isMasterTransport', function () {\n      if (this.get('isMasterTransport')) {\n        return this.get('intl').t('transport.isWaitingFor');\n      }\n\n      return this.get('intl').t('transport.isRequiredFor');\n    }),\n    relatedTransports: Ember.computed('transport.relatedHasToWaitForTransports.@each.relatedToLabel', function () {\n      return this.get('transport.relatedHasToWaitForTransports');\n    }),\n    relatedTransportsLabelsOnly: Ember.computed('transport.relatedHasToWaitForNotCreatedTransports', function () {\n      return this.get('transport.relatedHasToWaitForNotCreatedTransports');\n    }),\n    masterTransports: Ember.computed('transport.masterHasToWaitForTransports.{length,[]]}', function () {\n      if (this.get('transport.masterHasToWaitForTransports.length') < 1) {\n        return [];\n      }\n\n      return this.get('transport.masterHasToWaitForTransports');\n    }),\n    actions: {\n      showTransportModal: function (id) {\n        this.get('store').findRecord('transport', id).then(transport => {\n          transport.get('customFields').forEach(cf => cf.set('changeMessage', null));\n          this.set('openTransportId', transport.get('id'));\n          this.set('action', 'showModal');\n          this.sendAction('action', transport);\n        });\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/related-to-labels-has-to-wait/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"DnwTdX10\",\n    \"block\": \"{\\\"symbols\\\":[\\\"transport\\\",\\\"transportLabel\\\",\\\"transport\\\"],\\\"statements\\\":[[1,[21,\\\"title\\\"],false],[0,\\\"\\\\n\\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isMasterTransport\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"relatedTransports\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,3,[\\\"completed\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"s\\\"],[11,\\\"href\\\",\\\"#\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,3,[\\\"relatedToLabel\\\"]],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showTransportModal\\\",[22,3,[\\\"id\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,3,[\\\"relatedToLabel\\\"]],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showTransportModal\\\",[22,3,[\\\"id\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[3]},null],[4,\\\"each\\\",[[23,[\\\"relatedTransportsLabelsOnly\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[22,2,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"masterTransports\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[22,1,[\\\"relatedToLabel\\\"]],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showTransportModal\\\",[22,1,[\\\"id\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/related-to-labels-has-to-wait/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/related-to-labels-plain/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Yubej7+0\",\n    \"block\": \"{\\\"symbols\\\":[\\\"transport\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"isCombinedTransport\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[21,\\\"title\\\"],false],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"allCombinedTransports\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\"],[9],[1,[22,1,[\\\"relatedToLabel\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/related-to-labels-plain/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/related-to-labels/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    actions: {\n      showTransportModal: function (id) {\n        this.get('store').findRecord('transport', id).then(transport => {\n          transport.get('customFields').forEach(cf => cf.set('changeMessage', null));\n          this.set('openTransportId', transport.get('id'));\n          this.set('action', 'showModal');\n          this.sendAction('action', transport);\n        });\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/related-to-labels/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"iI7/bfeh\",\n    \"block\": \"{\\\"symbols\\\":[\\\"transport\\\"],\\\"statements\\\":[[1,[21,\\\"title\\\"],false],[0,\\\"\\\\n\\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transports\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"archived\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"s\\\"],[9],[1,[22,1,[\\\"relatedToLabel\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,1,[\\\"relatedToLabel\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showTransportModal\\\",[22,1,[\\\"id\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/related-to-labels/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/remove-relation-button/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: '',\n    ajaxService: Ember.inject.service('ajax-service'),\n    showRemoveRelationModal: false,\n    canRemoveTransportRelation: Ember.computed('transport.{masterTransports.length,relatedToTransports.length}', function () {\n      const canRemove = this.get('transport').actionCanBePerformed('ROLE_CAN_DELETE_RELATION');\n      const isMaster = this.get('transport.relatedToTransports.length') > 0;\n      const isRelatedTo = this.get('transport.masterTransports.length') > 0;\n      return canRemove && (isRelatedTo || isMaster);\n    }),\n    actions: {\n      toggleShowRemoveRelationModal: function () {\n        this.toggleProperty('showRemoveRelationModal');\n      },\n      onButtonClick: function () {\n        const transport = this.get('transport');\n        const relations = transport.get('relatedTo');\n\n        if (relations.get('length') > 1) {\n          this.toggleProperty('showRemoveRelationModal');\n          return;\n        }\n\n        this.send('removeRelationHandler', relations.get('firstObject'));\n      },\n      removeRelationHandler: function (relationToRemove) {\n        const self = this;\n        const transport = this.get('transport');\n        const masterTransport = transport.get('masterTransports.firstObject');\n        this.get('ajaxService').send(`/transport-transport-relations/${relationToRemove.id}`, 'DELETE').then(() => {\n          if (masterTransport) {\n            masterTransport.get('transportType').set('transportsTabVisited', false);\n            masterTransport.reload();\n            self.refreshRelatedHasToWaitTransports(masterTransport);\n          }\n\n          const combinedTransports = transport.get('allCombinedTransports');\n          combinedTransports.forEach(t => {\n            t.reload();\n          });\n          self.get('transport.transportType').set('transportsTabVisited', false);\n          self.get('transport').reload();\n          self.send('refreshRoute');\n          self.send('hideModal');\n        }).catch(response => {\n          $('.transport-modal').scrollTop(0);\n          self.set('errors', response.errors);\n        });\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/remove-relation-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"5Zfu2Ts9\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"canRemoveTransportRelation\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-danger\\\"],[11,\\\"data-field-name\\\",\\\"transport-remove-relation\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"transport.relations.removeRelation\\\"],null],false],[0,\\\"\\\\n    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"onButtonClick\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showRemoveRelationModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"modals/remove-transport-relation\\\",null,[[\\\"relatedTo\\\",\\\"onDelete\\\",\\\"onClose\\\"],[[23,[\\\"transport\\\",\\\"relatedTo\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"removeRelationHandler\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"toggleShowRemoveRelationModal\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/remove-relation-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/render-field-errors/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: 'span',\n    fieldErrors: function () {\n      const fieldName = this.get('fieldName');\n      return this.get('model.errors.' + fieldName);\n    }.property('model.errors.@each'),\n    modelName: function () {\n      return this.get('model.constructor.modelName') ? this.get('model.constructor.modelName') : this.get('model._internalModel.modelName');\n    }.property('model')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/render-field-errors/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"eM6p7mEL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"e\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"fieldErrors\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"p\\\"],[12,\\\"class\\\",[28,[\\\"help-block \\\",[21,\\\"className\\\"]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"small\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"field-error-message\\\",null,[[\\\"modelName\\\",\\\"error\\\"],[[23,[\\\"modelName\\\"]],[22,1,[]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/render-field-errors/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/role-group-invitation-restriction/component\", [\"exports\", \"apollo/config/environment\", \"jquery\"], function (_exports, _environment, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    roleGroupCheckboxes: Ember.computed('roleGroupInvRestriction.@each', function () {\n      const principalId = localStorage.getItem('principalId');\n      return this.get('store').peekAll('roleGroup').filter(rg => {\n        return rg.get('principalCompany.id') === principalId && rg.get('canBeInvited') && rg.get('name') !== 'SUPER_USER' && rg.get('name') !== 'E-MAIL_ADVICE';\n      });\n    }),\n    roleGroupIds: Ember.computed('roleGroupInvRestriction.@each', function () {\n      let roleGroupInvRestriction = this.get('roleGroupInvRestriction');\n      return roleGroupInvRestriction.map(r => r.get('invitedRoleGroup.id'));\n    }),\n    availableRoleGroupIds: Ember.computed('', function () {\n      return this.get('roleGroupInvRestriction').map(c => c.get('invitedRoleGroup.id'));\n    }),\n    actions: {\n      toggleRole: function (rg) {\n        const roleGroup = this.get('availableRoleGroupIds').find(rgt => rgt === rg.get('id'));\n\n        if (roleGroup !== undefined) {\n          this.get('availableRoleGroupIds').removeObject(roleGroup);\n        } else {\n          this.get('availableRoleGroupIds').addObject(rg.get('id'));\n        }\n      },\n      save: function () {\n        const self = this;\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        _jquery.default.ajax({\n          url: `${_environment.default.serverURL}/role-group-invitation-restrictions`,\n          data: JSON.stringify({\n            availableRoleGroupIds: self.get('availableRoleGroupIds'),\n            invitingRoleGroupId: this.get('roleGroupId')\n          }),\n          type: 'POST',\n          contentType: 'application/json',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(() => {\n          self.set('successMessage', `${self.get('intl').t('common.saveSuccessMessage') + \". \" + self.get('intl').t('common.saveSuccessAdditionalMessage')}`);\n        }, function (response) {\n          self.set('successMessage', null);\n          self.set('errors', response.errors);\n        });\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/role-group-invitation-restriction/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"CZ8nyONI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"roleGroup\\\",\\\"idx\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.invitationSection\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section form-horizontal\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group row\\\"],[11,\\\"data-field-name\\\",\\\"INVITATION_SECTION\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"roleGroupCheckboxes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-4\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"change\\\"],[\\\"checkbox\\\",[27,\\\"is-in-list\\\",[[22,1,[\\\"id\\\"]],[23,[\\\"roleGroupIds\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"toggleRole\\\",[22,1,[]]],null]]]],false],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row pull-right\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"send\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"link-to\\\",[\\\"settings.index\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/role-group-invitation-restriction/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/role-group-notification-settings/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    intl: Ember.inject.service('intl'),\n    actions: {\n      async save() {\n        const roleGroupId = this.get('roleGroup.id');\n        const notificationIds = this.get('roleGroupNotifications').filter(n => n.checked).getEach('content.id');\n        const data = JSON.stringify({\n          roleGroup: {\n            id: roleGroupId\n          },\n          notifications: notificationIds.map(n => {\n            return {\n              id: n\n            };\n          })\n        });\n        this.set('successMessage', null);\n        this.set('errors', []);\n\n        try {\n          const path = this.get('apolloApiService').APOLLO_API.ROLE_GROUP_NOTIFICATIONS.SAVE;\n          const response = await this.get('apolloApiService').callApolloApi(path, null, {\n            body: data\n          });\n\n          if (response.ok) {\n            this.set('successMessage', this.get('intl').t('common.saveSuccessMessage'));\n          } else {\n            const error = await response.json();\n            this.set('errors', error.errors);\n          }\n        } catch (error) {\n          this.set('errors', [this.get('intl').t('common.defaultError')]);\n          console.error(error);\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/role-group-notification-settings/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"9gsFmatj\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.notificationSection\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"notification-section\\\",null,[[\\\"allNotifications\\\",\\\"notifications\\\",\\\"showUserGroupsSection\\\",\\\"roleGroup\\\"],[[23,[\\\"allNotifications\\\"]],[23,[\\\"roleGroupNotifications\\\"]],false,[23,[\\\"roleGroup\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row pull-right\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"send\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"link-to\\\",[\\\"settings.index\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/role-group-notification-settings/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/role-group-statistics-report/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    intl: Ember.inject.service('intl'),\n    selectedReportIds: Ember.computed('roleGroupStatisticsReports', function () {\n      return this.get('roleGroupStatisticsReports').map(rgsr => {\n        return rgsr.get('report.id');\n      });\n    }),\n    actions: {\n      async save() {\n        const data = JSON.stringify({\n          roleGroupId: this.get('roleGroup.id'),\n          reportIds: this.get('selectedReportIds')\n        });\n\n        try {\n          const path = this.get('apolloApiService').APOLLO_API.ROLE_GROUP_STATISTICS_REPORTS.SAVE;\n          const response = await this.get('apolloApiService').callApolloApi(path, null, {\n            body: data\n          });\n\n          if (response.ok) {\n            this.set('errors', []);\n            this.set('successMessage', this.get('intl').t('common.saveSuccessMessage'));\n          } else {\n            const error = await response.json();\n            this.set('errors', error.errors);\n          }\n        } catch (error) {\n          this.set('errors', [this.get('intl').t('common.defaultError')]);\n          console.error(error);\n        }\n      },\n\n      toggleRole: function (selection) {\n        const report = this.get('selectedReportIds').find(id => id === selection.get('id'));\n\n        if (!report) {\n          this.get('selectedReportIds').addObject(selection.get('id'));\n        } else {\n          this.get('selectedReportIds').removeObject(selection.get('id'));\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/role-group-statistics-report/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"WcjsjyMz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"report\\\",\\\"idx\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"tabs.report\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section form-horizontal\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group row\\\"],[11,\\\"data-field-name\\\",\\\"STATISTICS_REPORT_SECTION\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"allStatisticsReports\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-4\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"change\\\"],[\\\"checkbox\\\",[27,\\\"is-in-list\\\",[[22,1,[\\\"id\\\"]],[23,[\\\"selectedReportIds\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"toggleRole\\\",[22,1,[]]],null]]]],false],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"nameInCurrentLanguage\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row pull-right\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"send\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"link-to\\\",[\\\"settings.index\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/role-group-statistics-report/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/route/form/route-address-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service(),\n    warehouseAddress: false,\n\n    async init() {\n      this._super(...arguments);\n\n      await this.get('ra.route');\n      await this.get('ra.route.transportType');\n      await this.get('ra.warehouse');\n    },\n\n    showDeleteButton: Ember.computed('ra.route.routeAddresses.[]', function () {\n      const canEditRoute = this.get('sessionAccount').hasAnyOfTheRoles(Ember.A(['ROLE_CAN_EDIT_ROUTE']));\n\n      if (!canEditRoute) {\n        return false;\n      }\n\n      const routeAddresses = this.get('ra.route.routeAddresses');\n      const currentStepType = this.get('ra.stepType'); // Exit early if there are 2 or fewer addresses\n\n      if (routeAddresses.length <= 2) {\n        return false;\n      } // Only show delete button if there's more than one address of the same type\n\n\n      if (['load', 'unload'].includes(currentStepType)) {\n        const addressesOfSameType = routeAddresses.filterBy('stepType', currentStepType);\n        return addressesOfSameType.length > 1;\n      }\n\n      return false;\n    }),\n    canChooseCompany: Ember.computed('transport', function () {\n      return this.get('sessionAccount').hasAnyOfTheRoles(Ember.A(['ACCESS_SUPPLIER_COMPANY_FIELD']));\n    }),\n    companyToFindAddress: Ember.computed('ra.{company,route.transportType}', function () {\n      if (this.get('ra.company.id')) {\n        return this.get('ra.company.id');\n      }\n\n      return this.get('ra.stepType') === 'load' ? this.get('ra.route.transportType.defaultLoadCompanyId') : this.get('ra.route.transportType.defaultUnloadCompanyId');\n    }),\n    showWarehouseCheckbox: Ember.computed('ra.route.transportType.{allowLoadStepTypeChange,allowUnloadStepTypeChange}', function () {\n      return this.get('ra.stepType') === 'load' ? this.get('ra.route.transportType.allowLoadStepTypeChange') : this.get('ra.route.transportType.allowUnloadStepTypeChange');\n    }),\n    // TODO: Możemy to przenieść do address/model.js (`addressSummary` używamy w kilku miejscach)\n    addressSummary: Ember.computed('ra.address.{recipient,city,postal,street}', function () {\n      if (this.get('ra.address.recipient')) {\n        return this.get('ra.address.recipient');\n      }\n\n      if (this.get('ra.address.street')) {\n        return `${this.get('ra.address.street')}, ${this.get('ra.address.city')}, ${this.get('ra.address.postal')}`;\n      }\n\n      return '';\n    }).readOnly(),\n    actions: {\n      toggleWarehouse() {\n        this.get('ra').set('address', null);\n        this.get('ra').set('warehouse', null);\n        this.toggleProperty('warehouseAddress');\n      },\n\n      setWarehouse(warehouse) {\n        this.set('ra.warehouse', warehouse);\n        this.send('setAddressData', this.get('ra'), warehouse.get('address'));\n      },\n\n      setContractorCompanyData(item) {\n        const self = this;\n        this.get('store').findRecord('company', item.id).then(company => {\n          self.get('ra').set('company', company);\n        });\n      },\n\n      removeContractorCompany() {\n        this.get('ra').set('company', null);\n      },\n\n      recalculateRouteAddressesIdx(routeAddresses, newRouteAddressIdx) {\n        routeAddresses.filter(routeAddress => routeAddress.get('idx') >= newRouteAddressIdx).forEach(filteredRouteAddress => {\n          filteredRouteAddress.set('idx', filteredRouteAddress.get('idx') + 1);\n        });\n      },\n\n      recalculateStepTypeIdx(stepTypeAddresses, newStepTypeIdx) {\n        stepTypeAddresses.filter(routeAddress => routeAddress.get('stepTypeIdx') >= newStepTypeIdx).forEach(filteredRouteAddress => {\n          filteredRouteAddress.set('stepTypeIdx', filteredRouteAddress.get('stepTypeIdx') + 1);\n        });\n      },\n\n      onDelete: function (routeAddress) {\n        this.onDeleteHandler(routeAddress);\n      },\n      addRouteAddress: function (routeAddress, stepType) {\n        const route = this.get('ra.route');\n        const routeAddresses = route.get('routeAddresses');\n        const stepTypeRouteAddresses = routeAddresses.filter(ra => {\n          return ra.stepType === stepType;\n        });\n        const previousOrSameStep = routeAddresses.filter(ra => {\n          return ra.get('idx') <= routeAddress.get('idx') && ra.get('stepType') === stepType;\n        }).reverse().get('firstObject');\n        const newStepTypeIdx = previousOrSameStep ? previousOrSameStep.get('stepTypeIdx') + 1 : 0;\n        this.send('recalculateStepTypeIdx', stepTypeRouteAddresses, newStepTypeIdx);\n        const newRouteAddressIdx = routeAddress.get('idx') + 1;\n        this.send('recalculateRouteAddressesIdx', routeAddresses, newRouteAddressIdx);\n        const newRouteAddress = this.get('store').createRecord('routeAddress', {\n          stepType,\n          idx: newRouteAddressIdx,\n          stepTypeIdx: newStepTypeIdx\n        });\n        routeAddresses.addObject(newRouteAddress);\n        route.set('routeAddresses', route.get('routeAddresses').sortBy('idx'));\n      },\n\n      setCompanyAddressData(routeAddress, address) {\n        this.send('setAddressData', this.get('ra'), Ember.Object.create(address));\n      },\n\n      setAddressData: function (routeAddress, address) {\n        if (address.get('id')) {\n          this.get('store').findRecord('address', address.get('id')).then(addressModel => {\n            routeAddress.set('address', addressModel);\n            routeAddress.set('company', addressModel.get('company'));\n          });\n        } else {\n          routeAddress.get('address').setProperties({\n            street: address.street,\n            postal: address.postal,\n            city: address.city\n          });\n          this.get('store').findRecord('country', address.country).then(countryModel => {\n            routeAddress.set('country', countryModel);\n          });\n          this.get('store').findRecord('company', address.company).then(companyModel => {\n            routeAddress.set('company', companyModel);\n          });\n        }\n      },\n\n      removeAddress() {\n        this.get('ra').set('address', null);\n      },\n\n      beforeDrag: function (address, event) {\n        console.log(`Próbujemy przesunąć adres ${address.get('idx')}...`);\n\n        if (!address.get('canBeMoved')) {\n          event.preventDefault();\n        }\n      },\n\n      /**\n       *  potrzebne do nadpisania domyślnego stylowania draggable-object\n       */\n      dragStartHook: function () {}\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/route/form/route-address-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"wwhcmA5A\",\n    \"block\": \"{\\\"symbols\\\":[\\\"result\\\",\\\"result\\\",\\\"w\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"step-column \\\",[23,[\\\"ra\\\",\\\"route\\\",\\\"addressesCssClass\\\"]]]]],[12,\\\"data-route-address-type\\\",[28,[[23,[\\\"ra\\\",\\\"stepType\\\"]]]]],[12,\\\"data-order-in-route\\\",[28,[[23,[\\\"ra\\\",\\\"idx\\\"]]]]],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"draggable-object\\\",null,[[\\\"content\\\",\\\"dragStartAction\\\",\\\"dragStartHook\\\",\\\"tagName\\\"],[[23,[\\\"ra\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"beforeDrag\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"dragStartHook\\\"],null],\\\"div\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"group group-space-between\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"center-vertically bold\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"transport.\\\",[23,[\\\"ra\\\",\\\"stepType\\\"]]],null]],null],false],[0,\\\" #\\\"],[1,[23,[\\\"ra\\\",\\\"displayIdx\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showWarehouseCheckbox\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"center-vertically bold\\\"],[12,\\\"data-field-name\\\",[28,[[23,[\\\"ra\\\",\\\"stepType\\\"]],\\\"-warehouse-checkbox-\\\",[23,[\\\"ra\\\",\\\"idx\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.warehouse\\\"],null],false],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"disabled\\\",\\\"change\\\"],[\\\"checkbox\\\",[27,\\\"or\\\",[[23,[\\\"ra\\\",\\\"warehouse\\\",\\\"id\\\"]],[23,[\\\"warehouseAddress\\\"]]],null],[23,[\\\"ra\\\",\\\"id\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"toggleWarehouse\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showDeleteButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-right\\\"],[11,\\\"data-button-name\\\",\\\"delete-route\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-remove remove-icon\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"onDelete\\\",[23,[\\\"ra\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"button\\\"],[12,\\\"disabled\\\",[23,[\\\"ra\\\",\\\"route\\\",\\\"updateDisabled\\\"]]],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[12,\\\"data-button-name\\\",[28,[\\\"add-route-load-step-\\\",[23,[\\\"ra\\\",\\\"idx\\\"]]]]],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"step.add.title\\\"],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                +\\\"],[1,[27,\\\"t\\\",[\\\"transport.load\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addRouteAddress\\\",[23,[\\\"ra\\\"]],\\\"load\\\"]],[10],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[12,\\\"disabled\\\",[23,[\\\"ra\\\",\\\"route\\\",\\\"updateDisabled\\\"]]],[11,\\\"class\\\",\\\"btn btn-secondary\\\"],[12,\\\"data-button-name\\\",[28,[\\\"add-route-unload-step-\\\",[23,[\\\"ra\\\",\\\"idx\\\"]]]]],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"step.add.title\\\"],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                +\\\"],[1,[27,\\\"t\\\",[\\\"transport.unload\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addRouteAddress\\\",[23,[\\\"ra\\\"]],\\\"unload\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group form-group-padding\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"ra\\\",\\\"warehouse\\\",\\\"id\\\"]],[23,[\\\"warehouseAddress\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12 step-field\\\"],[12,\\\"data-field-name\\\",[28,[\\\"warehouse-select-step-\\\",[23,[\\\"ra\\\",\\\"idx\\\"]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"warehouse-select\\\",\\\"form-control\\\",[23,[\\\"ra\\\",\\\"warehouse\\\"]],[23,[\\\"ra\\\",\\\"route\\\",\\\"transportType\\\",\\\"warehousesForCurrentUser\\\"]],true,\\\"name\\\",[27,\\\"t\\\",[\\\"transport.warehouse\\\"],null],[27,\\\"or\\\",[[27,\\\"and\\\",[[23,[\\\"ra\\\",\\\"id\\\"]],[23,[\\\"ra\\\",\\\"warehouse\\\",\\\"id\\\"]]],null],[23,[\\\"ra\\\",\\\"route\\\",\\\"updateDisabled\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"setWarehouse\\\"],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,3,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"canChooseCompany\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"ra\\\",\\\"errors\\\",\\\"company\\\"]],\\\"has-error\\\"],null],\\\" col-md-7 col-xs-12 step-field\\\"]]],[12,\\\"data-field-name\\\",[28,[\\\"company-step-\\\",[23,[\\\"ra\\\",\\\"idx\\\"]]]]],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"company-auto-complete\\\",null,[[\\\"inputClass\\\",\\\"type\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"clearSelection\\\"],[\\\"dummy\\\",\\\"SUPPLIER\\\",[27,\\\"if\\\",[[23,[\\\"ra\\\",\\\"company\\\",\\\"id\\\"]],[23,[\\\"ra\\\",\\\"company\\\",\\\"name\\\"]],\\\"\\\"],null],[27,\\\"t\\\",[\\\"transport.company.autoCompletePlaceholder\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setContractorCompanyData\\\"],null],\\\"removeContractorCompany\\\"]],{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[22,2,[\\\"shortName\\\"]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\\n                                \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[22,2,[\\\"name\\\"]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"ra\\\",\\\"errors\\\",\\\"address\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"data-field-name\\\",[28,[\\\"recipient-route-address-\\\",[23,[\\\"ra\\\",\\\"idx\\\"]]]]],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"address-auto-complete\\\",null,[[\\\"field\\\",\\\"companyId\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"clearSelection\\\",\\\"disabled\\\"],[\\\"any\\\",[23,[\\\"companyToFindAddress\\\"]],[27,\\\"readonly\\\",[[23,[\\\"addressSummary\\\"]]],null],[27,\\\"t\\\",[\\\"address.autoCompletePlaceholder\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setCompanyAddressData\\\",[23,[\\\"ra\\\"]]],null],\\\"removeAddress\\\",[27,\\\"or\\\",[[23,[\\\"ra\\\",\\\"route\\\",\\\"updateDisabled\\\"]],[27,\\\"and\\\",[[23,[\\\"canChooseCompany\\\"]],[27,\\\"not\\\",[[23,[\\\"ra\\\",\\\"company\\\",\\\"id\\\"]]],null]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,1,[\\\"recipient\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,1,[\\\"postal\\\"]],false],[0,\\\" \\\"],[1,[22,1,[\\\"city\\\"]],false],[0,\\\", \\\"],[1,[22,1,[\\\"street\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"ra\\\"]],\\\"address\\\"]]],false],[0,\\\"\\\\n\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"ra\\\",\\\"errors\\\",\\\"address\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"has-error\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"ra\\\"]],\\\"address\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group form-group-padding\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"street-route-address-\\\",[23,[\\\"ra\\\",\\\"idx\\\"]]]]],[11,\\\"class\\\",\\\"route-address-field col-xs-12\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",true,[23,[\\\"ra\\\",\\\"address\\\",\\\"street\\\"]],[27,\\\"t\\\",[\\\"address.street\\\"],null]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"ra\\\",\\\"address\\\",\\\"country\\\",\\\"isWithoutPostalCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group form-group-padding\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"province-route-address-\\\",[23,[\\\"ra\\\",\\\"idx\\\"]]]]],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",true,[23,[\\\"ra\\\",\\\"address\\\",\\\"province\\\"]],[27,\\\"t\\\",[\\\"address.province\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group form-group-padding\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"postal-code-route-address-\\\",[23,[\\\"ra\\\",\\\"idx\\\"]]]]],[11,\\\"class\\\",\\\"col-md-4 col-xs-12-padding\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",true,[23,[\\\"ra\\\",\\\"address\\\",\\\"postal\\\"]],[27,\\\"t\\\",[\\\"address.postal\\\"],null]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"city-route-address-\\\",[23,[\\\"ra\\\",\\\"idx\\\"]]]]],[11,\\\"class\\\",\\\"col-md-8 col-xs-12-padding\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",true,[23,[\\\"ra\\\",\\\"address\\\",\\\"city\\\"]],[27,\\\"t\\\",[\\\"address.city\\\"],null]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"country-route-address-\\\",[23,[\\\"ra\\\",\\\"idx\\\"]]]]],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"ra\\\",\\\"address\\\",\\\"country\\\",\\\"name\\\"]],true]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/route/form/route-address-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/route/form/route-custom-fields-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n\n    init() {\n      this._super(...arguments);\n\n      const self = this;\n      const route = this.get('route');\n      Ember.run.once(() => {\n        route.get('routeCustomFields').then(() => self.createMissingCustomFieldValues(route));\n      });\n    },\n\n    createMissingCustomFieldValues: function (route) {\n      const self = this;\n      const currentPairs = route ? route.get('customFieldPairs') : this.get('route.customFieldPairs');\n      currentPairs.forEach(pair => {\n        const definition = pair.definition;\n\n        if (definition.get('visibleInDelivery')) {\n          return;\n        }\n\n        if (!pair.value) {\n          console.debug(`Dodajemy do trasy ${route.get('id')} puste/nowe custom field ${definition.get('name')}...`);\n          self.get('store').createRecord('routeCustomField', {\n            route,\n            definition\n          });\n        }\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/route/form/route-custom-fields-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"psgA4xxn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"pair\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"route\\\",\\\"customFieldPairs\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"route\\\",\\\"id\\\"]],[22,1,[\\\"definition\\\",\\\"visibleDuringTransportCreation\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-6 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[22,1,[\\\"definition\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"value\\\",\\\"changeMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"alert-text\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-exclamation-circle\\\"],[12,\\\"title\\\",[28,[[22,1,[\\\"value\\\",\\\"changeMessage\\\"]]]]],[9],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-6 \\\",[27,\\\"if\\\",[[22,1,[\\\"value\\\",\\\"errors\\\",\\\"option\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-type\\\",\\\"custom-field\\\"],[12,\\\"data-field-name\\\",[28,[[22,1,[\\\"definition\\\",\\\"englishNameTrimmed\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"transport/custom-fields-section/custom-field\\\",null,[[\\\"pair\\\",\\\"transport\\\",\\\"placeholder\\\"],[[22,1,[]],[23,[\\\"route\\\"]],[27,\\\"t\\\",[\\\"common.selectValue\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/route/form/route-custom-fields-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/route/route-template-select/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    actions: {\n      onSelect(route) {\n        this.onSelect(route);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/route/route-template-select/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"uxgtNcmL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"r\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"col-md-5 col-xs-12 control-label\\\\n                \\\",[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"errors\\\",\\\"routeTemplate\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"transport.routeTemplate\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-7 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"errors\\\",\\\"routeTemplate\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"route-template\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"disabled\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"transport\\\",\\\"id\\\"]],[23,[\\\"transport\\\",\\\"routeTemplate\\\"]],[23,[\\\"availableRoutes\\\"]],true,\\\"name\\\",[27,\\\"t\\\",[\\\"transport.routeTemplate\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"onSelect\\\"],null]]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transport\\\"]],\\\"routeTemplate\\\"]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/route/route-template-select/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/schedule-legend/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    specialWindows: Ember.computed('', function () {\n      return [{\n        label: this.get('intl').t('common.grayWindow'),\n        color: '#444'\n      }, {\n        label: this.get('intl').t('common.lateWindow'),\n        color: 'red'\n      }, {\n        label: this.get('intl').t('common.dedicatedWindow'),\n        color: 'rgba(223,223,203,.7)'\n      }, {\n        label: this.get('intl').t('common.finishedWindow'),\n        color: 'silver'\n      }, {\n        label: this.get('intl').t('common.transportCombiningIndicator'),\n        color: '#34ebb7'\n      }];\n    }),\n    tasks: Ember.computed('', function () {\n      return this.get('store').peekAll('task').filterBy('enabled').filter(t => {\n        return t.get('taskGroupIdentifier') !== 0 || t.get('idxInGroup') !== 0;\n      });\n    }),\n    columns: Ember.computed('legendObjects', function () {\n      const legendObjects = this.get('legendObjects');\n      const length = legendObjects.get('length');\n      const partIndex = length / 2;\n      return [legendObjects.slice(0, partIndex), legendObjects.slice(partIndex, length)];\n    }),\n    legendObjects: Ember.computed('tasks', function () {\n      const tasks = this.get('tasks').sort(function (a, b) {\n        return a.get('taskGroupIdentifier') - b.get('taskGroupIdentifier');\n      });\n      const uniqueColors = tasks.getEach('color').uniq();\n      const legendObjects = uniqueColors.map(color => this.mapToLegendObjects(color, tasks));\n      return [...this.get('specialWindows'), ...legendObjects];\n    }),\n    mapToLegendObjects: function (color, tasks) {\n      const tasksWithSameColor = tasks.filter(task => task.get('color') === color);\n      const label = tasksWithSameColor.map(task => this.findAppropriateLegendString(task, tasksWithSameColor)).uniq().join(', ');\n      const transportTypesNames = tasksWithSameColor.map(task => this.findTransportTypesNames(task, tasksWithSameColor)).uniq().join(', ');\n      return {\n        label,\n        color,\n        transportTypesNames\n      };\n    },\n    findAppropriateLegendString: function (task, tasksWithSameColor) {\n      const tasksWithSameStageName = tasksWithSameColor.filter(t => {\n        return t.get('stageNameInAppropriateLanguage') === task.get('stageNameInAppropriateLanguage');\n      }).get('length') > 1;\n      return tasksWithSameStageName ? task.get('stageNameInAppropriateLanguage') : task.get('legendString');\n    },\n    findTransportTypesNames: function (task, tasksWithSameColor) {\n      const tasksWithSameNameAndDifferentTransportTypes = tasksWithSameColor.filter(t => {\n        return t.get('stageNameInAppropriateLanguage') === task.get('stageNameInAppropriateLanguage') && t.get('workflow.transportType.nameInAppropriateLanguage') !== task.get('workflow.transportType.nameInAppropriateLanguage');\n      }).get('length') !== 0;\n      if (tasksWithSameNameAndDifferentTransportTypes) return task.get('workflow.transportType.nameInAppropriateLanguage');\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/schedule-legend/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"tOkUGu3/\",\n    \"block\": \"{\\\"symbols\\\":[\\\"legendObjects\\\",\\\"lo\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"centered legend row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.legend\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group legend-center\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"columns\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"legend-scale col-md-4\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"legend-labels\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,1,[]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"span\\\"],[12,\\\"style\\\",[28,[\\\"background:\\\",[22,2,[\\\"color\\\"]],\\\";\\\"]]],[11,\\\"class\\\",\\\"color\\\"],[9],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,2,[\\\"label\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,2,[\\\"transportTypesNames\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"span\\\"],[12,\\\"title\\\",[22,2,[\\\"transportTypesNames\\\"]]],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"info-circle\\\"],null],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"legend-scale col-md-4\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"legend-labels\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\"],[9],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-long-arrow-up fa-2x margin-right\\\"],[9],[10],[1,[27,\\\"t\\\",[\\\"transport.load\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\"],[9],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-long-arrow-down fa-2x margin-right\\\"],[9],[10],[1,[27,\\\"t\\\",[\\\"transport.unload\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/schedule-legend/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/schedule/current-hour-frame/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    borderWidth: Ember.computed(function () {\n      const borderWidth = $('.time-slot').css('border-bottom-width').toString();\n      return borderWidth ? parseInt(borderWidth) : 0;\n    }).readOnly(),\n    // Górna ramka będzie wyświetlana ponad komórką - dlatego przesuwamy ją o `borderWidth` w górę.\n    currentHourFrameTopOffset: Ember.computed('cssHeight', 'currentHour', 'shownDays.[]', function () {\n      const $currentHourDiv = $('.current-hour');\n\n      if (!$currentHourDiv.length) {\n        return 0;\n      }\n\n      return $currentHourDiv.offset().top - this.get('borderWidth');\n    }).readOnly(),\n    currentHourFrameBottomOffset: Ember.computed('currentHourFrameTopOffset', 'timeWindowOffsetIntervalSetting', function () {\n      const $currentHourDiv = $('.current-hour');\n\n      if (!$currentHourDiv.length) {\n        return 0;\n      }\n\n      const scheduleBodyBottomPosition = $('.schedule-body')[0].getBoundingClientRect().bottom;\n      const hourFrameBottomOffsetPosition = this.get('currentHourFrameTopOffset') + (this.get('borderWidth') + $currentHourDiv.height());\n\n      if (scheduleBodyBottomPosition <= hourFrameBottomOffsetPosition) {\n        return 0;\n      }\n\n      return hourFrameBottomOffsetPosition;\n    }).readOnly()\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/schedule/current-hour-frame/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"gagZ3VLC\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"current-hour-frame\\\"],[12,\\\"style\\\",[28,[[21,\\\"weekStyle\\\"],\\\"; top: \\\",[21,\\\"currentHourFrameTopOffset\\\"],\\\"px;\\\"]]],[9],[0,\\\"\\\\n     \\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"bottom-hour-frame\\\"],[11,\\\"class\\\",\\\"current-hour-frame\\\"],[12,\\\"style\\\",[28,[[21,\\\"weekStyle\\\"],\\\"; top: \\\",[21,\\\"currentHourFrameBottomOffset\\\"],\\\"px;\\\"]]],[9],[0,\\\"\\\\n     \\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/schedule/current-hour-frame/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/schedule/handle-transport-alert/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: service('session-account'),\n    relationsCombinerService: service('transport-relations.relations-combiner'),\n    actionName: '',\n    scrollPos: 0,\n    bindScrolling: function () {\n      let onScroll,\n          self = this;\n\n      onScroll = function () {\n        $(window).scroll(function () {\n          let top = $(this).scrollTop();\n\n          if (top > this.scrollPos) {\n            self.scrolledDown();\n          } else if (top < this.scrollPos) {\n            self.scrolledUp();\n          }\n\n          this.scrollPos = top;\n        });\n      };\n\n      $(document).bind('touchmove', onScroll);\n    },\n    unbindScrolling: function () {\n      $(document).unbind('touchmove');\n    },\n    didInsertElement: function () {\n      this.bindScrolling();\n    },\n    willRemoveElement: function () {\n      this.unbindScrolling();\n    },\n    scrolledDown: function () {\n      $('.schedule-transport-alert-mobile').css('margin-bottom', -150);\n    },\n    scrolledUp: function () {\n      $('.schedule-transport-alert-mobile').css('margin-bottom', 0);\n    },\n    transportToHandle: Ember.computed('warehouseStepToHandle.transport', function () {\n      return this.get('warehouseStepToHandle.transport');\n    }),\n    canDiscardAdviceRestrictions: Ember.computed('warehouseStepToHandle.transport.transportType', function () {\n      const transportTypeId = this.get('warehouseStepToHandle.transport.transportType.id');\n      return this.get('sessionAccount.currentUser').canDiscardAdviceRestrictions(transportTypeId);\n    }),\n    combinedTransportsToHandle: Ember.computed('warehouseStepToHandle.transport', function () {\n      return this.get('relationsCombinerService.combinedTransports');\n    }),\n    combinedTransportsToHandleLabel: Ember.computed('combinedTransportsToHandle', function () {\n      return this.get('relationsCombinerService.combinedTransportsLabel');\n    }),\n    actions: {\n      cancelTransportCreation() {\n        this.set('actionName', 'cancelTransportCreation');\n        this.sendAction('actionName');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/schedule/handle-transport-alert/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"0D7Dyeth\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tw\\\",\\\"tw\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-info schedule-transport-alert success-alert\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h4\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.youAreInWarehouse\\\"],null],false],[0,\\\" \\\"],[7,\\\"b\\\"],[9],[1,[23,[\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"warehouse\\\",\\\"address\\\",\\\"street\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"small\\\"],[9],[0,\\\"\\\\n                    (\\\"],[1,[23,[\\\"warehouse\\\",\\\"address\\\",\\\"street\\\"]],false],[0,\\\", \\\"],[1,[23,[\\\"warehouse\\\",\\\"address\\\",\\\"city\\\"]],false],[0,\\\")\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h5\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"editedWindow\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.selectNewPlaceForWindow\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"combinedTransportsToHandle\\\",\\\"length\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.selectedWindowsCombinedTransports\\\"],null],false],[0,\\\":\\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[1,[21,\\\"combinedTransportsToHandleLabel\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transportToHandle\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.selectWindowInfo\\\"],[[\\\"identifier\\\"],[[23,[\\\"transportToHandle\\\",\\\"erpIdentifier\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transportToHandle\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.createTransportInfo\\\"],[[\\\"transportTypeName\\\"],[[23,[\\\"transportToHandle\\\",\\\"transportType\\\",\\\"nameInAppropriateLanguage\\\"]]]]],false],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"warehouseStepToHandle\\\",\\\"minAdviceDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"step.timeRangeForAdvice\\\"],null],false],[0,\\\":\\\\n\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"alert-text bold\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"warehouseStepToHandle\\\",\\\"minAdviceDate\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                - \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"warehouseStepToHandle\\\",\\\"maxAdviceDate\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canDiscardAdviceRestrictions\\\"]]],null,{\\\"statements\\\":[[0,\\\"            (\\\"],[1,[27,\\\"t\\\",[\\\"step.timeRangeForAdviceDoesNotApply\\\"],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transportToHandle\\\",\\\"timeWindows\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"h5\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"combinedTransportsToHandle\\\",\\\"length\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"transport.selectedCombinedTransportsWindows\\\"],null],false],[0,\\\":\\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[1,[21,\\\"combinedTransportsToHandleLabel\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"transport.selectedWindows\\\"],[[\\\"transportIdentifier\\\"],[[23,[\\\"transportToHandle\\\",\\\"identifier\\\"]]]]],false],[0,\\\":\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transportToHandle\\\",\\\"timeWindows\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,2,[\\\"ramp\\\",\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\", \\\"],[1,[22,2,[\\\"ramp\\\",\\\"name\\\"]],false],[0,\\\", \\\"],[1,[22,2,[\\\"formattedTime\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,2,[\\\"id\\\"]],[23,[\\\"editedWindow\\\",\\\"id\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                        (\\\"],[1,[27,\\\"t\\\",[\\\"warehouse.youAreEditingThisWindow\\\"],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transportToHandle\\\",\\\"transportType\\\",\\\"shouldShowArrivalDatesInScheduleTooltip\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"border-top\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h4\\\"],[9],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"step.unloadStepArrivalDates\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n            \\\"],[1,[27,\\\"time-window-tooltip-arrival-dates\\\",null,[[\\\"transportToHandle\\\"],[[23,[\\\"transportToHandle\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons padding-top\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancelProcess\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancelTransportCreation\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-info schedule-transport-alert-mobile success-alert\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h4\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"close-alert\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"times\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancelTransportCreation\\\"]],[10],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.youAreInWarehouse\\\"],null],false],[0,\\\" \\\"],[7,\\\"b\\\"],[9],[1,[23,[\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"warehouse\\\",\\\"address\\\",\\\"street\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"small\\\"],[9],[0,\\\"\\\\n                    (\\\"],[1,[23,[\\\"warehouse\\\",\\\"address\\\",\\\"street\\\"]],false],[0,\\\", \\\"],[1,[23,[\\\"warehouse\\\",\\\"address\\\",\\\"city\\\"]],false],[0,\\\")\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transportToHandle\\\",\\\"timeWindows\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[7,\\\"h5\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transport.selectedWindows\\\"],[[\\\"transportIdentifier\\\"],[[23,[\\\"transportToHandle\\\",\\\"identifier\\\"]]]]],false],[0,\\\":\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transportToHandle\\\",\\\"timeWindows\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"ramp\\\",\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\", \\\"],[1,[22,1,[\\\"ramp\\\",\\\"name\\\"]],false],[0,\\\", \\\"],[1,[22,1,[\\\"formattedTime\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"id\\\"]],[23,[\\\"editedWindow\\\",\\\"id\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                        (\\\"],[1,[27,\\\"t\\\",[\\\"warehouse.youAreEditingThisWindow\\\"],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/schedule/handle-transport-alert/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/schedule/schedule-header/component\", [\"exports\", \"apollo/mixins/touch-mixin\"], function (_exports, _touchMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Component.extend(_touchMixin.default, {\n    sessionAccount: service('session-account'),\n    tagName: 'div',\n    classNames: ['schedule-header'],\n    actionName: '',\n    initResizeObserver: Ember.on('init', function () {\n      $(window).on('resize', this.resize.bind(this));\n    }),\n    didInsertElement: function () {\n      if (this.isTouchDevice) {\n        this.send('makeScheduleScrollable');\n      }\n    },\n    didReceiveAttrs: function () {\n      if (this.isTouchDevice) {\n        this.send('makeScheduleScrollable');\n      }\n    },\n    resize: function () {\n      //żeby na emulatorze się nie rozjeżdzało\n      //przy zmianie rozmiaru okna\n      if (this.isTouchDevice) {\n        this.send('makeScheduleScrollable');\n      }\n    },\n    touchStart: function (event) {\n      this.touchstart(event);\n    },\n    touchEnd: function (event) {\n      this.touchend(event, () => {\n        this.handleSwipeX(() => {\n          this.get('shiftScheduleRight')();\n        }, () => {\n          this.get('shiftScheduleLeft')();\n        });\n      });\n    },\n    actions: {\n      makeScheduleScrollable() {\n        // Gdy szerokość rampy będzie mniejsza niż RAMP_MIN_WIDTH px\n        // to rozszerzamy pole harmonogramu aby móc je scrollować w poziomie\n        const RAMP_MIN_WIDTH = 80; //px\n\n        const NUMBER_OF_RAMPS = this.get('viewedColumns');\n        const rampWidth = $('.ramp.even').first().outerWidth();\n\n        if (rampWidth <= RAMP_MIN_WIDTH) {\n          const minScheduleWidth = RAMP_MIN_WIDTH * NUMBER_OF_RAMPS;\n          $('.schedule-header').css('min-width', minScheduleWidth);\n          $('.schedule-body').css('min-width', minScheduleWidth);\n        }\n      },\n\n      toggleWholeRampWindow(time, rampId) {\n        console.log(`toggleWholeRampWindow :: t: ${time}, r: ${rampId}..`);\n        this.set('actionName', 'toggleWholeRampWindow');\n        this.sendAction('actionName', time, rampId);\n      },\n\n      showModal(templateName, model) {\n        this.set('action', 'showModal');\n        this.sendAction('action', templateName, model);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/schedule/schedule-header/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"EZXftHnq\",\n    \"block\": \"{\\\"symbols\\\":[\\\"day\\\",\\\"index\\\",\\\"wZ\\\",\\\"zidx\\\",\\\"ramp\\\",\\\"idx\\\",\\\"wZ\\\",\\\"zidx\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"days-headers\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"shownDays\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"day-header \\\",[27,\\\"odd-even\\\",[[22,2,[]]],null]]]],[12,\\\"style\\\",[21,\\\"dayStyle\\\"]],[12,\\\"data-schedule-date\\\",[22,1,[\\\"name\\\"]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"day-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[22,1,[\\\"longName\\\"]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"number-of-windows\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showNumberOfWindows\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"fa-icon\\\",[\\\"truck\\\"],null],false],[0,\\\" \\\"],[1,[22,1,[\\\"numberOfWindows\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"number-of-pallets\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showMaxPalletSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"max-pallet\\\",null,[[\\\"day\\\",\\\"warehouse\\\",\\\"isTemplate\\\",\\\"numberOfPallets\\\"],[[22,1,[]],[23,[\\\"warehouse\\\"]],[23,[\\\"isTemplate\\\"]],[22,1,[\\\"numberOfPallets\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"warehouseZones\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"schedule/warehouse-zone-header\\\",null,[[\\\"warehouseZone\\\",\\\"rampWidth\\\",\\\"zoneIdx\\\",\\\"userRampsIds\\\"],[[22,7,[]],[23,[\\\"rampWidth\\\"]],[22,8,[]],[23,[\\\"userRampsIds\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7,8]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"warehouseZones\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,3,[\\\"sortedRamps\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[[22,5,[\\\"id\\\"]],[23,[\\\"userRampsIds\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"ramp-schedule\\\",null,[[\\\"width\\\",\\\"numberOfRampsInZone\\\",\\\"ramp\\\",\\\"warehouseZone\\\",\\\"zoneIdx\\\",\\\"idx\\\",\\\"viewedColumns\\\",\\\"numberOfPalletsPerRamps\\\"],[[23,[\\\"rampWidth\\\"]],[22,3,[\\\"sortedRamps\\\",\\\"length\\\"]],[22,5,[]],[22,3,[]],[22,4,[]],[22,6,[]],[23,[\\\"viewedColumns\\\"]],[22,1,[\\\"numberOfPalletsPerRamps\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[5,6]},null]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"cleaner\\\"],[9],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/schedule/schedule-header/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/schedule/time-bar/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: 'div',\n    classNames: ['time-bar'],\n    didInsertElement: function () {\n      const self = this;\n      const $el = self.$();\n      const leftOffset = parseInt($el.offset().left);\n      $(window).scroll(function () {\n        $el.css({\n          'left': $(this).scrollLeft() + leftOffset\n        });\n      });\n      this.send('notifyTimeBarRendered');\n    },\n    numberOfTimeObjectsChanged: Ember.observer('timeObjects.length', function () {\n      const self = this;\n      Ember.run.scheduleOnce('afterRender', function () {\n        self.send('notifyTimeBarRendered');\n      });\n    }),\n    actions: {\n      notifyTimeBarRendered() {\n        this.set('action', 'timeBarRendered');\n        this.sendAction('action');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/schedule/time-bar/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"XgkI1Ex+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"time\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"time-zone-label\\\"],[9],[1,[21,\\\"tzabbr\\\"],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"timeObjects\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"time-label \\\",[21,\\\"timeSlotIntervalClass\\\"],\\\" hour-\\\",[22,1,[\\\"hour\\\"]],\\\" \\\",[27,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"shownDaysContainCurrentDay\\\"]],[27,\\\"hour-is-between\\\",[[23,[\\\"currentHour\\\"]],[22,1,[]],[23,[\\\"timeWindowOffsetInterval\\\"]]],null]],null],\\\"current-hour\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[1,[22,1,[\\\"hour\\\"]],false],[0,\\\":\\\"],[1,[22,1,[\\\"minutes\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/schedule/time-bar/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/schedule/warehouse-zone-header/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    classNames: ['warehouse-zone-header'],\n    attributeBindings: ['style'],\n    classNameBindings: ['isZoneIdxEven:even'],\n    languageService: Ember.inject.service('language-service'),\n    sessionAccount: Ember.inject.service('session-account'),\n\n    // eslint-disable-next-line ember/no-component-lifecycle-hooks\n    didInsertElement() {\n      this._super(...arguments);\n\n      if ($(this.element).children().width() <= $(this.element).width()) {\n        const propertyName = this.get('languageService').findProperLanguageVersion('warehouseZone.name', 'warehouseZone.englishName');\n        this.set('fullOrShortWarehouseZoneName', this.get(propertyName));\n      } else {\n        this.set('fullOrShortWarehouseZoneName', this.get('warehouseZone.shortName'));\n      }\n    },\n\n    // eslint-disable-next-line ember/no-function-prototype-extensions\n    isZoneIdxEven: function () {\n      return this.get('zoneIdx') % 2 === 0;\n    }.property('zoneIdx'),\n    // eslint-disable-next-line ember/no-function-prototype-extensions\n    style: function () {\n      // eslint-disable-next-line ember/no-string-prototype-extensions\n      return `width: ${this.get('width')}%`.htmlSafe();\n    }.property('width'),\n    // eslint-disable-next-line ember/no-function-prototype-extensions\n    width: function () {\n      return this.userRampsInWarehouseZone().length * this.get('rampWidth');\n    }.property('warehouseZone.enabledRamps.length', 'rampWidth', 'userRampsIds'),\n    userRampsInWarehouseZone: function () {\n      return this.get('warehouseZone.enabledRamps').filter(ramp => {\n        return this.get('userRampsIds').includes(ramp.id);\n      });\n    },\n    fullOrShortWarehouseZoneName: Ember.computed('warehouseZone.enabledRamps.[]', 'warehouseZone.name', 'warehouseZone.englishName', 'warehouseZone.shortName', 'width', function () {\n      const propertyName = this.get('languageService').findProperLanguageVersion('warehouseZone.name', 'warehouseZone.englishName');\n      return this.get(propertyName);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/schedule/warehouse-zone-header/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ncdB3ras\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"span\\\"],[11,\\\"class\\\",\\\"zone-name\\\"],[9],[1,[21,\\\"fullOrShortWarehouseZoneName\\\"],false],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/schedule/warehouse-zone-header/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/sections/document-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    dragAndDrop: Ember.inject.service('drag-and-drop-service'),\n    activeDocumentsOfType: Ember.computed('documentType.id', 'modelObject.activeDocuments.length', function () {\n      const self = this;\n      return this.get('modelObject.activeDocuments').filter(doc => {\n        return doc.get('documentType.id') === self.get('documentType.id');\n      });\n    }),\n\n    dragOver(event) {\n      const element = this.element;\n\n      if (this.get('modelObject').status !== 'DISABLED') {\n        this.get('dragAndDrop').dragOver(event, element);\n      }\n    },\n\n    dragLeave(event) {\n      const element = this.element;\n      this.get('dragAndDrop').dragLeave(event, element);\n    },\n\n    drop(event) {\n      const element = this.element;\n      this.get('dragAndDrop').drop(event, element);\n    },\n\n    actions: {\n      showModal(templateName, model) {\n        this.set('action', 'showModal');\n        this.sendAction('action', templateName, model);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/sections/document-section/document-form/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    currencies: Ember.computed('', function () {\n      return this.get('store').peekAll('currency');\n    }),\n    isEditionDisabled: Ember.computed('document.id', 'document.canBeUpdated', function () {\n      if (!this.get('document.id')) {\n        return false;\n      }\n\n      return !this.get('document.canBeUpdated');\n    }),\n    actions: {\n      setExpirationDate(dateValues) {\n        Ember.run.next(() => {\n          this.get('document').set('expirationDate', dateValues[0]);\n        });\n      },\n\n      setExpirationDateFrom(dateValues) {\n        Ember.run.next(() => {\n          this.get('document').set('expirationDateFrom', dateValues[0]);\n        });\n      },\n\n      showModal(templateName, model) {\n        this.set('action', 'showModal');\n        this.sendAction('action', templateName, model);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/sections/document-section/document-form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"VJHysmp8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"c\\\"],\\\"statements\\\":[[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[11,\\\"data-field-name\\\",\\\"document-status\\\"],[12,\\\"data-document-status\\\",[23,[\\\"document\\\",\\\"state\\\"]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"section.state.label\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8 col-xs-12 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"sections/section-state\\\",null,[[\\\"section\\\"],[[23,[\\\"document\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"documentType\\\",\\\"showNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[11,\\\"data-field-name\\\",\\\"document-number\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[12,\\\"for\\\",[28,[[27,\\\"concat\\\",[\\\"document-number-\\\",[23,[\\\"document\\\",\\\"id\\\"]]],null]]]],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"documentType.\\\",[23,[\\\"documentType\\\",\\\"translationKey\\\"]],\\\".number\\\"],null]],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"number\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control focus-input\\\",[27,\\\"concat\\\",[\\\"document-number-\\\",[23,[\\\"document\\\",\\\"id\\\"]]],null],[23,[\\\"document\\\",\\\"number\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"document\\\"]],\\\"number\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"documentType\\\",\\\"showExpirationDateFrom\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[11,\\\"data-field-name\\\",\\\"document-expiration-date-from\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"documentType.\\\",[23,[\\\"documentType\\\",\\\"translationKey\\\"]],\\\".expirationDateFrom\\\"],null]],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-5 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"expirationDateFrom\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"formatType\\\",\\\"class\\\",\\\"disabled\\\"],[[27,\\\"readonly\\\",[[23,[\\\"document\\\",\\\"expirationDateFrom\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"setExpirationDateFrom\\\"],null],\\\"shortDate\\\",\\\"form-control\\\",[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"expirationDateFrom\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 no-padding\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"document\\\"]],\\\"expirationDateFrom\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"documentType\\\",\\\"showExpirationDateTo\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[11,\\\"data-field-name\\\",\\\"document-expiration-date-to\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"documentType.\\\",[23,[\\\"documentType\\\",\\\"translationKey\\\"]],\\\".expirationDate\\\"],null]],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-5 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"expirationDate\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"expirationDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"disabled\\\",\\\"onChange\\\",\\\"formatType\\\",\\\"class\\\"],[[27,\\\"readonly\\\",[[23,[\\\"document\\\",\\\"expirationDate\\\"]]],null],[23,[\\\"isEditionDisabled\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setExpirationDate\\\"],null],\\\"shortDate\\\",\\\"form-control\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"expirationDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 no-padding\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"document\\\"]],\\\"expirationDate\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"document\\\",\\\"state\\\"]],[23,[\\\"document\\\",\\\"STATES\\\",\\\"EXPIRED\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"errors\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"document.expired\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[27,\\\"eq\\\",[[23,[\\\"document\\\",\\\"howManyDaysBeforeDocumentExpirationDateCarrierShouldBeBlocked\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"span\\\"],[9],[1,[27,\\\"t\\\",[\\\"document.expirationShiftInfo\\\"],[[\\\"days\\\",\\\"date\\\"],[[23,[\\\"document\\\",\\\"howManyDaysBeforeDocumentExpirationDateCarrierShouldBeBlocked\\\"]],[23,[\\\"document\\\",\\\"calculatedExpirationDate\\\"]]]]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"documentType\\\",\\\"showAmount\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[11,\\\"data-field-name\\\",\\\"document-amount\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[12,\\\"for\\\",[28,[[27,\\\"concat\\\",[\\\"document-amount-input-\\\",[23,[\\\"document\\\",\\\"id\\\"]]],null]]]],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"documentType.\\\",[23,[\\\"documentType\\\",\\\"translationKey\\\"]],\\\".amount\\\"],null]],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8 col-xs-12 no-padding\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-row\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-7 col-xs-8 \\\",[27,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"amount\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"pattern\\\",\\\"min\\\",\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"placeholder\\\"],[\\\"number\\\",\\\"5\\\",\\\"^[0-9]+\\\\\\\\.[0-9][0-9]$\\\",\\\"0\\\",\\\"form-control\\\",[27,\\\"concat\\\",[\\\"document-amount-input-\\\",[23,[\\\"document\\\",\\\"id\\\"]]],null],[23,[\\\"document\\\",\\\"amount\\\"]],[23,[\\\"isEditionDisabled\\\"]],[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"documentType.\\\",[23,[\\\"documentType\\\",\\\"translationKey\\\"]],\\\".amount\\\"],null]],null]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"document\\\"]],\\\"amount\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-5 col-xs-4 \\\",[27,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"currency\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"document\\\",\\\"currency\\\"]]],null],[23,[\\\"currencies\\\"]],true,\\\"symbol\\\",[27,\\\"t\\\",[\\\"common.currency\\\"],null],[23,[\\\"isEditionDisabled\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"document\\\",\\\"currency\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[22,1,[\\\"symbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"document\\\"]],\\\"currency\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"documentType\\\",\\\"showScope\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[11,\\\"data-field-name\\\",\\\"document-scope\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[12,\\\"for\\\",[28,[[27,\\\"concat\\\",[\\\"document-scope-\\\",[23,[\\\"document\\\",\\\"id\\\"]]],null]]]],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"documentType.\\\",[23,[\\\"documentType\\\",\\\"translationKey\\\"]],\\\".scope\\\"],null]],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"scopeOfInsurance\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[27,\\\"concat\\\",[\\\"document-scope-\\\",[23,[\\\"document\\\",\\\"id\\\"]]],null],[23,[\\\"document\\\",\\\"scopeOfInsurance\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"document\\\"]],\\\"scopeOfInsurance\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12\\\"],[11,\\\"data-field-name\\\",\\\"document-files\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"document\\\",\\\"isActive\\\"]],[27,\\\"not\\\",[[23,[\\\"modal\\\"]]],null]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"files\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"document.files\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-warning\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"document.noFilesWarning\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"document\\\",\\\"errors\\\",\\\"files\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.documents.dragAndDrop\\\"],null],false],[0,\\\": \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"sections/upload-file\\\",null,[[\\\"section\\\",\\\"files\\\",\\\"fileType\\\",\\\"elementZone\\\",\\\"truck\\\"],[[23,[\\\"document\\\"]],[23,[\\\"document\\\",\\\"files\\\"]],[23,[\\\"document\\\",\\\"groupName\\\"]],[22,0,[\\\"element\\\"]],[23,[\\\"modelObject\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/sections/document-section/document-form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/sections/document-section/document-section-manager/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    isModelObjectEnabled: Ember.computed('modelObject.status', function () {\n      return this.get('modelObject.status') !== 'DISABLED';\n    }),\n    archivedAndDeletedDocuments: Ember.computed('documentType.id', 'truck.documents.@each.id', 'modelObject.documents.@each.{isActive,deleted}', function () {\n      const documents = this.get('modelObject.documents').filterBy('documentType.id', this.get('documentType.id'));\n      return documents.filter(document => document.isActive === false || document.deleted === true);\n    }),\n    actions: {\n      refresh() {\n        this.get('modelObject').reload().then(p => p.get('documents').reload());\n      },\n\n      addDocument() {\n        const modelObject = this.get('modelObject');\n        const documentType = this.get('documentType');\n        const suggestedExpirationDate = documentType.get('showExpirationDateTo') ? moment().add(1, 'year').startOf('day').toDate() : null;\n        const suggestedExpirationDateFrom = documentType.get('showExpirationDateFrom') ? moment().startOf('day').toDate() : null;\n        const documentModel = this.get('store').createRecord('document', {\n          truck: modelObject,\n          documentType,\n          expirationDate: suggestedExpirationDate,\n          expirationDateFrom: suggestedExpirationDateFrom // TODO A-6803 Refactor Zgłoszeń po wprowadzeniu Feature -> Weryfikacja środków transportu\n          //  currency: currency,\n          //  scopeOfInsurance: scopeOfInsurance\n\n        });\n        const model = {\n          document: documentModel,\n          documentType\n        };\n        this.set('action', 'showModal');\n        this.sendAction('action', 'documents.modals.document-form-modal', model);\n      },\n\n      showArchived() {\n        this.set('action', 'showModal');\n        const model = {\n          documentType: this.get('documentType'),\n          documents: this.get('archivedAndDeletedDocuments')\n        };\n        this.sendAction('action', 'documents.modals.document-list-modal', model);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/sections/document-section/document-section-manager/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Uyl6zhgy\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 form-buttons margin-bottom\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isModelObjectEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"add-document\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"documentType.\\\",[23,[\\\"documentType\\\",\\\"translationKey\\\"]],\\\".add\\\"],null]],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addDocument\\\"]],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"refresh-documents\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.refresh\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"refresh\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CAN_ACCESS_ARCHIVED_TRUCK_DOCUMENTS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"show-archived-documents\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\" \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"documentType.\\\",[23,[\\\"documentType\\\",\\\"translationKey\\\"]],\\\".showArchived\\\"],null]],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showArchived\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/sections/document-section/document-section-manager/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/sections/document-section/document-state-buttons/component\", [\"exports\", \"apollo/mixins/section-mixin\"], function (_exports, _sectionMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_sectionMixin.default, {\n    isModelObjectEnabled: Ember.computed('modelObject.status', function () {\n      return this.get('modelObject.status') !== 'DISABLED';\n    }),\n    actions: {\n      showModal(templateName, model) {\n        this.set('action', 'showModal');\n        this.sendAction('action', templateName, model);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/sections/document-section/document-state-buttons/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"hsUDthXF\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"isActive\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"isModelObjectEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 form-buttons margin-top\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"success\\\"],[9],[1,[21,\\\"successMessage\\\"],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"canBeConfirmed\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"operationInProgress\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.operationInProgress\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-success\\\"],[11,\\\"data-button-name\\\",\\\"accept-document\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"section.accept\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"confirm\\\",[23,[\\\"document\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"canBeRejected\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"sections/reject-section-button\\\",null,[[\\\"section\\\"],[[23,[\\\"document\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"canBeUpdated\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"update-document\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"section.update\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"update\\\",[23,[\\\"document\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"document\\\",\\\"canBeDisabled\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"dataButtonName\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"document.disableConfirm\\\"],null],\\\"disable-document\\\",[27,\\\"action\\\",[[22,0,[]],\\\"disable\\\",[23,[\\\"document\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"ban\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.disable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/sections/document-section/document-state-buttons/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/sections/document-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"LAYSIP7G\",\n    \"block\": \"{\\\"symbols\\\":[\\\"document\\\"],\\\"statements\\\":[[4,\\\"expandable-panel\\\",null,[[\\\"objectId\\\",\\\"componentName\\\",\\\"title\\\",\\\"titleClass\\\",\\\"customIconClass\\\",\\\"defaultOpen\\\"],[[23,[\\\"documentType\\\",\\\"id\\\"]],[23,[\\\"documentType\\\",\\\"name\\\"]],[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"documentType.\\\",[23,[\\\"documentType\\\",\\\"translationKey\\\"]],\\\".name\\\"],null]],null],\\\"bold\\\",[27,\\\"document-icon\\\",null,[[\\\"documentTypeName\\\"],[[23,[\\\"documentType\\\",\\\"name\\\"]]]]],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"activeDocumentsOfType\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[12,\\\"data-document-id\\\",[22,1,[\\\"id\\\"]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"sections/document-section/document-form\\\",null,[[\\\"documentType\\\",\\\"document\\\",\\\"modal\\\",\\\"modelObject\\\"],[[23,[\\\"documentType\\\"]],[22,1,[]],false,[23,[\\\"modelObject\\\"]]]]],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"sections/document-section/document-state-buttons\\\",null,[[\\\"document\\\",\\\"modelObject\\\"],[[22,1,[]],[23,[\\\"modelObject\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"sections/document-section/document-section-manager\\\",null,[[\\\"modelObject\\\",\\\"documentType\\\"],[[23,[\\\"modelObject\\\"]],[23,[\\\"documentType\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/sections/document-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/sections/reject-section-button/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: 'span',\n    actions: {\n      showRejectionModal(section) {\n        this.set('action', 'showModal');\n        this.sendAction('action', 'sections.modals.rejection-modal', section);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/sections/reject-section-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"CmRBtt8+\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-warning\\\"],[11,\\\"data-button-name\\\",\\\"reject-document\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"section.reject\\\"],null],false],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showRejectionModal\\\",[23,[\\\"section\\\"]]]],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/sections/reject-section-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/sections/section-state/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: 'span',\n    classNameBindings: ['stateClass'],\n    stateClass: Ember.computed('section.state', function () {\n      return `section-state-${this.get('section.state')}`;\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/sections/section-state/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"GEIjKUfq\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"section.state.\\\",[23,[\\\"section\\\",\\\"state\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"not\\\",[[23,[\\\"section\\\",\\\"deleted\\\"]]],null],[27,\\\"eq\\\",[[23,[\\\"section\\\",\\\"state\\\"]],\\\"ARCHIVED\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"    (\\\"],[1,[27,\\\"t\\\",[\\\"section.expired\\\"],null],false],[0,\\\")\\\\n    \\\"],[7,\\\"p\\\"],[9],[7,\\\"small\\\"],[9],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"section.dateOfExpiration\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"section\\\",\\\"lastUpdated\\\"]],\\\"defaultDateTime\\\"],null],false],[10],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"section\\\",\\\"deleted\\\"]],[27,\\\"eq\\\",[[23,[\\\"section\\\",\\\"state\\\"]],\\\"ARCHIVED\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"    (\\\"],[1,[27,\\\"t\\\",[\\\"section.disabled\\\"],null],false],[0,\\\")\\\\n    \\\"],[7,\\\"p\\\"],[9],[7,\\\"small\\\"],[9],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"section.dateOfArchiving\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"section\\\",\\\"lastUpdated\\\"]],\\\"defaultDateTime\\\"],null],false],[10],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"section\\\",\\\"activeAction\\\"]],[27,\\\"is-in-list\\\",[[23,[\\\"section\\\",\\\"state\\\"]],\\\"['ACCEPTED', 'REJECTED']\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"section\\\",\\\"activeAction\\\",\\\"dateCreated\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"section\\\",\\\"activeAction\\\",\\\"person\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"t\\\",[\\\"common.by\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"section\\\",\\\"activeAction\\\",\\\"person\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/sections/section-state/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/sections/upload-file/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    // Sztywno ustawiamy tutaj TRUE żeby przycisk zawsze był widoczny w sekcji, wartość ta jest\n    // zmieniana w template przy wyświetlaniu dokumentów archiwalnych `document-form/template`\n    showAddFileButton: Ember.computed('', function () {\n      return true;\n    }),\n    actions: {\n      fileUploadStarted: function () {},\n      fileUploadSuccess: function () {\n        const section = this.get('section.content') ? this.get('section.content') : this.get('section');\n        const modelName = section.get('constructor.modelName') ? section.get('constructor.modelName') : section.get('_internalModel.modelName');\n        this.get('store').findRecord(modelName, section.get('id'), {\n          reload: true\n        });\n\n        if (section && section.get('truck.id')) {\n          section.get('truck').then(t => t.reload());\n        }\n      },\n      fileUploadFail: function () {},\n      deleteFile: function (file) {\n        const msg = this.get('intl').t('file.confirmDeletion');\n\n        if (!confirm(msg)) {\n          return;\n        }\n\n        const self = this;\n        file = file.get('content') ? file.get('content') : file;\n        file.destroyRecord().then(() => {\n          self.get('section.content').reload();\n        });\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/sections/upload-file/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"xqIa3YG5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"file\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"file\\\"]],[23,[\\\"canAddOnlyOneFile\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[23,[\\\"file\\\",\\\"refLink\\\"]]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file\\\"],[9],[10],[0,\\\" \\\"],[1,[23,[\\\"file\\\",\\\"name\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[[23,[\\\"section\\\",\\\"deleteFileFromSectionRole\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"common.delete\\\"],null]]]],[11,\\\"class\\\",\\\"fa fa-times\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"deleteFile\\\",[23,[\\\"file\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"files\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[22,1,[\\\"refLink\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file\\\"],[9],[10],[0,\\\" \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"not\\\",[[23,[\\\"section\\\",\\\"deleted\\\"]]],null],[27,\\\"has-role\\\",[[23,[\\\"section\\\",\\\"deleteFileFromSectionRole\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"common.delete\\\"],null]]]],[11,\\\"class\\\",\\\"fa fa-times\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"deleteFile\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"section\\\",\\\"state\\\"]],\\\"ARCHIVED\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"small\\\"],[9],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.addedBy\\\"],null],false],[0,\\\" \\\"],[1,[22,1,[\\\"creator\\\"]],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.onDay\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"date\\\"]],\\\"defaultDateTime\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"truck\\\",\\\"status\\\"]],\\\"DISABLED\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"modeOfTransportation.documents.disabled\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showAddFileButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"file-upload\\\",null,[[\\\"section\\\",\\\"fileType\\\",\\\"resourceUrl\\\",\\\"isFromSection\\\",\\\"elementZone\\\"],[[23,[\\\"section\\\"]],[23,[\\\"fileType\\\"]],[27,\\\"concat\\\",[\\\"/sections/\\\",[23,[\\\"section\\\",\\\"id\\\"]],\\\"/files\\\"],null],true,[23,[\\\"elementZone\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/sections/upload-file/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/serial-transports-form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"aj6nyZix\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"recurring-transport-form\\\",null,[[\\\"type\\\",\\\"isActive\\\",\\\"model\\\",\\\"transport\\\",\\\"labelTranslationKey\\\"],[\\\"serialTransport\\\",[23,[\\\"transport\\\",\\\"serialTransportActive\\\"]],[23,[\\\"transport\\\",\\\"serialTransport\\\"]],[23,[\\\"transport\\\"]],\\\"serialTransport.label\\\"]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/serial-transports-form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/server-table/component\", [\"exports\", \"ember-models-table/components/models-table-server-paginated\", \"apollo/pods/themes/table-theme\"], function (_exports, _modelsTableServerPaginated, _tableTheme) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = _modelsTableServerPaginated.default.extend({\n    sessionAccount: service('session-account'),\n    intl: service(),\n    // eslint-disable-next-line ember/no-observers\n    filteredContentChanged: Ember.observer('filteredContent', function () {\n      if (this.onFilteredContentChanged) {\n        this.onFilteredContentChanged(this.get('filteredContent'));\n      }\n    }),\n\n    willDestroyElement() {\n      this._super(...arguments);\n\n      this.set('saveSuccessMessage', '');\n    },\n\n    didRender: function () {\n      this._super(...arguments);\n\n      const self = this;\n      Ember.run.next(function () {\n        self.resizeTableHeader();\n      });\n    },\n    filterQueryParameters: {\n      globalFilter: 'globalSearch',\n      sort: 'sort',\n      sortDirection: 'sortDirection',\n      page: 'page',\n      pageSize: 'max'\n    },\n    themeInstance: Ember.computed('', function () {\n      // https://stackoverflow.com/questions/34970881/inject-a-service-into-an-ember-object-not-an-ember-controller\n      return _tableTheme.default.create({\n        container: Ember.getOwner(this)\n      });\n    }),\n    pageSize: Ember.computed('maxRowsInTable', function () {\n      return this.get('maxRowsInTable') || 10;\n    }),\n    clearFilters: Ember.observer('clear', function () {\n      this.send('clearFilters');\n    }),\n    saveUser: Ember.observer('maxRowsInTable', function () {\n      this.send('saveUser');\n    }),\n    resizeTableHeader: function () {\n      const self = this;\n      Ember.run.later(function () {\n        if (!self.isDestroyed) {\n          $('thead.companies-table-header th').each(function (_, elem) {\n            const name = elem.className.match('column-(.*?)[a-zA-Z]*')[0].split('-')[1];\n            const windowInnerWidth = window.innerWidth;\n            const numOfCells = $('.table-header').length / 2;\n            const defaultWidth = Math.floor(windowInnerWidth / (numOfCells + 1));\n            const maxCellWidth = Math.max(...Object.values($(\"td[data-field-name='\" + name + \"'] a, td[data-field-name='\" + name + \"'] span\")).filter(e => e.offsetWidth !== undefined).map(e => e.offsetWidth));\n            const width = maxCellWidth || defaultWidth;\n            $(this).outerWidth(isFinite(width) ? width : defaultWidth);\n          });\n        }\n      });\n    },\n    actions: {\n      saveUser: function () {\n        const user = this.get('sessionAccount.currentUser'); // TODO: sparametryzowac to paskudztwo\n\n        user.set('maxRowsInCompaniesTable', this.get('pageSize'));\n        user.save({\n          backgroundReload: false\n        }).then(() => {\n          this.set('saveSuccessMessage', this.get('intl').t('common.saveSuccessMessage')); // nie wiem czemu tabela wraca do stanu początkowego dlatego musimy ją przeładować. Nie wiem jak to inaczej zrobić\n\n          this._loadData();\n        });\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/server-table/filters/date-filter/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: service('session-account'),\n    actions: {\n      setDate(date) {\n        // TODO\n        if (!date[0]) {\n          this.set('column.filterString', null);\n        }\n\n        this.set('column.filterString', date[0].getTime());\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/server-table/filters/date-filter/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"JqXarc52\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"style\\\",\\\"padding-bottom: 15px\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"column\\\",\\\"filterUsed\\\"]],\\\"has-feedback\\\"],null]]]],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"formatType\\\",\\\"class\\\"],[[27,\\\"if\\\",[[23,[\\\"column\\\",\\\"filterString\\\"]],[23,[\\\"column\\\",\\\"filterString\\\"]],null],null],[27,\\\"action\\\",[[22,0,[]],\\\"setDate\\\"],null],\\\"shortDate\\\",\\\"form-control date-chooser\\\"]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"clearFilterIcon form-control-feedback fa fa-times-circle\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"column\\\",\\\"filterString\\\"]]],null],\\\"\\\"],null]],[9],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/server-table/filters/date-filter/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/server-table/filters/date-range-filter/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    actions: {\n      setDate(date) {\n        if (!date[0]) {\n          this.set('column.filterString', null);\n        } // TODO\n\n\n        if (date.length === 2) {\n          this.set('column.filterString', `${date[0]}-${date[1]}`);\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/server-table/filters/date-range-filter/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"X/xrzpRo\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"style\\\",\\\"padding-bottom: 15px\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"column\\\",\\\"filterUsed\\\"]],\\\"has-feedback\\\"],null]]]],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"formatType\\\",\\\"class\\\",\\\"nativeFlatpickrOptions\\\"],[[27,\\\"if\\\",[[23,[\\\"column\\\",\\\"filterString\\\"]],[23,[\\\"column\\\",\\\"filterString\\\"]],\\\"\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setDate\\\"],null],\\\"shortDate\\\",\\\"form-control\\\",[27,\\\"hash\\\",null,[[\\\"mode\\\"],[\\\"range\\\"]]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"column\\\",\\\"filterUsed\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"clearFilterIcon form-control-feedback fa fa-times-circle\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"column\\\",\\\"filterString\\\"]]],null],\\\"\\\"],null]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/server-table/filters/date-range-filter/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/server-table/filters/date-time-filter/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    actions: {\n      setDate(date) {\n        if (!date[0]) {\n          this.set('column.filterString', null);\n        }\n\n        this.set('column.filterString', moment(date[0]).format('DD.MM.YYYY HH:mm'));\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/server-table/filters/date-time-filter/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"X/ZGx9pj\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"style\\\",\\\"padding-bottom: 15px\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"column\\\",\\\"filterUsed\\\"]],\\\"has-feedback\\\"],null]]]],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"formatType\\\",\\\"class\\\",\\\"nativeFlatpickrOptions\\\"],[[27,\\\"if\\\",[[23,[\\\"column\\\",\\\"filterString\\\"]],[23,[\\\"column\\\",\\\"filterString\\\"]],\\\"\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setDate\\\"],null],\\\"defaultDateTime\\\",\\\"form-control\\\",[27,\\\"hash\\\",null,[[\\\"minuteIncrement\\\",\\\"enableTime\\\"],[1,true]]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"column\\\",\\\"filterUsed\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"clearFilterIcon form-control-feedback fa fa-times-circle\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"column\\\",\\\"filterString\\\"]]],null],\\\"\\\"],null]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/server-table/filters/date-time-filter/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/show-courier-price-details/component\", [\"exports\", \"apollo/pods/components/custom-popover/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _component.default.extend({\n    priceBrutto: Ember.computed('', function () {\n      const priceSum = this.get('courier').price_sum_netto + this.get('courier').price_sum_vat;\n      return priceSum.toFixed(2);\n    }),\n    dhlExpressPriceBrutto: Ember.computed('', function () {\n      const courier = this.get('courier');\n      const priceSum = courier.price_base_vat + courier.price_base + courier.price_dhl_premium + courier.price_es + courier.price_fuel;\n      return priceSum.toFixed(2);\n    }),\n    actions: {\n      showPriceDetails() {\n        if (!this.get('isOpened')) {\n          this.showPopover(this.element, '.show-price-details', '.price-details-popover');\n        } else {\n          this.destroyPopovers();\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/show-courier-price-details/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Rtww7VJr\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"show-price-details background-to-color\\\"],[11,\\\"data-toggle\\\",\\\"popover\\\"],[11,\\\"data-placement\\\",\\\"right\\\"],[11,\\\"data-content\\\",\\\"\\\"],[12,\\\"style\\\",[23,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]]],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-info-circle clickable\\\"],[9],[10],[0,\\\"\\\\n\\\\n    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showPriceDetails\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isOpened\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"price-details-popover hidden\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container-fluid popover-body\\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"prices\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"courier.priceDetails.finalPriceComponents\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"courier\\\",\\\"courier\\\",\\\"name\\\"]],\\\"DHL PL\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"courier.priceDetails.servicePrice\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"courier\\\",\\\"price\\\",\\\"value\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"courier\\\",\\\"courier\\\",\\\"name\\\"]],\\\"TNT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"price-details-list\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"courier.priceDetails.grossPrice\\\"],null],false],[0,\\\" \\\"],[1,[21,\\\"priceBrutto\\\"],false],[0,\\\" \\\"],[1,[23,[\\\"courier\\\",\\\"price\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\"\\\\n                                    (Netto: \\\"],[1,[23,[\\\"courier\\\",\\\"price_sum_netto\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"courier\\\",\\\"price\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\" +\\\\n                                    VAT: \\\"],[1,[23,[\\\"courier\\\",\\\"price_sum_vat\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"courier\\\",\\\"price\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\").\\\\n                                \\\"],[10],[0,\\\"\\\\n                                \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"courier.priceDetails.netPriceComponents\\\"],null],false],[0,\\\": (\\\"],[1,[27,\\\"t\\\",[\\\"courier.priceDetails.basePrice\\\"],null],false],[0,\\\") \\\"],[1,[23,[\\\"courier\\\",\\\"price_base\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"courier\\\",\\\"price\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"courier\\\",\\\"price_es\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"p\\\"],[9],[0,\\\"+ (\\\"],[1,[27,\\\"t\\\",[\\\"courier.priceDetails.emergencySituation\\\"],null],false],[0,\\\") \\\"],[1,[23,[\\\"courier\\\",\\\"price_es\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"courier\\\",\\\"price\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"courier\\\",\\\"price_fuel\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"p\\\"],[9],[0,\\\"+ (\\\"],[1,[27,\\\"t\\\",[\\\"courier.priceDetails.fuelCharge\\\"],null],false],[0,\\\") \\\"],[1,[23,[\\\"courier\\\",\\\"price_fuel\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"courier\\\",\\\"price\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\".\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"courier\\\",\\\"price_peak\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"p\\\"],[9],[0,\\\"+ (\\\"],[1,[27,\\\"t\\\",[\\\"courier.priceDetails.peakPrice\\\"],null],false],[0,\\\") \\\"],[1,[23,[\\\"courier\\\",\\\"price_peak\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"courier\\\",\\\"price\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\".\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"courier\\\",\\\"price_multiple_packaging\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"p\\\"],[9],[0,\\\"+ (\\\"],[1,[27,\\\"t\\\",[\\\"courier.priceDetails.priceMultiplePackaging\\\"],null],false],[0,\\\") \\\"],[1,[23,[\\\"courier\\\",\\\"price_multiple_packaging\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"courier\\\",\\\"price\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\".\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"courier\\\",\\\"courier\\\",\\\"name\\\"]],\\\"DHL Express\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"courier.priceDetails.grossServicePrice\\\"],null],false],[0,\\\"\\\\n                            : \\\"],[1,[21,\\\"dhlExpressPriceBrutto\\\"],false],[0,\\\" \\\"],[1,[23,[\\\"courier\\\",\\\"price\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\"\\\\n                            = \\\"],[1,[23,[\\\"courier\\\",\\\"price_base_vat\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"courier\\\",\\\"price\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\" (\\\"],[1,[27,\\\"t\\\",[\\\"courier.priceDetails.basePriceVat\\\"],null],false],[0,\\\")\\\\n                            + \\\"],[1,[23,[\\\"courier\\\",\\\"price_base\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"courier\\\",\\\"price\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\" (\\\"],[1,[27,\\\"t\\\",[\\\"courier.priceDetails.basePrice\\\"],null],false],[0,\\\")\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"courier\\\",\\\"price_dhl_premium\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                + \\\"],[1,[23,[\\\"courier\\\",\\\"price_dhl_premium\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"courier\\\",\\\"price\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\"(\\\"],[1,[27,\\\"t\\\",[\\\"courier.priceDetails.dhlPremium\\\"],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"courier\\\",\\\"price_es\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                + \\\"],[1,[23,[\\\"courier\\\",\\\"price_es\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"courier\\\",\\\"price\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\"(\\\"],[1,[27,\\\"t\\\",[\\\"courier.priceDetails.emergencySituation\\\"],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"courier\\\",\\\"price_fuel\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                + \\\"],[1,[23,[\\\"courier\\\",\\\"price_fuel\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"courier\\\",\\\"price\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\"(\\\"],[1,[27,\\\"t\\\",[\\\"courier.priceDetails.fuelCharge\\\"],null],false],[0,\\\")\\\\n                            \\\"]],\\\"parameters\\\":[]},null],[0,\\\".\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/show-courier-price-details/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/show-delivery-invoice-details/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    async init() {\n      this._super(...arguments);\n\n      await this.get('delivery.invoiceNumber');\n      await this.get('delivery.freightCost');\n      await this.get('delivery.freightCostCurency.symbol');\n    },\n\n    invoiceNumber: Ember.computed('delivery.invoiceNumber', function () {\n      return this.get('delivery.invoiceNumber');\n    }),\n    price: Ember.computed('delivery.{freightCost,freightCostCurrency.symbol}', function () {\n      return this.get('delivery.freightCost') + ' ' + this.get('delivery.freightCostCurrency.symbol');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/show-delivery-invoice-details/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"1ys05TCB\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[9],[0,\\\"\\\\n    \\\"],[4,\\\"if\\\",[[23,[\\\"invoiceNumber\\\"]]],null,{\\\"statements\\\":[[7,\\\"div\\\"],[9],[1,[27,\\\"t\\\",[\\\"invoice.number\\\"],null],false],[0,\\\": \\\"],[1,[21,\\\"invoiceNumber\\\"],false],[10]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[4,\\\"if\\\",[[23,[\\\"price\\\"]]],null,{\\\"statements\\\":[[7,\\\"div\\\"],[9],[1,[27,\\\"t\\\",[\\\"invoice.price\\\"],null],false],[0,\\\": \\\"],[1,[21,\\\"price\\\"],false],[10]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/show-delivery-invoice-details/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/show-docs/component\", [\"exports\", \"apollo/pods/components/show-docs/template\", \"apollo/pods/components/custom-popover/component\", \"apollo/mixins/document-mixin\"], function (_exports, _template, _component, _documentMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _component.default.extend(_documentMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    layout: _template.default,\n    errors: Ember.A([]),\n    uploading: false,\n    completed: 0,\n    action: '',\n    attachments: Ember.A([]),\n    isUploading: Ember.computed('uploading', function () {\n      return this.get('uploading');\n    }),\n    actions: {\n      showDocs() {\n        if (!this.get('isOpened')) {\n          this.get('transport.files').then(f => this.showPopover(this.element, '.show-documents-button', '.documents-popover'));\n        } else {\n          this.destroyPopovers();\n        }\n      },\n\n      fileUploadSuccess: function (transportId) {\n        this.set('uploading', false);\n        this.set('action', 'fileUploadSuccess');\n        this.sendAction('action', transportId);\n        this.destroyPopovers();\n      },\n\n      fileUploadStarted() {\n        if (!this.get('uploading')) {\n          this.set('uploading', true);\n        }\n      },\n\n      deleteFile(file) {\n        this.set('action', 'deleteFile');\n        this.sendAction('action', file);\n        this.destroyPopovers();\n      },\n\n      fileUploadFail: function (transportId) {\n        this.set('uploading', false);\n        this.set('action', 'fileUploadFail');\n        this.sendAction('action', transportId);\n      },\n\n      showNoAuthorityAlert() {\n        alert(this.get('intl').t('common.noAuthority'));\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/show-docs/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"3L47BO/l\",\n    \"block\": \"{\\\"symbols\\\":[\\\"report\\\",\\\"file\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isUploading\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"show-documents-button badge background-to-color\\\"],[11,\\\"data-toggle\\\",\\\"popover\\\"],[11,\\\"data-placement\\\",\\\"left\\\"],[11,\\\"data-content\\\",\\\"\\\"],[12,\\\"style\\\",[23,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]]],[9],[0,\\\"\\\\n\\\\n            \\\"],[1,[23,[\\\"transport\\\",\\\"numberOfAllDocuments\\\"]],false],[0,\\\"\\\\n\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showDocs\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isOpened\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"documents-popover files-popover-\\\",[23,[\\\"transport\\\",\\\"id\\\"]],\\\" hidden\\\"]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container-fluid popover-body\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"h4\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.documents.header\\\"],[[\\\"identifier\\\"],[[23,[\\\"transport\\\",\\\"internalIndex\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"docs\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"files\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-11\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,2,[\\\"canBeDownloaded\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[22,2,[\\\"refLink\\\"]]]]],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file\\\"],[9],[10],[0,\\\" \\\"],[1,[22,2,[\\\"name\\\"]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"a\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file\\\"],[9],[10],[0,\\\" \\\"],[1,[22,2,[\\\"name\\\"]],false],[0,\\\"\\\\n                                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showNoAuthorityAlert\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-1 text-link\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,2,[\\\"showDeleteIcon\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"span\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"common.delete\\\"],null]]]],[11,\\\"class\\\",\\\"fa fa-times text-link\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"deleteFile\\\",[22,2,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"transport.documents.empty\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"discrepancyReports\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"p\\\"],[12,\\\"id\\\",[28,[\\\"file-\\\",[22,1,[\\\"id\\\"]]]]],[11,\\\"class\\\",\\\"col-xs-5 ellipsis\\\"],[9],[0,\\\"\\\\n                                    \\\"],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"text-link\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file\\\"],[9],[10],[0,\\\" \\\"],[1,[22,1,[\\\"sequence\\\"]],false],[0,\\\"_\\\"],[1,[22,1,[\\\"documentVersion\\\"]],false],[0,\\\"\\\\n                                        _\\\"],[1,[27,\\\"t\\\",[\\\"discrepancyReport.label\\\"],null],false],[0,\\\"\\\\n                                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"downloadDiscrepancyReport\\\",[22,1,[\\\"id\\\"]]]],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showAddDocumentButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row file-button-div\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"file-upload\\\",null,[[\\\"transport\\\",\\\"resourceUrl\\\",\\\"isFromDocsModal\\\",\\\"elementZone\\\"],[[23,[\\\"transport\\\"]],\\\"/files/\\\",true,[22,0,[\\\"element\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/show-docs/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/show-manuals/component\", [\"exports\", \"apollo/config/environment\", \"apollo/pods/components/show-manuals/template\", \"apollo/pods/components/custom-popover/component\"], function (_exports, _environment, _template, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = _component.default.extend({\n    layout: _template.default,\n    sessionAccount: service('session-account'),\n\n    init() {\n      this._super(...arguments);\n\n      this.setManualHref();\n      this.setStatuteHref();\n    },\n\n    setManualHref: function () {\n      const href = this.getHref('MANUAL');\n      this.set('manualHref', href);\n    },\n    setStatuteHref: function () {\n      const href = this.getHref('STATUTE');\n      this.set('statuteHref', href);\n    },\n    getHref: function (documentType) {\n      const principalId = localStorage.getItem('principalId');\n      let hrefPart = '';\n\n      switch (documentType) {\n        case 'MANUAL':\n          hrefPart = '/files/manual';\n          break;\n\n        case 'STATUTE':\n          hrefPart = '/statutes/current';\n          break;\n      }\n\n      return _environment.default.serverURL + hrefPart + '?token=' + this.get('sessionAccount').get('token') + '&principalId=' + principalId;\n    },\n    hasAccessToApplies: Ember.computed('', function () {\n      return this.get('sessionAccount').getSettingValue('HAS_ACCESS_TO_APPLIES') === 'true';\n    }),\n    linkToAppliesManual: Ember.computed('', function () {\n      return this.get('sessionAccount').getSettingValue('LINK_TO_APPLIES_MANUAL');\n    }),\n    linkToKnowledgeBase: Ember.computed('', function () {\n      return this.get('sessionAccount').getParameterValue('LINK_TO_KNOWLEDGE_BASE');\n    }),\n    actions: {\n      showManuals() {\n        this.showPopover(this.element, '.show-manuals-button', '.manual-popover');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/show-manuals/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"nVvwcwkD\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"show-manuals-button\\\"],[11,\\\"data-toggle\\\",\\\"popover\\\"],[11,\\\"data-placement\\\",\\\"bottom\\\"],[11,\\\"data-content\\\",\\\"\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/1999/html\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/images/logintegra-icon-new.png\\\"],[11,\\\"class\\\",\\\"clickable logintegra-icon\\\"],[9],[10],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"caret\\\"],[9],[10],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showManuals\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isOpened\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"manual-popover hidden\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container-fluid popover-body text-center\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"download-manual\\\"],[12,\\\"href\\\",[21,\\\"manualHref\\\"]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"h4\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.downloadManualHeader\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-download\\\"],[9],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"download-manual\\\"],[12,\\\"href\\\",[21,\\\"linkToKnowledgeBase\\\"]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"h4\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"statute.openKnowledgeBase\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-external-link\\\"],[9],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"hasAccessToApplies\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"download-manual\\\"],[11,\\\"target\\\",\\\"_blank\\\"],[12,\\\"href\\\",[21,\\\"linkToAppliesManual\\\"]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"h4\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"statute.appliesManualLabel\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"help.contactUs\\\"],null],false],[0,\\\":\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-mobile\\\"],[9],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[27,\\\"concat\\\",[\\\"tel:\\\",[27,\\\"t\\\",[\\\"logintegraPhone\\\"],null]],null]],[9],[1,[27,\\\"t\\\",[\\\"logintegraPhone\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-envelope\\\"],[9],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[27,\\\"concat\\\",[\\\"mailto:\\\",[27,\\\"t\\\",[\\\"logintegraEmail\\\"],null]],null]],[9],[1,[27,\\\"t\\\",[\\\"logintegraEmail\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"no-padding\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[21,\\\"statuteHref\\\"]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-download\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.download\\\"],[[\\\"name\\\"],[[27,\\\"t\\\",[\\\"statute.label\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"no-padding\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"t\\\",[\\\"statute.links.policy\\\"],null]]]],[11,\\\"target\\\",\\\"_blank\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"statute.policyLabel\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"no-padding\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"t\\\",[\\\"statute.links.manual\\\"],null]]]],[11,\\\"target\\\",\\\"_blank\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"statute.safetyManualLabel\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/show-manuals/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/show-notes/component\", [\"exports\", \"apollo/pods/components/show-notes/template\", \"apollo/pods/components/custom-popover/component\"], function (_exports, _template, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = _component.default.extend({\n    layout: _template.default,\n    sessionAccount: service('session-account'),\n    canAddNote: Ember.computed('transport.transportType', function () {\n      return this.get('transport').actionCanBePerformed('ADD_NOTES');\n    }),\n    actions: {\n      showNotes(transport) {\n        this.get('transport.notes').then(() => {\n          this.showPopover(this.element, '.notes-button', '.notes-popover');\n          $(this.element).find('#noteInput').focus();\n          this.sendAction('action', transport);\n        });\n      },\n\n      addNote: function () {\n        const $el = $(this.element);\n        const noteText = $el.find('#noteInput').val();\n        const transport = this.get('transport');\n        const id = transport.get('id');\n\n        if (noteText) {\n          this.set('action', 'addNote');\n          this.sendAction('action', noteText, id);\n          this.destroyPopovers();\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/show-notes/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"KzaHnLsZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"note\\\",\\\"notePart\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[9],[0,\\\"\\\\n   \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"note badge background-to-color notes-button\\\"],[11,\\\"data-toggle\\\",\\\"popover\\\"],[11,\\\"data-placement\\\",\\\"left\\\"],[11,\\\"data-content\\\",\\\"\\\"],[12,\\\"style\\\",[23,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]]],[9],[0,\\\"\\\\n       \\\"],[1,[23,[\\\"transport\\\",\\\"numberOfNotes\\\"]],false],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showNotes\\\",[23,[\\\"transport\\\"]]]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isOpened\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"notes-popover\\\"],[11,\\\"style\\\",\\\"display: none;\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container-fluid popover-body\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"notes\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"name row \\\",[27,\\\"if\\\",[[22,1,[\\\"autoGenerated\\\"]],\\\"auto-generated\\\"],null]]]],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-11\\\"],[9],[0,\\\"\\\\n                                    [\\\"],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"date\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"] \\\"],[1,[22,1,[\\\"creator\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"value row note-content \\\",[27,\\\"if\\\",[[22,1,[\\\"autoGenerated\\\"]],\\\"auto-generated\\\"],null]]]],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,1,[\\\"noteParts\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[1,[22,2,[]],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canAddNote\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row note-dashboard\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-inline\\\"],[11,\\\"role\\\",\\\"form\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-9\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"textarea\\\"],[11,\\\"id\\\",\\\"noteInput\\\"],[11,\\\"style\\\",\\\"width: 90%\\\"],[11,\\\"placeholder\\\",\\\"...\\\"],[11,\\\"class\\\",\\\"form-control vertical-resizable-only\\\"],[11,\\\"rows\\\",\\\"4\\\"],[9],[10],[0,\\\"                                \\\"],[10],[0,\\\"\\\\n                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-3\\\"],[9],[0,\\\"\\\\n                                    \\\"],[7,\\\"button\\\"],[11,\\\"style\\\",\\\"width: 90%; margin-top: 2px\\\"],[11,\\\"class\\\",\\\"btn btn-primary btn-sm\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[27,\\\"t\\\",[\\\"common.send\\\"],null],false],[0,\\\"\\\\n                                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addNote\\\"]],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/show-notes/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/show-statuses/blocked-reject-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"TEgbj3ZB\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"span\\\"],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"checkpoint.revokeAdviceFirst\\\"],null]],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"fas fa-times-circle\\\"],[[\\\"class\\\"],[\\\"clickable, disabled\\\"]]],false],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/show-statuses/blocked-reject-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/show-statuses/component\", [\"exports\", \"apollo/config/environment\", \"jquery\", \"apollo/mixins/checkpoint-mixin\", \"apollo/mixins/transport-form-mixin\"], function (_exports, _environment, _jquery, _checkpointMixin, _transportFormMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_checkpointMixin.default, _transportFormMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    action: 'confirm',\n    showToggleablePopover: false,\n    popoverDelay: 10,\n    canSeeRevokeButtons: Ember.computed('transport.{completed,archived}', function () {\n      return !(this.get('transport.completed') || this.get('transport.archived'));\n    }),\n    firstUnconfirmedCheckpoint: Ember.computed('transport.firstUnconfirmedCheckpoint', function () {\n      return this.get('transport.firstUnconfirmedCheckpoint');\n    }),\n    firstMandatoryCheckpoint: Ember.computed('transport.checkpoints.[]', function () {\n      return this.get('transport.firstMandatoryCheckpoint');\n    }),\n    actions: {\n      toggleStatusesPopup() {\n        this.toggleProperty('showToggleablePopover');\n      },\n\n      block(checkpoint) {\n        console.debug('Otwieramy modal do blokowania statusów dla statusu :: ' + checkpoint);\n        this.showBlockadeReasonModal(checkpoint, this.get('transport'), checkpoint.get('ACTIONS').BLOCK);\n      },\n\n      async unblock(checkpoint) {\n        console.debug('Odblokowujemy status :: ' + checkpoint);\n        const path = this.get('apolloApiService').APOLLO_API.CHECKPOINTS.UNBLOCK;\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, {\n            id: checkpoint.get('id')\n          });\n\n          if (response.ok) {\n            console.debug('Odblokowaliśmy status :: ' + checkpoint);\n            checkpoint.reload();\n          } else {\n            console.debug('Nie udało się odbłokować statusu...');\n          }\n        } catch (error) {\n          console.debug('Nie udało się odbłokować statusu...');\n        }\n      },\n\n      showStatuses() {\n        const self = this;\n        const token = this.get('sessionAccount').get('token');\n        this.get('store').query('customFieldValue', {\n          transportId: self.get('transport.id')\n        }).then(cfv => {\n          self.get('transport').set('customFields', cfv);\n        }); // TODO - Przerobić na apollo-api-service\n\n        _jquery.default.ajax({\n          url: _environment.default.serverURL + '/transports/' + self.get('transport.id') + '/checkpoints',\n          type: 'GET',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(function (json) {\n          self.get('store').pushPayload(json);\n          json.checkpoints.forEach(function (checkpoint) {\n            const c = self.get('store').peekRecord('checkpoint', checkpoint.id);\n\n            if (!self.get('transport.checkpoints').includes(c)) {\n              console.debug(`Pushing checkpoint ${c.get('id')} into transport ${self.get('transport.id')}..`);\n              self.get('transport.checkpoints').pushObject(c);\n            }\n          });\n          self.set('showPopover', true);\n        });\n      },\n\n      confirm(checkpoint) {\n        this.confirm(checkpoint);\n      },\n\n      revoke(checkpoint) {\n        this.revoke(checkpoint);\n      },\n\n      showModal(templateName, checkpoint) {\n        this.showModal(templateName, checkpoint);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/show-statuses/reject-button/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    actions: {\n      revoke(checkpoint) {\n        this.set('action', 'revoke');\n        this.sendAction('action', checkpoint);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/show-statuses/reject-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ef8LAzGd\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"text\\\",\\\"onConfirm\\\"],[[27,\\\"t\\\",[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"transport\\\",\\\"lastConfirmedCheckpoint\\\",\\\"id\\\"]],[23,[\\\"cp\\\",\\\"id\\\"]]],null],\\\"checkpoints.revokeConfirm\\\",\\\"checkpoints.revokeManyConfirm\\\"],null]],null],[27,\\\"action\\\",[[22,0,[]],\\\"revoke\\\",[23,[\\\"cp\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"fas fa-times-circle\\\"],[[\\\"class\\\"],[\\\"clickable\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/show-statuses/reject-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/show-statuses/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"j+JwWD/4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"popover\\\",\\\"cp\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"\\\"],[11,\\\"class\\\",\\\"statuses-button\\\"],[11,\\\"data-toggle\\\",\\\"popover\\\"],[11,\\\"data-placement\\\",\\\"left\\\"],[11,\\\"data-content\\\",\\\"\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[1,[23,[\\\"transport\\\",\\\"stageName\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"firstUnconfirmedCheckpoint\\\",\\\"step\\\",\\\"warehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"small\\\"],[9],[0,\\\"\\\\n                (\\\"],[1,[23,[\\\"transport\\\",\\\"firstUnconfirmedCheckpoint\\\",\\\"step\\\",\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\")\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"toggleStatusesPopup\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"ember-popover\\\",null,[[\\\"event\\\",\\\"isShown\\\",\\\"side\\\",\\\"innerClass\\\",\\\"animationDuration\\\",\\\"delayOnChange\\\",\\\"duration\\\",\\\"effect\\\",\\\"popoverHideDelay\\\"],[\\\"focus\\\",[23,[\\\"showToggleablePopover\\\"]],\\\"auto\\\",\\\"popover-body\\\",100,true,0,\\\"fade\\\",[23,[\\\"popoverDelay\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"checkpoints\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"sortedCheckpoints\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,2,[\\\"task\\\",\\\"canBeSeenByRole\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"task-group-\\\",[22,2,[\\\"task\\\",\\\"taskGroupIdentifier\\\"]]]]],[12,\\\"data-task-alias\\\",[28,[[22,2,[\\\"task\\\",\\\"alias\\\"]]]]],[11,\\\"class\\\",\\\"name\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-7\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"checkpoint-name\\\"],[9],[1,[22,2,[\\\"name\\\"]],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,2,[\\\"step\\\",\\\"warehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"small\\\"],[9],[0,\\\"\\\\n                                    (\\\"],[1,[22,2,[\\\"step\\\",\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\")\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[22,2,[\\\"step\\\",\\\"company\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"small\\\"],[9],[0,\\\"\\\\n                                    (\\\"],[1,[22,2,[\\\"step\\\",\\\"company\\\",\\\"shortName\\\"]],false],[1,[27,\\\"if\\\",[[22,2,[\\\"step\\\",\\\"city\\\"]],[27,\\\"concat\\\",[\\\", \\\",[22,2,[\\\"step\\\",\\\"city\\\"]]],null],\\\"\\\"],null],false],[0,\\\")\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-5 text-right\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"checkpoints.plan\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"my-format-date\\\",[[22,2,[\\\"expectedDate\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,2,[\\\"canBeBlocked\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,2,[\\\"isBlocked\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"checkpoint-unblock\\\"],[11,\\\"class\\\",\\\"btn btn-sm btn-primary btn-wide\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"checkpoint.unblockLabel\\\"],null],false],[0,\\\"\\\\n                            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"unblock\\\",[22,2,[]],[27,\\\"action\\\",[[22,0,[]],\\\"hide\\\"],[[\\\"target\\\"],[[22,1,[]]]]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"checkpoint-block\\\"],[11,\\\"class\\\",\\\"btn btn-sm btn-danger btn-wide\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"checkpoint.blockLabel\\\"],null],false],[0,\\\"\\\\n                            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"block\\\",[22,2,[]],[27,\\\"action\\\",[[22,0,[]],\\\"hide\\\"],[[\\\"target\\\"],[[22,1,[]]]]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[22,2,[\\\"isConfirmed\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"value\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-12 text-right \\\",[27,\\\"if\\\",[[22,2,[\\\"wasLate\\\"]],\\\"is-late\\\"],null]]]],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"checkpoints.confirmedMessage\\\"],[[\\\"date\\\"],[[27,\\\"my-format-date\\\",[[22,2,[\\\"executionDate\\\"]],\\\"defaultDateTime\\\"],null]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,2,[\\\"confirmator\\\",\\\"name\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[27,\\\"checkpoint-confirmator-name\\\",null,[[\\\"checkpoint\\\"],[[22,2,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"canSeeRevokeButtons\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,2,[\\\"task\\\",\\\"canBeRevokedByRole\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,2,[\\\"transportHasAdviceOrTimeWindow\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                            \\\"],[1,[21,\\\"components/show-statuses/blocked-reject-button\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                            \\\"],[1,[27,\\\"components/show-statuses/reject-button\\\",null,[[\\\"transport\\\",\\\"cp\\\"],[[23,[\\\"transport\\\"]],[22,2,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"name\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"checkpoints.empty\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"confirm-statuses\\\",null,[[\\\"transport\\\",\\\"asPlainTemplate\\\",\\\"confirm\\\",\\\"showModal\\\",\\\"isFromShowStatuses\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"asPlainTemplate\\\"]],\\\"confirm\\\",\\\"showModal\\\",true]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/show-statuses/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/show-warehouse-checkbox/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    actions: {\n      toggleIsInWarehouse(step) {\n        const isInWarehouse = step.get('isInWarehouse');\n        step.set('isInWarehouse', !isInWarehouse);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/show-warehouse-checkbox/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ZJV9hWre\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"group group-space-between\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[12,\\\"class\\\",[28,[\\\"center-vertically bold\\\\n                \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"load\\\"],null],\\\"margin-left-big\\\"],null],\\\"\\\\n            \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"unload\\\"],null],\\\"margin-right-big\\\"],null]]]],[12,\\\"data-field-name\\\",[28,[[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-warehouse-checkbox-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.warehouse\\\"],null],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"disabled\\\",\\\"change\\\"],[\\\"checkbox\\\",[23,[\\\"step\\\",\\\"isInWarehouse\\\"]],[23,[\\\"step\\\",\\\"id\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"toggleIsInWarehouse\\\",[23,[\\\"step\\\"]]],null]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/show-warehouse-checkbox/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/slider-component/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\n  var _default = Ember.Component.extend({\n    classNames: ['inline-block', 'padding-left'],\n\n    didRender() {\n      const self = this;\n      const sliderDiv = (0, _jquery.default)(\"#slider\");\n      const handle = (0, _jquery.default)(\"#slider-info\");\n      sliderDiv.slider({\n        min: self.get('min'),\n        max: self.get('max'),\n        value: self.get('initialValue'),\n        create: function () {\n          handle.text(`${self.get('initialValue')}%`);\n        },\n        change: function (event, ui) {\n          // Przy programistycznym (w kodzie) ustawieniu wartość -- poprzez `jQuery(\"#slider\").slider('option', 'value', x)`\n          // -- nie pojawia się `originalEvent`\n          const hasBeenSetManually = !!event.originalEvent;\n          self.onChangeAction(ui.value, hasBeenSetManually);\n          handle.text(`${ui.value}%`);\n        }\n      });\n    },\n\n    actions: {\n      reset() {\n        this.onResetAction();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/slider-component/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"XjyZ/jyo\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"id\\\",\\\"slider\\\"],[11,\\\"class\\\",\\\"inline-block width-200 padding-right-small\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"warehouse.slider.title\\\"],null]]]],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"span\\\"],[11,\\\"id\\\",\\\"slider-info\\\"],[11,\\\"class\\\",\\\"small-font padding-left\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-small\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"common.reset\\\"],null],false],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[22,0,[]],\\\"reset\\\"]],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/slider-component/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/square-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    canManageQueuesAccessibility: Ember.computed('', function () {\n      return this.get('sessionAccount').hasRole('ROLE_MANAGE_QUEUES_ACCESSIBILITY');\n    }),\n    actions: {\n      toggleSquare: function (square) {\n        this.get('squares').forEach(s => {\n          if (s.get('id') === square.get('id')) {\n            s.set('checked', !s.get('checked'));\n            const isSquareChecked = s.get('checked');\n            s.get('proxiedQueues').forEach(r => r.set('checked', isSquareChecked));\n          }\n        });\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/square-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"FaSpgCje\",\n    \"block\": \"{\\\"symbols\\\":[\\\"square\\\",\\\"queue\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"user.availableQueues\\\"],null],false],[0,\\\":\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10 form-control-static\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"squares\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"disabled\\\",\\\"change\\\"],[\\\"checkbox\\\",[22,1,[\\\"checked\\\"]],[27,\\\"not\\\",[[23,[\\\"canManageQueuesAccessibility\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"toggleSquare\\\",[22,1,[]]],null]]]],false],[0,\\\"\\\\n                \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"ramp-checkboxes\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,1,[\\\"proxiedQueues\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label-not-bold\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"disabled\\\"],[\\\"checkbox\\\",[22,2,[\\\"checked\\\"]],[27,\\\"not\\\",[[23,[\\\"canManageQueuesAccessibility\\\"]]],null]]]],false],[0,\\\"\\\\n                        \\\"],[1,[22,2,[\\\"name\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/square-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/statistics-report-nav-header/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    actions: {\n      setCurrentReport: function (report) {\n        this.set('model.currentReport', report);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/statistics-report-nav-header/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"e3Nb8A49\",\n    \"block\": \"{\\\"symbols\\\":[\\\"report\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 text-left padding-bottom\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"reports-nav-overflow\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"statisticsReports\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"activeReport\\\"]],[22,1,[\\\"nameInCurrentLanguage\\\"]]],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"nameInCurrentLanguage\\\"]],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"setCurrentReport\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/statistics-report-nav-header/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/success-message/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\n  var _default = Ember.Component.extend({\n    alertStyle: Ember.computed('', function () {\n      return this.get('style') ? this.get('style') : 'success';\n    }),\n    canBeDismissible: Ember.computed('', function () {\n      return this.get('dismissible') !== false;\n    }),\n\n    didRender() {\n      this._super(...arguments);\n\n      if (!this.get('autoHide')) {\n        return;\n      }\n\n      const timeout = this.get('timeout') ? parseInt(this.get('timeout')) * 1000 : 10000;\n      setTimeout(function () {\n        (0, _jquery.default)(\".alert\").fadeTo(500, 0).slideUp(500, function () {\n          (0, _jquery.default)(this).remove();\n        });\n      }, timeout);\n    },\n\n    actions: {}\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/success-message/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"4Az5NiQ4\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"alert alert-\\\",[21,\\\"alertStyle\\\"],\\\" success-alert no-vertical-margin alert-dismissible\\\"]]],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canBeDismissible\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"strong\\\"],[9],[1,[21,\\\"strongText\\\"],false],[10],[0,\\\" \\\"],[7,\\\"span\\\"],[9],[1,[21,\\\"text\\\"],false],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/success-message/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/synchronise-carrier-data-button/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    tagName: '',\n    intl: Ember.inject.service(),\n\n    async _syncData() {\n      const path = this.get('apolloApiService').APOLLO_API.SYNCHRONISE_CARRIERS_DATA.SYNC;\n\n      try {\n        const response = await this.get('apolloApiService').callApolloApi(path, null, null);\n\n        if (!response.ok) {\n          const error = await response.json();\n          this.set('errors', error.errors);\n        }\n      } catch (error) {\n        this.set('errors', [this.get('intl').t('common.defaultError')]);\n        console.error(error);\n      }\n    },\n\n    actions: {\n      async synchroniseCarriersData() {\n        Ember.run.debounce(this, '_syncData', 1000);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/synchronise-carrier-data-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"3qT7RoKB\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"synchronise-carriers-data-button\\\"],[12,\\\"data-loading-text\\\",[28,[[27,\\\"t\\\",[\\\"common.pleaseWait\\\"],null]]]],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"common.synchroniseCarriersData\\\"],null],false],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[22,0,[]],\\\"synchroniseCarriersData\\\"]],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/synchronise-carrier-data-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/table-column-settings/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    transportService: Ember.inject.service('transport-service'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    tableColumns: Ember.computed('tableColumn.[]', function () {\n      return this.get('store').peekAll('tableColumn');\n    }),\n    transportType: Ember.computed('transportType', function () {\n      return this.get('transportType');\n    }),\n    customFields: Ember.computed('transportType.sortedFieldDefinitions.@each.canBeViewed', function () {\n      return this.get('transportType.sortedFieldDefinitions').filterBy('canBeViewed');\n    }),\n    labelForTransportSupervisor: Ember.computed('tableColumn.[]', function () {\n      const translationKey = this.get('transportType.transportSupervisorTranslationKey');\n\n      if (translationKey) {\n        return this.get('intl').t('transportSupervisorTranslationKeys.' + translationKey);\n      }\n\n      return this.get('intl').t('transportSupervisorTranslationKeys.CONTACT_PERSON');\n    }),\n    labelForWorkerPhoneNumber: Ember.computed('tableColumn.[]', 'transportType.id', function () {\n      const translationKey = this.get('transportType.workerFieldTranslationKey');\n\n      if (translationKey) {\n        return this.get('intl').t('worker.phoneNumber.' + translationKey);\n      }\n\n      return this.get('intl').t('worker.phoneNumber.WORKERS');\n    }),\n    filteredColumnsAccessCommands: Ember.computed('columnsAccessCommands.[]', 'roleGroup.id', 'transportType.id', function () {\n      return this.get('columnsAccessCommands').filter(transportTypeRoleColumn => {\n        return transportTypeRoleColumn.get('transportType.id') === this.get('transportType.id') && transportTypeRoleColumn.get('roleGroup.id') === this.get('roleGroup.id');\n      });\n    }),\n    availableColumns: Ember.computed('filteredColumnsAccessCommands.@each.tableColumn', function () {\n      return this.get('filteredColumnsAccessCommands').map(columnsAccessCommands => columnsAccessCommands.get('tableColumn'));\n    }),\n    availableCustomFieldColumns: Ember.computed('filteredColumnsAccessCommands.@each.customFieldDefinition', function () {\n      return this.get('filteredColumnsAccessCommands').map(columnsAccessCommands => columnsAccessCommands.get('customFieldDefinition'));\n    }),\n    availableColumnIds: Ember.computed('availableColumns.@each.id', function () {\n      return this.get('availableColumns').map(c => c.get('id')).filter(val => val);\n    }),\n    availableCustomFieldsIds: Ember.computed('availableCustomFieldColumns.@each.id', function () {\n      return this.get('availableCustomFieldColumns').map(cf => cf.get('id')).filter(val => val);\n    }),\n    _unloadTransports: function (transportType) {\n      // Pola formularza widoczne w tabeli wysyłane są w mapie transportów z serwera.\n      // Stąd po włączeniu widoczności musimy usunąć ze store wszystkie załadowane transporty -\n      // tak, by zostały ponowne pobrane z serwera po powrocie do tabeli.\n      //\n      // Jeżeli użytkownik wyłącza widoczność, nie musimy czyścić transportów -\n      // kolumna wybranego pola nie zostanie wyświetlona.\n      if (this.get('avavailableCustomFieldsIds') === 0) {\n        return;\n      }\n\n      console.debug(`Visibility in table has been turned on for one or more custom field definitions.\n                        We're removing from the store all transports with the type ${transportType.get('name')}..`);\n      this.get('transportService').unloadTransports(transportType);\n    },\n    actions: {\n      toggleTableColumn: function (tc) {\n        const tableColumn = this.get('availableColumns').find(ac => ac.get('id') === tc.get('id'));\n\n        if (tableColumn !== undefined) {\n          this.get('availableColumns').removeObject(tableColumn);\n        } else {\n          this.get('availableColumns').addObject(tc);\n        }\n      },\n      toggleCFColumn: function (cf) {\n        const customField = this.get('availableCustomFieldColumns').find(acf => acf.get('id') === cf.get('id'));\n\n        if (customField !== undefined) {\n          this.get('availableCustomFieldColumns').removeObject(customField);\n        } else {\n          this.get('availableCustomFieldColumns').addObject(cf);\n        }\n      },\n      save: async function () {\n        const self = this;\n        const response = await this.get('apolloApiService').callApolloApi(this.get('apolloApiService').APOLLO_API.TABLE_COLUMNS.SAVE, null, {\n          body: JSON.stringify({\n            tableColumns: self.get('availableColumnIds'),\n            customFields: self.get('availableCustomFieldsIds'),\n            roleGroup: self.get('roleGroup.id'),\n            transportType: self.get('transportType.id')\n          })\n        });\n\n        if (response.ok) {\n          self.set('successMessage', `${self.get('intl').t('common.saveSuccessMessage') + '. ' + self.get('intl').t('common.saveSuccessAdditionalMessage')}`);\n\n          this._unloadTransports(this.get('transportType'));\n        } else {\n          const error = await response.json();\n          self.set('successMessage', null);\n          self.set('errors', error);\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/table-column-settings/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"1Pu1LFhQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"cf\\\",\\\"tc\\\",\\\"idx\\\",\\\"error\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-success alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[10],[0,\\\"\\\\n            \\\"],[1,[21,\\\"successMessage\\\"],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,4,[]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section form-horizontal\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group row flex-center\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"tableColumns\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-4\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"change\\\"],[\\\"checkbox\\\",[27,\\\"is-in-list\\\",[[22,2,[\\\"id\\\"]],[23,[\\\"availableColumnIds\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"toggleTableColumn\\\",[22,2,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[27,\\\"eq\\\",[[22,2,[\\\"name\\\"]],\\\"TRANSPORT_SUPERVISOR\\\"],null],[27,\\\"eq\\\",[[22,2,[\\\"name\\\"]],\\\"WORKER_PHONE\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,2,[\\\"name\\\"]],\\\"TRANSPORT_SUPERVISOR\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[21,\\\"labelForTransportSupervisor\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,2,[\\\"name\\\"]],\\\"WORKER_PHONE\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[21,\\\"labelForWorkerPhoneNumber\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,2,[\\\"name\\\"]],\\\"CUSTOM_FIELDS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-info-circle\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"columns.disableCustomFieldInfo\\\"],null]]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,2,[\\\"label\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[27,\\\"eq\\\",[[23,[\\\"customFields\\\",\\\"length\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group row flex-center\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"columns.CUSTOM_FIELDS\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"customFields\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-4\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"change\\\"],[\\\"checkbox\\\",[27,\\\"is-in-list\\\",[[22,1,[\\\"id\\\"]],[23,[\\\"availableCustomFieldsIds\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"toggleCFColumn\\\",[22,1,[]]],null]]]],false],[0,\\\"\\\\n                            \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex flex-end\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/table-column-settings/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/table-columns/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    transportTypes: Ember.computed('model.transportTypes.[]', function () {\n      return this.get('model.transportTypes');\n    }),\n    showTableColumnSection: Ember.computed('selectedTransportType', function () {\n      return this.get('sessionAccount').hasRole('ROLE_MANAGE_COLUMN_VISIBILITY');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/table-columns/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Y9HuGFT/\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tt\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showTableColumnSection\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"transportTypes\\\"]]],null,{\\\"statements\\\":[[4,\\\"expandable-panel\\\",null,[[\\\"objectId\\\",\\\"componentName\\\",\\\"title\\\",\\\"titleClass\\\",\\\"onOpen\\\",\\\"onClose\\\",\\\"defaultOpen\\\"],[[22,1,[\\\"id\\\"]],[27,\\\"concat\\\",[[22,1,[\\\"name\\\"]],\\\"-panel\\\"],null],[22,1,[\\\"name\\\"]],\\\"bold\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"isOpened\\\"]]],null],true],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"isOpened\\\"]]],null],false],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isOpened\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"table-column-settings\\\",null,[[\\\"roleGroup\\\",\\\"transportType\\\",\\\"columnsAccessCommands\\\"],[[23,[\\\"roleGroup\\\"]],[22,1,[]],[23,[\\\"columnsAccessCommands\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/table-columns/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/task-confirmation-date-form/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    showConfirmationDateForm: false,\n    today: Ember.computed(function () {\n      return new Date();\n    }).readOnly(),\n    checkpoint: Ember.computed(function () {\n      return this.get('firstUnconfirmedCheckpoint');\n    }).readOnly(),\n    confirmationDateIsMandatory: Ember.computed('checkpoint', function () {\n      return this.get('checkpoint.task.userHasToAddCheckpointConfirmationDate');\n    }),\n    actions: {\n      toggleConfirmationDateForm() {\n        const showConfirmationDateForm = !this.get('showConfirmationDateForm');\n        this.set('showConfirmationDateForm', showConfirmationDateForm);\n\n        if (!showConfirmationDateForm) {\n          this.set('firstUnconfirmedCheckpoint.executionDate', null);\n        }\n      },\n\n      setConfirmationDate(date) {\n        this.set('firstUnconfirmedCheckpoint.executionDate', date[0]);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/task-confirmation-date-form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"eUM3eodh\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-bottom\\\"],[11,\\\"data-field-name\\\",\\\"toggle-confirmation-date\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"confirmationDateIsMandatory\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"clickable\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"change\\\"],[\\\"checkbox\\\",false,[27,\\\"action\\\",[[22,0,[]],\\\"toggleConfirmationDateForm\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"checkpoint.actualExecutionDateLabel\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"showConfirmationDateForm\\\"]],[23,[\\\"confirmationDateIsMandatory\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-inline \\\",[27,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"errors\\\",\\\"executionDate\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"task-confirmation-date-form\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"checkpoint.actualExecutionDate\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"checkpoint-confirmation-date\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"disabled\\\",\\\"onChange\\\",\\\"formatType\\\",\\\"class\\\",\\\"nativeFlatpickrOptions\\\"],[null,[23,[\\\"isEditionDisabled\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setConfirmationDate\\\"],null],\\\"defaultDateTime\\\",\\\"form-control checkpoint-confirmation-date\\\",[27,\\\"hash\\\",null,[[\\\"static\\\",\\\"minuteIncrement\\\",\\\"enableTime\\\"],[true,1,true]]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"checkpoint\\\"]],\\\"executionDate\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/task-confirmation-date-form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/task-custom-modals/default-modal/controller\", [\"exports\", \"apollo/mixins/transports-mixin\", \"apollo/mixins/advice-utils-mixin\"], function (_exports, _transportsMixin, _adviceUtilsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_transportsMixin.default, _adviceUtilsMixin.default, {\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    errors: Ember.A(),\n    checkpoint: Ember.computed('model.id', function () {\n      return this.get('model');\n    }),\n    step: Ember.computed('checkpoint.step', function () {\n      return this.get('checkpoint.step.content');\n    }),\n    transport: Ember.computed('checkpoint.transport.id', function () {\n      const transportId = this.get('checkpoint.transport.id');\n      return this.get('store').peekRecord('transport', transportId);\n    }),\n    title: Ember.computed('checkpoint.{id,name}', function () {\n      return `${this.get('intl').t('checkpoints.confirmStatus')}: ${this.get('checkpoint.name')}`;\n    }),\n    alertText: Ember.computed('checkpoint.name', function () {\n      return `Czy na pewno chcesz zablokować status: ${this.get('checkpoint.name')}`;\n    }),\n    isDuringConfirmation: Ember.computed('checkpoint.actionType', function () {\n      return this.get('checkpoint.actionType') === this.get('checkpoint.ACTIONS').CONFIRM;\n    }),\n    firstUnconfirmedCheckpoint: Ember.computed('transport.firstUnconfirmedCheckpoint', function () {\n      return this.get('transport.firstUnconfirmedCheckpoint');\n    }),\n    actions: {\n      confirmCheckpoint(checkpoint) {\n        const self = this;\n        this.send('confirm', checkpoint);\n        self.reset(checkpoint);\n      },\n\n      cancel(checkpoint) {\n        this.reset(checkpoint);\n      }\n\n    },\n\n    reset(checkpoint) {\n      checkpoint.set('isDuringAction', false);\n      this.send('hideModal');\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/task-custom-modals/default-modal/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ljwehy+S\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"showCancelButton\\\",\\\"cancel\\\",\\\"classNames\\\"],[[23,[\\\"title\\\"]],true,[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\",[23,[\\\"checkpoint\\\"]]],null],[23,[\\\"classes\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal row\\\"],[9],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons padding-top-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isDuringConfirmation\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"task\\\",\\\"canBeConfirmedByRole\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-sm btn-primary btn-wide\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"task\\\",\\\"weighingIncluded\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"checkpoints.confirm\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"checkpoint\\\",\\\"altCheckpointLabel\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"checkpoints.confirm\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"checkpoint\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"step\\\",\\\"warehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"small\\\"],[9],[0,\\\"\\\\n                            (\\\"],[1,[23,[\\\"checkpoint\\\",\\\"step\\\",\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\")\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"confirmCheckpoint\\\",[23,[\\\"checkpoint\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"statuses.waitingForConfirmation\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"checkpoint\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/task-custom-modals/default-modal/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/task-custom-modals/mowi-conditional-tasks-modal/controller\", [\"exports\", \"apollo/mixins/transports-mixin\", \"apollo/mixins/advice-utils-mixin\"], function (_exports, _transportsMixin, _adviceUtilsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_transportsMixin.default, _adviceUtilsMixin.default, {\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    checkpointService: Ember.inject.service('checkpoint-service'),\n    selectedWarehouseLocations: Ember.A([]),\n    errors: Ember.A(),\n    isLoading: false,\n    getYesNoFields: Ember.computed('', function () {\n      return [this.get('intl').t('common.yes'), this.get('intl').t('common.no')];\n    }).readOnly(),\n    selectedZone: Ember.computed('model.nextZone', function () {\n      return this.get('model.nextZone') ? this.get('intl').t('common.yes') : this.get('intl').t('common.no');\n    }),\n    checkpoint: Ember.computed('model.id', function () {\n      return this.get('model');\n    }),\n    step: Ember.computed('checkpoint.step', function () {\n      return this.get('checkpoint.step.content');\n    }),\n    transport: Ember.computed('checkpoint.transport.id', function () {\n      const transportId = this.get('checkpoint.transport.id');\n      return this.get('store').peekRecord('transport', transportId);\n    }),\n    title: Ember.computed('checkpoint.{id,name}', function () {\n      return `${this.get('intl').t('checkpoints.confirmStatus')}: ${this.get('checkpoint.name')}`;\n    }),\n    sortedSubTasks: Ember.computed('checkpoint.task.{masterTask.subTasks.@each.idxInGroup,subTasks.@each.idxInGroup}', function () {\n      if (this.get('checkpoint.task.subTasks.length') === 0 && this.get('checkpoint.task.masterTask')) {\n        return this.get('checkpoint.task.masterTask.subTasks').filterBy('enabled').sortBy('idxInGroup');\n      }\n\n      return this.get('checkpoint.task.subTasks').filterBy('enabled').sortBy('idxInGroup');\n    }),\n    actions: {\n      async confirmCheckpoint(checkpoint) {\n        this.toggleProperty('isLoading');\n        const step = this.get('step');\n        const locations = this.get('selectedWarehouseLocations');\n        const errorMsg = this.get('intl').t('errors.blankSelect');\n\n        if (!step) {\n          this.set('errors', [errorMsg]);\n          return console.log(`WarehouseLocation :: ${errorMsg}`);\n        }\n\n        try {\n          if (this.get('model.nextZone')) {\n            if (!locations) {\n              this.set('errors', [errorMsg]);\n              this.toggleProperty('isLoading');\n              return console.log(`WarehouseLocation :: ${errorMsg}`);\n            }\n\n            const path = this.get('apolloApiService').APOLLO_API.STEP_WAREHOUSE_LOCATION.SAVE;\n            const promises = locations.map(wl => {\n              const whl = JSON.stringify({\n                warehouseLocation: wl.id,\n                step: step.get('id')\n              });\n              return this.get('apolloApiService').callApolloApi(path, null, {\n                body: whl\n              });\n            });\n            const savedLocationsResponses = await Promise.all(promises);\n\n            if (!savedLocationsResponses.every(response => response.ok)) {\n              console.error('Błąd przy dodawaniu lokalizacji !');\n              this.reset(checkpoint);\n              this.toggleProperty('isLoading');\n              return;\n            }\n          } else {\n            checkpoint.set('skipGeneratingSubtasks', true);\n          }\n\n          await this.get('checkpointService').confirmAndRefresh(checkpoint, false);\n          this.set('errors', []);\n          checkpoint.set('isDuringAction', true);\n          this.toggleProperty('isLoading');\n        } catch (e) {\n          this.set('errors', [this.get('intl').t('common.defaultError')]);\n          console.error(e);\n          this.toggleProperty('isLoading');\n        } finally {\n          this.reset(checkpoint);\n        }\n      },\n\n      cancel(checkpoint) {\n        this.reset(checkpoint);\n      },\n\n      setNextZoneFlag: function (nextZoneFlag) {\n        if (nextZoneFlag === this.get('intl').t('common.yes')) {\n          this.set('model.nextZone', true);\n        } else {\n          this.set('model.nextZone', false);\n        }\n      }\n    },\n\n    reset(checkpoint) {\n      checkpoint.set('isDuringAction', false);\n      this.set('selectedWarehouseLocations', Ember.A([]));\n      this.send('hideModal');\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/task-custom-modals/mowi-conditional-tasks-modal/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"cTJ3kcPw\",\n    \"block\": \"{\\\"symbols\\\":[\\\"task\\\",\\\"index\\\",\\\"nextZoneFlag\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"showCancelButton\\\",\\\"cancel\\\",\\\"classNames\\\"],[[23,[\\\"title\\\"]],true,[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\",[23,[\\\"checkpoint\\\"]]],null],[23,[\\\"classes\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-6 control-label\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.warehouseLocationNextLocation\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-6\\\"],[11,\\\"data-field-name\\\",\\\"warehouse-locations-next-location\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"allowClear\\\",\\\"renderInPlace\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"selectedZone\\\"]],[23,[\\\"getYesNoFields\\\"]],false,false,true,[27,\\\"action\\\",[[22,0,[]],\\\"setNextZoneFlag\\\"],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,3,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"nextZone\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"warehouse-location/multiple-select\\\",null,[[\\\"inputArray\\\",\\\"options\\\",\\\"step\\\"],[[23,[\\\"selectedWarehouseLocations\\\"]],[23,[\\\"step\\\",\\\"stepWarehouseLocationsLabels\\\"]],[23,[\\\"step\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group form-group-padding\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"task.newSubTasksCheckpoints\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"new-sub-tasks-checkpoints\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"sortedSubTasks\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-7\\\"],[12,\\\"data-field-name\\\",[22,1,[\\\"alias\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[1,[22,1,[\\\"checkpointNameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons padding-top-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"task\\\",\\\"canBeConfirmedByRole\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[12,\\\"disabled\\\",[28,[[27,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"isLoading\\\"]],[23,[\\\"checkpoint\\\",\\\"confirmButtonShouldBeDisabled\\\"]]],null],\\\"disabled\\\"],null]]]],[11,\\\"class\\\",\\\"btn btn-sm btn-primary btn-wide\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isLoading\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"task\\\",\\\"weighingIncluded\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"checkpoints.confirm\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"checkpoint\\\",\\\"altCheckpointLabel\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"checkpoints.confirm\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"checkpoint\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"step\\\",\\\"warehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"small\\\"],[9],[0,\\\"\\\\n                            (\\\"],[1,[23,[\\\"checkpoint\\\",\\\"step\\\",\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\")\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"confirmCheckpoint\\\",[23,[\\\"checkpoint\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"statuses.waitingForConfirmation\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"checkpoint\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/task-custom-modals/mowi-conditional-tasks-modal/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/tasks-sortable-table/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    actions: {\n      sortEndAction() {\n        this.set('action', 'sortEndAction');\n        this.sendAction('action');\n      },\n\n      addTask(identifier, idx) {\n        this.set('action', 'addTask');\n        this.sendAction('action', identifier, idx);\n      },\n\n      dragStart(object) {\n        this.set('action', 'dragStart');\n        this.sendAction('action', object);\n      },\n\n      toggleMarkIfWasDelayed(task) {\n        this.set('action', 'toggleMarkIfWasDelayed');\n        this.sendAction('action', task);\n      },\n\n      toggleTracked(task) {\n        this.set('action', 'toggleTracked');\n        this.sendAction('action', task);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/tasks-sortable-table/task-sortable-row/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    intl: Ember.inject.service(),\n    dateSigns: Ember.A(['before', 'after']),\n    dateUnits: Ember.A(['h', 'm', 's']),\n    stepTypes: Ember.A(['load', 'unload', 'firstLoad', 'lastLoad', 'firstUnload', 'lastUnload']),\n    hasSubTasks: Ember.computed('task.subTasks.{@each.enabled,length}', function () {\n      const subTasks = this.get('task.subTasks').filterBy('enabled');\n      return subTasks && subTasks.length > 0;\n    }),\n    sortedSubTasks: Ember.computed('task.subTasks.@each.{idx,enabled}', function () {\n      return this.get('task.subTasks').filterBy('enabled').sortBy('idxInGroup');\n    }),\n    reloadTasks: function () {\n      const taskToReload = this.get('store').peekAll('task').filter(task => {\n        return task.get('id') === null;\n      });\n      taskToReload.forEach(task => {\n        task.deleteRecord();\n      });\n      this.get('task').reload();\n    },\n    actions: {\n      sortEndAction() {\n        this.get('task.subTasks').forEach((task, idx) => {\n          task.set('idxInGroup', idx);\n        });\n      },\n\n      addSubTask(masterTask, idx) {\n        const subTask = this.get('store').createRecord('task', {\n          workflow: masterTask.workflow,\n          taskGroupIdentifier: masterTask.taskGroupIdentifier,\n          idxInGroup: idx,\n          masterTask,\n          expectedDateInterval: '30m',\n          enabled: true\n        });\n        masterTask.get('subTasks').pushObject(subTask);\n        console.debug('Utworzyliśmy task dodatkowy :: ' + subTask + ' :: przypisany do tasku głównego :: ' + masterTask + ' ::');\n      },\n\n      async saveSubTasks() {\n        const self = this;\n        const data = this.get('task');\n\n        if (!data) {\n          console.error('Błąd podczas próby zapisu tasków dodatkowych, masterTask :: ' + data);\n        }\n\n        const jsonBody = JSON.stringify(data.serialize());\n        const path = this.get('apolloApiService').SUB_TASKS.SAVE;\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, {\n            taskId: this.get('task.id')\n          }, {\n            body: jsonBody\n          });\n\n          if (response.ok) {\n            self.set('successMessage', self.get('intl').t('workflows.saveSuccessMessage'));\n            alert(self.get('intl').t('workflows.saveSuccessMessage'));\n            self.reloadTasks();\n            console.debug('Zapisalismy task i jego subtaski :: ' + data);\n            self.transitionToRoute('workflows.edit', self.get('model.workflow.id'));\n          } else {\n            const error = await response.json();\n            alert(error.errors);\n            self.reloadTasks();\n          }\n        } catch (error) {\n          alert(this.get('intl').t('common.defaultError'));\n        }\n      },\n\n      toggleMarkIfWasDelayed(task) {\n        this.set('action', 'toggleMarkIfWasDelayed');\n        this.sendAction('action', task);\n      },\n\n      toggleTracked(task) {\n        this.set('action', 'toggleTracked');\n        this.sendAction('action', task);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/tasks-sortable-table/task-sortable-row/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"uK2XtwDy\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTask\\\",\\\"ref\\\",\\\"ref\\\",\\\"s\\\",\\\"u\\\",\\\"error\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"task\\\",\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"task\\\",\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"task.errors.\\\",[22,6,[\\\"attribute\\\"]],\\\".\\\",[22,6,[\\\"message\\\"]]],null]],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"draggable-object\\\",null,[[\\\"content\\\",\\\"overrideClass\\\",\\\"isSortable\\\"],[[23,[\\\"task\\\"]],\\\"sortObject\\\",true]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-11\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top margin-bottom\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"task\\\",\\\"errors\\\",\\\"checkpointName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"task.label\\\"],null],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"task\\\",\\\"checkpointName\\\"]],[27,\\\"t\\\",[\\\"task.checkpointName\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"task.shouldBeConfirmedBy\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"task.expectedDateMode.reference\\\"],null],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\"],[\\\"number\\\",\\\"form-control short-input\\\",[23,[\\\"task\\\",\\\"expectedDateIntervalModulo\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"task\\\",\\\"expectedDateIntervalUnit\\\"]],[23,[\\\"dateUnits\\\"]],false,[27,\\\"t\\\",[\\\"task.unit\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"task\\\",\\\"expectedDateIntervalUnit\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"common.timeUnit.\\\",[22,5,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"task\\\",\\\"expectedDateIntervalSign\\\"]],[23,[\\\"dateSigns\\\"]],false,[27,\\\"t\\\",[\\\"task.sign\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"task\\\",\\\"expectedDateIntervalSign\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"common.timeSign.\\\",[22,4,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"task\\\",\\\"errors\\\",\\\"expectedDateReference\\\"]],\\\"power-select-validation-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"task\\\",\\\"expectedDateReference\\\"]],[23,[\\\"taskReferences\\\"]],false,[27,\\\"t\\\",[\\\"task.expectedDateReference\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"task\\\",\\\"expectedDateReference\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"task.reference.\\\",[23,[\\\"task\\\",\\\"expectedDateIntervalSign\\\"]],\\\".\\\",[22,3,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"task\\\",\\\"taskGroupIdentifier\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"task\\\",\\\"errors\\\",\\\"stepType\\\"]],\\\"power-select-validation-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"task\\\",\\\"stepType\\\"]],[23,[\\\"stepTypes\\\"]],false,[27,\\\"t\\\",[\\\"task.stepType.placeholder\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"task\\\",\\\"stepType\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"task.stepType.\\\",[22,2,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"clickable padding-left-small\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"task\\\",\\\"tracked\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[1,[27,\\\"fa-icon\\\",[\\\"bell\\\",\\\"regular\\\"],[[\\\"class\\\",\\\"title\\\"],[\\\"task-tracked\\\",[27,\\\"t\\\",[\\\"task.tracked.enabled.title\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                        \\\"],[1,[27,\\\"fa-icon\\\",[\\\"bell\\\",\\\"regular\\\"],[[\\\"title\\\"],[[27,\\\"t\\\",[\\\"task.tracked.disabled.title\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"toggleTracked\\\",[23,[\\\"task\\\"]]]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"clickable padding-left-small\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"task\\\",\\\"markIfWasDelayed\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[1,[27,\\\"fa-icon\\\",[\\\"square\\\",\\\"regular\\\"],[[\\\"class\\\",\\\"title\\\"],[\\\"task-tracked\\\",[27,\\\"t\\\",[\\\"task.markIfWasDelayed.enabled.title\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                        \\\"],[1,[27,\\\"fa-icon\\\",[\\\"square\\\",\\\"regular\\\"],[[\\\"title\\\"],[[27,\\\"t\\\",[\\\"task.markIfWasDelayed.disabled.title\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"toggleMarkIfWasDelayed\\\",[23,[\\\"task\\\"]]]],[10],[0,\\\".\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"additional-settings margin-bottom\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"task.beforeConfirmation.willChangeStateTo\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control input-sm\\\",[23,[\\\"task\\\",\\\"stageName\\\"]],[23,[\\\"task\\\",\\\"defaultStageName\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"task.beforeConfirmation.willChangeColorTo\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"spectrum-color-picker\\\",null,[[\\\"color\\\",\\\"showPaletteOnly\\\",\\\"togglePaletteOnly\\\",\\\"onChange\\\",\\\"preferredFormat\\\",\\\"clickoutFiresChange\\\",\\\"showButtons\\\",\\\"allowEmpty\\\",\\\"palette\\\"],[[23,[\\\"task\\\",\\\"color\\\"]],true,true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"task\\\",\\\"color\\\"]]],null]],null],\\\"name\\\",true,false,true,\\\"[[\\\\\\\"steelblue\\\\\\\", \\\\\\\"aqua\\\\\\\", \\\\\\\"teal\\\\\\\", \\\\\\\"green\\\\\\\"], [\\\\\\\"lime\\\\\\\", \\\\\\\"yellow\\\\\\\", \\\\\\\"orange\\\\\\\", \\\\\\\"maroon\\\\\\\"], [\\\\\\\"fuchsia\\\\\\\", \\\\\\\"purple\\\\\\\", \\\\\\\"gray\\\\\\\", \\\\\\\"silver\\\\\\\"], [\\\\\\\"brak\\\\\\\"]]\\\"]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.checkpointSortIdSettingLabel\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control input-sm\\\",[23,[\\\"task\\\",\\\"checkpointSortId\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"task\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-1 padding-top-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"tasks.edit\\\",[23,[\\\"task\\\",\\\"id\\\"]]],[[\\\"title\\\"],[[27,\\\"t\\\",[\\\"common.edit\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-edit padding-right-small\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[7,\\\"button\\\"],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"workflows.addSubTask\\\"],null]],[11,\\\"class\\\",\\\"btn btn-sm padding-left\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addSubTask\\\",[23,[\\\"task\\\"]],[23,[\\\"task\\\",\\\"subTasks\\\",\\\"length\\\"]]]],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row col-lg-12 padding-top task-info\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"task.taskIsNotSavedHint\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"hasSubTasks\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"style\\\",\\\"margin-left: 60px\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"sortable-objects\\\",null,[[\\\"sortableObjectList\\\",\\\"sortEndAction\\\",\\\"enableSort\\\"],[[23,[\\\"task\\\",\\\"subTasks\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"sortEndAction\\\"],null],true]],{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"sortedSubTasks\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"tasks-sortable-table/task-sortable-row\\\",null,[[\\\"task\\\",\\\"taskReferences\\\"],[[22,1,[]],[23,[\\\"taskReferences\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"style\\\",\\\"margin-left: 60px\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"task.saveSubTasks\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"saveSubTasks\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/tasks-sortable-table/task-sortable-row/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/tasks-sortable-table/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"NHsPJYTi\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tg\\\",\\\"task\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"proxiedTaskGroups\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"task.group.\\\",[22,1,[\\\"content\\\"]]],null]],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"sortable-objects\\\",null,[[\\\"sortableObjectList\\\",\\\"sortEndAction\\\",\\\"enableSort\\\"],[[22,1,[\\\"tasks\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"sortEndAction\\\"],null],true]],{\\\"statements\\\":[[4,\\\"each\\\",[[22,1,[\\\"tasks\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"tasks-sortable-table/task-sortable-row\\\",null,[[\\\"task\\\",\\\"taskReferences\\\"],[[22,2,[]],[22,1,[\\\"references\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"workflows.noTasks\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row form-buttons\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"workflows.addTask\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addTask\\\",[22,1,[\\\"content\\\"]],[22,1,[\\\"tasks\\\",\\\"length\\\"]]]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/tasks-sortable-table/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/tax-id-number-field/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    showIsoSelect: Ember.computed('company.country.id', function () {\n      return !this.get('company.id') && !this.get('disabled') && this.get('company.country.alternativeIsoCodes.length') > 1;\n    }),\n    setTaxIdIsoNumberObserver: Ember.observer('company.country.id', function () {\n      if (this.get('company.country.alternativeIsoCodes.length') === 1) {\n        this.set('company.taxIdIsoNumber', this.get('company.country.alternativeIsoCodes.firstObject'));\n      } else {\n        this.set('company.taxIdIsoNumber', null);\n      }\n    }),\n    actions: {\n      verifyNip: async function () {\n        await this.verifyNip();\n      },\n\n      changeCountry(countryIso) {\n        this.set('company.taxIdIsoNumber', countryIso);\n        this.send('verifyNip');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/tax-id-number-field/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"SgIlwv9n\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isoCode\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input-group\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showIsoSelect\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon iso-select\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"selected\\\",\\\"options\\\",\\\"onchange\\\"],[[23,[\\\"company\\\",\\\"taxIdIsoNumber\\\"]],[23,[\\\"company\\\",\\\"country\\\",\\\"alternativeIsoCodes\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"changeCountry\\\"],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"company\\\",\\\"taxIdIsoNumber\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"TAX_ID_INPUT\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"input\\\",null,[[\\\"placeholder\\\",\\\"focus-out\\\",\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[[27,\\\"t\\\",[\\\"company.taxIdNumber\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"verifyNip\\\"],null],\\\"form-control\\\",[23,[\\\"company\\\",\\\"taxIdNumber\\\"]],[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"company\\\"]],\\\"taxIdIsoNumber\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/tax-id-number-field/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/template-loop/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    times: Ember.computed('range', function () {\n      let range = parseInt(this.get('range'));\n      return new Array(range);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/template-loop/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"92u7lyI2\",\n    \"block\": \"{\\\"symbols\\\":[\\\"index\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"times\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[14,2],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/template-loop/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/temporary-account-alert/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    tagName: 'a',\n    classNames: 'btn btn-default',\n    user: Ember.computed('sessionAccount.currentUser', function () {\n      return this.get('sessionAccount.currentUser');\n    }),\n    isVisible: Ember.computed('user.temporaryAccount', function () {\n      return this.get('user.temporaryAccount');\n    }),\n\n    click() {\n      this.set('action', 'showModal');\n      this.sendAction('action', 'temporary-account-modal');\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/temporary-account-alert/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"xyR+ur54\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"span\\\"],[11,\\\"class\\\",\\\"alert-text\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-clock\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"user.temporaryAccountDaysLeft\\\"],null],false],[0,\\\": \\\"],[7,\\\"b\\\"],[9],[1,[23,[\\\"user\\\",\\\"temporaryAccountDaysLeft\\\"]],false],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/temporary-account-alert/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/time-window-tooltip-arrival-dates/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    async init() {\n      this._super(...arguments);\n\n      await this.get('transportToHandle');\n    },\n\n    unloadSteps: Ember.computed('transportToHandle', function () {\n      const transport = this.get('transportToHandle');\n      const steps = transport.get('steps');\n      return steps.filterBy('isUnload');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/time-window-tooltip-arrival-dates/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"LhQkIewR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"step\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"unloadSteps\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"arrivalDate\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\" \\\"],[1,[22,1,[\\\"city\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/time-window-tooltip-arrival-dates/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/time-window/component\", [\"exports\", \"apollo/pods/mixins/jqui-widget\", \"apollo/mixins/touch-mixin\"], function (_exports, _jquiWidget, _touchMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Component.extend(_jquiWidget.default, _touchMixin.default, {\n    sessionAccount: service('session-account'),\n    languageService: service('language-service'),\n    store: service(),\n    intl: service(),\n    SECTIONS: {\n      ERP_SECTION: 'ERP_SECTION',\n      ALT_SECTION: 'ALT_SECTION',\n      INTERNAL_INDEX_SECTION: 'INTERNAL_INDEX_SECTION',\n      REG_NUM_SECTION: 'REG_NUM_SECTION',\n      CARRIER_SECTION: 'CARRIER_SECTION',\n      INDEX_NAME_SECTION: 'INDEX_NAME_SECTION',\n      INDEX_DOCUMENT_NUMBER_SECTION: 'INDEX_DOCUMENT_NUMBER_SECTION',\n      CONTRACTOR_SECTION: 'CONTRACTOR_SECTION',\n      QUANTITY_SECTION: 'QUANTITY_SECTION',\n      TRAILER_REG_NUM_SECTION: 'TRAILER_REG_NUM_SECTION',\n      STEP_TYPE_ARROW: 'STEP_TYPE_ARROW',\n      CUSTOM_FIELDS_SECTION: 'CUSTOM_FIELDS_SECTION',\n      DRIVER_NAME: 'DRIVER_NAME',\n      INDEXES_DETAILS: 'INDEXES_DETAILS',\n      STEP_TYPE_SYMBOL: 'STEP_TYPE_SYMBOL',\n      LOCATIONS: 'LOCATIONS'\n    },\n    uiWidgets: ['draggable', 'resizable'],\n    uiOptions: {\n      draggable: ['disabled', 'addClasses', 'appendTo', 'axis', 'cancel', 'connectToSortable', 'containment', 'cursor', 'cursorAt', 'delay', 'distance', 'grid', 'handle', 'snap', 'snapMode', 'stack'],\n      resizable: ['alsoResize', 'animate', 'animateDuration', 'animateEasing', 'aspectRatio', 'autoHide', 'cancel', 'containment', 'delay', 'disabled', 'distance', 'ghost', 'grid', 'handles', 'helper', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth']\n    },\n    'draggable-containment': 'schedule-calendar',\n    'draggable-start': 'onStart',\n    'draggable-stop': 'onDraggableStop',\n    'resizable-start': 'onStart',\n    'resizable-stop': 'onResize',\n    uiEvents: {\n      draggable: ['create', 'start', 'drag', 'stop'],\n      resizable: ['create', 'start', 'stop', 'resize']\n    },\n    tagName: 'div',\n    classNames: ['time-window-content'],\n    classNameBindings: ['windowStateClass', 'autoBlockadeClass', 'lockedClass'],\n    // Powoduje dociąganie okienka do wyznaczonych obszarów ('slotów') i zapobiega blokowaniu np. pomiędzy rampami.\n    'draggable-snap': '.minutes-slot',\n    'resizable-grid': function () {\n      const gridSize = this.get('cssHeight') / (60 / this.get('timeWindowOffsetInterval'));\n      return this.get('isHD') ? gridSize * 3 : gridSize;\n    }.property('timeWindowOffsetInterval', 'cssHeight', 'isHD'),\n    attributeBindings: ['data-schedule-window', 'data-is-supplement', 'style', 'data-window-type', 'data-window-length', 'data-transport-id'],\n    style: function () {\n      return Ember.String.htmlSafe(`height: ${this.get('height')}px; position: absolute; width: 100%;`);\n    }.property('height'),\n    combinigMark: Ember.computed('window.wasDelayedOnMarkedTask', 'hasTransportCombiningRelation', function () {\n      const delayed = this.get('window.wasDelayedOnMarkedTask');\n      const hasCombining = this.get('hasTransportCombiningRelation');\n\n      if (delayed && hasCombining) {\n        return Ember.String.htmlSafe('mark-delayed mark-has-transport-combining-with-delayed');\n      } else {\n        if (delayed) {\n          return Ember.String.htmlSafe('mark-delayed');\n        }\n\n        if (hasCombining) {\n          return Ember.String.htmlSafe('mark-has-transport-combining');\n        }\n      }\n\n      return Ember.String.htmlSafe('');\n    }),\n    height: function () {\n      const cssHeight = this.get('cssHeight');\n      const slotHeight = this.get('isHD') ? cssHeight * 3 : cssHeight;\n      const minSlotHeight = slotHeight / 4;\n      let numberOfMinSlotsInWindow = this.get('window').get('durationInMinutes') / 15;\n\n      if (this.get('isSupplement')) {\n        if (this.get('isLast')) {\n          const warehouseStart = moment(this.window.get('stop')).set({\n            h: this.window.get('ramp.warehouse.workStartHour'),\n            m: 0\n          });\n          const windowStop = moment(this.window.get('stop'));\n          numberOfMinSlotsInWindow = windowStop.diff(warehouseStart, 'minutes');\n        } else {\n          const windowDay = moment(this.window.get('start')).add(this.get('shift'), 'days');\n          const warehouseStart = moment(windowDay).set({\n            h: this.window.get('ramp.warehouse.workStartHour'),\n            m: 0\n          });\n          const warehouseStop = moment(windowDay).set({\n            h: this.window.get('ramp.warehouse.workEndHour'),\n            m: 0\n          });\n          numberOfMinSlotsInWindow = warehouseStop.diff(warehouseStart, 'minutes');\n        }\n\n        numberOfMinSlotsInWindow /= 15;\n      }\n\n      let height = numberOfMinSlotsInWindow * minSlotHeight; // W przypadku pół godzinnych okien, kończących się w połowie godziny,\n      // kolejne okno w harmonogramie przysłaniało handle do zmiany wielkości okna [A-10608].\n      // Odjęcie 1px od wysokości okna rozwiązuje ten problem.\n\n      if (numberOfMinSlotsInWindow === 2 && this.window.get('stop').getMinutes() === 30) {\n        height -= 1;\n      }\n\n      return height;\n    }.property('window.durationInMinutes', 'isHD', 'cssHeight'),\n    'data-schedule-window': function () {\n      return '' + this.window.id;\n    }.property('window.id'),\n    'data-transport-id': Ember.computed('window.transport.id', function () {\n      return '' + this.get('window.transport.id');\n    }),\n    'data-window-type': function () {\n      return this.get('window.computedState');\n    }.property('window.computedState'),\n    'data-window-length': function () {\n      return '' + this.get('window.durationInMinutes');\n    }.property('window.durationInMinutes'),\n    'data-is-supplement': function () {\n      return this.get('isSupplement') === true;\n    }.property('isSupplement'),\n    isDedicated: function () {\n      return !!this.get('window').get('company').get('id') || !!this.get('window').get('userGroup.id');\n    }.property('window.company.id', 'window.userGroup.id'),\n    'resizable-handles': 's',\n    'resizable-containment': '.schedule-body',\n    windowStateClass: function () {\n      return 'window-' + this.get('window.computedState');\n    }.property('window.computedState'),\n    autoBlockadeClass: function () {\n      return this.get('window.isAutoBlockade') ? 'auto-blockade' : null;\n    }.property('window.isAutoBlockade'),\n    lockedClass: Ember.computed('window.isLockedForEditing', function () {\n      return this.get('window.isLockedForEditing') ? 'is-locked' : null;\n    }),\n    color: function () {\n      return this.get('window.color');\n    }.property('window.color'),\n    grabberColor: Ember.computed('window.color', function () {\n      return this.get('window.grabberColor');\n    }),\n    isOnDisabledState: function () {\n      return this.get('window.isDisabled');\n    }.property('window.isDisabled'),\n    canSeeNote: function () {\n      return this.get('isOnDisabledState') && !this.get('isDedicated') && !this.get('window.isAutoBlockade') && this.get('sessionAccount').hasRole('ROLE_READ_WINDOW_NOTES');\n    }.property('isOnDisabledState', 'isDedicated', 'window.isAutoBlockade'),\n    removeBlockedWindow: 'removeBlockedWindow',\n    showTransportDetails: 'showTransportDetails',\n    showLoadingModal: 'showLoadingModal',\n    dedicatedSpotClicked: 'dedicatedSpotClicked',\n    createWindow: 'createWindow',\n    transportType: Ember.computed('window.transportType', function () {\n      return this.get('window.transportType');\n    }),\n    scheduleSetting: Ember.computed('transportType.scheduleSetting', function () {\n      if (this.get('window.hasAnyTransportCombiningRelation')) {\n        const transportType = this.get('store').peekAll('transportType').find(tt => {\n          return tt.get('participatesInCombiningTransports') === true;\n        });\n        return transportType.get('scheduleSetting');\n      } else {\n        return this.get('transportType.scheduleSetting');\n      }\n    }),\n    isOneDayView: Ember.computed('viewedDays', function () {\n      return this.get('viewedDays') === 1;\n    }),\n    shouldShowLeftAreaSection: Ember.computed('isOneDayView', 'leftSideAreaSection', function () {\n      return this.get('leftSideAreaSection') && this.get('isOneDayView');\n    }),\n    windowContentWidth: Ember.computed('shouldShowLeftAreaSection', 'isHD', function () {\n      if (this.get('shouldShowLeftAreaSection')) {\n        return 'width-90';\n      }\n\n      return '';\n    }),\n    showMiddleSection: Ember.computed('viewedColumns', 'topLeftSection', 'window.durationInMinutes', 'scheduleSetting.topMiddle', async function () {\n      if (this.get('window.durationInMinutes') >= 60) {\n        return true;\n      }\n\n      if (this.get('viewedColumns') >= 7) {\n        return false;\n      }\n\n      if (!this.get('topLeftSection')) {\n        return true;\n      }\n\n      if (this.get('scheduleSetting.topMiddle') === this.get('SECTIONS.CARRIER_SECTION')) {\n        return (await this.get('window.companyShownInSchedule.id')) !== (await this.get('window.transport.carrierCompany.id'));\n      }\n\n      return true;\n    }),\n    contractorsGroups: Ember.computed('window.companyShownInSchedule.partnershipWithPrincipal.contractorsGroups', function () {\n      return this.get('window.companyShownInSchedule.partnershipWithPrincipal.contractorsGroups');\n    }),\n    topLeftSection: Ember.computed('scheduleSetting.topLeft', 'window.lastUpdated', function () {\n      const s = this.get('scheduleSetting.id') ? this.get('scheduleSetting.topLeft') : this.get('SECTIONS.CONTRACTOR_SECTION');\n      return this.getSectionContent(s);\n    }),\n    topMiddleSection: Ember.computed('scheduleSetting.topMiddle', 'window.lastUpdated', function () {\n      const s = this.get('scheduleSetting.id') ? this.get('scheduleSetting.topMiddle') : this.get('SECTIONS.CARRIER_SECTION');\n      return this.getSectionContent(s);\n    }),\n    topRightSection: Ember.computed('scheduleSetting.topRight', 'window.lastUpdated', function () {\n      const s = this.get('scheduleSetting.id') ? this.get('scheduleSetting.topRight') : this.get('SECTIONS.REG_NUM_SECTION');\n      return this.getSectionContent(s);\n    }),\n    bottomLeftSection: Ember.computed('scheduleSetting.bottomLeft', 'window.lastUpdated', function () {\n      const s = this.get('scheduleSetting.id') ? this.get('scheduleSetting.bottomLeft') : this.get('SECTIONS.QUANTITY_SECTION');\n      return this.getSectionContent(s);\n    }),\n    bottomMiddleSection: Ember.computed('scheduleSetting.bottomMiddle', 'window.lastUpdated', function () {\n      return this.getSectionContent(this.get('scheduleSetting.bottomMiddle'));\n    }),\n    bottomRightSection: Ember.computed('scheduleSetting.bottomRight', 'window.lastUpdated', function () {\n      const s = this.get('scheduleSetting.id') ? this.get('scheduleSetting.bottomRight') : this.get('SECTIONS.ERP_SECTION');\n      return this.getSectionContent(s);\n    }),\n    leftSideAreaSection: Ember.computed('scheduleSetting.leftSideArea', 'window.lastUpdated', function () {\n      return this.getSectionContent(this.get('scheduleSetting.leftSideArea'));\n    }),\n    transportCombiningSymbol: Ember.computed('scheduleSetting.transportCombiningSymbol', 'window.lastUpdate', function () {\n      return this.get('scheduleSetting.transportCombiningSymbol');\n    }),\n    hasRelatedTransports: Ember.computed('window.transport.relatedToTransports.length', function () {\n      return this.get('window.hasAnyTransportRelation');\n    }),\n    hasTransportCombiningRelation: Ember.computed('window.transport.@each.relatedTo', function () {\n      return this.get('window.hasAnyTransportCombiningRelation');\n    }),\n    CONTRACTOR_SECTION: Ember.computed('window.{CONTRACTOR_COUNTRY_SECTION,CONTRACTOR_NAME_SECTION,CONTRACTOR_GROUP_SECTION}', function () {\n      let s = '';\n      s += this.get('window.CONTRACTOR_COUNTRY_SECTION');\n\n      if (this.get('showLongName')) {\n        s += ` ${this.get('window.CONTRACTOR_NAME_SECTION')}`;\n      } else {\n        s += this.get('window.CONTRACTOR_NAME_SECTION') ? ` ${this.get('window.CONTRACTOR_NAME_SECTION').slice(0, 5)}` : '';\n      }\n\n      if (this.get('window.CONTRACTOR_GROUP_SECTION')) {\n        s += ` ${this.get('window.CONTRACTOR_GROUP_SECTION')}`;\n      }\n\n      return s;\n    }),\n    STEP_TYPE_SECTION: Ember.computed('window.STEP_TYPE_ARROW', function () {\n      if (this.get('window.STEP_TYPE_ARROW') === 'unload') {\n        return Ember.String.htmlSafe('<i class=\"fa fa-long-arrow-down step-type-arrow\"></i>');\n      }\n\n      return Ember.String.htmlSafe('<i class=\"fa fa-long-arrow-up step-type-arrow\"></i>');\n    }),\n    STEP_TYPE_SECTION_SYMBOL: Ember.computed('window.STEP_TYPE_SYMBOL', function () {\n      const load_symbol = `<i class=\"${this.get('scheduleSetting.stepTypeSymbolLoad')} margin-left\"></i>`;\n      const unload_symbol = `<i class=\"${this.get('scheduleSetting.stepTypeSymbolUnload')} margin-left\"></i>`;\n\n      if (this.get('window.STEP_TYPE_SYMBOL') === 'load') {\n        return Ember.String.htmlSafe(load_symbol);\n      }\n\n      return Ember.String.htmlSafe(unload_symbol);\n    }),\n    CUSTOM_FIELDS_SECTION: Ember.computed('window.CUSTOM_FIELDS_SECTION', function () {\n      const jsonArray = JSON.parse(this.get('window.CUSTOM_FIELDS_SECTION'));\n      const propertyName = this.get('languageService').findProperLanguageVersion('local', 'english');\n      return jsonArray.map(o => o[propertyName]).filter(o => o).join(', ');\n    }),\n\n    getSectionContent(s) {\n      if (!s) {\n        return '';\n      }\n\n      if (s === this.get('SECTIONS.CONTRACTOR_SECTION')) {\n        return this.get('CONTRACTOR_SECTION');\n      }\n\n      if (s === this.get('SECTIONS.STEP_TYPE_ARROW')) {\n        return this.get('STEP_TYPE_SECTION');\n      }\n\n      if (s === this.get('SECTIONS.STEP_TYPE_SYMBOL')) {\n        return this.get('STEP_TYPE_SECTION_SYMBOL');\n      }\n\n      if (s === this.get('SECTIONS.INDEXES_DETAILS')) {\n        return this.get('SECTIONS.INDEXES_DETAILS');\n      }\n\n      if (s === this.get('SECTIONS.CUSTOM_FIELDS_SECTION')) {\n        return this.get('CUSTOM_FIELDS_SECTION');\n      }\n\n      return this.get('window').get(s);\n    },\n\n    showContent: function () {\n      if (this.get('isOnDisabledState')) {\n        return false;\n      }\n\n      if (this.window.get('durationInMinutes') >= 60) {\n        return true;\n      }\n\n      return this.window.get('durationInMinutes') >= 30 && this.get('viewedColumns') < 15;\n    }.property('window.durationInMinutes', 'viewedColumns', 'isOnDisabledState'),\n    toggleTimeWindowGrabber: function (target) {\n      target[0].style.setProperty('--grabber-color', this.get('grabberColor'));\n      target.parent().css('overflow', 'hidden');\n      target.toggleClass('time-window-grabber');\n    },\n    handleOpenWindowDetails: function () {\n      if (!this.get('sessionAccount').hasRole('ACCESS_TO_TRANSPORT_DETAILS') || !this.get('transportType.canBeSeenByRoleGroup')) {\n        console.debug('Brak dostępu do szczegółów transportów');\n        alert(this.get('intl').t('common.noAuthority'));\n        return;\n      }\n\n      this.sendAction('showLoadingModal');\n      const transportIdToFetch = this.window.get('relatedTransport.id') ? this.window.get('relatedTransport.id') : this.window.get('transport.id');\n      this.get('store').findRecord('transport', transportIdToFetch).then(transport => {\n        transport.get('periodicTransport').then(() => {\n          this.sendAction('showTransportDetails', transport);\n        });\n      });\n    },\n    handleWindowClick: function (event) {\n      const transport = this.get('transportToHandle');\n\n      if (transport) {\n        const userGroupId = this.get('window.userGroup.id');\n\n        if (userGroupId && this.get('sessionAccount').get('currentUser.userGroup.id') !== userGroupId) {\n          return false;\n        }\n\n        if (this.canTransportAccessDedicatedWindow(transport)) {\n          this.sendAction('dedicatedSpotClicked', event);\n        }\n      } else if (this.get('isOnDisabledState') || this.get('isDedicated') === true) {\n        this.sendAction('removeBlockedWindow', this.window);\n      } else if (this.window.get('step.id')) {\n        this.handleOpenWindowDetails();\n      }\n    },\n    handleClickForTouchDevice: function (event) {\n      this.handleTap(event, () => {\n        this.handleWindowClick(event);\n      }, () => {\n        const target = $(event.target).next('.ui-resizable-handle');\n\n        if (target.length) {\n          this.toggleTimeWindowGrabber(target);\n        }\n      });\n    },\n    click: function (event) {\n      if (this.isTouchDevice) {\n        this.handleClickForTouchDevice(event);\n        return event.stopPropagation();\n      }\n\n      if (!this.isTouchDevice) {\n        if ($(event.target).hasClass('is-locked') || $(event.target).parents('.is-locked').length) {\n          console.debug('Okno jest zablokowane do edycji.');\n          return false;\n        }\n\n        if ($(event.target).hasClass('noclick') || $(event.target).parent().hasClass('noclick')) {\n          $(event.target).removeClass('noclick');\n          $(event.target).parent().removeClass('noclick');\n        } else {\n          this.handleWindowClick(event);\n        }\n\n        event.stopPropagation();\n      }\n    },\n    timer: '',\n    touchMove: function (event) {\n      let timer = 0;\n      const boundOffset = 20;\n      const leftBound = boundOffset;\n      const rightBound = window.screen.width - boundOffset;\n      const windowPositionX = event.changedTouches[0].clientX;\n\n      if (windowPositionX > rightBound) {\n        clearTimeout(timer); // zmiana dnia harmonogramu zadziała tylko wówczas gdy\n        // będziemy trzymać okno przy krawędzi dłużej niż 1s\n        // ma to zapobiec przypadkowemu przesunięciu okna akcją `onDraggableStop`\n\n        timer = setTimeout(() => {\n          this.get('dragWindowAcrossScheduleDays')(this.window.get('step'), 1, $(event.target));\n        }, 1000);\n      } else if (windowPositionX < leftBound) {\n        timer = setTimeout(() => {\n          this.get('dragWindowAcrossScheduleDays')(this.window.get('step'), -1, $(event.target));\n        }, 1000);\n      }\n\n      $(event.target).mouseup(() => {\n        clearTimeout(timer);\n      });\n    },\n    dragStart: function (event) {\n      if ($(event.target).hasClass('is-locked') || $(event.target).parents('.is-locked').length) {\n        console.debug('Okno jest zablokowane do edycji.');\n        return false;\n      }\n\n      clearTimeout(this.timer);\n    },\n    dragEnd: function () {\n      if (this.isDestroyed) {}\n    },\n\n    canTransportAccessDedicatedWindow(transport) {\n      console.debug(`Sprawdzamy, czy transport ${transport.get('logString')} ma prawo dostępu do okna dedykowanego ${this.get('window.logString')}..`);\n\n      if (this.get('isDedicated')) {\n        if (this.get('window.userGroup.id')) {\n          return true;\n        }\n\n        const companyId = this.get('window.company.id');\n\n        if (transport.get('carrierCompany') && transport.get('carrierCompany.id') === companyId) {\n          console.debug(`Okno jest dedykowane dla przewoźnika ${transport.get('carrierCompany.shortName')}, który jest przypisany do transportu; dostęp udzielony.`);\n          return true;\n        }\n\n        const contractorIds = transport.get('contractorIds').filter(contractorId => {\n          return contractorId === companyId;\n        });\n\n        if (contractorIds.length > 0) {\n          console.debug('Okno jest dedykowane dla dostawcy, który jest przypisany do transportu; dostęp udzielony.');\n          return true;\n        } else {\n          console.log(`Transport ${transport.get('logString')} nie może zostać zapisany w oknie ${this.get('window.logString')}; odmowa dostępu.`);\n          return false;\n        }\n      } else {\n        console.debug('Wybrane okno nie jest oknem dedykowanym - nie można tu utworzyć awizacji.');\n        return false;\n      }\n    },\n\n    scheduleRender: function () {\n      if ($('.minutes-slot').length > 0) {\n        Ember.run.scheduleOnce('afterRender', this, this.afterRenderEvent);\n      }\n    }.on('didReceiveAttrs').observes('window.ramp', 'window.start', 'window.stop', 'window.isSwapped'),\n\n    afterRenderEvent() {\n      try {\n        const rampId = this.window.get('ramp.id');\n        let startSelector;\n        let startDay;\n        const isSupplement = this.get('isSupplement'); // supplement - to 'końcówka' okna, która zaczyna się innego dnia (por. schedule/template.hbs); jego początek to zawsze pierwsza dostępna godzina na danej rampie\n\n        if (isSupplement) {\n          // FIXME: Nie działa w przypadku userów, w których mamy dzień do tyłu lub do przodu\n          const warehouseStartHour = moment().set({\n            h: this.window.get('ramp.warehouse.workStartHour'),\n            m: 0\n          }).format('HH');\n\n          if (this.get('isLast')) {\n            const stopAfterWarehouseStart = moment(this.window.get('stop')).format('HH:mm') > this.window.get('ramp.warehouse.workStartTime');\n            if (!stopAfterWarehouseStart && !this.window.get('ramp.warehouse.isWarehouse24h')) return;\n            startDay = moment(this.window.get('stop')).format('YYYY-MM-DD');\n            startSelector = `slot-${rampId}-${startDay}-${warehouseStartHour}-00`;\n          } else {\n            startDay = moment(this.window.get('start')).add(this.get('shift'), 'days').format('YYYY-MM-DD');\n            startSelector = `slot-${rampId}-${startDay}-${warehouseStartHour}-00`;\n          }\n        } else {\n          startDay = moment(this.window.get('start')).format('YYYY-MM-DD-HH-mm');\n          startSelector = `slot-${rampId}-${startDay}`;\n        }\n\n        const startSlot = document.getElementById(`${startSelector}`);\n\n        if (startSlot) {\n          const $this = this.$();\n\n          if ($this) {\n            $this.appendTo(startSlot);\n          }\n        }\n      } catch (e) {\n        console.error(e);\n      }\n    },\n\n    willDestroyElement: function () {\n      this._super(...arguments);\n\n      this.$().off('mouseenter mouseleave');\n      $(this.element).remove(); // TODO: [pawel] nie wiem, czy to jest poprawne podejście\n    },\n    mouseEnter: function () {\n      const position = event.clientX / event.currentTarget.clientWidth > 0.7 ? 'left' : 'right';\n      this.notifyWindowFocusIn(this.window, position);\n    },\n    notifyWindowFocusIn: () => {},\n    mouseLeave: function () {\n      this.notifyWindowFocusOut(this.window);\n    },\n    notifyWindowFocusOut: () => {},\n    trimTopLeft: Ember.computed('scheduleSetting.trimTopLeft', 'window.lastUpdated', function () {\n      return this.get('scheduleSetting.trimTopLeft');\n    }),\n    trimTopMiddle: Ember.computed('scheduleSetting.trimTopMiddle', 'window.lastUpdated', function () {\n      return this.get('scheduleSetting.trimTopMiddle');\n    }),\n    trimTopRight: Ember.computed('scheduleSetting.trimTopRight', 'window.lastUpdated', function () {\n      return this.get('scheduleSetting.trimTopRight');\n    }),\n    trimBottomLeft: Ember.computed('scheduleSetting.trimBottomLeft', 'window.lastUpdated', function () {\n      return this.get('scheduleSetting.trimBottomLeft');\n    }),\n    trimBottomMiddle: Ember.computed('scheduleSetting.trimBottomMiddle', 'window.lastUpdated', function () {\n      return this.get('scheduleSetting.trimBottomMiddle');\n    }),\n    trimBottomRight: Ember.computed('scheduleSetting.trimBottomRight', 'window.lastUpdated', function () {\n      return this.get('scheduleSetting.trimBottomRight');\n    }),\n    topLeftHellip: Ember.computed('scheduleSetting.topLeftHellip', 'window.lastUpdated', function () {\n      return this.get('scheduleSetting.topLeftHellip');\n    }),\n    topMiddleHellip: Ember.computed('scheduleSetting.topMiddleHellip', 'window.lastUpdated', function () {\n      return this.get('scheduleSetting.topMiddleHellip');\n    }),\n    topRightHellip: Ember.computed('scheduleSetting.topRightHellip', 'window.lastUpdated', function () {\n      return this.get('scheduleSetting.topRightHellip');\n    }),\n    bottomLeftHellip: Ember.computed('scheduleSetting.bottomLeftHellip', 'window.lastUpdated', function () {\n      return this.get('scheduleSetting.bottomLeftHellip');\n    }),\n    bottomMiddleHellip: Ember.computed('scheduleSetting.bottomMiddleHellip', 'window.lastUpdated', function () {\n      return this.get('scheduleSetting.bottomMiddleHellip');\n    }),\n    bottomRightHellip: Ember.computed('scheduleSetting.bottomRightHellip', 'window.lastUpdated', function () {\n      return this.get('scheduleSetting.bottomRightHellip');\n    }),\n    actions: {\n      openNoteWindow: function () {\n        this.window.oldNote = this.window.get('note');\n        this.openNoteWindow(this.window);\n      },\n      openIndexesDetailsWindow: function () {\n        this.openIndexesDetailsWindow(this.get('window.transport'));\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/time-window/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"kA4B7BsT\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"time-window-component time-window width-inherit \\\",[21,\\\"combinigMark\\\"],\\\" \\\",[23,[\\\"window\\\",\\\"additionalCssClassFromTask\\\"]]]]],[12,\\\"style\\\",[23,[\\\"window\\\",\\\"backgroundColorStyle\\\"]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"window\\\",\\\"wasMovedAutomatically\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-left-small\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"common.windowMovedAutomatically\\\"],null]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"clock-rotate-left\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"isOnDisabledState\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"canSeeNote\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"window-note\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"window\\\",\\\"note\\\"]],[27,\\\"has-role\\\",[\\\"ROLE_ADD_WINDOW_NOTES\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"warehouse.windowNoteTitle\\\"],null]]]],[11,\\\"class\\\",\\\"note-button\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"openNoteWindow\\\"],[[\\\"bubbles\\\"],[false]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_READ_WINDOW_NOTES\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[12,\\\"title\\\",[28,[[23,[\\\"window\\\",\\\"note\\\"]]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[23,[\\\"window\\\",\\\"note\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"title row no-select\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"window\\\",\\\"userGroup\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,[\\\"window\\\",\\\"userGroup\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"window\\\",\\\"company\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,[\\\"window\\\",\\\"company\\\",\\\"country\\\",\\\"ibanSymbol\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"window\\\",\\\"company\\\",\\\"shortName\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"shouldShowLeftAreaSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left left-side-area\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[21,\\\"leftSideAreaSection\\\"],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"shouldShowLeftAreaSection\\\"]],\\\"pull-left\\\"],null],\\\" \\\",[21,\\\"windowContentWidth\\\"],\\\" not-clickable\\\"]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"title row no-select full-width\\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"desc-left\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"trimTopLeft\\\"]],[27,\\\"not\\\",[[23,[\\\"showLongName\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"trunc-string\\\",[[23,[\\\"topLeftSection\\\"]],[23,[\\\"trimTopLeft\\\"]]],[[\\\"hellip\\\"],[[23,[\\\"topLeftHellip\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"hasRelatedTransports\\\"]],[27,\\\"and\\\",[[23,[\\\"transportCombiningSymbol\\\"]],[27,\\\"eq\\\",[[23,[\\\"transportCombiningSymbol\\\"]],\\\"TOP_LEFT\\\"],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"link\\\",\\\"solid\\\"],[[\\\"class\\\"],[\\\"desc-left\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[1,[21,\\\"topLeftSection\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"desc-right padding-left-small highlighted\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"trunc-string\\\",[[23,[\\\"topRightSection\\\"]],[23,[\\\"trimTopRight\\\"]]],[[\\\"hellip\\\"],[[23,[\\\"topRightHellip\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"hasRelatedTransports\\\"]],[27,\\\"and\\\",[[23,[\\\"transportCombiningSymbol\\\"]],[27,\\\"eq\\\",[[23,[\\\"transportCombiningSymbol\\\"]],\\\"TOP_RIGHT\\\"],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"fa-icon\\\",[\\\"link\\\",\\\"solid\\\"],[[\\\"class\\\"],[\\\"desc-right\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"showMiddleSection\\\"]],[23,[\\\"topMiddleSection\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"topMiddleSection\\\"]],[23,[\\\"SECTIONS\\\",\\\"INDEXES_DETAILS\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"button\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"warehouse.indexesDetailsTitle\\\"],null]]]],[11,\\\"class\\\",\\\"indexes-details-button\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"info-circle\\\"],[[\\\"size\\\"],[\\\"lg\\\"]]],false],[0,\\\"\\\\n                            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"openIndexesDetailsWindow\\\"],[[\\\"bubbles\\\"],[false]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"hasRelatedTransports\\\"]],[27,\\\"and\\\",[[23,[\\\"transportCombiningSymbol\\\"]],[27,\\\"eq\\\",[[23,[\\\"transportCombiningSymbol\\\"]],\\\"TOP_MIDDLE\\\"],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"link\\\",\\\"solid\\\"],[[\\\"class\\\"],[\\\"text-center\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"trimTopMiddle\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"trunc-string\\\",[[23,[\\\"topMiddleSection\\\"]],[23,[\\\"trimTopMiddle\\\"]]],[[\\\"hellip\\\"],[[23,[\\\"trimTopHellip\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"trunc-string\\\",[[23,[\\\"topMiddleSection\\\"]],[27,\\\"unless\\\",[[23,[\\\"showLongName\\\"]],8],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"seperate-time-window-sections\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"content no-select\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showContent\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"desc-left no-wrap\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"hasRelatedTransports\\\"]],[27,\\\"and\\\",[[23,[\\\"transportCombiningSymbol\\\"]],[27,\\\"eq\\\",[[23,[\\\"transportCombiningSymbol\\\"]],\\\"BOTTOM_LEFT\\\"],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"link\\\",\\\"solid\\\"],[[\\\"class\\\"],[\\\"desc-left\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"trimBottomLeft\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"trunc-string\\\",[[23,[\\\"bottomLeftSection\\\"]],[23,[\\\"trimBottomLeft\\\"]]],[[\\\"hellip\\\"],[[23,[\\\"bottomLeftHellip\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"trunc-string\\\",[[23,[\\\"bottomLeftSection\\\"]],[27,\\\"unless\\\",[[23,[\\\"showLongName\\\"]],8],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"desc-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"bottomMiddleSection\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"hasRelatedTransports\\\"]],[27,\\\"and\\\",[[23,[\\\"transportCombiningSymbol\\\"]],[27,\\\"eq\\\",[[23,[\\\"transportCombiningSymbol\\\"]],\\\"BOTTOM_MIDDLE\\\"],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"link\\\",\\\"solid\\\"],[[\\\"class\\\"],[\\\"desc-right\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                \\\"],[1,[27,\\\"trunc-string\\\",[[23,[\\\"bottomMiddleSection\\\"]],[23,[\\\"trimBottomMiddle\\\"]]],[[\\\"hellip\\\"],[[23,[\\\"bottomMiddleHellip\\\"]]]]],false],[0,\\\" |\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"trimBottomRight\\\"]],[27,\\\"not\\\",[[23,[\\\"showLongName\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"trunc-string\\\",[[23,[\\\"bottomRightSection\\\"]],[23,[\\\"trimBottomRight\\\"]]],[[\\\"hellip\\\"],[[23,[\\\"bottomRightHellip\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[21,\\\"bottomRightSection\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"hasRelatedTransports\\\"]],[27,\\\"and\\\",[[23,[\\\"transportCombiningSymbol\\\"]],[27,\\\"eq\\\",[[23,[\\\"transportCombiningSymbol\\\"]],\\\"BOTTOM_RIGHT\\\"],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"link\\\",\\\"solid\\\"],[[\\\"class\\\"],[\\\"desc-right\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"topMiddleSection\\\"]],[27,\\\"gt\\\",[[23,[\\\"window\\\",\\\"durationInMinutes\\\"]],15],null]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"hasRelatedTransports\\\"]],[27,\\\"and\\\",[[23,[\\\"transportCombiningSymbol\\\"]],[27,\\\"eq\\\",[[23,[\\\"transportCombiningSymbol\\\"]],\\\"TOP_MIDDLE\\\"],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"link\\\",\\\"solid\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[1,[27,\\\"trunc-string\\\",[[23,[\\\"topMiddleSection\\\"]],[23,[\\\"trimTopMiddle\\\"]]],[[\\\"hellip\\\"],[[23,[\\\"topMiddleHellip\\\"]]]]],false],[0,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"cleaner\\\"],[9],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/time-window/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/toggle-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    setInsuranceExpanse: Ember.on('init', function () {\n      if (!this.get('partnership') || !this.get('documentType')) {\n        return;\n      }\n\n      const activeInsurance = this.get('partnership.documents').filter(document => document.get('documentType.id') === this.get('documentType.id'));\n      const approvedInsurance = activeInsurance.filter(document => document.get('state') === document.get('STATES.ACCEPTED'));\n\n      if (activeInsurance.get('length') === 0 || activeInsurance.get('length') !== approvedInsurance.get('length')) {\n        this.set('shouldBeExpanded', true);\n      } else {\n        this.set('shouldBeExpanded', false);\n      }\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/toggle-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"OV/w25iA\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-heading\\\"],[11,\\\"role\\\",\\\"tab\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[12,\\\"class\\\",[28,[\\\"panel-title \\\",[27,\\\"unless\\\",[[23,[\\\"shouldBeExpanded\\\"]],\\\"collapsed\\\"],null]]]],[11,\\\"role\\\",\\\"button\\\"],[11,\\\"data-toggle\\\",\\\"collapse\\\"],[11,\\\"data-parent\\\",\\\"#accordion\\\"],[12,\\\"href\\\",[28,[\\\"#\\\",[21,\\\"name\\\"]]]],[12,\\\"aria-expanded\\\",[21,\\\"shouldBeExpanded\\\"]],[12,\\\"aria-controls\\\",[21,\\\"name\\\"]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"iconClass\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"i\\\"],[12,\\\"class\\\",[21,\\\"iconClass\\\"]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"sectionType.\\\",[23,[\\\"name\\\"]]],null]],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"id\\\",[21,\\\"name\\\"]],[12,\\\"class\\\",[28,[\\\"panel-collapse collapse \\\",[27,\\\"if\\\",[[23,[\\\"shouldBeExpanded\\\"]],\\\"in\\\"],null]]]],[11,\\\"role\\\",\\\"tabpanel\\\"],[9],[0,\\\"\\\\n        \\\"],[14,1],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/toggle-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transaction-price-label-translation/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    intl: Ember.inject.service(),\n    translationKeyLabel: Ember.computed('transaction.priceLabelTranslationKey', 'transaction', function () {\n      return this.get('intl').t('transactionSetting.priceLabel.' + this.get('transaction.priceLabelTranslationKey'));\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transaction-price-label-translation/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"0NWoQCU6\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[21,\\\"translationKeyLabel\\\"],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transaction-price-label-translation/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transaction/accept-transaction-button/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    tagName: '',\n    showAcceptationModal: false,\n    transactionPrice: Ember.computed({\n      get(key) {\n        return 0;\n      },\n\n      set(key, value) {\n        return value;\n      }\n\n    }),\n    transactionCurrency: Ember.computed({\n      get(key) {\n        return null;\n      },\n\n      set(key, value) {\n        return value;\n      }\n\n    }),\n    actions: {\n      onButtonClick: function () {\n        const transactionId = this.get('transport.transaction.id');\n        this.store.findRecord('transaction', transactionId).then(transaction => {\n          this.set('transactionPrice', transaction.get('price'));\n          this.set('transactionCurrency', transaction.get('currency'));\n          this.toggleProperty('showAcceptationModal');\n        });\n      },\n      onAcceptTransaction: function () {\n        this.acceptTransaction();\n      },\n      toggleModal: function () {\n        this.toggleProperty('showAcceptationModal');\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transaction/accept-transaction-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"T1HMgIsb\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-sm margin-bottom accept-transaction-button\\\"],[12,\\\"style\\\",[23,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]]],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"transaction.accept\\\"],null],false],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[22,0,[]],\\\"onButtonClick\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showAcceptationModal\\\"]]],null,{\\\"statements\\\":[[4,\\\"modal-dialog\\\",null,[[\\\"onClose\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"toggleModal\\\"],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section\\\"],[11,\\\"data-field-name\\\",\\\"action-accept-transaction-modal\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-header\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"bold col-xs-12\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transaction.acceptationModal.label\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-body\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"confirmation-content\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"transaction-value\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transaction.acceptationModal.transactionValue\\\"],null],false],[0,\\\":\\\\n                        \\\"],[7,\\\"strong\\\"],[9],[1,[21,\\\"transactionPrice\\\"],false],[0,\\\" \\\"],[1,[23,[\\\"transactionCurrency\\\",\\\"symbol\\\"]],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"confirmation-message\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transaction.acceptationModal.confirmationMessage\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-actions\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.accept\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"onAcceptTransaction\\\"]],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-secondary\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"toggleModal\\\"]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transaction/accept-transaction-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transaction/auto-transaction-button/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    TIME_TO_ACCEPT_AUTO_ROUTE_OFFER_PASS: '3h',\n    disableAutoPassButton: Ember.computed('transport.activeAuction', 'transport.transaction.id', function () {\n      return this.get('transport.transaction.id') || this.get('transport.lastTransactionAutoPassNotAccepted');\n    }),\n    timeToAcceptTransport: Ember.computed('', 'TIME_TO_ACCEPT_AUTO_ROUTE_OFFER_PASS', 'TIME_TO_ACCEPT_AUTO_ROUTE_OFFER_PASSTIME_TO_ACCEPT_AUTO_ROUTE_OFFER_PASS', function () {\n      const setting = this.sessionAccount.getSettingValue('TIME_TO_ACCEPT_AUTO_ROUTE_OFFER_PASS');\n      return setting || this.TIME_TO_ACCEPT_AUTO_ROUTE_OFFER_PASS;\n    }),\n    actions: {\n      createTransactionAndStartAutoPass() {\n        console.log('Startujemy z automatycznym przekazaniem...');\n        const timeToAcceptTransport = this.timeToAcceptTransport;\n        const intervalValue = timeToAcceptTransport.substring(0, timeToAcceptTransport.length - 1);\n        const intervalUnit = timeToAcceptTransport.substring(timeToAcceptTransport.length - 1);\n        const expectedConfirmationDate = moment(new Date()).add(intervalValue, intervalUnit).toDate();\n        const expectedConfirmationTime = moment(expectedConfirmationDate).format('HH:mm');\n        const carrierMustAcceptTransport = true;\n        const transaction = this.store.createRecord('transaction', {\n          transport: this.transport,\n          expectedConfirmationDate,\n          expectedConfirmationTime,\n          carrierMustAcceptTransport,\n          autoRouteOfferPass: true\n        });\n        transaction.save().then(() => {\n          console.log('Proces automatycznego przekazywania do przewoźników rozpoczęty');\n        }).catch(response => {\n          console.error('Wystąpił błąd przy starcie automatycznego przekazywania :: ' + response.errors);\n          alert(response.errors);\n          transaction.destroyRecord();\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transaction/auto-transaction-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"H7ByZfp2\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"dataButtonName\\\",\\\"disabled\\\",\\\"style\\\",\\\"onConfirm\\\"],[\\\"btn btn-sm vertical-margin-small\\\",[27,\\\"t\\\",[\\\"transaction.autoPassConfirmation\\\"],null],\\\"auto-pass-transfer-button\\\",[23,[\\\"disableAutoPassButton\\\"]],[27,\\\"if\\\",[[23,[\\\"disableAutoPassButton\\\"]],\\\"background-color:lightgray;\\\",\\\"background-color:orange;color:snow;\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"createTransactionAndStartAutoPass\\\"],null]]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"t\\\",[\\\"transaction.autoPass\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transaction/auto-transaction-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transaction/courier-transaction-button/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    actions: {\n      createTransactionAndOpenChooseCourierModal() {\n        console.log('Przygotowujemy i pokazujemy okienko wyboru kuriera...');\n        this.get('transport').reload().then(() => {\n          const transport = this.get('transport');\n          const steps = transport.get('steps');\n          const courierPricings = transport.get('courierPricings');\n          const firstLoadStep = steps.find(s => s.stepTypeName === 'load' && s.orderInTransport === 0);\n          const lastUnloadStep = steps.find(s => s.stepTypeName === 'unload' && s.orderInTransport === steps.length - 1);\n          const courierDate = moment(firstLoadStep.get('minAdviceDate')).format('YYYY-MM-DD');\n          const courierHourMin = moment(firstLoadStep.get('minAdviceDate')).format('HH:mm');\n          const courierHourMax = moment(firstLoadStep.get('maxAdviceDate')).format('HH:mm');\n          const transaction = this.get('store').createRecord('transaction', {\n            transport\n          });\n          this.set('action', 'showModal');\n          const services = [];\n          const couriers = [];\n          courierPricings.forEach(it => {\n            if (it.get('enabled') === true && it.get('pricingSuccesses').length > 0) {\n              couriers.push(it.courierCompany);\n            }\n\n            it.pricingSuccesses.forEach(success => services.push(success));\n          });\n          const model = {\n            transaction,\n            courierDate,\n            courierHourMin,\n            courierHourMax,\n            loadCity: firstLoadStep.get('address.city'),\n            unloadCity: lastUnloadStep.get('address.city'),\n            couriers,\n            services\n          };\n          this.sendAction('action', 'transaction.modals.choose-courier', model);\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transaction/courier-transaction-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"q3ZcmRRz\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-sm vertical-margin-small\\\"],[12,\\\"data-loading-text\\\",[28,[[27,\\\"t\\\",[\\\"common.pleaseWait\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"transfer-button\\\"],[12,\\\"style\\\",[23,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]]],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"transaction.courier\\\"],null],false],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[22,0,[]],\\\"createTransactionAndOpenChooseCourierModal\\\"]],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transaction/courier-transaction-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transaction/create-transaction-button/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    TIME_TO_ACCEPT_TRANSPORT_INTERVAL: '3h',\n    timeToAcceptTransport: Ember.computed('', function () {\n      const setting = this.get('sessionAccount').getSettingValue('TIME_TO_ACCEPT_TRANSPORT_INTERVAL');\n      return setting || this.TIME_TO_ACCEPT_TRANSPORT_INTERVAL;\n    }),\n    actions: {\n      createTransactionAndOpenChooseCarrierModal() {\n        console.log('Przygotowujemy i pokazujemy okienko wyboru przewoźnika...');\n        const self = this;\n        const transportType = this.get('transport.transportType');\n        const transactionSetting = this.get('sessionAccount').getTransactionSetting(transportType);\n        let currency;\n\n        if (this.get('offer.auction')) {\n          currency = this.get('offer.auction.currency');\n        } else {\n          const symbol = transactionSetting ? transactionSetting.get('defaultCurrency') : 'PLN';\n          currency = this.get('store').peekAll('currency').filterBy('symbol', symbol).get('firstObject');\n        }\n\n        const principalCompanyId = localStorage.getItem('principalId');\n        const timeToAcceptTransport = this.get('timeToAcceptTransport');\n        const intervalValue = timeToAcceptTransport.substring(0, timeToAcceptTransport.length - 1);\n        const intervalUnit = timeToAcceptTransport.substring(timeToAcceptTransport.length - 1);\n        const expectedConfirmationDate = moment(new Date()).add(intervalValue, intervalUnit).toDate();\n        const expectedConfirmationTime = moment(expectedConfirmationDate).format('HH:mm');\n        const carrierMustAcceptTransport = transactionSetting ? transactionSetting.get('requireCarrierConfirmation') : true;\n        const carrierAutoAcceptsTransport = transactionSetting ? transactionSetting.get('carrierAutoAcceptsTransport') : false;\n        const transaction = this.get('store').createRecord('transaction', {\n          transport: this.get('transport'),\n          carrier: this.get('offer.company'),\n          price: this.get('offer.price'),\n          currency,\n          expectedConfirmationDate,\n          carrierMustAcceptTransport,\n          carrierAutoAcceptsTransport,\n          notTheBestOffer: this.get('notTheBestOffer')\n        });\n        this.set('action', 'showModal');\n        self.get('store').query('company', {\n          principalCompanyId,\n          transportId: self.get('transport.id'),\n          partnershipTypesNames: ['CARRIER', 'OPERATOR'],\n          statuses: ['NO_INVITATION', 'ACCEPTED', 'UPDATED', 'BLOCKED', 'CREATED_FROM_API']\n        }).then(carriers => {\n          const model = {\n            transaction,\n            expectedConfirmationTime,\n            expectedConfirmationDate,\n            carriers,\n            disabledEdition: self.get('disabledEdition')\n          };\n          self.sendAction('action', 'transaction.modals.choose-carrier', model);\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transaction/create-transaction-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"YcablKH6\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-sm vertical-margin-small\\\"],[12,\\\"data-loading-text\\\",[28,[[27,\\\"t\\\",[\\\"common.pleaseWait\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"transfer-button\\\"],[12,\\\"style\\\",[23,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]]],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"transaction.pass\\\"],null],false],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[22,0,[]],\\\"createTransactionAndOpenChooseCarrierModal\\\"]],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transaction/create-transaction-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport-and-deliveries-custom-fields/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    deliveriesCfs: Ember.computed('deliveries', function () {\n      const dcfs = this.get('deliveries').getEach('customFieldPairs');\n      return dcfs.flat().sortBy('idx');\n    }),\n    currentTransportCf: Ember.computed('transportCfPairs', function () {\n      const currentDefinition = this.get('definition');\n      return this.get('transportCfPairs').find(tcfp => tcfp.get('definition.id') === currentDefinition.id);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport-and-deliveries-custom-fields/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"e7teQCXn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"pair\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"definition\\\",\\\"visibleInDelivery\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"deliveriesCfs\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"definition\\\",\\\"id\\\"]],[23,[\\\"definition\\\",\\\"id\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"custom-field-value-formatted\\\",null,[[\\\"definition\\\",\\\"value\\\"],[[22,1,[\\\"definition\\\"]],[22,1,[\\\"value\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[1,[27,\\\"custom-field-value-formatted\\\",null,[[\\\"definition\\\",\\\"value\\\"],[[23,[\\\"currentTransportCf\\\",\\\"definition\\\"]],[23,[\\\"currentTransportCf\\\",\\\"value\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport-and-deliveries-custom-fields/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport-costs-string/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: 'div',\n    surcharges: Ember.computed('transport.surchargeValues', function () {\n      return this.get('transport.surchargeValues');\n    }),\n    transactionCurrency: Ember.computed('transport.transaction.currency', function () {\n      return this.get('transport.transaction.currency');\n    }),\n    transactionPrice: Ember.computed('transport.transaction.price', function () {\n      return this.get('transport.transaction.price');\n    }),\n\n    /**\n     * Koszty i przypisana do transportu transakcja mogą być w róznych walutach.\n     * Funkcja zwraca mapę walut wszystkich użytych kosztów wraz z sumami wartości (value * currency)\n     * przypisanych do nich kosztów np.: {EUR -> 123, PLN -> 500, USD -> 1000}\n     * */\n    sum: Ember.computed('surcharges.@each.{price,quantity,currencySymbol}', 'transactionPrice', 'transactionCurrency.symbol', function () {\n      const array = Ember.A([this.get('transactionCurrency.symbol'), this.surcharges.map(s => {\n        return s.get('currencySymbol');\n      })]).flat();\n\n      if (!array) {\n        return;\n      }\n\n      const currenciesValues = new Map();\n      array.forEach(symbol => {\n        if (!symbol) {\n          return;\n        }\n\n        let cost = 0;\n        this.surcharges.filter(s => {\n          return s.get('currencySymbol') === symbol;\n        }).forEach(s => {\n          if (Number(s.get('value'))) {\n            cost += Number(s.get('value')) * Number(s.get('quantity'));\n          }\n        });\n\n        if (this.get('transactionCurrency.symbol') === symbol && Number(this.get('transactionPrice'))) {\n          cost += Number(this.get('transactionPrice'));\n        }\n\n        if (cost) {\n          currenciesValues.set(symbol.toString(), cost);\n        }\n      });\n      return currenciesValues;\n    }),\n    sumString: Ember.computed('sum', function () {\n      const array = Ember.A(Array.from(this.get('sum'), ([key, value]) => ({\n        key,\n        value\n      })));\n\n      if (!array) {\n        return '';\n      }\n\n      return array.map(item => {\n        return `${item.value} ${item.key}`;\n      }).toString();\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport-costs-string/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"VMW2UiF1\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"braced\\\"]]],null,{\\\"statements\\\":[[0,\\\"(\\\"]],\\\"parameters\\\":[]},null],[1,[21,\\\"sumString\\\"],false],[4,\\\"if\\\",[[23,[\\\"braced\\\"]]],null,{\\\"statements\\\":[[0,\\\")\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport-costs-string/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport-modal-header/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    showAddressData: Ember.computed('asPlainTemplate', function () {\n      return this.get('asPlainTemplate') && this.get('sessionAccount').getSettingValue('SHOW_PRINCIPAL_ADDRESS_IN_PRINT_VIEW') === 'true';\n    }),\n    otherRelatedTransports: Ember.computed('transport.allCombinedTransports', function () {\n      return this.get('transport.allCombinedTransports').slice().removeObject(this.get('transport'));\n    }),\n    actions: {\n      showModal: function (transport) {\n        this.set('action', 'showModal');\n        this.sendAction('action', transport);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport-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\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"oF80kB51\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-10 no-padding\\\"],[12,\\\"data-field-name\\\",[28,[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"alias\\\"]]]]],[9],[0,\\\"\\\\n    \\\"],[1,[23,[\\\"transport\\\",\\\"title\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"        #\\\"],[1,[23,[\\\"transport\\\",\\\"internalIndex\\\"]],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"small\\\"],[12,\\\"data-transport-id\\\",[28,[[23,[\\\"transport\\\",\\\"id\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.createdMessage\\\"],[[\\\"date\\\",\\\"person\\\",\\\"company\\\"],[[27,\\\"my-format-date\\\",[[23,[\\\"transport\\\",\\\"dateCreated\\\"]],\\\"defaultDateTime\\\"],null],[23,[\\\"transport\\\",\\\"creator\\\",\\\"name\\\"]],[23,[\\\"transport\\\",\\\"creator\\\",\\\"company\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"originalTransportId\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.createdAsCopy\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"transport\\\",\\\"originalTransportId\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"routeTemplate\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.createdFromRoute\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"transport\\\",\\\"routeTemplate\\\",\\\"id\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"isCombinedTransport\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"related-to-labels\\\",null,[[\\\"transports\\\",\\\"title\\\"],[[23,[\\\"otherRelatedTransports\\\"]],[27,\\\"t\\\",[\\\"transport.isCombinedTransport\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"hasToWaitRelations\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"related-to-labels-has-to-wait\\\",null,[[\\\"transport\\\"],[[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"periodicTransportInternalIndex\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"small\\\"],[12,\\\"data-transport-id\\\",[28,[[23,[\\\"transport\\\",\\\"id\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.periodicTransportMessage\\\"],[[\\\"periodicTransportInternalIndex\\\"],[[23,[\\\"transport\\\",\\\"periodicTransportInternalIndex\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showAddressData\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"small\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"transport\\\",\\\"principalCompany\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"transport\\\",\\\"principalCompany\\\",\\\"headquarter\\\",\\\"toAddressString\\\"]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"company.taxIdNumber\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"transport\\\",\\\"principalCompany\\\",\\\"taxIdNumber\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        : \\\"],[1,[27,\\\"t\\\",[\\\"common.plan\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport-modal-header/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport-modal/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    actions: {\n      close: function () {\n        this.set('action', 'hideModal');\n        this.sendAction('action');\n      },\n      showModal: function (transport) {\n        this.set('action', 'showModal');\n        this.sendAction('action', 'transports.modals.create-transport', transport);\n      } // Za pokazanie okienka będzie odpowiedzialny komponent `custom-modal/controller.js`\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport-modal/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Jd8sy8xZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"bold col-xs-12\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"transport-modal-header\\\",null,[[\\\"transport\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"asPlainTemplate\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"classNames\\\",\\\"allowDraggable\\\",\\\"yieldWithLayout\\\",\\\"cancel\\\"],[\\\"transport-modal\\\",false,false,[23,[\\\"actionAfterClickCancelButton\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-header\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"bold col-xs-12\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"transport-modal-header\\\",null,[[\\\"transport\\\"],[[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-times pull-right clickable\\\"],[11,\\\"data-button-name\\\",\\\"close\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-body\\\"],[9],[0,\\\"\\\\n            \\\"],[14,1],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport-modal/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport-row-delivery-innvoice/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({});\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport-row-delivery-innvoice/delivery-invoice-data/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    modalService: Ember.inject.service('modal-service'),\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    showInfo: Ember.computed('{delivery.freightCost,invoiceNumber}', function () {\n      const cost = this.get('delivery.freightCost');\n      return cost && cost >= 0 || !!this.get('delivery.invoiceNumber');\n    }),\n    canEditInvoice: Ember.computed('delivery.transportType.id', function () {\n      return this.authorityCheckerService.findPositiveAuthorityRestrictionsByActionType('ROLE_EDIT_DELIVERY_INVOICE_DATA', this.get('delivery.transportType.id'));\n    }),\n    actions: {\n      editInvoice: function (delivery) {\n        this.get('modalService').showModal(this.get('modalService').MODALS.DELIVERIES.EDIT_INVOICE, delivery);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport-row-delivery-innvoice/delivery-invoice-data/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"nUIodUdJ\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showInfo\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[23,[\\\"delivery\\\",\\\"invoiceNumber\\\"]],false],[0,\\\"\\\\n        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-circle-info\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[5,\\\"ember-tooltip\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[27,\\\"show-delivery-invoice-details\\\",null,[[\\\"delivery\\\"],[[23,[\\\"delivery\\\"]]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canEditInvoice\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"clickable\\\"],[11,\\\"data-button-name\\\",\\\"edit-price-button\\\"],[9],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[9],[10],[3,\\\"action\\\",[[22,0,[]],\\\"editInvoice\\\",[23,[\\\"delivery\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport-row-delivery-innvoice/delivery-invoice-data/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport-row-delivery-innvoice/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"uqyDMjeb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"delivery\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"deliveries\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"components/transport-row-delivery-innvoice/delivery-invoice-data\\\",null,[[\\\"delivery\\\"],[[22,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport-row-delivery-innvoice/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport-row-invoice-data/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    shouldShowInvoiceModal: false,\n    canAddInvoiceData: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_CAN_ADD_INVOICE_IN_TRANSACTION');\n    }),\n    canEditInvoiceData: Ember.computed(function () {\n      const actionName = 'ROLE_CAN_EDIT_INVOICE_IN_TRANSACTION';\n      const transport = this.get('transaction').get('transport');\n      return this.get('authorityCheckerService').actionCanBePerformed(actionName, transport);\n    }),\n    shouldShowInvoiceData: Ember.computed('transaction.invoiceNumber', function () {\n      return this.get('transaction').get('invoiceNumber');\n    }),\n\n    _setCurrency(transaction) {\n      const transportType = this.get('transaction.transport').get('transportType');\n      const transactionSetting = this.get('sessionAccount').getTransactionSetting(transportType);\n      const symbol = transactionSetting ? transactionSetting.get('defaultInvoiceCurrency') : 'PLN';\n      const currency = this.get('store').peekAll('currency').filterBy('symbol', symbol).get('firstObject');\n      transaction.set('invoiceCurrency', currency);\n    },\n\n    actions: {\n      toggleInvoiceFormModal() {\n        this.toggleProperty('shouldShowInvoiceModal');\n\n        if (this.get('shouldShowInvoiceModal')) {\n          this._setCurrency(this.get('transaction'));\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport-row-invoice-data/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"sri0nv8B\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transaction\\\",\\\"invoiceNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[9],[1,[23,[\\\"transaction\\\",\\\"invoiceNumber\\\"]],false],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[9],[1,[23,[\\\"transaction\\\",\\\"invoicePrice\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"transaction\\\",\\\"invoiceCurrency\\\",\\\"symbol\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canEditInvoiceData\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"clickable\\\"],[11,\\\"data-button-name\\\",\\\"edit-invoice-button\\\"],[9],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[9],[10],[3,\\\"action\\\",[[22,0,[]],\\\"toggleInvoiceFormModal\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"transaction\\\"]],[23,[\\\"canAddInvoiceData\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-sm margin-bottom\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.INVOICE\\\"],null],false],[0,\\\"\\\\n    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"toggleInvoiceFormModal\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"shouldShowInvoiceModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"modals/transaction-invoice-form\\\",null,[[\\\"transaction\\\",\\\"onClose\\\"],[[23,[\\\"transaction\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"toggleInvoiceFormModal\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport-row-invoice-data/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport-types-nav-header/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    showTransportTypeTransactionSettingTab: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_MANAGE_SETTINGS');\n    }),\n    showTransportTypeSettingsTab: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_MANAGE_TRANSPORT_TYPE');\n    }),\n    showTransportTypeAuctionSettingTab: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_MANAGE_AUCTION_SETTINGS');\n    }),\n    showCustomFieldSettingsTab: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_CREATE_CUSTOM_FIELD_DEFINITIONS');\n    }),\n    showPriceListSettings: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_MANAGE_PRICE_LIST_SETTINGS');\n    }),\n    showDeliverySettings: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_MANAGE_DELIVERY_SETTINGS');\n    }),\n    showIndexSettings: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_MANAGE_INDEX_SETTINGS');\n    }),\n    showPackageTypeTransportTypeSettingTab: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_MANAGE_PACKAGE_TYPE_TRANSPORT_TYPE') && this.get('sessionAccount').getSettingValue('PACKAGE_TYPES_FEATURE_ENABLED') === 'true';\n    }),\n    transportType: Ember.computed('model.transportType.id', function () {\n      return this.get('model.transportType');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport-types-nav-header/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"KbfywEtR\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"workflows.edit\\\",[23,[\\\"workflow\\\",\\\"id\\\"]]],[[\\\"class\\\",\\\"data-button-name\\\"],[\\\"btn btn-info margin-bottom-small\\\",\\\"transport-type-workflow\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.workflow\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showCustomFieldSettingsTab\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"transport-types.edit\\\",[23,[\\\"transportType\\\",\\\"id\\\"]]],[[\\\"class\\\",\\\"data-button-name\\\"],[\\\"btn btn-info margin-bottom-small\\\",\\\"fields-settings\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.settingsFields\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showTransportTypeSettingsTab\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"transport-types.settings\\\",[23,[\\\"transportType\\\",\\\"id\\\"]]],[[\\\"class\\\",\\\"data-button-name\\\"],[\\\"btn btn-info margin-bottom-small\\\",\\\"transport-type-settings\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settings\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showTransportTypeTransactionSettingTab\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"transport-types.transaction-settings\\\",[23,[\\\"transportType\\\",\\\"id\\\"]]],[[\\\"class\\\",\\\"data-button-name\\\"],[\\\"btn btn-info margin-bottom-small\\\",\\\"transaction-setting\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.transactionSetting\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showTransportTypeAuctionSettingTab\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"transport-types.auction-settings\\\",[23,[\\\"transportType\\\",\\\"id\\\"]]],[[\\\"class\\\",\\\"data-button-name\\\"],[\\\"btn btn-info margin-bottom-small\\\",\\\"auction-setting\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.auctionSetting\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showPackageTypeTransportTypeSettingTab\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"transport-types.package-type-settings\\\",[23,[\\\"transportType\\\",\\\"id\\\"]]],[[\\\"class\\\",\\\"data-button-name\\\"],[\\\"btn btn-info margin-bottom-small\\\",\\\"package-type-settings\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.packageTypeSettings\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showPriceListSettings\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"transport-types.price-list-settings\\\",[23,[\\\"transportType\\\",\\\"id\\\"]]],[[\\\"class\\\",\\\"data-button-name\\\"],[\\\"btn btn-info margin-bottom-small\\\",\\\"price-list-settings\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"priceListSetting.label\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showDeliverySettings\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"transport-types.delivery-settings\\\",[23,[\\\"transportType\\\",\\\"id\\\"]]],[[\\\"class\\\",\\\"data-button-name\\\"],[\\\"btn btn-info margin-bottom-small\\\",\\\"delivery-settings\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"deliverySettings.label\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showIndexSettings\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"transport-types.index-settings\\\",[23,[\\\"transportType\\\",\\\"id\\\"]]],[[\\\"class\\\",\\\"data-button-name\\\"],[\\\"btn btn-info margin-bottom-small\\\",\\\"index-settings\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"indexSettings.label\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_SUPER_USER\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"transport-types.courier-settings\\\",[23,[\\\"transportType\\\",\\\"id\\\"]]],[[\\\"class\\\",\\\"data-button-name\\\"],[\\\"btn btn-info margin-bottom-small\\\",\\\"courier-settings\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"courierSettings.label\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"transport-types.cmr-settings\\\",[23,[\\\"transportType\\\",\\\"id\\\"]]],[[\\\"class\\\",\\\"data-button-name\\\"],[\\\"btn btn-info margin-bottom-small\\\",\\\"cmr-settings\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"cmrSettings.label\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"transport-types.artr-settings\\\",[23,[\\\"transportType\\\",\\\"id\\\"]]],[[\\\"class\\\",\\\"data-button-name\\\"],[\\\"btn btn-info margin-bottom-small\\\",\\\"artr-settings\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"artrSettings.label\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"transport-types.schedule-settings\\\",[23,[\\\"transportType\\\",\\\"id\\\"]]],[[\\\"class\\\",\\\"data-button-name\\\"],[\\\"btn btn-info margin-bottom-small\\\",\\\"schedule-settings\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"transportTypeScheduleSettings.label\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"transport-types.transport-order-settings\\\",[23,[\\\"transportType\\\",\\\"id\\\"]]],[[\\\"class\\\",\\\"data-button-name\\\"],[\\\"btn btn-info margin-bottom-small\\\",\\\"transport-order-settings\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"transportOrderSettings.label\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport-types-nav-header/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport-types/package-type-settings-form/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    packageTypes: Ember.computed(function () {\n      return this.get('store').peekAll('packageType');\n    }),\n    actions: {\n      save() {\n        const pttt = this.get('packageTypeTransportType');\n\n        if (!pttt.validate()) {\n          return;\n        }\n\n        pttt.save().then(() => {\n          this.set('successMessage', this.get('intl').t('common.saveSuccessMessage'));\n        }).catch(response => {\n          this.set('errors', response.errors);\n        });\n      },\n\n      sendDelete() {\n        this.delete(this.get('packageTypeTransportType'));\n      },\n\n      sendCancel() {\n        this.cancel(this.get('packageTypeTransportType'));\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport-types/package-type-settings-form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"sMMOh2TK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"pt\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal section\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"referencePackage\\\",\\\"id\\\"]],[27,\\\"eq\\\",[[23,[\\\"packageTypeTransportType\\\",\\\"packageType\\\",\\\"id\\\"]],[23,[\\\"referencePackage\\\",\\\"id\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-12\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-info text-center\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"packageTypes.transportTypes.referencePackage\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"packageTypes.transportTypes.transportType\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-9 \\\",[27,\\\"if\\\",[[23,[\\\"packageTypeTransportType\\\",\\\"errors\\\",\\\"transportType\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"packageTypeTransportType\\\",\\\"transportType\\\",\\\"nameInAppropriateLanguage\\\"]],true]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"packageTypeTransportType\\\"]],\\\"transportType\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"packageTypes.transportTypes.packageType\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-9 \\\",[27,\\\"if\\\",[[23,[\\\"packageTypeTransportType\\\",\\\"errors\\\",\\\"packageType\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"packageTypeTransportType\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"packageTypes.\\\",[23,[\\\"packageTypeTransportType\\\",\\\"packageType\\\",\\\"name\\\"]],\\\".label\\\"],null]],null],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"packageTypeTransportType\\\",\\\"packageType\\\"]]],null],[23,[\\\"packageTypes\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"packageTypeTransportType\\\",\\\"packageType\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"packageTypes.\\\",[22,1,[\\\"name\\\"]],\\\".label\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"packageTypeTransportType\\\"]],\\\"packageType\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"packageTypes.transportTypes.multiplier\\\"],[[\\\"package\\\",\\\"referencePackage\\\"],[[27,\\\"if\\\",[[23,[\\\"packageTypeTransportType\\\",\\\"packageType\\\"]],[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"transport.quantities.\\\",[23,[\\\"packageTypeTransportType\\\",\\\"packageType\\\",\\\"name\\\"]]],null]],null],\\\"?\\\"],null],[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"packageTypes.\\\",[23,[\\\"referencePackage\\\",\\\"name\\\"]],\\\".singular\\\"],null]],null]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-9 \\\",[27,\\\"if\\\",[[23,[\\\"packageTypeTransportType\\\",\\\"errors\\\",\\\"multiplier\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"packageTypeTransportType\\\",\\\"multiplier\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"packageTypeTransportType\\\"]],\\\"multiplier\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"packageTypes.transportTypes.defaultValue\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-9 \\\",[27,\\\"if\\\",[[23,[\\\"packageTypeTransportType\\\",\\\"errors\\\",\\\"defaultValue\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"packageTypeTransportType\\\",\\\"defaultValue\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"packageTypeTransportType\\\"]],\\\"defaultValue\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"packageTypes.transportTypes.minValue\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-9 \\\",[27,\\\"if\\\",[[23,[\\\"packageTypeTransportType\\\",\\\"errors\\\",\\\"minValue\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"packageTypeTransportType\\\",\\\"minValue\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"packageTypeTransportType\\\"]],\\\"minValue\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"packageTypes.transportTypes.idx\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-9 \\\",[27,\\\"if\\\",[[23,[\\\"packageTypeTransportType\\\",\\\"errors\\\",\\\"idx\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"packageTypeTransportType\\\",\\\"idx\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"packageTypeTransportType\\\"]],\\\"idx\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"packageTypes.transportTypes.required\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-9 \\\",[27,\\\"if\\\",[[23,[\\\"packageTypeTransportType\\\",\\\"errors\\\",\\\"required\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"packageTypeTransportType\\\",\\\"required\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"packageTypeTransportType\\\"]],\\\"required\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"packageTypes.transportTypes.visibleInContractorStep\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-9 \\\",[27,\\\"if\\\",[[23,[\\\"packageTypeTransportType\\\",\\\"errors\\\",\\\"visibleInContractorStep\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"packageTypeTransportType\\\",\\\"visibleInContractorStep\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"packageTypeTransportType\\\"]],\\\"visibleInContractorStep\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"packageTypes.transportTypes.visibleInWarehouseStep\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-9 \\\",[27,\\\"if\\\",[[23,[\\\"packageTypeTransportType\\\",\\\"errors\\\",\\\"visibleInWarehouseStep\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"packageTypeTransportType\\\",\\\"visibleInWarehouseStep\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"packageTypeTransportType\\\"]],\\\"visibleInWarehouseStep\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"packageTypes.transportTypes.visibleInLoadPackageQuantityInTransportTable\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-9 \\\",[27,\\\"if\\\",[[23,[\\\"packageTypeTransportType\\\",\\\"errors\\\",\\\"visibleInLoadPackageQuantityInTransportTable\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"packageTypeTransportType\\\",\\\"visibleInLoadPackageQuantityInTransportTable\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"packageTypeTransportType\\\"]],\\\"visibleInLoadPackageQuantityInTransportTable\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"packageTypes.transportTypes.visibleInUnloadPackageQuantityInTransportTable\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-9 \\\",[27,\\\"if\\\",[[23,[\\\"packageTypeTransportType\\\",\\\"errors\\\",\\\"visibleInUnloadPackageQuantityInTransportTable\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"packageTypeTransportType\\\",\\\"visibleInUnloadPackageQuantityInTransportTable\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"packageTypeTransportType\\\"]],\\\"visibleInUnloadPackageQuantityInTransportTable\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"packageTypes.transportTypes.referencePackageChkbox\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-9 \\\",[27,\\\"if\\\",[[23,[\\\"packageTypeTransportType\\\",\\\"errors\\\",\\\"referencePackage\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"packageTypeTransportType\\\",\\\"referencePackage\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"packageTypeTransportType\\\"]],\\\"referencePackage\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"packageTypes.transportTypes.usedForMaxPalletLimitChkbox\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-9 \\\",[27,\\\"if\\\",[[23,[\\\"packageTypeTransportType\\\",\\\"errors\\\",\\\"usedForMaxPalletLimit\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"packageTypeTransportType\\\",\\\"usedForMaxPalletLimit\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"packageTypeTransportType\\\"]],\\\"usedForMaxPalletLimit\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"packageTypeTransportType\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-danger\\\",[27,\\\"t\\\",[\\\"packageTypes.transportTypes.confirmDelete\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"sendDelete\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"sendCancel\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport-types/package-type-settings-form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/add-indexes-section/component\", [\"exports\", \"apollo/utils/parsers/numberParsers\"], function (_exports, _numberParsers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    indexesService: Ember.inject.service('indexes-service'),\n    overwritePreviousIndexes: Ember.computed('', function () {\n      return false;\n    }),\n    disableIndexActionName: Ember.computed('', function () {\n      return 'disableIndex';\n    }),\n    invalidIndexes: Ember.computed('transport.indexes.@each.hasErrors', function () {\n      return this.get('transport.indexes').filterBy('hasErrors');\n    }),\n    defaultMapping: Ember.computed('', function () {\n      return {\n        properties: {\n          globalNumber: 0,\n          localNumber: 1,\n          name: 2,\n          documentNumber: 6,\n          transportNumber: 7,\n          notes: 10\n        },\n        quantities: {\n          'Quantity': 3,\n          'Number of pallets': 8,\n          'Number of cartons': 9\n        }\n      };\n    }).readOnly(),\n    actions: {\n      handlePastedContent(pastedContent) {\n        const self = this;\n\n        if (!pastedContent || !pastedContent.trim()) {\n          return;\n        }\n\n        this.get('store').queryRecord('companyConfig', {\n          name: 'INDEXES_XLS_MAPPING'\n        }).then(config => {\n          const customMappingString = config.get('value');\n          const mapping = customMappingString ? JSON.parse(customMappingString) : self.get('defaultMapping');\n          self.send('importIndexes', pastedContent, mapping);\n        });\n      },\n\n      /** @namespace mapping.properties */\n\n      /** @namespace mapping.quantities */\n      importIndexes(pastedContent, mapping) {\n        const self = this;\n\n        if (!pastedContent || !pastedContent.trim()) {\n          return;\n        }\n\n        if (this.get('overwritePreviousIndexes')) {\n          this.get('transport.enabledIndexes').forEach(index => {\n            self.sendAction('disableIndexActionName', index);\n          });\n        }\n\n        const textMatrix = pastedContent.split(/\\r?\\n/).map(t => t.split('\\t'));\n        console.table(textMatrix);\n        const propertyNames = ['globalNumber', 'localNumber', 'name', 'documentNumber', 'transportNumber', 'notes'];\n        const propertyMapping = mapping.properties;\n        textMatrix.forEach(row => {\n          if (!row.filter(col => col.trim()).get('length')) {\n            console.debug('The row is empty. Skipping.');\n            return true;\n          }\n\n          const newIndex = this.get('store').createRecord('index', {\n            transport: this.get('transport'),\n            enabled: true\n          });\n          propertyNames.forEach(n => newIndex.set(n, row[propertyMapping[n]]));\n          this.get('transport.transportType.indexQuantityTypes').forEach(qt => {\n            const quantityIdx = mapping.quantities[qt.get('nameEn')];\n            const q = row[quantityIdx];\n            this.get('store').createRecord('indexQuantity', {\n              indexQuantityType: qt,\n              index: newIndex,\n              quantity: _numberParsers.default.getParsableNumber(q)\n            });\n          });\n          newIndex.validate();\n          newIndex.get('quantities').forEach(q => q.validate());\n          this.get('transport.indexes').addObject(newIndex);\n        });\n      },\n\n      addIndex() {\n        const newIndex = this.get('indexesService').addIndexToTransport(this.get('transport'), false);\n        this.set('action', 'showSubModal');\n        this.sendAction('action', 'indexes.modals.index-form', newIndex);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/add-indexes-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"M15/2EXK\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 text-right\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-inline margin-bottom\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"indexSetting\\\",\\\"showPasteFromExcel\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"indexes-paste-area\\\"],[11,\\\"class\\\",\\\"label-not-bold\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.indexes.pasteFromExcel\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"paste-area\\\",null,[[\\\"onPaste\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"handlePastedContent\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                [\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label-not-bold\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"overwritePreviousIndexes\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.indexes.overwritePreviousIndexes\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                ]\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"indexSetting\\\",\\\"showPasteFromExcel\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label-not-bold\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.or\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"add-index\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"index\\\",\\\"add\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addIndex\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/add-indexes-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/advice-date-restrictions-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n\n    init() {\n      this._super(...arguments);\n\n      const step = this.get('step');\n\n      if (step.get('warehouse.content') !== null) {\n        return;\n      }\n\n      const isExistingTransport = step.get('transport.id');\n\n      if (isExistingTransport) {\n        return;\n      }\n\n      const tt = step.get('transport').get('transportType') ? step.get('transport').get('transportType') : this.get('transportType');\n      let defaultStartHour = tt.get('defaultLoadStepStartHour');\n      let defaultEndHour = tt.get('defaultLoadStepEndHour'); // Defaultowo ustawialiśmy 00:00, po dodaniu tych nowych ustawień,\n      // jeśli jakiś klient tego nie uzupełni, dalej powinien mieć 00:00\n\n      if (defaultStartHour === '' || defaultStartHour === null || defaultStartHour === undefined) {\n        defaultStartHour = '00:00';\n      }\n\n      if (defaultEndHour === '' || defaultEndHour === null || defaultEndHour === undefined) {\n        defaultEndHour = '00:00';\n      }\n\n      const startTimeArray = defaultStartHour.split(':');\n      const endTimeArray = defaultEndHour.split(':');\n      const startHour = Number(startTimeArray[0]);\n      const startMinute = Number(startTimeArray[1]);\n      const endHour = Number(endTimeArray[0]);\n      const endMinute = Number(endTimeArray[1]);\n      const newStartDate = moment(this.get('step.minAdviceDate')).set('hour', startHour).set('minute', startMinute);\n      const newEndDate = moment(this.get('step.maxAdviceDate')).set('hour', endHour).set('minute', endMinute);\n      Ember.run.next(() => {\n        step.set('minAdviceDate', new Date(newStartDate));\n        step.set('maxAdviceDate', new Date(newEndDate));\n      });\n    },\n\n    timeWindowOffsetInterval: function () {\n      return this.get('step.warehouse.timeWindowOffsetInterval') ? this.get('step.warehouse.timeWindowOffsetInterval') : 15;\n    }.property('step.warehouse.id'),\n    formattedMinAdviceDate: Ember.computed('step.minAdviceDate', function () {\n      return moment(this.get('step').get('minAdviceDate')).format('YYYY-MM-DD HH:mm');\n    }),\n    formattedMaxAdviceDate: Ember.computed('step.maxAdviceDate', function () {\n      return moment(this.get('step').get('maxAdviceDate')).format('YYYY-MM-DD HH:mm');\n    }),\n    warehouseOpenHoursMinAdviceDateObserver: Ember.observer('step.warehouse', function () {\n      this.adjustAdviceRestrictionHour('step.minAdviceDate', 'workStartHour');\n    }),\n    warehouseOpenHoursMaxAdviceDateObserver: Ember.observer('step.warehouse', function () {\n      this.adjustAdviceRestrictionHour('step.maxAdviceDate', 'workEndHour');\n    }),\n    adjustAdviceRestrictionHour: function (dateName, warehousePropertyName) {\n      const currentAdviceDate = this.get(dateName);\n\n      if (!currentAdviceDate || !this.get('step.warehouse.id')) {\n        return;\n      }\n\n      const currentAdviceHour = moment(currentAdviceDate).hours();\n      const warehouseStart = this.get('step.warehouse.workStartHour');\n      const warehouseEnd = this.get('step.warehouse.workEndHour');\n\n      if (warehouseStart <= currentAdviceHour && currentAdviceHour <= warehouseEnd) {\n        return;\n      }\n\n      const correctHour = this.get(`step.warehouse.${warehousePropertyName}`);\n      const correctDate = moment(currentAdviceDate).hours(correctHour).toDate();\n      this.set(dateName, correctDate);\n    },\n    actions: {\n      setMinAdviceDate(step, dateValues) {\n        Ember.run.next(() => {\n          const oldMinAdviceDate = step.get('minAdviceDate');\n          const oldMaxAdviceDate = step.get('maxAdviceDate');\n          const newMinAdviceDate = dateValues[0];\n          let newMaxAdviceDate = null;\n\n          if (oldMinAdviceDate) {\n            const difference = newMinAdviceDate.getTime() - oldMinAdviceDate.getTime();\n            newMaxAdviceDate = moment(oldMaxAdviceDate.getTime() + difference);\n          } else {\n            newMaxAdviceDate = moment(newMinAdviceDate).add(1, 'days');\n          }\n\n          step.set('minAdviceDate', newMinAdviceDate);\n          step.set('maxAdviceDate', new Date(newMaxAdviceDate));\n        });\n      },\n\n      setMaxAdviceDate(step, dateValues) {\n        Ember.run.next(() => {\n          step.set('maxAdviceDate', dateValues[0]);\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/advice-date-restrictions-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ySZwIzoa\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"planningView\\\"]],\\\"form-group small-margin-form-group row\\\",[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-6\\\",\\\"col-xs-12 col-md-6\\\"],null]],null],\\\" \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"minAdviceDate\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"planningView\\\"]],\\\"col-md-5 col-xs-12 control-label\\\",[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-3\\\",\\\"col-md-2 col-xs-12\\\"],null]],null],\\\" control-label no-left-padding padding-right-small text-right\\\"]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"planningView\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"delivery.step.minAdviceDate\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"common.from\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"transport\\\",\\\"disabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"planningView\\\"]],\\\"col-md-7 col-xs-12\\\",[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-9\\\",\\\"col-md-10 col-xs-12\\\"],null]],null],\\\" no-padding\\\"]]],[12,\\\"data-field-name\\\",[28,[\\\"time-range-from-date-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\",\\\"disabled\\\"],[[23,[\\\"formattedMinAdviceDate\\\"]],\\\"text\\\",\\\"form-control\\\",[23,[\\\"step\\\",\\\"transport\\\",\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"planningView\\\"]],\\\"col-md-7 col-xs-12\\\",[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-9 no-padding\\\",\\\"col-md-10 col-xs-12 no-padding\\\"],null]],null],\\\"  step-flatpickr\\\"]]],[12,\\\"data-field-name\\\",[28,[\\\"time-range-from-date-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"disabled\\\",\\\"formatType\\\",\\\"class\\\",\\\"nativeFlatpickrOptions\\\"],[[27,\\\"or\\\",[[27,\\\"readonly\\\",[[23,[\\\"step\\\",\\\"minAdviceDate\\\"]]],null],null],null],[27,\\\"action\\\",[[22,0,[]],\\\"setMinAdviceDate\\\",[23,[\\\"step\\\"]]],null],[23,[\\\"disabled\\\"]],\\\"defaultDateTime\\\",\\\"form-control\\\",[27,\\\"hash\\\",null,[[\\\"minuteIncrement\\\",\\\"static\\\",\\\"enableTime\\\"],[[23,[\\\"timeWindowOffsetInterval\\\"]],false,true]]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"minAdviceDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 col-md-10 col-md-offset-2 no-padding no-vertical-margin\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"step\\\"]],\\\"minAdviceDate\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"planningView\\\"]],\\\"form-group small-margin-form-group row\\\",[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-6\\\",\\\"col-xs-12 col-md-6\\\"],null]],null],\\\" \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"maxAdviceDate\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"planningView\\\"]],\\\"col-md-5 col-xs-12 control-label\\\",[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-3\\\",\\\"col-md-2 col-xs-12\\\"],null]],null],\\\" control-label no-left-padding padding-right-small text-right\\\"]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"planningView\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"delivery.step.maxAdviceDate\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"common.from\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"transport\\\",\\\"disabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"planningView\\\"]],\\\"col-md-7 col-xs-12\\\",[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-9\\\",\\\"col-md-10 col-xs-12\\\"],null]],null],\\\" no-padding\\\"]]],[12,\\\"data-field-name\\\",[28,[\\\"time-range-to-date-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\",\\\"disabled\\\"],[[23,[\\\"formattedMaxAdviceDate\\\"]],\\\"text\\\",\\\"form-control\\\",[23,[\\\"step\\\",\\\"transport\\\",\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"planningView\\\"]],\\\"col-md-7 col-xs-12\\\",[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-9 no-padding\\\",\\\"col-md-10 col-xs-12 no-padding\\\"],null]],null],\\\"  step-flatpickr\\\"]]],[12,\\\"data-field-name\\\",[28,[\\\"time-range-to-date-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"disabled\\\",\\\"formatType\\\",\\\"class\\\",\\\"nativeFlatpickrOptions\\\"],[[27,\\\"or\\\",[[27,\\\"readonly\\\",[[23,[\\\"step\\\",\\\"maxAdviceDate\\\"]]],null],null],null],[27,\\\"action\\\",[[22,0,[]],\\\"setMaxAdviceDate\\\",[23,[\\\"step\\\"]]],null],[23,[\\\"disabled\\\"]],\\\"defaultDateTime\\\",\\\"form-control\\\",[27,\\\"hash\\\",null,[[\\\"minuteIncrement\\\",\\\"static\\\",\\\"enableTime\\\"],[[23,[\\\"timeWindowOffsetInterval\\\"]],false,true]]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"maxAdviceDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 col-md-10 col-md-offset-2 no-padding no-vertical-margin\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"step\\\"]],\\\"maxAdviceDate\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/advice-date-restrictions-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/contractor-section/component\", [\"exports\", \"apollo/mixins/form-utils-mixin\"], function (_exports, _formUtilsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_formUtilsMixin.default, {\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    // Default values.\n    companyType: 'CARRIER',\n    propertyName: 'carrierCompany',\n    propertyNameForError: 'carrierCompany',\n    label: Ember.computed('companyType', 'transport.transportType.name', function () {\n      const companyType = this.get('companyType');\n      const transportTypeAlias = this.get('transport.transportType.alias');\n      const translationKey = this.get('transport').get('transportType.supplierFieldTranslationKey');\n      const key = `company.type.${companyType}.${translationKey || transportTypeAlias}`;\n      let fallbackKey;\n\n      if (companyType === 'SERVICEMAN') {\n        fallbackKey = 'company.type.SERVICE';\n      } else fallbackKey = `company.type.${companyType}`;\n\n      return this.get('intl').t(key, {\n        default: fallbackKey\n      });\n    }),\n    contractor: Ember.computed('transport.{carrierCompany,serviceCompany,firstContractor,contractorSteps.firstObject.company}', 'propertyName', function () {\n      if (!this.get('transport')) {\n        return null;\n      }\n\n      return this.get('transport').get(this.get('propertyName'));\n    }),\n    editionDisabled: Ember.computed('transport.{canBeUpdated,carrierCompanyChooser.company.id}', 'currentUser.roleGroup.name', function () {\n      const companyTypeName = this.get('currentUser.company.typeName');\n\n      if (this.get('companyType') === companyTypeName) {\n        return true;\n      }\n\n      if (this.get('companyType') === 'CARRIER' || this.get('companyType') === 'OPERATOR') {\n        return !this.get('transport').actionCanBePerformed('UPDATE_CARRIER_COMPANY_FIELD');\n      }\n\n      const carrierChooserCompanyId = this.get('transport.carrierCompanyChooser.company.id');\n\n      if (carrierChooserCompanyId && carrierChooserCompanyId !== this.get('currentUser.company.id')) {\n        return true;\n      }\n\n      return !this.get('transport.canBeUpdated');\n    }),\n    noPartnershipWarning: Ember.computed('currentUser.company.myPartnerships.length', function () {\n      return !this.get('currentUser.company.isPrincipal') && this.get('currentUser.company.myPartnerships.length') === 0;\n    }),\n    step: Ember.computed('transport.steps.[]', function () {\n      return this.get('transport.steps').get('firstObject');\n    }),\n    actions: {\n      setContractorCompanyData(step, item) {\n        const self = this;\n        this.get('store').findRecord('company', item.id).then(company => {\n          const transport = self.get('transport');\n          const oldCompany = transport.get(self.get('propertyName'));\n\n          if (this.get('companyType') === 'SUPPLIER') {\n            self.get('step').set('company', company);\n            self.get('step').set('companyGroup', null);\n          }\n\n          if (transport.checkIfEditionViolatesPeriodicTransportRules(oldCompany, company)) {\n            alert(this.get('intl').t('periodicTransport.cannotChangeCompany'));\n            transport.set(self.get('propertyName'), oldCompany);\n            return;\n          }\n\n          transport.set(self.get('propertyName'), company);\n        });\n      },\n\n      removeContractorCompany() {\n        console.log(`Removing ${this.get('propertyName')} from transport..`);\n        this.get('transport').set(this.get('propertyName'), null);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/contractor-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Sgn4S+xC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"country\\\",\\\"result\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[27,\\\"get\\\",[[23,[\\\"transport\\\",\\\"errors\\\"]],[23,[\\\"propertyNameForError\\\"]]],null],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12 control-label\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n        \\\"],[1,[21,\\\"label\\\"],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[12,\\\"data-field-name\\\",[28,[[21,\\\"companyType\\\"]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"editionDisabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"input\\\"],[11,\\\"class\\\",\\\"form-control\\\"],[12,\\\"value\\\",[28,[[23,[\\\"contractor\\\",\\\"name\\\"]]]]],[11,\\\"disabled\\\",\\\"\\\"],[11,\\\"title\\\",\\\"\\\"],[11,\\\"type\\\",\\\"text\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-9 no-padding\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"company-auto-complete\\\",null,[[\\\"inputClass\\\",\\\"type\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"clearSelection\\\"],[\\\"dummy\\\",[23,[\\\"companyType\\\"]],[27,\\\"readonly\\\",[[23,[\\\"contractor\\\",\\\"name\\\"]]],null],[27,\\\"t\\\",[\\\"transport.company.autoCompletePlaceholder\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setContractorCompanyData\\\",[23,[\\\"step\\\"]]],null],\\\"removeContractorCompany\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,2,[\\\"shortName\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,2,[\\\"name\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,2,[\\\"address\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,2,[\\\"address\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"noPartnershipWarning\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"help-block\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"company.noPartnershipWarning\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"contractor\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-3\\\"],[12,\\\"data-field-name\\\",[28,[[21,\\\"companyType\\\"],\\\"-country\\\"]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"contractor\\\",\\\"country\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[23,[\\\"contractor\\\",\\\"country\\\",\\\"ibanSymbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"transport/step-user-group-select\\\",null,[[\\\"step\\\",\\\"companyType\\\"],[[23,[\\\"step\\\"]],[23,[\\\"companyType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-3\\\"],[12,\\\"data-field-name\\\",[28,[[21,\\\"companyType\\\"],\\\"-country\\\"]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"contractor\\\",\\\"country\\\"]]],null],[23,[\\\"countries\\\"]],true,\\\"ibanSymbol\\\",[27,\\\"t\\\",[\\\"transport.selectCountry\\\"],null],[23,[\\\"transport\\\",\\\"disabled\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"contractor\\\",\\\"country\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[\\\"ibanSymbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"propertyNameForError\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/contractor-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/courier-invoice-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    data: null,\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n\n    init() {\n      this._super(...arguments);\n\n      const transport = this.get('transport');\n\n      if (transport.get('courierInvoice').content === null) {\n        let invoice = this.get('store').createRecord('courierInvoice', {\n          transport: this.get('transport')\n        });\n        transport.set(\"courierInvoice\", invoice);\n        this.get('transport').set('courierInvoice', invoice);\n      }\n    },\n\n    disableEditionOfCourierInvoiceFields: Ember.computed('', function () {\n      return !this.get('sessionAccount').hasRole('EDIT_COURIER_INVOICE_SECTION');\n    }),\n    actions: {\n      setDate(propertyName, date) {\n        const transport = this.get('transport');\n\n        if (!date) {\n          console.debug('brak daty');\n          return;\n        }\n\n        transport.set(\"courierInvoice.content.date\", date[0]);\n      },\n\n      fileUploadSuccess: function (transportId) {\n        this.set('action', 'fileUploadSuccess');\n        this.sendAction('action', transportId);\n      },\n\n      deleteFile() {\n        const transport = this.get('transport');\n        transport.set(\"courierInvoice.content.base64\", null);\n      },\n\n      upload: function (event) {\n        const self = this;\n        const reader = new FileReader();\n        const file = event.target.files[0];\n        let invoiceData;\n\n        reader.onload = () => {\n          invoiceData = reader.result.split(',')[1];\n          self.set('transport.courierInvoice.content.base64', invoiceData);\n          self.set('transport.courierInvoice.content.fileName', file.name);\n        };\n\n        if (file) {\n          reader.readAsDataURL(file);\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/courier-invoice-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"L9EqMjNI\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"expandable-panel\\\",null,[[\\\"title\\\",\\\"componentName\\\",\\\"defaultOpen\\\"],[[27,\\\"t\\\",[\\\"transport.courierInvoiceSection.label\\\"],null],\\\"courierInvoice-panel\\\",false]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"logs-div \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"scrollable-modal-section\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[11,\\\"for\\\",\\\"invoice-number\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.courierInvoiceSection.number\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-7 \\\",[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"errors\\\",\\\"courierInvoice\\\",\\\"number\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"courierInvoice-number\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"id\\\",\\\"disabled\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"number\\\",[23,[\\\"disableEditionOfCourierInvoiceFields\\\"]],\\\"form-control\\\",[27,\\\"t\\\",[\\\"transport.courierInvoiceSection.number\\\"],null],[23,[\\\"transport\\\",\\\"courierInvoice\\\",\\\"content\\\",\\\"number\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transport\\\"]],\\\"courierInvoice.number\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[11,\\\"for\\\",\\\"invoice-date\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.courierInvoiceSection.date\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-7 \\\",[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"errors\\\",\\\"courierInvoice\\\",\\\"date\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"courierInvoice-number\\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"formatType\\\",\\\"placeholder\\\",\\\"class\\\",\\\"onChange\\\",\\\"disabled\\\"],[[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"courierInvoice\\\",\\\"date\\\"]],[23,[\\\"transport\\\",\\\"courierInvoice\\\",\\\"date\\\"]],null],null],\\\"shortDate\\\",[27,\\\"t\\\",[\\\"transport.courierInvoiceSection.date\\\"],null],\\\"form-control date-chooser\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setDate\\\",\\\"date\\\"],null],[23,[\\\"disableEditionOfCourierInvoiceFields\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transport\\\"]],\\\"courierInvoice.date\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[11,\\\"for\\\",\\\"courierInvoice-file\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.courierInvoiceSection.file\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-7 \\\"],[11,\\\"data-field-name\\\",\\\"courierInvoice-file\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"courierInvoice\\\",\\\"base64\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file\\\"],[9],[10],[0,\\\" \\\"],[1,[23,[\\\"transport\\\",\\\"courierInvoice\\\",\\\"fileName\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"disableEditionOfCourierInvoiceFields\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"span\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"common.delete\\\"],null]]]],[11,\\\"class\\\",\\\"fa fa-remove\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"deleteFile\\\",[23,[\\\"file\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"disableEditionOfCourierInvoiceFields\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"file-upload-button\\\"],[11,\\\"class\\\",\\\"btn btn-default btn-file\\\"],[9],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"transport.courierInvoiceSection.button\\\"],null],false],[0,\\\"\\\\n                            \\\"],[7,\\\"input\\\"],[12,\\\"onchange\\\",[27,\\\"action\\\",[[22,0,[]],\\\"upload\\\"],null]],[11,\\\"accept\\\",\\\"application/pdf\\\"],[11,\\\"type\\\",\\\"file\\\"],[9],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/courier-invoice-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/courier/add-packages-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    actions: {\n      addPackage() {\n        const courierPackage = this.get('store').createRecord('courierPackage', {\n          loadStep: this.get('transport.loadSteps.firstObject'),\n          unloadStep: this.get('transport.unloadSteps.firstObject')\n        });\n        const model = {\n          courierPackage,\n          transport: this.get('transport')\n        };\n        this.get('transport.courierPackages').addObject(courierPackage);\n        this.set('action', 'showSubModal');\n        this.sendAction('action', 'courier.modals.package-form', model);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/courier/add-packages-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"A66TkfHo\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 text-right\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-inline margin-bottom\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"add-package\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"add\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addPackage\\\"]],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"packagesMin\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"errors\\\",\\\"courierPackages\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transport\\\"]],\\\"courierPackages\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/courier/add-packages-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/courier/packages-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    showAddCourierPackagesSection: Ember.computed('', function () {\n      const transport = this.get('transport').actionCanBePerformed ? this.get('transport') : this.get('transport.content');\n      return transport.actionCanBePerformed('ADD_PACKAGES');\n    }),\n    showCourierPackageValue: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_CAN_SEE_COURIER_PACKAGE_VALUE');\n    }),\n    courierPackagesErrors: Ember.computed('transport.{courierPackages.errors.[],errors.courierPackages}', function () {\n      if (this.get('transport.errors.courierPackages')) {\n        return this.get('transport.errors.courierPackages');\n      }\n\n      return this.get('transport.courierPackages.errors');\n    }),\n    packageTypes: Ember.computed('', function () {\n      return this.get('store').peekAll('package-type').filter(packageType => {\n        return packageType.get('name') === 'PALLETS' || packageType.get('name') === 'CARTONS';\n      });\n    }),\n    courierSetting: Ember.computed('transport.transportType.courierSetting', function () {\n      return this.get('transport.transportType.courierSetting');\n    }),\n    hasUnsavedChanges: Ember.computed('transport.courierPackages.@each.hasChanges', function () {\n      return this.get('transport.courierPackages').filterBy('hasChanges').get('length') > 0;\n    }),\n    editionOfIncompleteLoadingDisabled: Ember.computed('transport.canBeUpdated', function () {\n      return !this.get('sessionAccount').hasRole('ROLE_EDIT_INCOMPLETE_LOADING') || !this.get('transport.canBeUpdated');\n    }),\n    isEditionDisabled: Ember.computed('transport.disabled', function () {\n      const transport = this.get('transport').actionCanBePerformed ? this.get('transport') : this.get('transport.content');\n      return !transport.actionCanBePerformed('EDIT_PACKAGES');\n    }),\n    isDeletionAllowed: Ember.computed('model.id', 'transport.transportType', function () {\n      if (!this.get('transport.id')) {\n        return false;\n      }\n\n      const transport = this.get('transport').actionCanBePerformed ? this.get('transport') : this.get('transport.content');\n      return transport.actionCanBePerformed('DELETE_PACKAGES');\n    }),\n    editionOrDeletionIsAllowed: Ember.computed('isDeletionAllowed', 'isEditionDisabled', function () {\n      return !this.get('isEditionDisabled') || this.get('isDeletionAllowed');\n    }),\n    actions: {\n      togglePanel() {\n        this.toggleProperty('isOpened');\n      },\n\n      setPackageType(pckg, packageType) {\n        pckg.set('packageType', packageType);\n      },\n\n      editPackage(pckg) {\n        this.set('action', 'showSubModal');\n        this.sendAction('action', 'courier.modals.package-form', pckg);\n      },\n\n      disablePackage(pckg) {\n        const msg = this.get('courierSetting.disableConfirmation');\n\n        if (!confirm(msg)) {\n          return;\n        }\n\n        if (pckg.get('id')) {\n          pckg.set('enabled', false);\n        } else {\n          const transport = pckg.get('transport');\n          transport.get('courierPackages').removeObject(pckg);\n        }\n      },\n\n      showSubModal(templateName, model) {\n        this.set('action', 'showSubModal');\n        this.sendAction('action', templateName, model);\n      },\n\n      toggleIncompleteLoading() {\n        this.get('transport').toggleProperty('incompleteLoading');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/courier/packages-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"hQlx6zFb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"e\\\",\\\"package\\\",\\\"idx\\\",\\\"packageType\\\"],\\\"statements\\\":[[4,\\\"expandable-panel\\\",null,[[\\\"title\\\",\\\"componentName\\\",\\\"errors\\\",\\\"defaultOpen\\\"],[[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"sectionLabel\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],\\\"packages-panel\\\",[23,[\\\"courierPackagesErrors\\\"]],[23,[\\\"showExpandedCourierPackageSection\\\"]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showAddCourierPackagesSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"transport/courier/add-packages-section\\\",null,[[\\\"transport\\\",\\\"courierSetting\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"courierSetting\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-12 package-table \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"scrollable-modal-section\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\"],[11,\\\"id\\\",\\\"packagees-table\\\"],[11,\\\"class\\\",\\\"table table-hover\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"#\\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"internalId\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"length\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"width\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"height\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"weight\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"quantity\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"packageType\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"description\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showCourierPackageValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"packageValue\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"packageValueLine\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                         \\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"enabledPackages\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"add\\\",[[22,3,[]],1],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"internalId\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-internal-id\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[22,2,[\\\"internalId\\\"]],true,[23,[\\\"courierSetting\\\",\\\"packageIdPlaceholder\\\"]]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"internalId\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"length\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-length\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,2,[\\\"length\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"length\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"width\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-width\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,2,[\\\"width\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"width\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"height\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-height\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,2,[\\\"height\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"height\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"weight\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-weight\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,2,[\\\"weight\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"weight\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"quantity\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"number-of-packages\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,2,[\\\"quantity\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"quantity\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"packageType\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-type\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[22,2,[\\\"packageType\\\"]],[23,[\\\"packageTypes\\\"]],true,[23,[\\\"courierSetting\\\",\\\"packageTypePlaceholder\\\"]],[23,[\\\"isEditionDisabled\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setPackageType\\\",[22,2,[]]],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"packageTypes.\\\",[22,4,[\\\"name\\\"]],\\\".label\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"packageType\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"description\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-description\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,2,[\\\"description\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"description\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showCourierPackageValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"packageValue\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-price\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,2,[\\\"packageValue\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"packageValue\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"packageValue\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-total-price\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,2,[\\\"totalValue\\\"]],true]]],false],[0,\\\"\\\\n\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"packageValue\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-value-currency\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"transport\\\",\\\"goodsValueCurrency\\\"]],true]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"editionOrDeletionIsAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"block\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"isEditionDisabled\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"i\\\"],[11,\\\"data-button-name\\\",\\\"package-edit-button\\\"],[11,\\\"class\\\",\\\"fa fa-pencil-square clickable\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"editPackage\\\",[22,2,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"isDeletionAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"i\\\"],[11,\\\"data-button-name\\\",\\\"package-delete-button\\\"],[11,\\\"class\\\",\\\"fa fa-ban clickable\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"disablePackage\\\",[22,2,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[4,\\\"if\\\",[[23,[\\\"package\\\",\\\"hasErrors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\"],[11,\\\"class\\\",\\\"errors\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[11,\\\"colspan\\\",\\\"11\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"package\\\",\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"package.\\\",[22,1,[\\\"attribute\\\"]]],null]],null],false],[0,\\\" ::\\\\n\\\\n                                    \\\"],[1,[27,\\\"field-error-message\\\",null,[[\\\"modelName\\\",\\\"error\\\"],[\\\"package\\\",[22,1,[]]]]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"enabledPackagesWeight\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"td\\\"],[11,\\\"style\\\",\\\"text-align: center; vertical-align: middle; font-weight: bold;\\\"],[9],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"sum\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"style\\\",\\\" font-weight: 200;\\\"],[9],[1,[23,[\\\"transport\\\",\\\"enabledPackagesWeight\\\"]],false],[0,\\\" [\\\"],[1,[27,\\\"t\\\",[\\\"unit.KG\\\"],null],false],[0,\\\"]\\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"enabledPackagesCount\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"td\\\"],[11,\\\"style\\\",\\\"text-align: center; vertical-align: middle; font-weight: bold;\\\"],[9],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"sum\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"style\\\",\\\" font-weight: 200;\\\"],[9],[0,\\\" \\\"],[1,[23,[\\\"transport\\\",\\\"enabledPackagesCount\\\"]],false],[0,\\\" [\\\"],[1,[27,\\\"t\\\",[\\\"unit.PIECES\\\"],null],false],[0,\\\"]\\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[7,\\\"td\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showCourierPackageValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"td\\\"],[11,\\\"style\\\",\\\"text-align: center; vertical-align: middle; font-weight: bold;\\\"],[9],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"sum\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"style\\\",\\\" font-weight: 200;\\\"],[9],[0,\\\" \\\"],[1,[23,[\\\"transport\\\",\\\"enabledPackagesValue\\\"]],false],[0,\\\"\\\\n                            [\\\"],[1,[23,[\\\"transport\\\",\\\"goodsValueCurrency\\\"]],false],[0,\\\"]\\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/courier/packages-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/couriers-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    data: null,\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    enums: Ember.inject.service('enum-service'),\n    goodsValueCurrency: Ember.A(['EUR', 'PLN', 'USD', 'CHF', 'CZK']),\n    isLoading: null,\n    sessionAccount: Ember.inject.service('session-account'),\n\n    init() {\n      this._super(...arguments);\n\n      this.isLoading = true;\n      this.data = [];\n    },\n\n    incoterms: Ember.computed('', function () {\n      return this.get('enums').get('incoterms');\n    }),\n    getCurrencies: Ember.computed('sessionAccount.currentUser', function () {\n      return this.get('store').peekAll('currency').map(c => c.get('symbol'));\n    }),\n    couriersSectionErrors: Ember.computed('transport.errors.[]', function () {\n      return [this.get('transport.errors.goodsValue'), this.get('transport.errors.goodsValueCurrency'), this.get('transport.errors.incoterms')];\n    }),\n    disableEditionOfCouriersFields: Ember.computed('', function () {\n      return !this.get('sessionAccount').hasRole('ROLE_CAN_EDIT_COURIERS_SECTION');\n    }),\n    sortFunction: function (a, b) {\n      // puste ceny, czyli błedy idą na sam dól\n      if (a.price.value === '') {\n        return 1;\n      }\n\n      if (b.price.value === '') {\n        return -1;\n      } // pozostałe sortujemy po cenie, od najniższej do najwyższej\n\n\n      return a.price.value < b.price.value ? -1 : 1;\n    },\n    actions: {\n      fetchData() {\n        const transportExists = this.get('transport.id') !== null;\n\n        if (!transportExists) {\n          return;\n        }\n\n        this.get('transport').reload().then(transport => {\n          const pricings = transport.get('courierPricings');\n\n          if (pricings.length === 0 && !pricings.isFulfilled) {\n            const self = this;\n            const retryFetchDataTimeout = 10000;\n            setTimeout(function () {\n              self.send('fetchData');\n            }, retryFetchDataTimeout);\n            return;\n          }\n\n          this.set('data', []);\n          pricings.forEach(pricing => {\n            const pricingSuccesses = pricing.get('pricingSuccesses');\n            const pricingErrors = pricing.get('pricingErrors');\n\n            if (pricingSuccesses.length > 0) {\n              pricingSuccesses.forEach(success => {\n                this.data.push({\n                  'courier': success.get('courierPricing.courierCompany'),\n                  'price': {\n                    'value': success.get('courierPricing.courierCompany.name') === 'DHL Express' && success.price ? success.price : success.priceSumNetto != null ? success.priceSumNetto : success.price,\n                    'currency': success.priceCurrency\n                  },\n                  'price_brutto': success.price,\n                  'price_fuel': success.priceFuel,\n                  'price_sum_netto': success.priceSumNetto,\n                  'price_sum_vat': success.priceSumVat,\n                  'price_es': success.dhlPriceEs,\n                  'price_base': success.priceBase,\n                  'price_base_vat': success.priceBaseVat,\n                  'price_peak': success.pricePeak,\n                  'price_multiple_packaging': success.priceMultiplePackaging,\n                  'price_dhl_premium': success.dhlPricePremium,\n                  'type_of_service': success.serviceName,\n                  'delivery_date': success.dhlDeliveryCapabilities ? moment(success.dhlDeliveryCapabilities).format('YYYY-MM-DD hh:ss') : '',\n                  'order_by': success.dhlDeliveryCapabilities ? moment(success.dhlPickupCapabilities).format('YYYY-MM-DD hh:ss') : ''\n                });\n              });\n            } else {\n              const msg = this.get('intl').t('common.error');\n              pricingErrors.forEach(error => {\n                this.data.push({\n                  'courier': error.get('courierPricing.courierCompany'),\n                  'price': {\n                    'value': '',\n                    'currency': ''\n                  },\n                  'type_of_service': msg + ': ' + error.errorCode + ' | ' + error.errorMessage,\n                  'delivery_date': '',\n                  'order_by': ''\n                });\n              });\n            }\n          });\n          this.data.sort(this.sortFunction);\n        });\n        this.set('isLoading', false);\n        return this.data;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/couriers-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"tXOnh3cd\",\n    \"block\": \"{\\\"symbols\\\":[\\\"courier\\\",\\\"incoterms\\\",\\\"currency\\\"],\\\"statements\\\":[[4,\\\"expandable-panel\\\",null,[[\\\"title\\\",\\\"componentName\\\",\\\"defaultOpen\\\",\\\"errors\\\",\\\"onOpen\\\"],[[27,\\\"t\\\",[\\\"transport.courierSection.label\\\"],null],\\\"couriers-panel\\\",false,[23,[\\\"couriersSectionErrors\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"fetchData\\\"],null]]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"logs-div \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"scrollable-modal-section\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-inline\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[11,\\\"for\\\",\\\"goods-currency-select\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.courierSection.goodsValueCurrency\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-7 \\\",[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"errors\\\",\\\"goodsValueCurrency\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"courier-goods-currency-select\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"disabled\\\",\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"goods-currency-select\\\",[23,[\\\"disableEditionOfCouriersFields\\\"]],\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"transport\\\",\\\"goodsValueCurrency\\\"]]],null],[23,[\\\"getCurrencies\\\"]],true,[27,\\\"t\\\",[\\\"transport.courierSection.goodsValueCurrency\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"transport\\\",\\\"goodsValueCurrency\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,3,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transport\\\"]],\\\"goodsValueCurrency\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[11,\\\"for\\\",\\\"incoterms-select\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.courierSection.incoterms\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-7 \\\",[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"errors\\\",\\\"incoterms\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"courier-incoterms-select\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"disabled\\\",\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"incoterms-select\\\",[23,[\\\"disableEditionOfCouriersFields\\\"]],\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"transport\\\",\\\"incoterms\\\"]]],null],[23,[\\\"incoterms\\\"]],true,[27,\\\"t\\\",[\\\"transport.courierSection.incoterms\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"transport\\\",\\\"incoterms\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,2,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transport\\\"]],\\\"incoterms\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-field-name\\\",\\\"courier-refresh-pricing\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.refresh\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"fetchData\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"isLoading\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"common.loadingData\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"table\\\"],[11,\\\"id\\\",\\\"couriers-table\\\"],[11,\\\"class\\\",\\\"table table-hover table-striped\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"transport.courierSection.label\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"transport.courierSection.totalPrice\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"transport.courierSection.serviceType\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"transport.courierSection.deliveryDate\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"transport.courierSection.orderBy\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"data\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"tr\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"transport\\\",\\\"transaction\\\",\\\"typeOfService\\\"]],[22,1,[\\\"type_of_service\\\"]]],null],\\\"success\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,1,[\\\"courier\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,1,[\\\"price\\\",\\\"value\\\"]],false],[0,\\\" \\\"],[1,[22,1,[\\\"price\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\" \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"inline-block\\\"],[9],[1,[27,\\\"show-courier-price-details\\\",null,[[\\\"courier\\\"],[[22,1,[]]]]],false],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,1,[\\\"type_of_service\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,1,[\\\"delivery_date\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,1,[\\\"order_by\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/couriers-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/create-delivery-from-transport/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    modalService: Ember.inject.service('modal-service'),\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    deliveryService: Ember.inject.service('delivery-service'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    deliveryNumberDisabled: false,\n\n    async init() {\n      this._super(...arguments);\n\n      if (await this.get('delivery.deliveryNumber')) {\n        this.set('deliveryNumberDisabled', true);\n      }\n    },\n\n    incoterms: Ember.A(['EXW', 'FCA', 'FAS', 'FOB', 'CFR', 'CIF', 'CPT', 'CIP', 'DAF', 'DES', 'DDU', 'DDP', 'DAT', 'DAP']),\n    showDeliveryNumber: Ember.computed('transportType.id', function () {\n      return this.authorityCheckerService.findPositiveAuthorityRestrictionsByActionType('ROLE_ACCESS_DELIVERY_DELIVERY_NUMBER', this.get('transportType.id'));\n    }),\n    showDeliveryInvoiceNumber: Ember.computed('transportType.id', function () {\n      return this.authorityCheckerService.findPositiveAuthorityRestrictionsByActionType('ROLE_ACCESS_DELIVERY_INVOICE_NUMBER', this.get('transportType.id'));\n    }),\n    transport: Ember.computed('delivery.transport', function () {\n      return this.get('delivery.transport');\n    }),\n    actions: {\n      close() {\n        const transport = this.get('delivery.transport');\n\n        if (this.get('delivery.id')) {\n          this.get('delivery').rollbackAttributes();\n        } else {\n          this.get('delivery').destroyRecord();\n        }\n\n        this.get('modalService').hideModal();\n        this.get('modalService').showModal(this.get('modalService').MODALS.TRANSPORT.CREATE_TRANSPORT, transport);\n      },\n\n      async saveDeliveryFromTransport() {\n        const self = this;\n        const delivery = await this.get('delivery');\n        const transport = await delivery.get('transport');\n\n        if (!delivery.validate()) {\n          console.error('Walidacja Delivery zwróciła błąd/błędy');\n          delivery.errors.forEach(error => console.error(`${error.attribute} ${error.message}`));\n          return;\n        }\n\n        this.deliveryService.handleDeliveryCustomFields(delivery, (await this.get('customFieldsList')));\n        this.apolloApiService.callApolloApi(this.apolloApiService.APOLLO_API.DELIVERY.CREATE_DELIVERY_FROM_TRANSPORT, null, {\n          body: JSON.stringify({\n            delivery: delivery.serialize(),\n            transportId: transport.get('id')\n          })\n        }).then(response => {\n          delivery.setProperties(response);\n          self.get('deliveryService').handleUpdatedDeliveryPackaging(delivery);\n          self.get('modalService').hideModal();\n          self.get('modalService').refreshModel();\n          self.get('modalService').showModal(self.get('modalService').MODALS.TRANSPORT.CREATE_TRANSPORT, transport);\n          self.get('modalService').showModal('transports.modals.create-transport', transport);\n        }).catch(e => {\n          self.set('errors', e.errors);\n          console.error(`Błąd podczas zapisywania delivery: ${e}`);\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/create-delivery-from-transport/create-delivery-from-transport-form/component\", [\"exports\", \"apollo/mixins/step-mixin\"], function (_exports, _stepMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_stepMixin.default, {\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    dateUtils: Ember.inject.service('date-utils'),\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n\n    filteredSteps(property) {\n      const steps = this.get('steps').filterBy(`${property}.id`);\n      return steps.filterBy('stepTypeName', this.get('step.stepTypeName') === 'load' ? 'load' : 'unload');\n    },\n\n    warehouseSteps: Ember.computed('steps', 'step.stepTypeName', function () {\n      return this.filteredSteps('warehouse');\n    }),\n    recipientSteps: Ember.computed('steps', 'step.stepTypeName', function () {\n      return this.filteredSteps('address');\n    }),\n    loadStepFormattedArrivalDate: Ember.computed('delivery.loadStep.arrivalDate', function () {\n      return this.get('delivery.loadStep.arrivalDate') ? this.get('dateUtils').formatDate(this.get('delivery.loadStep.arrivalDate'), this.get('dateUtils').getDefaultDateFormat()) : '';\n    }),\n    loadStepFormattedMinAdviceDate: Ember.computed('delivery.loadStep.minAdviceDate', function () {\n      return this.get('delivery.loadStep.minAdviceDate') ? this.get('dateUtils').formatDate(this.get('delivery.loadStep.minAdviceDate'), this.get('dateUtils').getDefaultDateFormat()) : '';\n    }),\n    loadStepFormattedMaxAdviceDate: Ember.computed('delivery.loadStep.maxAdviceDate', function () {\n      return this.get('delivery.loadStep.maxAdviceDate') ? this.get('dateUtils').formatDate(this.get('delivery.loadStep.maxAdviceDate'), this.get('dateUtils').getDefaultDateFormat()) : '';\n    }),\n    unloadStepFormattedArrivalDate: Ember.computed('delivery.unloadStep', function () {\n      return this.get('delivery.unloadStep.arrivalDate') ? this.get('dateUtils').formatDate(this.get('delivery.unloadStep.arrivalDate'), this.get('dateUtils').getDefaultDateFormat()) : '';\n    }),\n    unloadStepFormattedMinAdviceDate: Ember.computed('delivery.unloadStep.minAdviceDate', function () {\n      return this.get('delivery.unloadStep.minAdviceDate') ? this.get('dateUtils').formatDate(this.get('delivery.unloadStep.minAdviceDate'), this.get('dateUtils').getDefaultDateFormat()) : '';\n    }),\n    unloadStepFormattedMaxAdviceDate: Ember.computed('delivery.unloadStep.maxAdviceDate', function () {\n      return this.get('delivery.unloadStep.maxAdviceDate') ? this.get('dateUtils').formatDate(this.get('delivery.unloadStep.maxAdviceDate'), this.get('dateUtils').getDefaultDateFormat()) : '';\n    }),\n    selectedWarehouseStep: Ember.computed('step.warehouse', 'warehouseSteps.[]', function () {\n      const warehouseStep = this.get('step.warehouse');\n      return this.get('warehouseSteps').findBy('warehouse', warehouseStep);\n    }),\n    selectedRecipientStep: Ember.computed('step', 'recipientSteps.[]', function () {\n      const recipientStep = this.get('step.address');\n      return this.get('recipientSteps').findBy('address', recipientStep);\n    }),\n\n    setStep(deliveryStep, step, type) {\n      const isLoadStep = deliveryStep.get('stepTypeName') === 'load';\n      this.get('delivery').set(isLoadStep ? 'loadStep' : 'unloadStep', step);\n      this.get('step.errors').remove(type);\n    },\n\n    showWarehouseCheckbox: Ember.computed('delivery.transportType.{allowLoadStepTypeChange,allowUnloadStepTypeChange}', function () {\n      return this.get('delivery.stepType') === 'load' ? this.get('delivery.transportType.allowLoadStepTypeChange') : this.get('delivery.transportType.allowUnloadStepTypeChange');\n    }),\n    shouldShowSupplierField: Ember.computed('delivery.transportType', function () {\n      return this.get('authorityCheckerService').findPositiveAuthorityRestrictionsByActionType('ACCESS_SUPPLIER_COMPANY_FIELD', this.get('delivery.transportType.id'));\n    }),\n    actions: {\n      setWarehouseStep(deliveryStep, step) {\n        this.setStep(deliveryStep, step, 'warehouse');\n      },\n\n      setRecipientStep(deliveryStep, step) {\n        this.setStep(deliveryStep, step, 'address');\n      },\n\n      setPhonePrefix(phonePrefix) {\n        this.set('step.contactPersonMobilePhonePrefix', phonePrefix);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/create-delivery-from-transport/create-delivery-from-transport-form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"f47R5MjE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"s\\\",\\\"s\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showWarehouseCheckbox\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"components/show-warehouse-checkbox\\\",null,[[\\\"step\\\"],[[23,[\\\"step\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"isInWarehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group form-group-padding \\\",[27,\\\"if\\\",[[23,[\\\"delivery\\\",\\\"errors\\\",\\\"loadStep\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"step-warehouse\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.recipient\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"warehouse-select-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"warehouse-select\\\",\\\"form-control\\\",[23,[\\\"selectedWarehouseStep\\\"]],[23,[\\\"warehouseSteps\\\"]],true,\\\"name\\\",[27,\\\"t\\\",[\\\"transport.warehouse\\\"],null],false,[27,\\\"action\\\",[[22,0,[]],\\\"setWarehouseStep\\\",[23,[\\\"step\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,2,[\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"delivery\\\"]],\\\"loadStep\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"warehouse\\\",\\\"address\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-field\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"unloadStep-street\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.street\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"street-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"warehouse\\\",\\\"address\\\",\\\"street\\\"]],[27,\\\"t\\\",[\\\"address.street\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-field\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.postalAndCity\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12 flex-space-between\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-2 no-padding padding-right-small\\\"],[12,\\\"data-field-name\\\",[28,[\\\"postal-code-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"warehouse\\\",\\\"address\\\",\\\"postal\\\"]],[27,\\\"t\\\",[\\\"address.postal\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8 col-xs-3 no-padding\\\"],[12,\\\"data-field-name\\\",[28,[\\\"city-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"warehouse\\\",\\\"address\\\",\\\"city\\\"]],[27,\\\"t\\\",[\\\"address.city\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-field\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.country\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"country-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"warehouse\\\",\\\"address\\\",\\\"country\\\",\\\"name\\\"]],[27,\\\"t\\\",[\\\"address.country\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group form-group-padding \\\",[27,\\\"if\\\",[[23,[\\\"delivery\\\",\\\"errors\\\",\\\"unloadStep\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"shouldShowSupplierField\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"step-company\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"company.type.SUPPLIER.DELIVERY\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"company\\\"]],\\\"has-error\\\"],null],\\\" col-md-6 col-xs-11\\\"]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",[[27,\\\"-input-type\\\",[[23,[\\\"text\\\"]]],null]],[[\\\"type\\\",\\\"disabled\\\",\\\"value\\\",\\\"class\\\"],[[23,[\\\"text\\\"]],true,[23,[\\\"step\\\",\\\"company\\\",\\\"name\\\"]],\\\"form-control\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"step-warehouse\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.recipient\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-6 col-xs-11\\\"],[12,\\\"data-field-name\\\",[28,[\\\"recipient-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"recipient-select\\\",\\\"form-control\\\",[23,[\\\"selectedRecipientStep\\\"]],[23,[\\\"recipientSteps\\\"]],true,\\\"recipient\\\",[27,\\\"t\\\",[\\\"transport.recipient\\\"],null],false,[27,\\\"action\\\",[[22,0,[]],\\\"setRecipientStep\\\",[23,[\\\"step\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,1,[\\\"address\\\",\\\"recipient\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"delivery\\\"]],\\\"unloadStep\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"address\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-field\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"unloadStep-street\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.street\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"street-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"address\\\",\\\"street\\\"]],[27,\\\"t\\\",[\\\"address.street\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-field\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.postalAndCity\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12 flex-space-between\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-2 no-padding padding-right-small\\\"],[12,\\\"data-field-name\\\",[28,[\\\"postal-code-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"address\\\",\\\"postal\\\"]],[27,\\\"t\\\",[\\\"address.postal\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8 col-xs-3 no-padding\\\"],[12,\\\"data-field-name\\\",[28,[\\\"city-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"address\\\",\\\"city\\\"]],[27,\\\"t\\\",[\\\"address.city\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-field\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.country\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"country-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"address\\\",\\\"country\\\",\\\"name\\\"]],[27,\\\"t\\\",[\\\"address.country\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],[23,[\\\"delivery\\\",\\\"loadStep\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"loadStepFormattedMinAdviceDate\\\"]],[23,[\\\"loadStepFormattedMaxAdviceDate\\\"]],[23,[\\\"step\\\",\\\"isInWarehouse\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"loadStepFormattedMinAdviceDate\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.minAdviceDate\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"time-range-from-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"loadStepFormattedMinAdviceDate\\\"]],[27,\\\"t\\\",[\\\"delivery.step.minAdviceDate\\\"],null],\\\"form-control\\\",\\\"text\\\",[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"loadStepFormattedMaxAdviceDate\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.maxAdviceDate\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"time-range-to-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"loadStepFormattedMaxAdviceDate\\\"]],[27,\\\"t\\\",[\\\"delivery.step.maxAdviceDate\\\"],null],\\\"form-control\\\",\\\"text\\\",[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"loadStepFormattedArrivalDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"loadStepFormattedArrivalDate\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.loadArrivalDate\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"loadStepFormattedArrivalDate\\\"]],[27,\\\"t\\\",[\\\"delivery.step.loadArrivalDate\\\"],null],\\\"form-control\\\",\\\"text\\\",[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],[23,[\\\"delivery\\\",\\\"unloadStep\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"unloadStepFormattedMinAdviceDate\\\"]],[23,[\\\"unloadStepFormattedMaxAdviceDate\\\"]],[23,[\\\"step\\\",\\\"isInWarehouse\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"unloadStepFormattedMinAdviceDate\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.minAdviceDate\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"time-range-from-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"unloadStepFormattedMinAdviceDate\\\"]],[27,\\\"t\\\",[\\\"delivery.step.minAdviceDate\\\"],null],\\\"form-control\\\",\\\"text\\\",[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"unloadStepFormattedMaxAdviceDate\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.maxAdviceDate\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"time-range-to-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"unloadStepFormattedMaxAdviceDate\\\"]],[27,\\\"t\\\",[\\\"delivery.step.maxAdviceDate\\\"],null],\\\"form-control\\\",\\\"text\\\",[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"unloadStepFormattedArrivalDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"unloadStepFormattedArrivalDate\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.step.unloadArrivalDate\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"unload-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"unloadStepFormattedArrivalDate\\\"]],[27,\\\"t\\\",[\\\"delivery.step.unloadArrivalDate\\\"],null],\\\"form-control\\\",\\\"text\\\",[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"contactPerson\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group row\\\\n                                \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"contactPerson\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.contactPersonDetails\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"contact-person-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"contactPerson\\\"]],[27,\\\"t\\\",[\\\"step.contactPerson.label\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\"]],\\\"contactPerson\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"step.contactPerson.phoneNumber\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12 flex-space-between\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-2 col-xs-2 no-padding padding-right-small\\\"],[12,\\\"data-field-name\\\",[28,[\\\"contact-person-phone-prefix-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"phone-prefix\\\",null,[[\\\"setPhonePrefix\\\",\\\"existingPhonePrefix\\\",\\\"disabled\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"setPhonePrefix\\\"],null],[23,[\\\"defaultPrefix\\\"]],[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-3 no-padding \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"contactPersonMobilePhoneNumber\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"data-field-name\\\",[28,[\\\"contact-person-phone-number-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"min\\\",\\\"max\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",\\\"number\\\",\\\"100000000\\\",\\\"999999999999\\\",[23,[\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"contactPersonMobilePhoneNumber\\\"]],[27,\\\"t\\\",[\\\"step.contactPerson.phoneNumber\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\"]],\\\"contactPersonMobilePhoneNumber\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/create-delivery-from-transport/create-delivery-from-transport-form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/create-delivery-from-transport/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"KACOUogB\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"loading\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"t\\\",[\\\"common.loadingData\\\"],null],false],[0,\\\" \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/images/ajax-loader.gif\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"transport/delivery-section/delivery-top-section\\\",null,[[\\\"delivery\\\",\\\"disabled\\\"],[[23,[\\\"delivery\\\"]],false]]],false],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-column step-columns-2\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"margin-left-big\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"delivery.step.load\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"transport/create-delivery-from-transport/create-delivery-from-transport-form\\\",null,[[\\\"step\\\",\\\"transportType\\\",\\\"delivery\\\",\\\"steps\\\",\\\"disabled\\\"],[[23,[\\\"delivery\\\",\\\"loadStep\\\"]],[23,[\\\"transportType\\\"]],[23,[\\\"delivery\\\"]],[23,[\\\"steps\\\"]],true]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-column step-columns-2\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"margin-right-big\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"delivery.step.unload\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"transport/create-delivery-from-transport/create-delivery-from-transport-form\\\",null,[[\\\"step\\\",\\\"transportType\\\",\\\"delivery\\\",\\\"steps\\\",\\\"disabled\\\"],[[23,[\\\"delivery\\\",\\\"unloadStep\\\"]],[23,[\\\"transportType\\\"]],[23,[\\\"delivery\\\"]],[23,[\\\"steps\\\"]],true]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[1,[27,\\\"transport/delivery-section/delivery-additional-data-section\\\",null,[[\\\"customFieldsList\\\",\\\"delivery\\\",\\\"transport\\\",\\\"packageTypes\\\",\\\"disabled\\\"],[[23,[\\\"customFieldsList\\\"]],[23,[\\\"delivery\\\"]],[23,[\\\"transport\\\"]],[23,[\\\"packageTypes\\\"]],false]]],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons padding-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary save-group-button\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"saveDeliveryFromTransport\\\"]],[10],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/create-delivery-from-transport/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/custom-fields-filters/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Component.extend({\n    store: service(),\n    sessionAccount: service('session-account'),\n    customFieldsFilters: Ember.computed('transportType.customFieldDefinitions.@each', function () {\n      return this.get('transportType.customFieldDefinitions').filterBy('filterInArchive');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/custom-fields-filters/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"9Fh8kCrC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"filter\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"customFieldsVisibleInTable\\\",\\\"length\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-inline\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h5\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.filterLabel\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"customFieldsVisibleInTable\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\"],[12,\\\"data-filter-name\\\",[27,\\\"concat\\\",[\\\"cf-\\\",[22,1,[\\\"englishNameTrimmed\\\"]]],null]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"transports/transports-table/transport-filters/filter\\\",null,[[\\\"searchParams\\\",\\\"filterKeys\\\",\\\"placeholder\\\",\\\"transportType\\\"],[[23,[\\\"searchParams\\\"]],[27,\\\"concat\\\",[\\\"cfd_\\\",[22,1,[\\\"id\\\"]]],null],[22,1,[\\\"nameInAppropriateLanguage\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/custom-fields-filters/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/custom-fields-section/component\", [\"exports\", \"apollo/mixins/transport-form-mixin\"], function (_exports, _transportFormMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_transportFormMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    transport: Ember.computed(function () {\n      return null;\n    }),\n    adviceSection: Ember.computed(function () {\n      return false;\n    }),\n\n    /**\n     * Metoda wykonująca się po zainicjowaniu komponentu.\n     *\n     * W niektórych typach transportu jest kilka takich komponentów w formularzu (sekcja lewa i prawa, protokół rozbieżności).\n     * Chcemy więc wykonać inicjację custom-fields tylko raz po otwarciu formularza -- stąd flaga `hasCustomFieldsInitialized`.\n     *\n     * Wykonanie w trybie `once` służy głównie temu, by wykonać operację po wyrenderowaniu komponentu.\n     * Moglibyśmy pewnie użyć run.next(), ale run.once() daje nam pewność (?), że operacja wykona się tylko raz w danym wywołaniu komponentu\n     * (a więc i tak wykona się kilka razy dla każdego formularza, ale za to w odpowiednim momencie).\n     */\n    init() {\n      this._super(...arguments);\n\n      const self = this;\n      const transport = this.get('transport');\n      Ember.run.once(() => {\n        if (this.get('transport.id')) {\n          if (transport.get('hasCustomFieldsInitialized')) {\n            console.debug(`Lista custom fields została już zainicjowana dla transportu ${transport.get('logString')}; nie robimy tego ponownie.`);\n            return;\n          }\n\n          self.initializeCustomFields(transport);\n        } else {\n          transport.get('customFields').then(() => self.createMissingCustomFieldValues(transport));\n        }\n\n        transport.set('hasCustomFieldsInitialized', true);\n      });\n    },\n\n    shouldTakePairsFromSection: Ember.computed('adviceSection', 'discrepancyReportSection', 'inspectionPanelSection', 'weightSection', function () {\n      // Sekcje to są argumenty podane w template komponentu, któ©y wywołuje ten komponent np:\n      // {{transport/custom-fields-section transport=transport withCurrentTaskBlockade=true weightSection=true isRequiredInCaseOfDelay=true}}\n      // wyświetli wszystkie potrzebne cf z `withCurrentTaskBlockade`, 'weightSection' i `isRequiredInCaseOfDelay`\n      const sections = Ember.A([this.get('adviceSection'), this.get('discrepancyReportSection'), this.get('inspectionPanelSection'), this.get('weightSection'), this.get('withCurrentTaskBlockade')]);\n      return sections.includes(true);\n    }),\n    customFieldPairs: Ember.computed('transport.customFieldPairs.{@each.definition,@each.value}', function () {\n      const self = this; // Zbieramy wszystkie potrzebne cfy i wyświetlamy je w jednym modalu\n\n      let cfPairs = Ember.A();\n\n      if (this.get('transport.customFieldPairs') === undefined) {\n        return;\n      }\n\n      const customFieldPairs = this.get('transport.customFieldPairs').filter(pair => {\n        return !pair.value || self.shouldBeVisible(pair);\n      });\n\n      if (this.shouldTakePairsFromSection) {\n        if (this.get('adviceSection')) {\n          const cfPairsFromAdviceSection = customFieldPairs.filter(field => {\n            return field.definition.get('visibleInAdviceSection') === true;\n          });\n          cfPairs = Ember.A([...cfPairs, ...cfPairsFromAdviceSection]);\n        }\n\n        if (this.get('discrepancyReportSection')) {\n          const cfPairsFromDiscrepanyReportSection = customFieldPairs.filter(field => {\n            return field.definition.get('visibleInDiscrepancyReportSection') === true;\n          });\n          cfPairs = Ember.A([...cfPairs, ...cfPairsFromDiscrepanyReportSection]);\n        }\n\n        if (this.get('inspectionPanelSection')) {\n          let cfPairsFromInspectionPanelSection;\n          const transportPanelActive = customFieldPairs.any(field => {\n            return field.value && field.value.get('option.allowsInspectionPanel');\n          });\n\n          if (!transportPanelActive) {\n            // Jeśli nie uzupełniono CF z powiązaniem z sekcją \"Kontrola\", wyświetlamy tylko CF z tym powiązaniem\n            cfPairsFromInspectionPanelSection = customFieldPairs.filter(field => {\n              return field.definition.get('visibleInInspectionPanelSection') === true && field.definition.get('options').any(option => option.allowsInspectionPanel);\n            });\n            cfPairs = Ember.A([...cfPairs, ...cfPairsFromInspectionPanelSection]);\n          }\n\n          cfPairsFromInspectionPanelSection = customFieldPairs.filter(field => {\n            return field.definition.get('visibleInInspectionPanelSection') === true;\n          });\n          cfPairs = Ember.A([...cfPairs, ...cfPairsFromInspectionPanelSection]);\n        }\n\n        if (this.get('weightSection')) {\n          const cfPairsFromWeightSection = customFieldPairs.filter(field => {\n            return field.definition.get('visibleInWeightSection') === true;\n          });\n          cfPairs = Ember.A([...cfPairs, ...cfPairsFromWeightSection]);\n        }\n\n        if (this.get('withCurrentTaskBlockade')) {\n          const firstUnconfirmedCheckpoint = this.get('transport.firstUnconfirmedCheckpoint');\n          const cfPairsWithCurrentTaskBlockade = firstUnconfirmedCheckpoint.get('customFieldsPairsWithCurrentTaskBlockade');\n          cfPairs = Ember.A([...cfPairs, ...cfPairsWithCurrentTaskBlockade]);\n        }\n\n        if (this.get('isRequiredInCaseOfDelay')) {\n          const firstUnconfirmedCheckpoint = this.get('transport.firstUnconfirmedCheckpoint');\n          const cfFromDelay = customFieldPairs.filter(field => {\n            return field.definition.get('requiredInDelayedTransport') === true && firstUnconfirmedCheckpoint.get('task.id') === field.definition.get('delayedTask.id') && firstUnconfirmedCheckpoint.get('isCustomFieldRequiredInDelayedCheckpoint') === true;\n          });\n          cfPairs = Ember.A([...cfPairs, ...cfFromDelay]);\n        }\n      } else {\n        const visibleInTransport = customFieldPairs.filter(field => {\n          return field.definition.get('visibleInTransportForm') === true;\n        });\n        cfPairs = Ember.A([...cfPairs, ...visibleInTransport]);\n      }\n\n      return cfPairs;\n    }),\n    shouldBeVisible: function (pair) {\n      return pair.value.get('isVisibleBasedOnDefinition') && pair.value.get('isVisibleBasedOnAuthorityRestrictions');\n    },\n    leftCustomFieldPairs: Ember.computed('customFieldPairs', function () {\n      return this.get('customFieldPairs').filter(pair => pair.definition.get('side') !== 'RIGHT');\n    }),\n    rightCustomFieldPairs: Ember.computed('customFieldPairs', function () {\n      return this.get('customFieldPairs').filter(pair => pair.definition.get('side') === 'RIGHT');\n    }),\n    customFieldSplitValue: Ember.computed(function () {\n      return this.get('sessionAccount').getSettingValue('CUSTOM_FIELD_SPLIT_VALUE');\n    }),\n    actions: {}\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/custom-fields-section/custom-field/component\", [\"exports\", \"apollo/mixins/transport-form-mixin\"], function (_exports, _transportFormMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_transportFormMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    enabledOptionsWithDependency: Ember.computed('', function () {\n      const pairs = this.get('transport.customFieldPairs');\n      const options = this.get('pair.definition.enabledOptions');\n      const avialableOptions = [];\n      options.forEach(option => {\n        const relatedDef = option.get('relatedDefinition.content');\n\n        if (relatedDef === null) {\n          avialableOptions.push(option);\n        } else {\n          pairs.forEach(pair => {\n            if (pair.definition === relatedDef) {\n              const value = pair.value.get('option');\n              option.get('relatedOptions').forEach(rOpt => {\n                if (rOpt === value.content) {\n                  avialableOptions.push(option);\n                }\n              });\n            }\n          });\n        }\n      });\n      return avialableOptions;\n    }),\n    actions: {\n      setOption(pair, option) {\n        const self = this;\n        pair.value.set('option', option);\n        pair.value.set('hasDirtyAttributes', true); // Żeby znikały czerwone ramki, gdy nie są już potrzebne.\n\n        if (pair.value.get('errors.length') > 0) {\n          pair.value.validate();\n        }\n\n        if (pair.definition.get('isSelectType') && pair.value.get('option.transportPanel')) {\n          const transportPanelClass = pair.definition.get('TRANSPORT_PANEL_CLASS')[pair.value.get('option.transportPanel')];\n          self.openPanel(transportPanelClass);\n        }\n\n        this.get('transport').notifyPropertyChange('customFieldPairs');\n      },\n\n      setCfDateValue(date) {\n        if (!date) {\n          return;\n        }\n\n        const firstDate = date.get('firstObject');\n\n        if (!firstDate) {\n          return;\n        } // Ensure we have a valid date object\n\n\n        const dateObject = firstDate instanceof Date ? firstDate : new Date(firstDate);\n\n        if (!isNaN(dateObject.getTime())) {\n          this.set('pair.value.value', dateObject.toISOString());\n        } else {\n          console.debug('Invalid date provided to Date custom field');\n        }\n      },\n\n      setCustomFieldData(pair, option) {\n        pair.value.set('value', option.value || option);\n      },\n\n      removeCustomField(pair) {\n        if (!pair.value) {\n          return;\n        }\n\n        pair.value.set('value', null);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/custom-fields-section/custom-field/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"oaQsmiJj\",\n    \"block\": \"{\\\"symbols\\\":[\\\"result\\\",\\\"opt\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"pair\\\",\\\"value\\\",\\\"shouldDataBeHidden\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"dummy-input-plug\\\",null,[[\\\"rows\\\"],[1]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"pair\\\",\\\"definition\\\",\\\"hasAutomaticValueEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"autocomplete\\\",\\\"disabled\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"pair\\\",\\\"value\\\",\\\"value\\\"]],\\\"off\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"pair\\\",\\\"definition\\\",\\\"isDateType\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"not-inline-block\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"disabled\\\",\\\"formatType\\\",\\\"class\\\",\\\"nativeFlatpickrOptions\\\"],[[27,\\\"if\\\",[[23,[\\\"pair\\\",\\\"value\\\",\\\"value\\\"]],[23,[\\\"pair\\\",\\\"value\\\",\\\"value\\\"]],null],null],[27,\\\"action\\\",[[22,0,[]],\\\"setCfDateValue\\\"],null],[23,[\\\"pair\\\",\\\"value\\\",\\\"editionDisabled\\\"]],[27,\\\"if\\\",[[23,[\\\"pair\\\",\\\"definition\\\",\\\"isDateTimeType\\\"]],\\\"defaultDateTime\\\",\\\"shortDate\\\"],null],\\\"form-control date-chooser\\\",[27,\\\"hash\\\",null,[[\\\"minuteIncrement\\\",\\\"static\\\",\\\"enableTime\\\"],[1,true,[23,[\\\"pair\\\",\\\"definition\\\",\\\"isDateTimeType\\\"]]]]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"pair\\\",\\\"value\\\"]],\\\"no-vertical-margin\\\",\\\"value\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"pair\\\",\\\"definition\\\",\\\"isSelectType\\\"]]],null,{\\\"statements\\\":[[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"allowClear\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"autocomplete\\\",\\\"onchange\\\"],[\\\"form-control custom-field-select\\\",[27,\\\"readonly\\\",[[23,[\\\"pair\\\",\\\"value\\\",\\\"option\\\"]]],null],[23,[\\\"enabledOptionsWithDependency\\\"]],true,true,\\\"nameInAppropriateLanguage\\\",[23,[\\\"placeholder\\\"]],[23,[\\\"pair\\\",\\\"value\\\",\\\"editionDisabled\\\"]],\\\"off\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setOption\\\",[23,[\\\"pair\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"custom-field-select-value\\\"],[9],[1,[22,2,[\\\"nameInAppropriateLanguage\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"pair\\\",\\\"value\\\"]],\\\"no-vertical-margin\\\",\\\"option\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"pair\\\",\\\"definition\\\",\\\"isNumberType\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"autocomplete\\\",\\\"disabled\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"pair\\\",\\\"value\\\",\\\"value\\\"]],\\\"off\\\",[23,[\\\"pair\\\",\\\"value\\\",\\\"editionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"pair\\\",\\\"value\\\"]],\\\"no-vertical-margin\\\",\\\"value\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"pair\\\",\\\"definition\\\",\\\"isTextAreaType\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"value\\\",\\\"class\\\",\\\"rows\\\",\\\"autocomplete\\\",\\\"disabled\\\"],[[23,[\\\"pair\\\",\\\"value\\\",\\\"value\\\"]],\\\"form-control vertical-resizable-only\\\",[23,[\\\"pair\\\",\\\"definition\\\",\\\"textAreaRowsNumber\\\"]],\\\"off\\\",[23,[\\\"pair\\\",\\\"value\\\",\\\"editionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"pair\\\",\\\"definition\\\",\\\"autocompleteEnabled\\\"]]],null,{\\\"statements\\\":[[4,\\\"custom-field-auto-complete\\\",null,[[\\\"field\\\",\\\"definitionId\\\",\\\"allowEnteringNewValue\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"newValueEntered\\\",\\\"clearSelection\\\",\\\"autocomplete\\\",\\\"disabled\\\"],[\\\"value\\\",[23,[\\\"pair\\\",\\\"definition\\\",\\\"id\\\"]],true,[27,\\\"readonly\\\",[[23,[\\\"pair\\\",\\\"value\\\",\\\"value\\\"]]],null],[27,\\\"t\\\",[\\\"custom-field-value.autoCompletePlaceholder\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setCustomFieldData\\\",[23,[\\\"pair\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"setCustomFieldData\\\",[23,[\\\"pair\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"removeCustomField\\\",[23,[\\\"pair\\\"]]],null],\\\"off\\\",[23,[\\\"pair\\\",\\\"value\\\",\\\"editionDisabled\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"value\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"pair\\\",\\\"value\\\"]],\\\"no-vertical-margin\\\",\\\"value\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"input\\\",[[27,\\\"-input-type\\\",[[23,[\\\"pair\\\",\\\"definition\\\",\\\"type\\\"]]],null]],[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"autocomplete\\\",\\\"disabled\\\"],[[23,[\\\"pair\\\",\\\"definition\\\",\\\"type\\\"]],\\\"form-control\\\",[23,[\\\"pair\\\",\\\"value\\\",\\\"value\\\"]],\\\"off\\\",[23,[\\\"pair\\\",\\\"value\\\",\\\"editionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"pair\\\",\\\"value\\\"]],\\\"no-vertical-margin\\\",\\\"value\\\"]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/custom-fields-section/custom-field/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/custom-fields-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"mChg5VYQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"pair\\\",\\\"pair\\\",\\\"pair\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-lg-12\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"customFieldPairs\\\",\\\"length\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[21,\\\"emptySectionLabel\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"customFieldPairs\\\",\\\"length\\\"]],[23,[\\\"customFieldSplitValue\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 col-md-6\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"leftCustomFieldPairs\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"transport\\\",\\\"id\\\"]],[22,3,[\\\"definition\\\",\\\"visibleDuringTransportCreation\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[22,3,[\\\"value\\\",\\\"errors\\\",\\\"length\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-6 control-label\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,3,[\\\"definition\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[22,3,[\\\"value\\\",\\\"createdFromRoute\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"info\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-exclamation-circle\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"route.dataFromRoute\\\"],null]]]],[9],[10],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,3,[\\\"value\\\",\\\"changeMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"alert-text\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-exclamation-circle\\\"],[12,\\\"title\\\",[28,[[22,3,[\\\"value\\\",\\\"changeMessage\\\"]]]]],[9],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right col-xs-6\\\"],[11,\\\"data-field-type\\\",\\\"custom-field\\\"],[12,\\\"data-field-name\\\",[28,[[22,3,[\\\"definition\\\",\\\"englishNameTrimmed\\\"]]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"transport/custom-fields-section/custom-field\\\",null,[[\\\"pair\\\",\\\"transport\\\"],[[22,3,[]],[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[3]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 col-md-6\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"rightCustomFieldPairs\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"transport\\\",\\\"id\\\"]],[22,2,[\\\"definition\\\",\\\"visibleDuringTransportCreation\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[22,2,[\\\"value\\\",\\\"errors\\\",\\\"length\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-6 control-label\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,2,[\\\"definition\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[22,2,[\\\"value\\\",\\\"createdFromRoute\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"info\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-exclamation-circle\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"route.dataFromRoute\\\"],null]]]],[9],[10],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,2,[\\\"value\\\",\\\"changeMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"alert-text\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-exclamation-circle\\\"],[12,\\\"title\\\",[28,[[22,2,[\\\"value\\\",\\\"changeMessage\\\"]]]]],[9],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right col-xs-6\\\"],[11,\\\"data-field-type\\\",\\\"custom-field\\\"],[12,\\\"data-field-name\\\",[28,[[22,2,[\\\"definition\\\",\\\"englishNameTrimmed\\\"]]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"transport/custom-fields-section/custom-field\\\",null,[[\\\"pair\\\",\\\"transport\\\"],[[22,2,[]],[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"customFieldPairs\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"transport\\\",\\\"id\\\"]],[22,1,[\\\"definition\\\",\\\"visibleDuringTransportCreation\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[22,1,[\\\"value\\\",\\\"errors\\\",\\\"length\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12 control-label\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"definition\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"value\\\",\\\"createdFromRoute\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"info\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-exclamation-circle\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"route.dataFromRoute\\\"],null]]]],[9],[10],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"value\\\",\\\"changeMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"alert-text\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-exclamation-circle\\\"],[12,\\\"title\\\",[28,[[22,1,[\\\"value\\\",\\\"changeMessage\\\"]]]]],[9],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[11,\\\"data-field-type\\\",\\\"custom-field\\\"],[12,\\\"data-field-name\\\",[28,[[22,1,[\\\"definition\\\",\\\"englishNameTrimmed\\\"]]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"transport/custom-fields-section/custom-field\\\",null,[[\\\"pair\\\",\\\"transport\\\"],[[22,1,[]],[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/custom-fields-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/delivery-section/add-delivery-packaging-button/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    actions: {\n      addNewPackaging() {\n        this.set('action', 'addPackaging');\n        this.sendAction('action');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/delivery-section/add-delivery-packaging-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Q/Ey24iC\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 text-right\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-inline margin-bottom\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"add-package\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addNewPackaging\\\"]],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"packagesMin\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"delivery\\\",\\\"errors\\\",\\\"packaging\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"delivery\\\"]],\\\"packaging\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/delivery-section/add-delivery-packaging-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/delivery-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    modalService: Ember.inject.service('modal-service'),\n    deliveryService: Ember.inject.service('delivery-service'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    tagName: '',\n    errors: Ember.A(),\n    detachErrors: Ember.A(),\n\n    async init() {\n      this._super(...arguments);\n\n      this.set('loading', true);\n      await this.get('delivery.loadStep');\n      await this.get('delivery.unloadStep');\n      await this.get('delivery.loadStep.address');\n      await this.get('delivery.unloadStep.address');\n      await this.get('delivery.loadStep.warehouse');\n      await this.get('delivery.loadStep.warehouse.address');\n      await this.get('delivery.unloadStep.warehouse');\n      await this.get('delivery.unloadStep.warehouse.address');\n      await this.get('delivery.freightCostCurrency');\n      await this.get('delivery.deliveryCustomFieldValues');\n      await this.get('delivery.transportType');\n      await this.get('delivery.packaging');\n      await this.get('delivery.packaging.packageType');\n      await this.get('delivery.deliverySetting');\n      await this.get('transport'); // Edycja jest możliwa tylko jeśli delivery już istnieje, nie jest z msp i user ma odpowiednią rolę\n\n      const hasRole = this.get('sessionAccount').hasRole('ROLE_CAN_EDIT_DELIVERY');\n\n      if (this.get('delivery.id') && (!hasRole || this.get('delivery.isFromSap'))) {\n        this.set('disabled', true);\n      }\n\n      this.set('loading', false);\n    },\n\n    detachErrorText: Ember.computed('detachErrors', function () {\n      if (this.get('detachErrors.length') > 0) {\n        return this.get('detachErrors').toString();\n      }\n\n      return null;\n    }),\n    canDetachDelivery: Ember.computed('transport.[]', function () {\n      if (!this.get('transport.id')) {\n        return false;\n      }\n\n      return this.get('transport').actionCanBePerformed('ROLE_DETACH_DELIVERY');\n    }),\n    delivery: Ember.computed('model.delivery', function () {\n      return this.get('model.delivery');\n    }),\n    shouldShowButtons: Ember.computed('disabled', 'model.delivery', function () {\n      const disabled = !!this.get('disabled');\n      const isInTransport = this.get('transport.id');\n\n      if (isInTransport) {\n        return false;\n      }\n\n      return !disabled;\n    }),\n    canDeleteDelivery: Ember.computed('delivery.id', function () {\n      const role = this.get('sessionAccount').hasRole('ROLE_CAN_DELETE_DELIVERY');\n      const deliveryId = !!this.get('delivery.id');\n      return role && deliveryId;\n    }),\n    actions: {\n      handleDeliveryCustomFields(delivery) {\n        this.deliveryService.handleDeliveryCustomFields(delivery, this.get('customFieldsList'));\n      },\n\n      saveDelivery() {\n        const self = this;\n        const delivery = this.get('delivery');\n        const isNew = !this.get('delivery.id');\n\n        if (!delivery.validate()) {\n          console.error('Walidacja Delivery zwróciła błąd/bledy');\n          delivery.errors.forEach(error => console.error(error.attribute + ' ' + error.message));\n          return;\n        }\n\n        if (!delivery.get('id')) {\n          this.send('handleDeliveryCustomFields', delivery);\n        }\n\n        delivery.save().then(delivery => {\n          delivery.reload();\n          self.get('deliveryService').handleUpdatedDeliveryCustomFields(delivery);\n          self.get('deliveryService').handleUpdatedDeliveryPackaging(delivery);\n          self.get('modalService').hideModal();\n          self.get('modalService').refreshModel();\n\n          if (isNew) {\n            self.deliveryService.showTransportCreatedToast(delivery);\n          }\n        }).catch(e => {\n          self.set('errors', e.errors);\n          console.error(`Błąd podczas zapisywania delivery: ${e}`);\n        });\n      },\n\n      deleteDelivery(delivery) {\n        delivery.deleteRecord();\n        delivery.save();\n\n        if (!this.get('transport')) {\n          this.get('modalService').hideModal();\n        }\n      },\n\n      close() {\n        this.get('delivery.packaging').forEach(pck => {\n          if (pck.get('id')) {\n            pck.rollbackAttributes();\n          } else {\n            pck.destroyRecord();\n          }\n        });\n\n        if (this.get('delivery.id')) {\n          this.get('delivery').rollbackAttributes();\n        } else {\n          this.get('delivery').destroyRecord();\n        }\n\n        this.get('modalService').hideModal();\n      },\n\n      async detachDelivery() {\n        const transport = this.get('transport');\n\n        if (!transport) {\n          console.error('Nie możemy odpiąć delivery od transportu. Brak transportu powiązanego z delivery.');\n          return;\n        }\n\n        const response = await this.apolloApiService.callApolloApi(this.apolloApiService.APOLLO_API.DELIVERY.DETACH_FROM_TRANSPORT, {\n          id: this.get('delivery.id')\n        }, null);\n\n        if (response.ok) {\n          this.set('detachErrors', Ember.A([]));\n          transport.get('deliveries').removeObject(this.get('delivery'));\n          const reloadedTransport = await transport.reload();\n\n          if (reloadedTransport.get('archived')) {\n            this.get('modalService').hideModal();\n          }\n        } else {\n          const error = await response.json();\n          this.set('detachErrors', Ember.A(error.errors));\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/delivery-section/delivery-additional-data-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    transportTypeId: Ember.computed('delivery.transportType.id', function () {\n      return this.get('delivery.transportType.id');\n    }),\n    showPackagingsSections: Ember.computed('transportTypeId', function () {\n      return this.authorityCheckerService.findPositiveAuthorityRestrictionsByActionType('ROLE_ACCESS_DELIVERY_PACKAGING_SECTION', this.get('transportTypeId'));\n    }),\n    autoExpanded: Ember.computed('', function () {\n      return this.get('showPackagingsSections') && this.get('delivery.packaging.length') > 0;\n    }),\n    currencies: Ember.computed('', function () {\n      return this.get('store').peekAll('currency');\n    }),\n    delivery: Ember.computed('model.delivery', function () {\n      return this.get('model.delivery');\n    }),\n    packaging: Ember.computed('delivery.packaging.[]', function () {\n      return this.get('delivery.packaging');\n    }),\n    sortedCustomFields: Ember.computed('delivery.deliveryCustomFieldValues.{[],defnition.idx}', function () {\n      return this.get('delivery.deliveryCustomFieldValues').sortBy('definition.idx');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/delivery-section/delivery-additional-data-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"LBFntCKc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"deliveryCustomField\\\",\\\"opt\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"margin-left-big\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"delivery.additionalData\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"disabled\\\"]],[23,[\\\"delivery\\\",\\\"id\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"sortedCustomFields\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"or\\\",[[27,\\\"not\\\",[[23,[\\\"delivery\\\",\\\"id\\\"]]],null],[22,1,[\\\"id\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group row\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[12,\\\"for\\\",[22,1,[\\\"definition\\\",\\\"englishNameTrimmed\\\"]]],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[22,1,[\\\"definition\\\",\\\"nameInAppropriateLanguage\\\"]],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"definition\\\",\\\"hasAutomaticValueEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[22,1,[\\\"definition\\\",\\\"englishNameTrimmed\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"autocomplete\\\",\\\"disabled\\\"],[\\\"text\\\",\\\"form-control\\\",[22,1,[\\\"value\\\"]],\\\"off\\\",true]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[22,1,[\\\"definition\\\",\\\"isSelectType\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[22,1,[\\\"definition\\\",\\\"englishNameTrimmed\\\"]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"allowClear\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"autocomplete\\\",\\\"onchange\\\"],[[27,\\\"readonly\\\",[[22,1,[\\\"option\\\"]]],null],[22,1,[\\\"definition\\\",\\\"enabledOptions\\\"]],true,true,[23,[\\\"placeholder\\\"]],[23,[\\\"disabled\\\"]],\\\"off\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[22,1,[\\\"option\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"custom-field-select-value\\\"],[9],[1,[22,2,[\\\"nameInAppropriateLanguage\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[22,1,[\\\"definition\\\",\\\"englishNameTrimmed\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[22,1,[\\\"value\\\"]],[22,1,[\\\"definition\\\",\\\"nameInAppropriateLanguage\\\"]],\\\"form-control\\\",\\\"text\\\",[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"planning/custom-fields-section\\\",null,[[\\\"customFields\\\"],[[23,[\\\"customFieldsList\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,[\\\"showPackagingsSections\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"transport/delivery-section/delivery-packaging-section\\\",null,[[\\\"transport\\\",\\\"delivery\\\",\\\"packageTypes\\\",\\\"showExpanded\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"delivery\\\"]],[23,[\\\"packageTypes\\\"]],[23,[\\\"autoExpanded\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/delivery-section/delivery-additional-data-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/delivery-section/delivery-packaging-form/controller\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    intl: Ember.inject.service(),\n    deliveryPackaging: Ember.computed('model.deliveryPackaging', function () {\n      return this.get('model.deliveryPackaging');\n    }),\n    delivery: Ember.computed('model.delivery', function () {\n      return this.get('model.delivery');\n    }),\n    modalTitle: Ember.computed('', function () {\n      return this.get('intl').t('deliveryPackaging.sectionTitle');\n    }),\n    packageTypes: Ember.computed(function () {\n      const transportTypeId = this.get('delivery.transportType.id');\n\n      if (!transportTypeId) {\n        return;\n      }\n\n      return this.get('store').peekAll('packageTypeTransportType').filter(pttt => pttt.get('transportType.id') === transportTypeId).map(pttt => pttt.get('packageType'));\n    }),\n    isEditionDisabled: Ember.computed('delivery.{id,transportType.id}', function () {\n      return !this._checkAuthority('ROLE_EDIT_DELIVERY_PACKAGING', this.get('delivery.transportType.id'));\n    }),\n    isDeletionAllowed: Ember.computed('delivery.{id,transportType.id}', function () {\n      if (!this.get('delivery.id')) {\n        return false;\n      }\n\n      return this._checkAuthority('ROLE_DELETE_DELIVERY_PACKAGING', this.get('delivery.transportType.id'));\n    }),\n    _checkAuthority: function (name, ttId) {\n      return this.authorityCheckerService.findPositiveAuthorityRestrictionsByActionType(name, ttId);\n    },\n    isNewPackage: Ember.computed('deliveryPackaging.id', function () {\n      return this.get('deliveryPackaging.id');\n    }),\n    availableStackingFactors: Ember.computed('delivery.deliverySetting.availableStackingFactors', function () {\n      return this.get('delivery.deliverySetting').get('availableStackingFactors');\n    }),\n    validateStackingFactors: Ember.computed('delivery.deliverySetting.requireStackingFactor', function () {\n      return this.get('delivery.deliverySetting.requireStackingFactor');\n    }),\n    actions: {\n      save() {\n        if (this.get('validateStackingFactors')) {\n          this.get('deliveryPackaging').validate();\n        } else {\n          this.get('deliveryPackaging').validate({\n            except: ['stackingFactor']\n          });\n        }\n\n        if (this.get('deliveryPackaging').get('errors.length')) {\n          return;\n        }\n\n        this.get('deliveryPackaging').set('enabled', true);\n        (0, _jquery.default)('#sub-modal').data('skip-cancel-action', true);\n        this.send('hideModal', 'sub-modal');\n      },\n\n      setPackageType(packageType) {\n        this.get('deliveryPackaging').set('packageType', packageType);\n      },\n\n      disable() {\n        const delivery = this.get('delivery');\n\n        if (this.get('deliveryPackaging').get('id')) {\n          this.get('deliveryPackaging').set('enabled', false);\n          delivery.get('packaging').filter(cp => cp.get('id') === this.get('deliveryPackaging').get('id')).get('firstObject').set('enabled', false);\n        } else {\n          delivery.get('packaging').removeObject(this.get('deliveryPackaging'));\n          this.get('deliveryPackaging').unloadRecord();\n        }\n\n        this.send('hideModal', 'sub-modal');\n      },\n\n      cancel() {\n        if (this.get('deliveryPackaging') && !this.get('deliveryPackaging.id') && !this.get('deliveryPackaging.enabled')) {\n          // 1. deliveryPackaging jest niezapisany ani w bazie, ani w ember-data\n          this.get('delivery.packaging').removeObject(this.get('deliveryPackaging'));\n          this.get('deliveryPackaging').unloadRecord();\n        } else if (this.get('model.deliveryPackaging.id')) {\n          // deliveryPackaging jest zapisany, wprowadzamy zmiany w jego formularzu (po kliknięciu ołówka) a następnie wybieramy \"Anuluj\"\n          const enabled = this.get('deliveryPackaging.enabled');\n          this.get('deliveryPackaging').rollback();\n\n          if (!enabled) {\n            this.get('deliveryPackaging').set('enabled', false);\n          }\n        }\n      },\n\n      close() {\n        this.send('hideModal', 'sub-modal');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/delivery-section/delivery-packaging-form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"3JmG7poI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"stackingFactor\\\",\\\"packageType\\\",\\\"error\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"outletName\\\",\\\"cancel\\\"],[[23,[\\\"modalTitle\\\"]],\\\"sub-modal\\\",[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"deliveryPackaging\\\",\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"deliveryPackaging\\\",\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"errors.\\\",[22,3,[\\\"message\\\"]]],null]],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"data-form-name\\\",\\\"add-packaging-form\\\"],[11,\\\"class\\\",\\\"form-horizontal section\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliveryPackaging.length\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"packaging-length\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"deliveryPackaging\\\",\\\"errors\\\",\\\"length\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"deliveryPackaging\\\",\\\"length\\\"]],[27,\\\"and\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"isNewPackage\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"deliveryPackaging\\\"]],\\\"length\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliveryPackaging.width\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"packaging-width\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"deliveryPackaging\\\",\\\"errors\\\",\\\"width\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"deliveryPackaging\\\",\\\"width\\\"]],[27,\\\"and\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"isNewPackage\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"deliveryPackaging\\\"]],\\\"width\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliveryPackaging.height\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"packaging-height\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"deliveryPackaging\\\",\\\"errors\\\",\\\"height\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"deliveryPackaging\\\",\\\"height\\\"]],[27,\\\"and\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"isNewPackage\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"deliveryPackaging\\\"]],\\\"height\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliveryPackaging.weight\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"packaging-weight\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"deliveryPackaging\\\",\\\"errors\\\",\\\"weight\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"deliveryPackaging\\\",\\\"weight\\\"]],[27,\\\"and\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"isNewPackage\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"deliveryPackaging\\\"]],\\\"weight\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliveryPackaging.quantity\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"quantity\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"deliveryPackaging\\\",\\\"errors\\\",\\\"quantity\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"deliveryPackaging\\\",\\\"quantity\\\"]],[27,\\\"and\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"isNewPackage\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"deliveryPackaging\\\"]],\\\"quantity\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliveryPackaging.packageType\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-type\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"deliveryPackaging\\\",\\\"errors\\\",\\\"packageType\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"deliveryPackaging\\\",\\\"packageType\\\"]],[23,[\\\"packageTypes\\\"]],true,[27,\\\"t\\\",[\\\"deliveryPackaging.packageType\\\"],null],[27,\\\"and\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"isNewPackage\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"setPackageType\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"packageTypes.\\\",[22,2,[\\\"name\\\"]],\\\".label\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"deliveryPackaging\\\"]],\\\"packageType\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliveryPackaging.stackingFactor\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-stacking-factor\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"deliveryPackaging\\\",\\\"errors\\\",\\\"stackingFactor\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"deliveryPackaging\\\",\\\"stackingFactor\\\"]],[23,[\\\"availableStackingFactors\\\"]],true,[27,\\\"t\\\",[\\\"deliveryPackaging.stackingFactor\\\"],null],[27,\\\"and\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"isNewPackage\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"deliveryPackaging\\\",\\\"stackingFactor\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"deliveryPackaging.stackingFactorOptions.\\\",[22,1,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"deliveryPackaging\\\"]],\\\"stackingFactor\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliveryPackaging.description\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"packaging-description\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"deliveryPackaging\\\",\\\"errors\\\",\\\"description\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"deliveryPackaging\\\",\\\"description\\\"]],[27,\\\"and\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"isNewPackage\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"deliveryPackaging\\\"]],\\\"description\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[27,\\\"and\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"isNewPackage\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"save-packaging-button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.ok\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"isDeletionAllowed\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"dataButtonName\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",\\\"delete-packaging-button\\\",[27,\\\"t\\\",[\\\"courier.COURIER_PACKAGE.disableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"disable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"ban\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.disable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"cancel-packaging-button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isEditionDisabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.close\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/delivery-section/delivery-packaging-form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/delivery-section/delivery-packaging-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    modalService: Ember.inject.service('modal-service'),\n    sessionAccount: Ember.inject.service('session-account'),\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    showLdmWarning: Ember.computed('enabledPackaging.@each.ldm', function () {\n      return this.get('enabledPackaging').some(p => p.get('ldm') === null);\n    }),\n    sectionTitle: Ember.computed('intl.locale', function () {\n      return this.intl.t('deliveryPackaging.sectionTitle');\n    }),\n    packageTypeList: Ember.computed('packageTypes', function () {\n      return this.get('packageTypes');\n    }),\n    showAddDeliveryPackagesSection: Ember.computed('delivery.transportType.id', function () {\n      return this._checkAuthority('ROLE_ADD_DELIVERY_PACKAGING', this.get('delivery.transportType.id'));\n    }),\n    deliveryPackagingError: Ember.computed('delivery.{packaging.errors.[],errors.packaging}', function () {\n      if (this.get('delivery.errors.packaging')) {\n        return this.get('delivery.errors.packaging');\n      }\n\n      return this.get('delivery.packaging.errors');\n    }),\n    isEditionDisabled: Ember.computed('delivery.{id,transportType.id}', function () {\n      return !this._checkAuthority('ROLE_EDIT_DELIVERY_PACKAGING', this.get('delivery.transportType.id'));\n    }),\n    isDeletionAllowed: Ember.computed('delivery.{id,transportType.id}', function () {\n      if (!this.get('delivery.id')) {\n        return false;\n      }\n\n      return this._checkAuthority('ROLE_DELETE_DELIVERY_PACKAGING', this.get('delivery.transportType.id'));\n    }),\n    _checkAuthority: function (name, ttId) {\n      return this.authorityCheckerService.findPositiveAuthorityRestrictionsByActionType(name, ttId);\n    },\n    editionOrDeletionIsAllowed: Ember.computed('isDeletionAllowed', 'isEditionDisabled', function () {\n      return !this.get('isEditionDisabled') || this.get('isDeletionAllowed');\n    }),\n    enabledPackaging: Ember.computed('delivery.packaging.@each.enabled', function () {\n      return this.get('delivery.packaging').filterBy('enabled');\n    }),\n    _prepareModel: function () {\n      const deliveryPackaging = this.get('store').createRecord('deliveryPackaging', {\n        loadStep: this.get('delivery.loadStep'),\n        unloadStep: this.get('delivery.unloadStep')\n      });\n\n      const model = this._createModel(deliveryPackaging);\n\n      this.get('delivery.packaging').addObject(deliveryPackaging);\n      return model;\n    },\n    _createModel: function (dp) {\n      return {\n        packageTypes: this.get('packageTypes'),\n        deliveryPackaging: dp,\n        delivery: this.get('delivery')\n      };\n    },\n    availableStackingFactors: Ember.computed('delivery.id', function () {\n      return this.get('delivery.deliverySetting').get('availableStackingFactors');\n    }),\n    showLdm: Ember.computed('transport.truckType', function () {\n      return !!this.get('transport.truckType.id');\n    }),\n    actions: {\n      togglePanel() {\n        this.toggleProperty('isOpened');\n      },\n\n      addPackaging() {\n        this.get('modalService').showModal(this.get('modalService').MODALS.DELIVERY_PACKAGING.FORM, this._prepareModel(), 'sub-modal');\n      },\n\n      setPackageType(pckg, packageType) {\n        pckg.set('packageType', packageType);\n      },\n\n      editPackaging(packaging) {\n        const self = this;\n        this.get('modalService').showModal(this.get('modalService').MODALS.DELIVERY_PACKAGING.FORM, self._createModel(packaging), 'sub-modal');\n      },\n\n      disablePackaging(pckg) {\n        const msg = this.get('intl').t('courier.COURIER_PACKAGE.disableConfirm');\n\n        if (!confirm(msg)) {\n          return;\n        }\n\n        if (pckg.get('id')) {\n          pckg.set('enabled', false);\n        } else {\n          this.get('delivery.packaging').removeObject(pckg);\n          pckg.unloadRecord();\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/delivery-section/delivery-packaging-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"0aMA2bC+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"e\\\",\\\"packaging\\\",\\\"idx\\\",\\\"stackingFactor\\\",\\\"packageType\\\"],\\\"statements\\\":[[4,\\\"expandable-panel\\\",null,[[\\\"title\\\",\\\"componentName\\\",\\\"errors\\\",\\\"defaultOpen\\\"],[[23,[\\\"sectionTitle\\\"]],\\\"packages-panel\\\",[23,[\\\"deliveryPackagingError\\\"]],[23,[\\\"showExpanded\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showAddDeliveryPackagesSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"transport/delivery-section/add-delivery-packaging-button\\\",null,[[\\\"delivery\\\"],[[23,[\\\"delivery\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-12 package-table \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"scrollable-modal-section\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\"],[11,\\\"id\\\",\\\"packagees-table\\\"],[11,\\\"class\\\",\\\"table table-hover\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"#\\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.id\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"deliveryPackaging.length\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"deliveryPackaging.width\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"deliveryPackaging.height\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"deliveryPackaging.weight\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"deliveryPackaging.quantity\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"deliveryPackaging.packageType\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"deliveryPackaging.stackingFactor\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"deliveryPackaging.description\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showLdm\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"deliveryPackaging.ldmLabel\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"enabledPackaging\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"add\\\",[[22,3,[]],1],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"internalId\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-id\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[22,2,[\\\"id\\\"]],true,[27,\\\"t\\\",[\\\"common.id\\\"],null]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"id\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"length\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"packaging-length\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,2,[\\\"length\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"length\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"width\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"packaging-width\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,2,[\\\"width\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"width\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"height\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"packaging-height\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,2,[\\\"height\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"height\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"weight\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"packaging-weight\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,2,[\\\"weight\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"weight\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"quantity\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"number-of-packagings\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,2,[\\\"quantity\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"quantity\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"packagingType\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"packaging-type\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[22,2,[\\\"packageType\\\"]],[23,[\\\"packageTypes\\\"]],true,[27,\\\"t\\\",[\\\"deliveryPackaging.packageType\\\"],null],[23,[\\\"isEditionDisabled\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setPackageType\\\",[22,2,[]]],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"packageTypes.\\\",[22,5,[\\\"name\\\"]],\\\".label\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"packageType\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"packagingFactor\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-stacking-factor\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[22,2,[\\\"stackingFactor\\\"]],[23,[\\\"availableStackingFactors\\\"]],true,[27,\\\"t\\\",[\\\"deliveryPackaging.stackingFactor\\\"],null],[23,[\\\"isEditionDisabled\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[22,2,[\\\"stackingFactor\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"deliveryPackaging.stackingFactorOptions.\\\",[22,4,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"stackingFactor\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"description\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"packaging-description\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,2,[\\\"description\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"description\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showLdm\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"description\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"packaging-ldm\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,2,[\\\"packagingLdm\\\"]],true]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"editionOrDeletionIsAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"block\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"isEditionDisabled\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"i\\\"],[11,\\\"data-button-name\\\",\\\"packaging-edit-button\\\"],[11,\\\"class\\\",\\\"fa fa-pencil-square clickable\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"editPackaging\\\",[22,2,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"isDeletionAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"i\\\"],[11,\\\"data-button-name\\\",\\\"packaging-delete-button\\\"],[11,\\\"class\\\",\\\"fa fa-ban clickable\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"disablePackaging\\\",[22,2,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[4,\\\"if\\\",[[23,[\\\"packaging\\\",\\\"hasErrors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\"],[11,\\\"class\\\",\\\"errors\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[11,\\\"colspan\\\",\\\"11\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"packaging\\\",\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"package.\\\",[22,1,[\\\"attribute\\\"]]],null]],null],false],[0,\\\" ::\\\\n\\\\n                                    \\\"],[1,[27,\\\"field-error-message\\\",null,[[\\\"modelName\\\",\\\"error\\\"],[\\\"package\\\",[22,1,[]]]]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.sum\\\"],null],false],[10],[0,\\\" \\\"],[1,[23,[\\\"delivery\\\",\\\"enabledPackagingWeight\\\"]],false],[0,\\\" [kg]\\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.sum\\\"],null],false],[10],[0,\\\" \\\"],[1,[23,[\\\"delivery\\\",\\\"enabledPackagingQuantity\\\"]],false],[0,\\\" [szt.]\\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showLdm\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"td\\\"],[9],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.sum\\\"],null],false],[10],[0,\\\" \\\"],[1,[23,[\\\"delivery\\\",\\\"enabledPackagingLdm\\\"]],false],[0,\\\" [ldm]\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showLdmWarning\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"alert-text\\\"],[9],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-exclamation-circle\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"deliveryPackaging.ldmWarning\\\"],null]]]],[9],[10],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/delivery-section/delivery-packaging-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/delivery-section/delivery-top-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    enums: Ember.inject.service('enum-service'),\n    tagName: '',\n    incoterms: Ember.computed('', function () {\n      return this.get('enums').get('incoterms');\n    }),\n    transportTypeId: Ember.computed('delivery.transportType.id', function () {\n      return this.get('delivery.transportType.id');\n    }),\n    showSimplePackaging: Ember.computed('delivery.deliverySetting.showSimplePackagingSection', function () {\n      return !!this.get('delivery.deliverySetting.showSimplePackagingSection');\n    }),\n    currencies: Ember.computed('', function () {\n      return this.get('store').peekAll('currency');\n    }),\n    showDeliveryNumber: Ember.computed('transportTypeId', function () {\n      return this.authorityCheckerService.findPositiveAuthorityRestrictionsByActionType('ROLE_ACCESS_DELIVERY_DELIVERY_NUMBER', this.get('transportTypeId'));\n    }),\n    showDeliveryInvoiceNumber: Ember.computed('transportTypeId', function () {\n      return this.authorityCheckerService.findPositiveAuthorityRestrictionsByActionType('ROLE_ACCESS_DELIVERY_INVOICE_NUMBER', this.get('transportTypeId'));\n    }),\n    showNetWeight: Ember.computed('transportTypeId', function () {\n      return this.authorityCheckerService.findPositiveAuthorityRestrictionsByActionType('ROLE_ACCESS_DELIVERY_NET_WEIGHT', this.get('transportTypeId'));\n    }),\n    showGrossWeight: Ember.computed('transportTypeId', function () {\n      return this.authorityCheckerService.findPositiveAuthorityRestrictionsByActionType('ROLE_ACCESS_DELIVERY_GROSS_WEIGHT', this.get('transportTypeId'));\n    }),\n    showDescription: Ember.computed('transportTypeId', function () {\n      return this.authorityCheckerService.findPositiveAuthorityRestrictionsByActionType('ROLE_ACCESS_DELIVERY_DESCRIPTION', this.get('transportTypeId'));\n    }),\n    showFreightCost: Ember.computed('transportTypeId', function () {\n      return this.authorityCheckerService.findPositiveAuthorityRestrictionsByActionType('ROLE_ACCESS_DELIVERY_FREIGHT_COST', this.get('transportTypeId'));\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/delivery-section/delivery-top-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"VHlnFTyb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"c\\\",\\\"p\\\",\\\"incoterms\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showDeliveryNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group row \\\",[27,\\\"if\\\",[[23,[\\\"delivery\\\",\\\"errors\\\",\\\"deliveryNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"deliveryNumber\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.deliveryNumber\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[11,\\\"data-field-name\\\",\\\"delivery-number\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"delivery\\\",\\\"deliveryNumber\\\"]],[27,\\\"t\\\",[\\\"delivery.deliveryNumber\\\"],null],\\\"form-control\\\",\\\"text\\\",[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"delivery\\\"]],\\\"deliveryNumber\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group row \\\",[27,\\\"if\\\",[[23,[\\\"delivery\\\",\\\"errors\\\",\\\"incoterms\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"incoterms\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.incoterms\\\"],null],false],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[11,\\\"data-field-name\\\",\\\"incoterms\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"delivery\\\",\\\"incoterms\\\"]]],null],[23,[\\\"incoterms\\\"]],true,[27,\\\"t\\\",[\\\"transport.courierSection.incoterms\\\"],null],[23,[\\\"disabled\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"delivery\\\",\\\"incoterms\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[22,3,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"delivery\\\"]],\\\"incoterms\\\"]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showNetWeight\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group row \\\",[27,\\\"if\\\",[[23,[\\\"delivery\\\",\\\"errors\\\",\\\"netWeight\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"net-weight\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.netWeightKg\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[11,\\\"data-field-name\\\",\\\"net-weight\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"delivery\\\",\\\"netWeight\\\"]],[27,\\\"t\\\",[\\\"common.netWeightKg\\\"],null],\\\"form-control\\\",\\\"number\\\",[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"delivery\\\"]],\\\"netWeight\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showGrossWeight\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group row \\\",[27,\\\"if\\\",[[23,[\\\"delivery\\\",\\\"errors\\\",\\\"grossWeight\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"gross-weight\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.grossWeightKg\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[11,\\\"data-field-name\\\",\\\"gross-weight\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"delivery\\\",\\\"grossWeight\\\"]],[27,\\\"t\\\",[\\\"common.grossWeightKg\\\"],null],\\\"form-control\\\",\\\"number\\\",[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"delivery\\\"]],\\\"grossWeight\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showSimplePackaging\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"delivery\\\",\\\"enabledPackaging\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group row \\\",[27,\\\"if\\\",[[22,2,[\\\"errors\\\",\\\"quantity\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"package\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[[23,[\\\"concat\\\"]],\\\"packageTypes.\\\",[22,2,[\\\"packageType\\\",\\\"name\\\"]],\\\".label\\\"],null]],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[12,\\\"data-field-name\\\",[28,[\\\"package-type-name-\\\",[22,2,[\\\"packageType\\\",\\\"name\\\"]]]]],[12,\\\"data-field-id\\\",[28,[\\\"package-type-id-\\\",[22,2,[\\\"packageType\\\",\\\"id\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[22,2,[\\\"quantity\\\"]],\\\"form-control\\\",\\\"number\\\",[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,2,[]],\\\"quantity\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showDescription\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"description\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.description\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[11,\\\"data-field-name\\\",\\\"description\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"delivery\\\",\\\"description\\\"]],[27,\\\"t\\\",[\\\"delivery.description\\\"],null],\\\"form-control\\\",\\\"text\\\",[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showFreightCost\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group row \\\",[27,\\\"if\\\",[[23,[\\\"delivery\\\",\\\"errors\\\",\\\"freightCost\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"freightCost\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.freightCost\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[11,\\\"data-field-name\\\",\\\"freight-cost\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-6 col-xs-9 no-padding padding-right-small\\\"],[11,\\\"data-field-name\\\",\\\"transaction-price\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"delivery\\\",\\\"freightCost\\\"]],[27,\\\"t\\\",[\\\"delivery.freightCost\\\"],null],\\\"form-control\\\",\\\"text\\\",[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"delivery\\\"]],\\\"freightCost\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-4 no-padding \\\",[27,\\\"if\\\",[[23,[\\\"delivery\\\",\\\"errors\\\",\\\"freightCostCurrency\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"delivery\\\",\\\"freightCostCurrency\\\"]]],null],[23,[\\\"currencies\\\"]],true,\\\"symbol\\\",[27,\\\"t\\\",[\\\"common.currency\\\"],null],[23,[\\\"disabled\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"delivery\\\",\\\"freightCostCurrency\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,1,[\\\"symbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"delivery\\\"]],\\\"freightCostCurrency\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showDeliveryInvoiceNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"invoiceNumber\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"transaction.invoiceNumber\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[11,\\\"data-field-name\\\",\\\"invoice-number\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\",\\\"disabled\\\"],[[23,[\\\"delivery\\\",\\\"invoiceNumber\\\"]],[27,\\\"t\\\",[\\\"transaction.invoiceNumber\\\"],null],\\\"form-control\\\",\\\"text\\\",true]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/delivery-section/delivery-top-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/delivery-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"V55jnSO8\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"loading\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"t\\\",[\\\"common.loadingData\\\"],null],false],[0,\\\" \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/images/ajax-loader.gif\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"transport/delivery-section/delivery-top-section\\\",null,[[\\\"delivery\\\",\\\"disabled\\\"],[[23,[\\\"delivery\\\"]],[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-column step-columns-2\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"margin-left-big\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"delivery.step.load\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"planning/delivery-step-section\\\",null,[[\\\"step\\\",\\\"transportType\\\",\\\"delivery\\\",\\\"disabled\\\"],[[23,[\\\"delivery\\\",\\\"loadStep\\\"]],[23,[\\\"transportType\\\"]],[23,[\\\"delivery\\\"]],[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-column step-columns-2\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"margin-right-big\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"delivery.step.unload\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"planning/delivery-step-section\\\",null,[[\\\"step\\\",\\\"transportType\\\",\\\"delivery\\\",\\\"disabled\\\"],[[23,[\\\"delivery\\\",\\\"unloadStep\\\"]],[23,[\\\"transportType\\\"]],[23,[\\\"delivery\\\"]],[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[27,\\\"transport/delivery-section/delivery-additional-data-section\\\",null,[[\\\"customFieldsList\\\",\\\"delivery\\\",\\\"transport\\\",\\\"packageTypes\\\",\\\"disabled\\\"],[[23,[\\\"customFieldsList\\\"]],[23,[\\\"delivery\\\"]],[23,[\\\"transport\\\"]],[23,[\\\"packageTypes\\\"]],[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons padding-top-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canDetachDelivery\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"detachErrorText\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"text-danger\\\"],[9],[1,[21,\\\"detachErrorText\\\"],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-danger save-group-button\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.detachFromTransport\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"detachDelivery\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"canDeleteDelivery\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-danger pull-left\\\",[27,\\\"t\\\",[\\\"delivery.delete\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"deleteDelivery\\\",[23,[\\\"delivery\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-trash\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"shouldShowButtons\\\"]]],null,{\\\"statements\\\":[[0,\\\"             \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary save-group-button\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"saveDelivery\\\"]],[10],[0,\\\"\\\\n\\\\n             \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                 \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n             \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"             \\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/delivery-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/detach-all-deliveries/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    modalService: Ember.inject.service('modal-service'),\n    processingData: false,\n    errors: Ember.A([]),\n\n    init() {\n      this._super(...arguments);\n\n      this.set('errors', Ember.A([]));\n    },\n\n    transport: Ember.computed('model.transport', function () {\n      return this.get('model.transport');\n    }),\n    deliveries: Ember.computed('model.transport.deliveries', function () {\n      return this.get('model.transport.deliveries');\n    }),\n    showSpinner: Ember.computed('processingData', function () {\n      return this.get('processingData');\n    }),\n    actions: {\n      async detachAllDeliveries() {\n        this.set('processingData', true);\n        const response = await this.apolloApiService.callApolloApi(this.apolloApiService.APOLLO_API.TRANSPORTS.DETACH_ALL_DELIVERIES, {\n          id: this.get('transport.id')\n        }, null);\n        this.set('processingData', false);\n\n        if (response.ok) {\n          this.set('errors', Ember.A([]));\n          this.get('modalService').hideModal('main-modal');\n          this.get('modalService').hideModal('sub-modal');\n        } else {\n          const error = await response.json();\n          this.set('errors', Ember.A(error.errors));\n        }\n      },\n\n      cancel() {\n        this.send('hideModal');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/detach-all-deliveries/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"VojZnyri\",\n    \"block\": \"{\\\"symbols\\\":[\\\"d\\\",\\\"e\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"outletName\\\",\\\"cancel\\\"],[[23,[\\\"modalTitle\\\"]],\\\"sub-modal\\\",[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showSpinner\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"style\\\",\\\"text-align: center;\\\"],[9],[0,\\\"\\\\\\\">\\\\n                \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"text-warning\\\"],[9],[1,[22,2,[]],false],[0,\\\" :: \\\"],[1,[22,2,[\\\"message\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"delivery.detachDeliveriesModalText\\\"],null],false],[0,\\\" #\\\"],[1,[23,[\\\"transport\\\",\\\"identifier\\\"]],false],[0,\\\":\\\\n            \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"deliveries\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"li\\\"],[9],[1,[22,1,[\\\"deliveryNumber\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"detach-all-button\\\"],[11,\\\"class\\\",\\\"btn btn-danger\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"delivery.detachAllDeliveries\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"detachAllDeliveries\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"cancel-detach-all-button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.close\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/detach-all-deliveries/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/discrepancy-report-section/component\", [\"exports\", \"jquery\", \"apollo/config/environment\", \"apollo/mixins/transport-form-mixin\"], function (_exports, _jquery, _environment, _transportFormMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_transportFormMixin.default, {\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n\n    init() {\n      this._super(...arguments);\n\n      const transport = this.get('transport');\n      this.initializeDiscrepancyReport(transport);\n    },\n\n    noDiscrepanciesFoundLabel: Ember.computed('', function () {\n      return this.get('intl').t('discrepancyReport.noDiscrepanciesFound');\n    }),\n    shouldDiscrepancyButtonBeDisabled: Ember.computed('transport.advice.id', 'transport.hasDiscrepancyOptionsActive', function () {\n      return !this.get('transport.id') || !this.get('transport.advice.id') || !this.get('transport.hasDiscrepancyOptionsActive');\n    }),\n    showGenerateDiscrepancyReportButton: Ember.computed('transport.discrepancyReport.id', 'transport.discrepancyReport.canBeGenerateAgain', 'transport.customFields.@each.{value,isDirty}', function () {\n      if (this.get('transport.archived')) {\n        return false;\n      }\n\n      if (!this.get('sessionAccount').hasRole('ROLE_CREATE_DISCREPANCY_PROTOCOL')) {\n        return false;\n      }\n\n      if (!this.get('transport.discrepancyReport.id')) {\n        return true;\n      }\n\n      const anyCustomFieldDirty = this.get('transport.customFieldPairs').filter(function (cf) {\n        return cf.definition.get('visibleInDiscrepancyReportSection') === true && cf.value && cf.value.get('isDirty');\n      });\n      return this.get('transport.discrepancyReport.canBeGenerateAgain') || anyCustomFieldDirty;\n    }),\n    actions: {\n      generateDiscrepancyReport(defer) {\n        const self = this;\n        const transport = this.get('transport');\n        const createTransportController = self.get('createTransportController');\n        const valid = createTransportController.prepareTransportForSaving(transport);\n\n        if (!valid) {\n          defer.resolve();\n          return;\n        }\n\n        transport.save().then(() => {\n          createTransportController.handleSavedTransport(transport, createTransportController);\n          const discrepancyReport = self.get('store').createRecord('discrepancy-report', {\n            transport: self.get('transport')\n          });\n          discrepancyReport.save().then(() => {\n            defer.resolve();\n          });\n        }).catch(response => {\n          (0, _jquery.default)('.transport-modal').scrollTop(0);\n          self.set('errors', response.errors);\n        }).finally(() => $('.save-transport-button').button('reset'));\n      },\n\n      downloadDiscrepancyReport() {\n        const self = this;\n        Ember.run.once(this, function () {\n          window.open(_environment.default.serverURL + '/discrepancy-reports/' + self.get('transport.discrepancyReport.id') + '/download?token=' + self.get('sessionAccount').get('token'), '_blank');\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/discrepancy-report-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"IqN3+tNh\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"transport/custom-fields-section\\\",null,[[\\\"transport\\\",\\\"discrepancyReportSection\\\",\\\"emptySectionLabel\\\"],[[23,[\\\"transport\\\"]],true,[23,[\\\"noDiscrepanciesFoundLabel\\\"]]]]],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left col-xs-6 clickable\\\"],[11,\\\"data-field-name\\\",\\\"download-discrepancy-report-button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"discrepancyReport\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"a\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file\\\"],[9],[10],[0,\\\" \\\"],[1,[23,[\\\"transport\\\",\\\"discrepancyReport\\\",\\\"sequence\\\"]],false],[0,\\\"\\\\n                _\\\"],[1,[23,[\\\"transport\\\",\\\"discrepancyReport\\\",\\\"documentVersion\\\"]],false],[0,\\\"_\\\"],[1,[27,\\\"t\\\",[\\\"discrepancyReport.label\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"downloadDiscrepancyReport\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-6\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showGenerateDiscrepancyReportButton\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,[\\\"transport\\\",\\\"advice\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-right padding-bottom\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"discrepancyReport.noAdviceInfo\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"unless\\\",[[23,[\\\"transport\\\",\\\"hasDiscrepancyOptionsActive\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-right padding-bottom\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"discrepancyReport.noDiscrepanciesInfo\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"pull-right  btn btn-primary generate-discrepancy-report-button\\\"],[11,\\\"data-button-name\\\",\\\"generate-discrepancy-report-button\\\"],[12,\\\"disabled\\\",[21,\\\"shouldDiscrepancyButtonBeDisabled\\\"]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"discrepancyReport.generate\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"generateDiscrepancyReport\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/discrepancy-report-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/documents-section/component\", [\"exports\", \"apollo/mixins/attachment-mixin\", \"apollo/mixins/document-mixin\"], function (_exports, _attachmentMixin, _documentMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_attachmentMixin.default, _documentMixin.default, {\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    tagName: 'div',\n    classNames: ['drop-leave'],\n\n    dragOver(event) {\n      event.stopPropagation();\n      const dropZone = $('.dropzone');\n\n      if (!dropZone.hasClass('transport-dragover')) {\n        dropZone.addClass('transport-dragover');\n      }\n    },\n\n    dragLeave(event) {\n      event.stopPropagation();\n      const dropZone = $('.dropzone');\n\n      if (dropZone.hasClass('transport-dragover')) {\n        dropZone.removeClass('transport-dragover');\n      }\n    },\n\n    drop(event) {\n      if (!this.get('transport.id')) {\n        event.preventDefault();\n        const attachments = this.attachments;\n        const self = this;\n        const dataFromDrop = Ember.A(event.dataTransfer.items);\n        const token = this.get('sessionAccount').get('token');\n        const files = Ember.A();\n        Ember.A([...dataFromDrop]).forEach(data => {\n          if (data.kind === 'file') {\n            files.pushObject(data.getAsFile());\n          }\n        });\n        files.forEach(function (file) {\n          if (!attachments.findBy('name', file.name)) {\n            attachments.pushObject(file);\n          }\n        });\n\n        if (attachments) {\n          self.uploadAttachment(this.get('transport.id'), token).then(() => {\n            self.attachments.clear();\n          });\n        }\n      }\n\n      const dropZone = $('.dragover');\n\n      if (dropZone.hasClass('dragover')) {\n        dropZone.removeClass('transport-dragover');\n      }\n    },\n\n    actions: {\n      showNoAuthorityAlert() {\n        alert(this.get('intl').t('common.noAuthority'));\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/documents-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ZD5F/4JK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"report\\\",\\\"attachment\\\",\\\"file\\\"],\\\"statements\\\":[[1,[27,\\\"documents-transport/add-document-button\\\",null,[[\\\"transport\\\",\\\"attachments\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"attachments\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-10\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"files\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,3,[\\\"canBeDownloaded\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"p\\\"],[12,\\\"id\\\",[28,[\\\"file-\\\",[22,3,[\\\"id\\\"]]]]],[11,\\\"class\\\",\\\"col-xs-5 ellipsis\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[22,3,[\\\"refLink\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file\\\"],[9],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,3,[\\\"name\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"a\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file\\\"],[9],[10],[0,\\\" \\\"],[1,[22,3,[\\\"name\\\"]],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showAlert\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"col-xs-1\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,3,[\\\"showDeleteIcon\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-remove text-link\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"removeExistingFile\\\",[22,3,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"attachments\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\"],[12,\\\"id\\\",[28,[\\\"file-\\\",[22,2,[\\\"id\\\"]]]]],[11,\\\"class\\\",\\\"col-xs-5 ellipsis\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[9],[1,[22,2,[\\\"name\\\"]],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"col-xs-1\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showDeleteDocumentButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-remove text-link\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"removeFile\\\",[22,2,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row col-xs-12\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"discrepancyReports\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\"],[12,\\\"id\\\",[28,[\\\"file-\\\",[22,1,[\\\"id\\\"]]]]],[11,\\\"class\\\",\\\"col-xs-5 ellipsis\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"text-link\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file\\\"],[9],[10],[0,\\\" \\\"],[1,[22,1,[\\\"sequence\\\"]],false],[0,\\\"_\\\"],[1,[22,1,[\\\"documentVersion\\\"]],false],[0,\\\"_\\\"],[1,[27,\\\"t\\\",[\\\"discrepancyReport.label\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"downloadDiscrepancyReport\\\",[22,1,[\\\"id\\\"]]]],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/documents-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/driver-section/component\", [\"exports\", \"jquery\", \"apollo/mixins/form-utils-mixin\", \"apollo/mixins/advice-utils-mixin\"], function (_exports, _jquery, _formUtilsMixin, _adviceUtilsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_formUtilsMixin.default, _adviceUtilsMixin.default, {\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    relationsTrackerService: Ember.inject.service('transport-relations.relations-tracker'),\n    transportOrAnyInTransportCombining: Ember.computed('transport', function () {\n      return this.get('transport.isMasterTransportInTransportCombining') ? this.get('transport.allCombinedTransports').filter(t => !t.get('isMasterTransportInTransportCombining')).get('firstObject') : this.get('transport');\n    }),\n    init: async function () {\n      this._super();\n\n      if (this.get('advice.content')) {\n        this.get('advice').set('rodoAcceptanceChangedManually', false);\n      }\n\n      if (this.get('requiresModeOfTransportationVerification')) {\n        this.send('setModesOfTransportation');\n      }\n\n      if (this.get('advice.content')) {\n        this.get('advice').set('didDriverLanguageChanged', false);\n      } // Jeśli typ transportu pozawala na tworzenie awizacji okresowych, to musimy pobrać całą mapę firmy przewoźnika\n      // która zawiera informację odnośnie możliwości tworzenia awizacji okresowych w danej firmie.\n\n\n      if (this.get('transport').get('transportType.allowsPeriodicTransport')) {\n        await this.store.findRecord('company', this.get('transport.carrierCompany.id'));\n      }\n    },\n    advice: Ember.computed('transport.advice', function () {\n      return this.get('transport.advice');\n    }),\n    countries: Ember.computed('principalCompany', function () {\n      return this.get('store').peekRecord('company', localStorage.getItem('principalId')).get('driverLanguages').sortBy('ibanSymbol');\n    }),\n    useExternalSource: Ember.computed('transport.transportType.useResourcesFromExternalSource', function () {\n      return this.get('transport.transportType.useResourcesFromExternalSource');\n    }),\n    allowManualInput: Ember.computed('useExternalSource', 'userManualInput', function () {\n      return this.get('useExternalSource') && this.get('userManualInput');\n    }),\n    nameTermsOfConditionsAcceptedSetting: Ember.computed(function () {\n      const principalCompanyId = localStorage.getItem('principalId');\n      const termsLabelLanguage = this.get('languageService').findProperLanguageVersion('NAME_TERMS_OF_CONDITIONS_ACCEPTED', 'NAME_TERMS_OF_CONDITIONS_ACCEPTED_EN');\n      return this.get('store').peekAll('setting').filterBy('company.id', principalCompanyId).filterBy('name', termsLabelLanguage).get('firstObject');\n    }),\n    fileTermsOfConditionsAcceptedSetting: Ember.computed(function () {\n      const principalCompanyId = localStorage.getItem('principalId');\n      return this.get('store').peekAll('setting').filterBy('company.id', principalCompanyId).filterBy('name', 'FILE_TERMS_OF_CONDITIONS_ACCEPTED').get('firstObject');\n    }),\n    // eslint-disable-next-line ember/no-on-calls-in-components,ember/no-observers\n    setRodoAcceptance: Ember.on('init', Ember.observer('advice.id', 'advice.isDirty', 'advice.hasDirtyRelations', function () {\n      // eslint-disable-next-line ember/no-incorrect-calls-with-inline-anonymous-functions\n      Ember.run.once(this, function () {\n        this.setRodoValue(this.get('advice'));\n      });\n    })),\n    showPasteAdviceArea: Ember.computed('transport.advice.id', function () {\n      return this.get('transport.transportType.pastingFromExcelEnabled');\n    }),\n    showTrailer: Ember.computed('', function () {\n      return this.get('transport.transportType.allowsTrailer');\n    }),\n    periodicTransportAllowed: Ember.computed('transport.{id,transportType.allowsPeriodicTransport,carrierCompany.allowsPeriodicTransport,contractors.@each.allowsPeriodicTransport}', function () {\n      const transport = this.get('transport');\n\n      if (transport.get('id') && transport.get('periodicTransportInternalIndex')) {\n        return true;\n      }\n\n      if (!transport.get('transportType.allowsPeriodicTransport')) {\n        return false;\n      }\n\n      return transport.get('carrierCompany').get('allowsPeriodicTransport') || transport.get('contractors').some(c => c.get('allowsPeriodicTransport'));\n    }),\n    companyIds: Ember.computed('advice.transport.{contractors.[],.carrierCompany.id}', 'transport.carrierCompany', function () {\n      const ids = [];\n\n      if (!this.get('sessionAccount.currentUser.isPrincipal')) {\n        ids.push(this.get('sessionAccount.currentUser.company.id'));\n        return ids;\n      }\n\n      this.get('advice.transport.contractors').forEach(c => ids.push(c.get('id')));\n      ids.push(this.get('advice.transport.carrierCompany.id'));\n      return ids;\n    }),\n    type: Ember.computed('advice.transport.{contractors.[],.carrierCompany.id}', 'transport.carrierCompany', function () {\n      const transportTypeName = this.get('transport').get('transportType.name');\n      const relatedTransports = this.get('transport').get('relatedTo');\n      const combiningTransportTypeName = this.get('store').peekAll('transportType').find(tt => tt.get('participatesInCombiningTransports') === true);\n\n      if (relatedTransports.length > 0 && !!combiningTransportTypeName) {\n        return combiningTransportTypeName.get('name');\n      }\n\n      return transportTypeName;\n    }),\n    requiresModeOfTransportationVerification: Ember.computed('transport.transportType.requiresModeOfTransportationVerification', function () {\n      return this.get('transport.transportType.requiresModeOfTransportationVerification');\n    }),\n\n    /**\n     * modesOfTransportation ustawiane są na podstawie danych z serwerach podczas inicjalizacji tego\n     * komponentu (setModeOfTransportation), ale musimy też aktualizować najpóźniejszą godzinę awizacji (tmpTransportDate)\n     * podczas edycji z poziomu formularza -- do tego celu potrzebny nam jest ten `observer`.\n     */\n    // eslint-disable-next-line ember/no-observers\n    setTransportDate: Ember.observer('transport.maxTransportDate', function () {\n      const maxTransportDate = this.get('transport.maxTransportDate');\n\n      if (this.get('modesOfTransportation')) {\n        this.get('modesOfTransportation').forEach(truck => {\n          truck.set('tmpTransportDate', maxTransportDate);\n        });\n      }\n    }),\n    allowEnterValueToAutoComplete: Ember.computed('transport.transportType', 'allowManualInput', function () {\n      return this.get('allowManualInput') || !this.get('transport.transportType.useResourcesFromExternalSource');\n    }),\n    setDriverDataOnce: function (item, language) {\n      this.set('transport.advice.driverName', item.driverName);\n      this.set('transport.advice.driverId', item.driverId);\n      this.set('transport.advice.driverMobilePhonePrefix', item.driverMobilePhonePrefix);\n      this.set('transport.advice.driverMobilePhoneNumber', item.driverMobilePhoneNumber);\n\n      if (!this.get('requiresModeOfTransportationVerification')) {\n        this.set('transport.advice.carRegistrationNumber', item.carRegistrationNumber);\n        this.set('transport.advice.trailerRegistrationNumber', item.trailerRegistrationNumber);\n      }\n\n      this.set('transport.advice.documentNumber', item.documentNumber);\n      this.set('transport.advice.driverLanguage', language);\n      this.set('transport.advice.termsOfConditionsAccepted', item.termsOfConditionsAccepted);\n    },\n    setExternalDriverDataOnce: function (item, language) {\n      const driverName = this.get('transport.advice.driverName');\n\n      if (!driverName || driverName === item.driverName) {\n        this.set('transport.advice.driverName', item.driverName);\n        this.set('transport.advice.marcosDriverId', item.marcosDriverId);\n      }\n\n      const prefix = this.get('transport.advice.driverMobilePhonePrefix');\n\n      if (!prefix || prefix === item.driverMobilePhonePrefix) {\n        this.set('transport.advice.driverMobilePhonePrefix', item.driverMobilePhonePrefix);\n      }\n\n      if (!prefix) {\n        this.set('transport.advice.driverMobilePhonePrefix', '+48');\n      }\n\n      const driverMobilePhoneNumber = this.get('transport.advice.driverMobilePhoneNumber');\n\n      if (!driverMobilePhoneNumber || driverMobilePhoneNumber === item.driverMobilePhoneNumber) {\n        this.set('transport.advice.driverMobilePhoneNumber', item.driverMobilePhoneNumber);\n      }\n\n      const carRegistrationNumber = this.get('transport.advice.carRegistrationNumber');\n\n      if (!carRegistrationNumber || carRegistrationNumber === item.carRegistrationNumber) {\n        this.set('transport.advice.carRegistrationNumber', item.carRegistrationNumber);\n        this.set('transport.advice.marcosTruckId', item.marcosTruckId);\n      }\n\n      const trailerRegistrationNumber = this.get('transport.advice.trailerRegistrationNumber');\n\n      if (!trailerRegistrationNumber || trailerRegistrationNumber === item.trailerRegistrationNumber) {\n        this.set('transport.advice.trailerRegistrationNumber', item.trailerRegistrationNumber);\n        this.set('transport.advice.marcosTrailerId', item.marcosTrailerId);\n      }\n\n      const documentNumber = this.get('transport.advice.documentNumber');\n\n      if (!documentNumber || documentNumber === item.documentNumber) {\n        this.set('transport.advice.documentNumber', item.documentNumber);\n      }\n\n      this.set('transport.advice.driverLanguage', language);\n      this.set('transport.advice.termsOfConditionsAccepted', item.termsOfConditionsAccepted);\n    },\n    showSaveAsResourceCheckbox: Ember.computed('transport.transportType', function () {\n      return this.get('transport.transportType.allowsSaveAsResourceCheckbox');\n    }),\n    actions: {\n      toggleRodoAcceptance() {\n        this.get('advice').set('rodoAcceptanceChangedManually', true);\n        this.get('advice').toggleProperty('rodoAccepted');\n      },\n\n      setPhonePrefix(phonePrefix) {\n        this.set('advice.driverMobilePhonePrefix', phonePrefix);\n      },\n\n      setDriverData(item) {\n        const self = this;\n        const language = item.driverLanguage ? this.get('store').peekRecord('country', item.driverLanguage) : null; // eslint-disable-next-line ember/no-incorrect-calls-with-inline-anonymous-functions\n\n        if (this.get('transport.transportType.useResourcesFromExternalSource') && !this.get('allowManualInput')) {\n          Ember.run.once(this, 'setExternalDriverDataOnce', item, language);\n        } else {\n          Ember.run.once(this, 'setDriverDataOnce', item, language);\n        }\n\n        if (item.customFields) {\n          const transportFields = self.get('transport.customFields');\n          item.customFields.forEach(f => {\n            const filteredTransportFields = transportFields.filter(field => {\n              return field.get('definition.id') === f.definition.toString();\n            });\n\n            if (!filteredTransportFields || !filteredTransportFields.length) {\n              return true;\n            }\n\n            const transportField = filteredTransportFields.get('firstObject');\n\n            if (f.value) {\n              transportField.set('value', f.value);\n            } else if (f.option) {\n              const option = transportField.get('definition.options').filter(o => {\n                return o.id === f.option.toString();\n              })[0];\n              transportField.set('option', option);\n            }\n          });\n        }\n\n        (0, _jquery.default)('.driver-section').find('input').filter(function () {\n          return !!(0, _jquery.default)(this).val();\n        }).closest('.has-error').removeClass('has-error');\n      },\n\n      setDriverName(name) {\n        this.get('transport').get('advice').set('driverName', name);\n      },\n\n      setDriverLanguage(language, object) {\n        const advice = this.get('transport').get('advice');\n\n        if (advice.get('driverLanguage.id') === language.get('id')) {\n          return;\n        }\n\n        advice.set('driverLanguage', language);\n        advice.set('didDriverLanguageChanged', true);\n        this.clearBootstrapError((0, _jquery.default)('#' + object.uniqueId));\n      },\n\n      handlePastedContent: function (pastedContent) {\n        if (!pastedContent || !pastedContent.trim()) {\n          return;\n        }\n\n        const textMatrix = pastedContent.split(/\\r?\\n/).map(t => t.split('\\t'));\n        this.set('transport.advice.rodoAccepted', false);\n        this.set('transport.advice.driverName', textMatrix[0][0]);\n        this.set('transport.advice.driverMobilePhonePrefix', textMatrix[1][0].replace(/\\s+/g, ''));\n        this.set('transport.advice.driverMobilePhoneNumber', textMatrix[1][1].replace(/\\s+/g, ''));\n        this.set('transport.advice.documentNumber', textMatrix[2][0]);\n        this.set('transport.advice.carRegistrationNumber', textMatrix[3][0].replace(/\\s+/g, ''));\n        this.set('transport.advice.trailerRegistrationNumber', textMatrix[4][0].replace(/\\s+/g, ''));\n        const ibanSymbol = textMatrix[5][0] === 'EN' ? 'GB' : textMatrix[5][0];\n        const language = this.get('store').peekAll('country').filterBy('ibanSymbol', ibanSymbol).get('firstObject');\n        this.set('transport.advice.driverLanguage', language);\n        const transport = this.get('store').peekRecord('transport', this.get('transport.id'));\n        transport.validate();\n      },\n      setModesOfTransportation: function () {\n        const self = this;\n        const maxTransportDate = this.get('transport.maxTransportDate');\n        self.get('store').query('truck', {\n          isModeOfTransportation: true,\n          enabled: true,\n          companyId: self.get('transport.carrierCompany.id'),\n          principalCompanyId: localStorage.getItem('principalId'),\n          max: 999 // TODO: \"Paginacja\" na polu Środek transportu w forularzu awizacji\n\n        }).then(trucks => {\n          const filteredTrucks = trucks.filter(truck => {\n            return ![truck.STATUS.AWAITING_VERIFICATION, truck.STATUS.DISABLED].includes(truck.get('status'));\n          });\n          filteredTrucks.forEach(truck => {\n            truck.set('tmpTransportDate', maxTransportDate);\n          });\n          self.set('modesOfTransportation', filteredTrucks);\n        });\n      },\n      setModeOfTransportation: function (modeOfTransportation) {\n        const self = this;\n        self.set('advice.carRegistrationNumber', modeOfTransportation.get('registrationNumber'));\n        self.set('advice.truck', modeOfTransportation);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/driver-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Ac+PBHPF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"country\\\",\\\"result\\\",\\\"modeOfTransportation\\\",\\\"result\\\",\\\"v\\\",\\\"k\\\",\\\"result\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[23,[\\\"advice\\\",\\\"errors\\\",\\\"driverName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showPasteAdviceArea\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"advice.pasteFromExcel\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"paste-area\\\",null,[[\\\"onPaste\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"handlePastedContent\\\"],null]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"allowsDriverName\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[23,[\\\"advice\\\",\\\"errors\\\",\\\"driverName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"advice.driverName\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"driver-name\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"driver-auto-complete\\\",null,[[\\\"selectedValue\\\",\\\"companyIds\\\",\\\"carrierId\\\",\\\"allowManualInput\\\",\\\"type\\\",\\\"field\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"allowEnteringNewValue\\\",\\\"newValueEntered\\\",\\\"disabled\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"advice\\\",\\\"driverName\\\"]],[23,[\\\"companyIds\\\"]],[23,[\\\"transport\\\",\\\"carrierCompany\\\",\\\"id\\\"]],[23,[\\\"allowManualInput\\\"]],[23,[\\\"type\\\"]],\\\"driverName\\\",[27,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"useExternalSource\\\"]],[27,\\\"not\\\",[[23,[\\\"allowManualInput\\\"]]],null]],null],[27,\\\"t\\\",[\\\"common.autoCompleteBasicPlaceholder\\\"],null],[27,\\\"t\\\",[\\\"advice.driverName.placeholder\\\"],null]],null],\\\"setDriverData\\\",[23,[\\\"allowEnterValueToAutoComplete\\\"]],\\\"setDriverName\\\",[23,[\\\"advice\\\",\\\"disabled\\\"]],[23,[\\\"asPlainTemplate\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"autocomplete-result driver-\\\",[22,7,[\\\"driverName\\\"]],\\\"-\\\",[22,7,[\\\"carRegistrationNumber\\\"]],\\\"-\\\",[22,7,[\\\"trailerRegistrationNumber\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,7,[\\\"driverName\\\"]],false],[0,\\\" \\\"],[1,[22,7,[\\\"carRegistrationNumber\\\"]],false],[0,\\\" \\\"],[1,[22,7,[\\\"trailerRegistrationNumber\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[22,7,[\\\"carRegistrationNumber\\\"]],[27,\\\"not\\\",[[23,[\\\"requiresModeOfTransportationVerification\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,7,[\\\"carRegistrationNumber\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[22,7,[\\\"trailerRegistrationNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                / \\\"],[1,[22,7,[\\\"trailerRegistrationNumber\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"advice\\\"]],\\\"no-vertical-margin\\\",\\\"driverName\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"allowsPhoneNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"advice\\\",\\\"errors\\\",\\\"driverMobilePhonePrefix\\\"]],[23,[\\\"advice\\\",\\\"errors\\\",\\\"driverMobilePhoneNumber\\\"]]],null],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"advice.driverMobilePhoneNumber\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-1\\\",\\\"col-md-2 col-xs-4 maxw-160px\\\"],null],\\\"\\\\n            \\\",[27,\\\"if\\\",[[23,[\\\"advice\\\",\\\"errors\\\",\\\"driverMobilePhonePrefix\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"phone-prefix\\\",null,[[\\\"advice\\\",\\\"setPhonePrefix\\\",\\\"asPlainTemplate\\\",\\\"existingPhonePrefix\\\"],[[23,[\\\"advice\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setPhonePrefix\\\"],null],[23,[\\\"asPlainTemplate\\\"]],[23,[\\\"advice\\\",\\\"driverMobilePhonePrefix\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-6\\\",\\\"col-md-4 col-xs-8\\\"],null],\\\"\\\\n            \\\",[27,\\\"if\\\",[[23,[\\\"advice\\\",\\\"errors\\\",\\\"driverMobilePhoneNumber\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"phone-number\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"min\\\",\\\"max\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",\\\"number\\\",\\\"100000000\\\",\\\"999999999999\\\",[23,[\\\"advice\\\",\\\"disabled\\\"]],[23,[\\\"advice\\\",\\\"driverMobilePhoneNumber\\\"]],[27,\\\"t\\\",[\\\"common.driverMobilePhoneNumber.placeholder\\\"],null]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null],\\\" col-md-offset-5\\\"]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"advice\\\"]],\\\"no-vertical-margin\\\",\\\"driverMobilePhonePrefix\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"advice\\\"]],\\\"no-vertical-margin\\\",\\\"driverMobilePhoneNumber\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"allowsDriverDocumentNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[23,[\\\"advice\\\",\\\"errors\\\",\\\"documentNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"advice.documentNumber\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left driver-document-number\\\"],[11,\\\"data-field-name\\\",\\\"driver-document-number\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"advice\\\",\\\"disabled\\\"]],[23,[\\\"advice\\\",\\\"documentNumber\\\"]],[27,\\\"t\\\",[\\\"advice.documentNumber.placeholder\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"pull-right \\\",[27,\\\"if\\\",[[23,[\\\"advice\\\",\\\"errors\\\",\\\"documentNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[27,\\\"-each-in\\\",[[23,[\\\"advice\\\",\\\"DOCUMENT_TYPES\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[12,\\\"data-field-name\\\",[28,[\\\"driver-document-\\\",[22,5,[]]]]],[12,\\\"class\\\",[28,[\\\"btn \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"advice\\\",\\\"documentType\\\"]],[22,5,[]]],null],\\\"btn-secondary\\\",\\\"btn-default\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"advice\\\",\\\"documentType\\\"]]],null],[22,5,[]]],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"advice.documentType.\\\",[22,5,[]]],null]],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5,6]},null],[0,\\\"                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"advice\\\"]],\\\"no-vertical-margin\\\",\\\"documentType\\\"]]],false],[0,\\\"\\\\n\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7 col-xs-offset-5\\\",\\\"col-md-7 col-xs-12 col-md-offset-5\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"advice\\\"]],\\\"no-vertical-margin\\\",\\\"documentNumber\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"allowsCarRegistrationNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"advice\\\",\\\"errors\\\",\\\"carRegistrationNumber\\\"]],[23,[\\\"advice\\\",\\\"errors\\\",\\\"truck\\\"]]],null],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"requiresModeOfTransportationVerification\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"modeOfTransportation.label\\\"],[[\\\"count\\\"],[\\\"1\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"allowsTrailer\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,[\\\"advice\\\",\\\"translatedCarRegistrationNumberLabel\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"advice.carRegistrationNumberSimple\\\"],null],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"car-registration-number\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"useExternalSource\\\"]],[27,\\\"not\\\",[[23,[\\\"allowManualInput\\\"]]],null]],null]],null,{\\\"statements\\\":[[4,\\\"driver-auto-complete\\\",null,[[\\\"selectedValue\\\",\\\"companyIds\\\",\\\"carrierId\\\",\\\"field\\\",\\\"type\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"allowEnteringNewValue\\\",\\\"newValueEntered\\\",\\\"disabled\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"advice\\\",\\\"carRegistrationNumber\\\"]],[23,[\\\"companyIds\\\"]],[23,[\\\"transport\\\",\\\"carrierCompany\\\",\\\"id\\\"]],\\\"carRegistrationNumber\\\",[23,[\\\"type\\\"]],[27,\\\"t\\\",[\\\"common.autoCompleteBasicPlaceholder\\\"],null],\\\"setDriverData\\\",[23,[\\\"allowEnterValueToAutoComplete\\\"]],\\\"setDriverName\\\",[23,[\\\"advice\\\",\\\"disabled\\\"]],[23,[\\\"asPlainTemplate\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"autocomplete-result driver-\\\",[22,4,[\\\"driverName\\\"]],\\\"-\\\",[22,4,[\\\"carRegistrationNumber\\\"]],\\\"-\\\",[22,4,[\\\"trailerRegistrationNumber\\\"]]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,4,[\\\"driverName\\\"]],false],[0,\\\" \\\"],[1,[22,4,[\\\"carRegistrationNumber\\\"]],false],[0,\\\" \\\"],[1,[22,4,[\\\"trailerRegistrationNumber\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"requiresModeOfTransportationVerification\\\"]]],null,{\\\"statements\\\":[[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"renderInPlace\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"advice\\\",\\\"carRegistrationNumber\\\"]]],null],[23,[\\\"modesOfTransportation\\\"]],\\\"registrationNumber\\\",[27,\\\"t\\\",[\\\"advice.carRegistrationNumber.placeholder\\\"],null],true,[27,\\\"if\\\",[[23,[\\\"advice\\\",\\\"disabled\\\"]],\\\"disabled\\\",\\\"\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setModeOfTransportation\\\"],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"span\\\"],[12,\\\"data-option-name\\\",[22,3,[\\\"registrationNumber\\\"]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,3,[\\\"registrationNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n                                \\\"],[1,[22,3,[\\\"registrationNumber\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[22,3,[\\\"disabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-ban clickable\\\"],[12,\\\"title\\\",[28,[[22,3,[\\\"disabledReason\\\"]]]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[23,[\\\"advice\\\",\\\"carRegistrationNumber\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"advice\\\",\\\"disabled\\\"]],[23,[\\\"advice\\\",\\\"carRegistrationNumber\\\"]],[27,\\\"t\\\",[\\\"advice.carRegistrationNumber.placeholder\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"advice\\\"]],\\\"no-vertical-margin\\\",\\\"carRegistrationNumber\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"advice\\\"]],\\\"no-vertical-margin\\\",\\\"truck\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showTrailer\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[23,[\\\"advice\\\",\\\"errors\\\",\\\"trailerRegistrationNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"advice.trailerRegistrationNumber\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"trailer-registration-number\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"useExternalSource\\\"]],[27,\\\"not\\\",[[23,[\\\"allowManualInput\\\"]]],null]],null]],null,{\\\"statements\\\":[[4,\\\"driver-auto-complete\\\",null,[[\\\"selectedValue\\\",\\\"companyIds\\\",\\\"carrierId\\\",\\\"type\\\",\\\"field\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"allowEnteringNewValue\\\",\\\"newValueEntered\\\",\\\"disabled\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"advice\\\",\\\"trailerRegistrationNumber\\\"]],[23,[\\\"companyIds\\\"]],[23,[\\\"transport\\\",\\\"carrierCompany\\\",\\\"id\\\"]],[23,[\\\"type\\\"]],\\\"trailerRegistrationNumber\\\",[27,\\\"t\\\",[\\\"common.autoCompleteBasicPlaceholder\\\"],null],\\\"setDriverData\\\",[23,[\\\"allowEnterValueToAutoComplete\\\"]],\\\"setDriverName\\\",[23,[\\\"advice\\\",\\\"disabled\\\"]],[23,[\\\"asPlainTemplate\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"autocomplete-result driver-\\\",[22,2,[\\\"driverName\\\"]],\\\"-\\\",[22,2,[\\\"carRegistrationNumber\\\"]],\\\"-\\\",[22,2,[\\\"trailerRegistrationNumber\\\"]]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,2,[\\\"driverName\\\"]],false],[0,\\\" \\\"],[1,[22,2,[\\\"carRegistrationNumber\\\"]],false],[0,\\\" \\\"],[1,[22,2,[\\\"trailerRegistrationNumber\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"advice\\\",\\\"disabled\\\"]],[23,[\\\"advice\\\",\\\"trailerRegistrationNumber\\\"]],[27,\\\"t\\\",[\\\"advice.trailerRegistrationNumber.placeholder\\\"],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"advice\\\"]],\\\"no-vertical-margin\\\",\\\"trailerRegistrationNumber\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"requiresDriverLanguage\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[23,[\\\"advice\\\",\\\"errors\\\",\\\"driverLanguage\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"advice.driverLanguage\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"driver-language\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"advice\\\",\\\"driverLanguage\\\"]]],null],[23,[\\\"countries\\\"]],true,\\\"ibanSymbol\\\",[27,\\\"t\\\",[\\\"transport.selectCountry\\\"],null],[23,[\\\"advice\\\",\\\"disabled\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setDriverLanguage\\\"],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,1,[\\\"ibanSymbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"advice\\\"]],\\\"no-vertical-margin\\\",\\\"driverLanguage\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"periodicTransportAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"periodic-transport-form\\\",null,[[\\\"transport\\\"],[[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[1,[27,\\\"transport/custom-fields-section\\\",null,[[\\\"transport\\\",\\\"adviceSection\\\"],[[23,[\\\"transportOrAnyInTransportCombining\\\"]],true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"isPrincipal\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showSaveAsResourceCheckbox\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[23,[\\\"advice\\\",\\\"errors\\\",\\\"saveAsResource\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12 col-md-offset-5\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label-not-bold\\\"],[11,\\\"for\\\",\\\"save-as-resource\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"id\\\"],[\\\"checkbox\\\",[23,[\\\"advice\\\",\\\"saveAsResource\\\"]],\\\"save-as-resource\\\"]]],false],[0,\\\"\\\\n                         \\\"],[1,[27,\\\"t\\\",[\\\"advice.saveAsResource\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"advice\\\"]],\\\"no-vertical-margin\\\",\\\"saveAsResource\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"advice\\\",\\\"showRodo\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[23,[\\\"advice\\\",\\\"errors\\\",\\\"rodoAccepted\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"rodo-acceptance\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12 col-md-offset-5\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"label-not-bold \\\",[27,\\\"if\\\",[[23,[\\\"advice\\\",\\\"errors\\\",\\\"rodoAccepted\\\"]],\\\"alert-text\\\"],null]]]],[11,\\\"for\\\",\\\"rodo-acceptance-checkbox\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"input\\\"],[11,\\\"id\\\",\\\"rodo-acceptance-checkbox\\\"],[12,\\\"checked\\\",[23,[\\\"advice\\\",\\\"rodoAccepted\\\"]]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"toggleRodoAcceptance\\\"],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n\\\\n                     \\\"],[1,[27,\\\"t\\\",[\\\"advice.rodo\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"advice\\\"]],\\\"no-vertical-margin\\\",\\\"rodoAccepted\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"advice\\\",\\\"requiresAcceptanceOfTermsOfCondition\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[23,[\\\"advice\\\",\\\"errors\\\",\\\"termsOfConditionsAccepted\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12 col-md-offset-5\\\"],[11,\\\"data-field-name\\\",\\\"terms-of-condition\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label-not-bold\\\"],[11,\\\"for\\\",\\\"terms-of-condition\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"id\\\"],[\\\"checkbox\\\",[23,[\\\"advice\\\",\\\"termsOfConditionsAccepted\\\"]],\\\"terms-of-condition\\\"]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"advice.termsOfConditionsAccepted\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"fileTermsOfConditionsAcceptedSetting\\\",\\\"value\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[23,[\\\"fileTermsOfConditionsAcceptedSetting\\\",\\\"value\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[1,[23,[\\\"nameTermsOfConditionsAcceptedSetting\\\",\\\"value\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[23,[\\\"nameTermsOfConditionsAcceptedSetting\\\",\\\"value\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"className\\\",\\\"fieldName\\\"],[[23,[\\\"advice\\\"]],\\\"no-vertical-margin\\\",\\\"termsOfConditionsAccepted\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/driver-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/export-indexes-button/component\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: service('session-account'),\n    tagName: 'button',\n    classNames: ['btn', 'btn-default'],\n    attributeBindings: ['title', 'type', 'disabled'],\n    type: Ember.computed('', function () {\n      return 'button';\n    }),\n\n    click() {\n      this.generateXLS();\n    },\n\n    generateXLS() {\n      Ember.run.once(this, function () {\n        const params = {\n          token: this.get('sessionAccount.token')\n        };\n        const transportId = this.get('transport.id');\n        window.location = `${_environment.default.serverURL}/transports/${transportId}/indices/xls?${$.param(params)}`;\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/export-indexes-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"oIFdF4sB\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-file-excel\\\"],[9],[0,\\\"\\\\n     \\\"],[1,[27,\\\"t\\\",[\\\"common.export\\\"],null],false],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/export-indexes-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/get-couriers-quotes/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n\n    init() {\n      this._super(...arguments); // inicjalizujemy wartość dla getCouriersQuotesValue po otwarciu formularza\n\n\n      const courierQuoteValueToBool = this.get('getCouriersQuotesValue') === this.get('intl').t('common.yes');\n      this.set('transport.getCouriersQuotes', courierQuoteValueToBool);\n    },\n\n    hideCouriersQuotesSection: Ember.computed('transport.transportType.id', function () {\n      const transportTypeId = this.get('transport.transportType.id');\n      const courierSetting = this.get('sessionAccount').getCourierSetting(transportTypeId);\n\n      if (!courierSetting) {\n        return true;\n      }\n\n      return !courierSetting.get('isGetCourierQuotesFieldVisibility');\n    }),\n    // eslint-disable-next-line ember/require-return-from-computed\n    disableEdition: Ember.computed('transport', function () {\n      if (this.get('transport.id') == null) {\n        return false;\n      }\n\n      if (this.get('transport.getCouriersQuotes')) {\n        return true;\n      }\n    }),\n    getCouriersQuotesFields: Ember.computed('', function () {\n      return [this.get('intl').t('common.yes'), this.get('intl').t('common.no')];\n    }),\n    getCouriersQuotesValue: Ember.computed('transport', {\n      get(key) {\n        // Jeśli istnieje wartość w getCouriersQuotes\n        if (this.get('transport.getCouriersQuotes') !== undefined) {\n          return this.get('transport.getCouriersQuotes') ? this.get('intl').t('common.yes') : this.get('intl').t('common.no');\n        } // Jeśli transport jest stworzony i nie istnieje wartość w getCouriersQuotes\n        // Służy to do obsługi historycznych transportów, które mogą mieć NULL'e w polu getCouriersQuotes\n\n\n        if (this.get('transport.id') && this.get('transport.getCouriersQuotes') === undefined) {\n          return this.get('intl').t('common.no');\n        } // Gdy transport nie istnieje bierzemy wartość na podstawie shouldGetCourierQuotesByDefault\n\n\n        const transportTypeId = this.get('transport.transportType.id');\n        const courierSetting = this.get('sessionAccount').getCourierSetting(transportTypeId);\n        return courierSetting ? courierSetting.get('shouldGetCourierQuotesByDefault') ? this.get('intl').t('common.yes') : this.get('intl').t('common.no') : this.get('intl').t('common.no');\n      },\n\n      set(key, value) {\n        return value;\n      }\n\n    }),\n    actions: {\n      setCouriersQuotes: function (value) {\n        if (value === this.get('intl').t('common.yes')) {\n          this.set('transport.getCouriersQuotes', true);\n          this.set('getCouriersQuotesValue', this.get('intl').t('common.yes'));\n        } else if (value === this.get('intl').t('common.no')) {\n          this.set('transport.getCouriersQuotes', false);\n          this.set('getCouriersQuotesValue', this.get('intl').t('common.no'));\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/get-couriers-quotes/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"8RR7qGiT\",\n    \"block\": \"{\\\"symbols\\\":[\\\"courierQuotes\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"row \\\",[27,\\\"if\\\",[[23,[\\\"hideCouriersQuotesSection\\\"]],\\\"hidden\\\"],null]]]],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-lg-12\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"firstStep\\\",\\\"errors\\\",\\\"weight\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.getCourierQuotes\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"disabled\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"disableEdition\\\"]],true,[23,[\\\"getCouriersQuotesValue\\\"]],[23,[\\\"getCouriersQuotesFields\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setCouriersQuotes\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/get-couriers-quotes/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/indexes-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Component.extend({\n    store: service(),\n    intl: service(),\n    indexesService: service('indexes-service'),\n    sessionAccount: service('session-account'),\n    showAddIndexesSection: Ember.computed('', function () {\n      if (this.get('hideAddIndexesSection')) {\n        return false;\n      }\n\n      return !this.get('asPlainTemplate') && !this.get('isEditionDisabled');\n    }),\n    units: Ember.computed('', function () {\n      return ['KG', 'LITERS', 'PIECES'];\n    }),\n    quantityTypes: Ember.computed('transport.transportType.indexQuantityTypes', function () {\n      return this.get('transport.transportType.indexQuantityTypes');\n    }),\n    canExportIndexes: Ember.computed('transport.id', 'transport.indexes.length', function () {\n      return this.get('transport.id') && this.get('transport.indexes.length') > 0 && this.get('sessionAccount').getSettingValue('CAN_EXPORT_INDEXES_TO_XLS') === \"true\";\n    }),\n    hasUnsavedChanges: Ember.computed('transport.indexes.@each.hasChanges', function () {\n      return this.get('transport.indexes').filterBy('hasChanges').get('length') > 0;\n    }),\n    editionOfIncompleteLoadingDisabled: Ember.computed('transport.canBeUpdated', function () {\n      return !this.get('sessionAccount').hasRole('ROLE_EDIT_INCOMPLETE_LOADING') || !this.get('transport.canBeUpdated');\n    }),\n    isEditionDisabled: Ember.computed('transport.disabled', function () {\n      const transport = this.get('transport').actionCanBePerformed ? this.get('transport') : this.get('transport.content');\n      return !transport.actionCanBePerformed('EDIT_INDEX');\n    }),\n    isDeletionAllowed: Ember.computed('model.id', 'transport.transportType', function () {\n      if (!this.get('transport.id')) {\n        return false;\n      }\n\n      const transport = this.get('transport').actionCanBePerformed ? this.get('transport') : this.get('transport.content');\n      return transport.actionCanBePerformed('DELETE_INDEX');\n    }),\n    editionOrDeletionIsAllowed: Ember.computed('isDeletionAllowed', 'isEditionDisabled', function () {\n      return !this.get('isEditionDisabled') || this.get('isDeletionAllowed');\n    }),\n    indexSetting: Ember.computed('transport.transportType.indexSetting', function () {\n      return this.get('transport.transportType.indexSetting');\n    }),\n    actions: {\n      togglePanel() {\n        this.toggleProperty('isOpened');\n      },\n\n      setStep(index, step) {\n        index.set('step', step);\n      },\n\n      editIndex(index) {\n        this.set(\"action\", \"showSubModal\");\n        this.sendAction('action', 'indexes.modals.index-form', index);\n      },\n\n      setProductData(index, productData) {\n        this.get('store').findRecord('product', productData.id).then(product => {\n          index.setProperties({\n            product: product\n          });\n          index.get('quantities').filterBy('indexQuantityType.requiresUnit').forEach(q => q.set('unit', product.get('unit')));\n        });\n      },\n\n      removeProduct(index) {\n        index.setProperties({\n          product: null\n        });\n      },\n\n      disableIndex(index) {\n        const msg = this.get('indexSetting.disableConfirmation');\n\n        if (!confirm(msg)) {\n          return;\n        }\n\n        if (index.get('id')) {\n          index.set('enabled', false);\n        } else {\n          const transport = index.get('transport');\n          transport.get('indexes').removeObject(index);\n        }\n      },\n\n      showSubModal(templateName, model) {\n        this.set(\"action\", \"showSubModal\");\n        this.sendAction('action', templateName, model);\n      },\n\n      toggleIncompleteLoading() {\n        this.get('transport').toggleProperty('incompleteLoading');\n\n        if (!this.get('transport.incompleteLoading')) {\n          this.get('transport.indexes').forEach(index => {\n            index.get('quantities').filterBy('indexQuantityType.enabledForIncompleteLoading').forEach(q => q.set('quantity', null));\n          });\n        }\n      },\n\n      addIndex() {\n        this.get('indexesService').addIndexToTransport(this.get('transport'), true);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/indexes-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"dO1L6I2T\",\n    \"block\": \"{\\\"symbols\\\":[\\\"index\\\",\\\"idx\\\",\\\"result\\\",\\\"step\\\",\\\"pq\\\",\\\"unit\\\",\\\"result\\\",\\\"result\\\",\\\"qt\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showAddIndexesSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"transport/add-indexes-section\\\",null,[[\\\"transport\\\",\\\"indexSetting\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"indexSetting\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-12 index-table \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"scrollable-modal-section\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col col-0\\\"],[9],[0,\\\"#\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"indexSetting\\\",\\\"hasProductsEnabled\\\"]],[27,\\\"is-in-list\\\",[\\\"index\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col col-2\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"product.index\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"indexSetting\\\",\\\"hasProductsShortNameEnabled\\\"]],[27,\\\"is-in-list\\\",[\\\"shortName\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col col-2\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"product.shortName\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"indexSetting\\\",\\\"showGlobalNumber\\\"]],[27,\\\"is-in-list\\\",[\\\"globalNumber\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col col-1\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"index\\\",\\\"globalNumber.abbr\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"indexSetting\\\",\\\"showLocalNumber\\\"]],[27,\\\"is-in-list\\\",[\\\"localNumber\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col col-1\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"index\\\",\\\"localNumber.abbr\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"indexSetting\\\",\\\"showDocumentNumber\\\"]],[27,\\\"is-in-list\\\",[\\\"documentNumber\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-1 \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"responsive-hide-lvl2\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"index.documentNumber.abbr\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"indexSetting\\\",\\\"showTransportNumber\\\"]],[27,\\\"is-in-list\\\",[\\\"transportNumber\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-1 \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"responsive-hide-lvl2\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"index.transportNumber.abbr\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"indexSetting\\\",\\\"showQuantity\\\"]],[27,\\\"is-in-list\\\",[\\\"quantities\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"quantityTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-1 \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"responsive-hide-lvl2\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[22,9,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"if\\\",[[22,9,[\\\"requiresUnit\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-1 \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"responsive-hide-lvl2\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"unit.label\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[9]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"hasVisibleSteps\\\"]],[27,\\\"is-in-list\\\",[\\\"company\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-2 \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"responsive-hide-lvl2\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"index.company\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"editionOrDeletionIsAllowed\\\"]],[27,\\\"is-in-list\\\",[\\\"editionOrDeletion\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col col-0\\\"],[9],[0,\\\"\\\\n                 #\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"enabledIndexes\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col col-0 vertical-align\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"add\\\",[[22,2,[]],1],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col col-12\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"indexSetting\\\",\\\"hasProductsEnabled\\\"]],[27,\\\"is-in-list\\\",[\\\"index\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-2 \\\",[27,\\\"if\\\",[[22,1,[\\\"errors\\\",\\\"globalNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"product-index\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"product-auto-complete\\\",null,[[\\\"field\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"clearSelection\\\",\\\"disabled\\\"],[\\\"index\\\",[27,\\\"readonly\\\",[[22,1,[\\\"product\\\",\\\"index\\\"]]],null],[27,\\\"t\\\",[\\\"product.index.autoCompletePlaceholder\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setProductData\\\",[22,1,[]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"removeProduct\\\",[22,1,[]]],null],[27,\\\"or\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"viaSchedule\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n                                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                                            \\\"],[1,[22,8,[\\\"index\\\"]],false],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\\n                                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                            \\\"],[1,[22,8,[\\\"name\\\"]],false],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[8]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"indexSetting\\\",\\\"hasProductsShortNameEnabled\\\"]],[27,\\\"is-in-list\\\",[\\\"shortName\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-2 \\\",[27,\\\"if\\\",[[22,1,[\\\"errors\\\",\\\"shortName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"product-short-name\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"product-auto-complete\\\",null,[[\\\"field\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"clearSelection\\\",\\\"disabled\\\"],[\\\"shortName\\\",[27,\\\"readonly\\\",[[22,1,[\\\"product\\\",\\\"shortName\\\"]]],null],[27,\\\"t\\\",[\\\"product.index.autoCompletePlaceholder\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setProductData\\\",[22,1,[]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"removeProduct\\\",[22,1,[]]],null],[23,[\\\"isEditionDisabled\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                                            \\\"],[1,[22,7,[\\\"index\\\"]],false],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\\n                                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                            \\\"],[1,[22,7,[\\\"name\\\"]],false],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"indexSetting\\\",\\\"showGlobalNumber\\\"]],[27,\\\"is-in-list\\\",[\\\"globalNumber\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-1 \\\",[27,\\\"if\\\",[[22,1,[\\\"errors\\\",\\\"globalNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"global-number\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,1,[\\\"handleGlobalNumber\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,1,[]],\\\"globalNumber\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"indexSetting\\\",\\\"showLocalNumber\\\"]],[27,\\\"is-in-list\\\",[\\\"localNumber\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-1 \\\",[27,\\\"if\\\",[[22,1,[\\\"errors\\\",\\\"localNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"local-number\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,1,[\\\"localNumber\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,1,[]],\\\"localNumber\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"indexSetting\\\",\\\"showDocumentNumber\\\"]],[27,\\\"is-in-list\\\",[\\\"documentNumber\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-1 \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"responsive-hide-lvl2\\\"],null],\\\" \\\",[27,\\\"if\\\",[[22,1,[\\\"errors\\\",\\\"documentNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"document-number\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,1,[\\\"documentNumber\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,1,[]],\\\"documentNumber\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"indexSetting\\\",\\\"showTransportNumber\\\"]],[27,\\\"is-in-list\\\",[\\\"transportNumber\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-1 \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"responsive-hide-lvl2\\\"],null],\\\" \\\",[27,\\\"if\\\",[[22,1,[\\\"errors\\\",\\\"transportNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"transport-number\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,1,[\\\"transportNumber\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,1,[]],\\\"transportNumber\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"indexSetting\\\",\\\"showQuantity\\\"]],[27,\\\"is-in-list\\\",[\\\"quantities\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,1,[\\\"proxiedQuantities\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-1 \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"responsive-hide-lvl2\\\"],null],\\\"\\\\n                                \\\",[27,\\\"if\\\",[[22,5,[\\\"indexQuantity\\\",\\\"errors\\\",\\\"quantity\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"quantity-of-\\\",[22,5,[\\\"nameEn\\\"]]]]],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"pattern\\\",\\\"min\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"number\\\",\\\"1\\\",\\\"^[0-9]+\\\\\\\\.[0-9][0-9]$\\\",\\\"0\\\",\\\"form-control\\\",[27,\\\"or\\\",[[27,\\\"or\\\",[[23,[\\\"isEditionDisabled\\\"]],[22,5,[\\\"indexQuantity\\\",\\\"incompleteLoadingRulesNotMet\\\"]]],null],[27,\\\"and\\\",[[23,[\\\"viaSchedule\\\"]],[27,\\\"not\\\",[[22,5,[\\\"editableViaSchedule\\\"]]],null]],null]],null],[22,5,[\\\"indexQuantity\\\",\\\"quantity\\\"]]]]],false],[0,\\\"\\\\n\\\\n                                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,5,[\\\"indexQuantity\\\"]],\\\"quantity\\\"]]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[22,5,[\\\"indexQuantity\\\",\\\"unit\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-1 \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"responsive-hide-lvl2\\\"],null],\\\"\\\\n                                    \\\",[27,\\\"if\\\",[[22,5,[\\\"indexQuantity\\\",\\\"errors\\\",\\\"unit\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"indexSetting\\\",\\\"hasProductsEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"unit-product\\\"],[9],[0,\\\"\\\\n                                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"text\\\",\\\"form-control\\\",[22,1,[\\\"getProductUnit\\\"]],true]]],false],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"unit-\\\",[22,5,[\\\"indexQuantity\\\",\\\"unit\\\"]]]]],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"select\\\"],[11,\\\"name\\\",\\\"unit\\\"],[11,\\\"id\\\",\\\"unit-select\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"unit.label\\\"],null]]]],[11,\\\"class\\\",\\\"form-control\\\"],[12,\\\"onchange\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[22,5,[\\\"indexQuantity\\\",\\\"unit\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12,\\\"disabled\\\",[28,[[21,\\\"isEditionDisabled\\\"]]]],[9],[0,\\\"\\\\n\\\\n                                                \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[1,[27,\\\"t\\\",[\\\"unit.placeholder\\\"],null],false],[0,\\\"\\\\n                                                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"units\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                                    \\\"],[7,\\\"option\\\"],[12,\\\"value\\\",[28,[[22,6,[]]]]],[12,\\\"selected\\\",[27,\\\"eq\\\",[[22,5,[\\\"indexQuantity\\\",\\\"unit\\\"]],[22,6,[]]],null]],[9],[0,\\\"\\\\n                                                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"unit.\\\",[22,6,[]]],null]],null],false],[0,\\\"\\\\n                                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,5,[\\\"indexQuantity\\\"]],\\\"unit\\\"]]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[5]},null]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"hasVisibleSteps\\\"]],[27,\\\"is-in-list\\\",[\\\"company\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-2 \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"responsive-hide-lvl2\\\"],null],\\\" \\\"]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"contractors\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"index-contractor\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[22,1,[\\\"step\\\"]]],null],[23,[\\\"transport\\\",\\\"contractorSteps\\\"]],true,\\\"indexSearchField\\\",[27,\\\"t\\\",[\\\"index.selectCompany\\\"],null],[23,[\\\"isEditionDisabled\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setStep\\\",[22,1,[]]],null]]],{\\\"statements\\\":[[0,\\\"                                        \\\"],[1,[22,4,[\\\"indexSearchField\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"index.selectCompanyHint\\\"],null],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,1,[]],\\\"step\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"indexSetting\\\",\\\"hasProductsEnabled\\\"]],[27,\\\"is-in-list\\\",[\\\"productName\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-1 \\\",[27,\\\"if\\\",[[22,1,[\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"product-name\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"product-auto-complete\\\",null,[[\\\"field\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"clearSelection\\\",\\\"disabled\\\"],[\\\"name\\\",[27,\\\"readonly\\\",[[22,1,[\\\"product\\\",\\\"name\\\"]]],null],[27,\\\"t\\\",[\\\"product.index.autoCompletePlaceholder\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setProductData\\\",[22,1,[]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"removeProduct\\\",[22,1,[]]],null],[23,[\\\"isEditionDisabled\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                                            \\\"],[1,[22,3,[\\\"index\\\"]],false],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\\n                                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                            \\\"],[1,[22,3,[\\\"name\\\"]],false],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"indexSetting\\\",\\\"showName\\\"]],[27,\\\"is-in-list\\\",[\\\"indexName\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-1 \\\",[27,\\\"if\\\",[[22,1,[\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"index-name\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,1,[\\\"name\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,1,[]],\\\"name\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"indexSetting\\\",\\\"showNotes\\\"]],[27,\\\"is-in-list\\\",[\\\"notes\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col col-1 break-word \\\",[27,\\\"if\\\",[[22,1,[\\\"errors\\\",\\\"notes\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"index-notes\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"type\\\",\\\"placeholder\\\",\\\"class\\\",\\\"disabled\\\",\\\"rows\\\",\\\"value\\\"],[\\\"textarea\\\",[23,[\\\"indexSetting\\\",\\\"notesPlaceholder\\\"]],\\\"form-control vertical-resizable-only\\\",[23,[\\\"isEditionDisabled\\\"]],\\\"1\\\",[22,1,[\\\"notes\\\"]]]]],false],[0,\\\"\\\\n\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,1,[]],\\\"notes\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"editionOrDeletionIsAllowed\\\"]],[27,\\\"is-in-list\\\",[\\\"editionOrDeletion\\\",[23,[\\\"columns\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col col-0 vertical-align\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"block\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"isEditionDisabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"i\\\"],[11,\\\"data-button-name\\\",\\\"index-edit-button\\\"],[11,\\\"class\\\",\\\"fa fa-pencil-square clickable\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"editIndex\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isDeletionAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"i\\\"],[11,\\\"data-button-name\\\",\\\"index-delete-button\\\"],[11,\\\"class\\\",\\\"fa fa-ban clickable\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"disableIndex\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 padding-top-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canExportIndexes\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"transport/export-indexes-button\\\",null,[[\\\"transport\\\",\\\"title\\\",\\\"disabled\\\"],[[23,[\\\"transport\\\"]],[27,\\\"t\\\",[\\\"common.exportAsXLS\\\"],null],[23,[\\\"hasUnsavedChanges\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"hasUnsavedChanges\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"index.exportDisabledHint\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"indexSetting\\\",\\\"showIncompleteLoading\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"disabled\\\",\\\"change\\\"],[\\\"checkbox\\\",[23,[\\\"transport\\\",\\\"incompleteLoading\\\"]],[23,[\\\"editionOfIncompleteLoadingDisabled\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"toggleIncompleteLoading\\\"],null]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.incompleteLoading\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[0,\\\"\\\\n    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addIndex\\\"]],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/indexes-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/messages-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({});\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/messages-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"9e0qpq+r\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"canNotEditAfterProcessStarts\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-info\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canNotEditBecauseOfOtherContractors\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"transport.canNotEditBecauseOfOtherContractors\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"transport.canNotEditAfterProcessStarts\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/messages-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/step-additional-data/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"jSWHnEGS\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"showWeightField\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-12 step-field-padding \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"weight\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"weight-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[11,\\\"class\\\",\\\"input-group half-field pull-left\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"aria-describedby\\\",\\\"placeholder\\\"],[\\\"number\\\",\\\"form-control\\\",[23,[\\\"transport\\\",\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"weight\\\"]],\\\"basic-addon2\\\",[27,\\\"t\\\",[\\\"transport.weight\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon\\\"],[9],[0,\\\"kg\\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"step\\\"]],\\\"weight\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"showVolumeField\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-6 step-field-padding \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"volume\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"volume-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[11,\\\"class\\\",\\\"input-group  half-field pull-right\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"aria-describedby\\\",\\\"placeholder\\\"],[\\\"number\\\",\\\"form-control\\\",[23,[\\\"transport\\\",\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"volume\\\"]],\\\"basic-addon2\\\",[27,\\\"t\\\",[\\\"transport.volume\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon\\\"],[9],[0,\\\"m\\\"],[7,\\\"sup\\\"],[9],[0,\\\"3\\\"],[10],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"step\\\"]],\\\"volume\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"showPurchaseOrderNumberField\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-12 step-field-padding \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"purchaseOrderNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"purchase-order-number-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[11,\\\"class\\\",\\\"input-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon\\\"],[9],[1,[27,\\\"step-translation-key-label\\\",null,[[\\\"label\\\",\\\"transportType\\\"],[\\\"purchaseOrderNumber\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[10],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"placeholder\\\",\\\"aria-describedby\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"transport\\\",\\\"disabled\\\"]],[27,\\\"step-translation-key-label\\\",null,[[\\\"label\\\",\\\"transportType\\\"],[\\\"purchaseOrderNumber\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],\\\"basic-addon1\\\",[23,[\\\"step\\\",\\\"purchaseOrderNumber\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"step\\\"]],\\\"purchaseOrderNumber\\\"]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"showDimensionsField\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-12 step-field-padding \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"dimensions\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"dimensions-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[11,\\\"class\\\",\\\"input-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon\\\"],[9],[1,[27,\\\"step-translation-key-label\\\",null,[[\\\"label\\\",\\\"transportType\\\"],[\\\"dimensions\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[10],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"placeholder\\\",\\\"aria-describedby\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"transport\\\",\\\"disabled\\\"]],[27,\\\"step-translation-key-label\\\",null,[[\\\"label\\\",\\\"transportType\\\"],[\\\"dimensions\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],\\\"basic-addon1\\\",[23,[\\\"step\\\",\\\"dimensions\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"step\\\"]],\\\"dimensions\\\"]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[1,[27,\\\"transport/step-package-type-data\\\",null,[[\\\"transport\\\",\\\"step\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"step\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"showInternalReleaseNumberField\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"row \\\",[27,\\\"if\\\",[[23,[\\\"spt\\\",\\\"errors\\\",\\\"quantity\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"wz-documents-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[11,\\\"class\\\",\\\"input-group\\\"],[12,\\\"title\\\",[28,[[23,[\\\"step\\\",\\\"documentIdentifier\\\"]]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon\\\"],[9],[1,[27,\\\"step-translation-key-label\\\",null,[[\\\"label\\\",\\\"transportType\\\"],[\\\"documentIdentifier\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[10],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"placeholder\\\",\\\"aria-describedby\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"transport\\\",\\\"disabled\\\"]],[27,\\\"step-translation-key-label\\\",null,[[\\\"label\\\",\\\"transportType\\\"],[\\\"documentIdentifier\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],\\\"basic-addon1\\\",[23,[\\\"step\\\",\\\"documentIdentifier\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"step\\\"]],\\\"documentIdentifier\\\"]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/step-additional-data/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/step-header/component\", [\"exports\", \"apollo/mixins/step-mixin\"], function (_exports, _stepMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_stepMixin.default, {\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    uuidService: Ember.inject.service('uuid-service'),\n    transportPackagingService: Ember.inject.service(),\n    canAddLoadSteps: Ember.computed('transport.{getCouriersQuotes,transportType.customFieldDefinitions.[]}', function () {\n      const stepType = this.get('step.stepTypeName');\n      let hasAuthorityToAddStep = false;\n\n      if (this.get('step.createdFromRoute')) {\n        return false;\n      }\n\n      if (this.get('transport.getCouriersQuotes')) {\n        return false;\n      }\n\n      if (stepType === this.get('step.STEP_TYPES').LOAD) {\n        hasAuthorityToAddStep = this.get('transport').actionCanBePerformed('ADD_LOAD_STEP_FROM_LOAD');\n      } else if (stepType === this.get('step.STEP_TYPES').UNLOAD) {\n        hasAuthorityToAddStep = this.get('transport').actionCanBePerformed('ADD_LOAD_STEP_FROM_UNLOAD');\n      }\n\n      return hasAuthorityToAddStep;\n    }),\n    canAddUnloadSteps: Ember.computed('transport.{getCouriersQuotes,transportType.customFieldDefinitions.[]}', function () {\n      const stepType = this.get('step.stepTypeName');\n      let hasAuthorityToAddStep = false;\n\n      if (this.get('step.createdFromRoute')) {\n        return false;\n      }\n\n      if (this.get('transport.getCouriersQuotes')) {\n        return false;\n      }\n\n      if (stepType === this.get('step.STEP_TYPES').LOAD) {\n        hasAuthorityToAddStep = this.get('transport').actionCanBePerformed('ADD_UNLOAD_STEP_FROM_LOAD');\n      } else if (stepType === this.get('step.STEP_TYPES').UNLOAD) {\n        hasAuthorityToAddStep = this.get('transport').actionCanBePerformed('ADD_UNLOAD_STEP_FROM_UNLOAD');\n      }\n\n      return hasAuthorityToAddStep;\n    }),\n    canBeDeleted: Ember.computed('canNotEditAfterProcessStarts', 'step.transport.loadSteps.length', function () {\n      const stepType = this.get('step.stepTypeName');\n      let hasAuthorityToDelete = false;\n\n      if (stepType === this.get('step.STEP_TYPES').LOAD) {\n        hasAuthorityToDelete = this.get('transport').actionCanBePerformed('DELETE_LOAD_STEPS');\n      } else if (stepType === this.get('step.STEP_TYPES').UNLOAD) {\n        hasAuthorityToDelete = this.get('transport').actionCanBePerformed('DELETE_UNLOAD_STEPS');\n      }\n\n      if (this.get('canNotEditAfterProcessStarts') || !hasAuthorityToDelete) {\n        return false;\n      }\n\n      return this.get('step.transport.' + stepType + 'Steps.length') > 1;\n    }),\n    _findStepTransportPackages: function () {\n      const stepTypeIdx = this.get('step.stepTypeIdx');\n      const stepTypeName = this.get('step.stepTypeName');\n      return this.get('transport.transportPackages').toArray().filter(p => {\n        const packageStepTypeIdx = stepTypeName === 'load' ? p.get('loadStep.stepTypeIdx') : p.get('unloadStep.stepTypeIdx');\n        return packageStepTypeIdx === stepTypeIdx;\n      });\n    },\n    _deleteStepTransportPackage: function (transportPackage) {\n      if (this.transportPackagingService.delete(transportPackage)) {\n        this.get('transport.transportPackages').removeObject(transportPackage);\n      }\n    },\n    actions: {\n      addStep(baseStep, stepType) {\n        const store = this.get('store');\n        const transport = this.get('transport');\n        const orderInTransport = baseStep.get('orderInTransport') + 1;\n        const isLoadStepInWarehouseByDefault = transport.get('transportType.isLoadStepInWarehouseByDefault');\n        const isUnloadStepInWarehouseByDefault = transport.get('transportType.isUnloadStepInWarehouseByDefault');\n        const ownedByPrincipal = stepType === baseStep.get('STEP_TYPES').LOAD ? isLoadStepInWarehouseByDefault : isUnloadStepInWarehouseByDefault; // Jeśli `shouldCountryFieldBeAutocompleted = true` to pole 'Kraj' w nowych stepach uzupelniamy wartością z pierwszego stepu\n\n        const shouldCountryFieldBeAutocompleted = transport.get('transportType.duplicateStepCountryFieldToNewSteps');\n        const step = this.get('store').createRecord('step', {\n          ownedByPrincipal,\n          shouldHaveContractor: !ownedByPrincipal,\n          stepTypeName: stepType,\n          orderInTransport,\n          minAdviceDate: null,\n          maxAdviceDate: null,\n          temporaryStepId: this.uuidService.uuid()\n        });\n\n        if (!step.get('ownedByPrincipal')) {\n          this.send('setCompanyInStep', step);\n          const address = store.createRecord('address', {});\n          step.set('address', address);\n          step.setArrivalDate();\n        }\n\n        if (shouldCountryFieldBeAutocompleted) {\n          const baseStepCountry = this.get('transport').get('steps.firstObject.address.country');\n          const address = store.createRecord('address', {\n            country: baseStepCountry\n          });\n          step.set('address', address);\n        } // Musimy przesunąć niektóre stepy (np. po dodaniu załadunku, wszystkie rozładunki muszą zmienić kolejność)\n\n\n        transport.get('steps').filter(s => {\n          return s.get('orderInTransport') >= orderInTransport;\n        }).forEach(s => {\n          const currentOrderInTransport = s.get('orderInTransport');\n          s.set('orderInTransport', currentOrderInTransport + 1);\n        });\n        console.log(`Dodajemy step do transportu ${transport.id} na miejscu ${orderInTransport}..`);\n        transport.get('steps').pushObject(step);\n        this.recalculateStepTypeIdx();\n        this.handleStepPackageTypesForStep(step);\n      },\n\n      deleteStep(idx) {\n        const self = this;\n        const transport = this.get('step.transport');\n        const stepArray = transport.get('steps').filterBy('orderInTransport', idx);\n\n        const stepTransportPackages = this._findStepTransportPackages();\n\n        if (!stepArray) {\n          return;\n        }\n\n        let msg = this.get('intl').t('step.delete.confirmMessage');\n\n        if (this.get('step.indexes.length') > 0) {\n          msg = this.get('intl').t('step.delete.confirmMessageWithIndexes');\n        }\n\n        if (stepTransportPackages.length > 0) {\n          const pieces = this.get('intl').t('unit.PIECES');\n          const stepTypeName = this.get('intl').t('transport.' + this.get('step.stepTypeName'));\n          const stepTypeIdx = ' #' + this.get('step.stepTypeIdx');\n          const packagesInfo = stepTransportPackages.map(p => `${stepTypeName}${stepTypeIdx} ${p.get('length')}x${p.get('width')}x${p.get('height')} ${p.get('weight')} kg ${p.get('quantity')} ${pieces}`).join('\\n');\n          msg = this.get('intl').t('step.delete.confirmMessageWithPackages', {\n            packagesInfo: '\\n' + packagesInfo\n          });\n        }\n\n        if (!confirm(msg)) {\n          return;\n        }\n\n        const removedCompany = this.get('step.company');\n\n        if (transport.get('content').checkIfEditionViolatesPeriodicTransportRules(removedCompany)) {\n          alert(this.get('intl').t('periodicTransport.cannotDeleteStep'));\n          return;\n        }\n\n        const step = stepArray.get('firstObject');\n        step.get('indexes').forEach(index => {\n          transport.get('indexes').removeObject(index);\n        });\n        transport.get('steps').removeObject(step).then(() => {\n          // Usuwamy ewentualne błędy dot. nieunikalnych dostawców\n          const contractorNames = transport.get('contractorNames');\n\n          if (contractorNames.length === contractorNames.uniq().length) {\n            transport.get('errors').remove('contractors');\n          } // Przeliczamy kolejność stepów w transporcie\n\n\n          transport.get('steps').sortBy('orderInTransport').forEach((s, idx) => {\n            s.set('orderInTransport', idx);\n          });\n          self.recalculateStepTypeIdx();\n        });\n\n        if (stepTransportPackages.length > 0) {\n          stepTransportPackages.forEach(p => this._deleteStepTransportPackage(p));\n        }\n      },\n\n      changeOwnedByPrincipal: function (step) {\n        const transport = this.get('transport');\n        const orderInTransport = step.get('orderInTransport');\n        const stepTypeName = step.get('stepTypeName');\n        const ownedByPrincipal = step.get('ownedByPrincipal');\n        step.get('stepPackageTypes').forEach(spt => {\n          if (!spt) {\n            return;\n          }\n\n          spt.set('step', null);\n          spt.unloadRecord();\n        });\n        step.set('transport', null);\n        const company = step.get('company');\n        step.unloadRecord();\n        const newStep = this.get('store').createRecord('step', {\n          orderInTransport,\n          stepTypeName,\n          company,\n          ownedByPrincipal: !ownedByPrincipal,\n          shouldHaveContractor: ownedByPrincipal\n        });\n        transport.get('steps').pushObject(newStep);\n        this.handleStepPackageTypes([newStep], transport.get('transportType.id'));\n\n        if (!newStep.get('isInWarehouse')) {\n          this.send('setCompanyInStep', newStep);\n          newStep.setArrivalDate();\n        } else if (transport.get('transportType.requiresAdviceDateRestrictions')) {\n          const defaultMinAdviceDate = moment().startOf('day').toDate();\n          const defaultMaxAdviceDate = moment().startOf('day').add(1, 'day').toDate();\n          newStep.setProperties({\n            minAdviceDate: defaultMinAdviceDate,\n            maxAdviceDate: defaultMaxAdviceDate\n          });\n        }\n      },\n      setCompanyInStep: function (step) {\n        const company = this.get('sessionAccount.currentUser.company');\n        const transport = this.get('step.transport');\n        const isUnload = step.get('isUnload');\n        const isLoad = step.get('isLoad');\n        const defaultLoadCompanyId = transport.get('transportType.defaultLoadCompanyId') ? transport.get('transportType.defaultLoadCompanyId') : step.get('transport.transportType.defaultLoadCompanyId');\n        const defaultUnloadCompanyId = transport.get('transportType.defaultUnloadCompanyId') ? transport.get('transportType.defaultUnloadCompanyId') : step.get('transport.transportType.defaultLoadCompanyId');\n        const companyIdToSet = isLoad && defaultLoadCompanyId ? defaultLoadCompanyId : isUnload && defaultUnloadCompanyId ? defaultUnloadCompanyId : null;\n\n        if (companyIdToSet != null) {\n          this.store.findRecord('company', companyIdToSet).then(c => {\n            step.set('company', c);\n          }).catch(err => console.log(err.message));\n        } else {\n          if (company.get('isSupplier')) {\n            step.set('company', company);\n          }\n        }\n      },\n      beforeDrag: function (step, event) {\n        console.log(`Próbujemy przesunąć step ${step.get('orderInTransport')}...`);\n\n        if (!step.get('canBeMoved')) {\n          event.preventDefault();\n        }\n      },\n\n      /**\n       *  potrzebne do nadpisania domyślnego stylowania draggable-object\n       */\n      dragStartHook: function () {}\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/step-header/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"NIDsnf17\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-header\\\"],[12,\\\"title\\\",[23,[\\\"step\\\",\\\"title\\\"]]],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"draggable-object\\\",null,[[\\\"content\\\",\\\"overrideClass\\\",\\\"isSortable\\\",\\\"dragStartAction\\\",\\\"dragStartHook\\\",\\\"tagName\\\"],[[23,[\\\"step\\\"]],[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"canBeMoved\\\"]],\\\"draggable-element\\\"],null],[23,[\\\"step\\\",\\\"canBeMoved\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"beforeDrag\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"dragStartHook\\\"],null],\\\"div\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"group group-space-between\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"center-vertically bold\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"transport.\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]]],null]],null],false],[0,\\\" #\\\"],[1,[23,[\\\"step\\\",\\\"stepTypeIdx\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"showWarehouseCheckbox\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"center-vertically bold\\\"],[12,\\\"data-field-name\\\",[28,[[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-warehouse-checkbox-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.warehouse\\\"],null],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"disabled\\\",\\\"change\\\"],[\\\"checkbox\\\",[23,[\\\"step\\\",\\\"isInWarehouse\\\"]],[27,\\\"or\\\",[[23,[\\\"step\\\",\\\"id\\\"]],[23,[\\\"step\\\",\\\"createdFromRoute\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"changeOwnedByPrincipal\\\",[23,[\\\"step\\\"]]],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"group group-space-between\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"group group-left\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canAddLoadSteps\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[12,\\\"data-button-name\\\",[28,[\\\"add-load-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"step.add.title\\\"],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                            +\\\"],[1,[27,\\\"t\\\",[\\\"transport.load\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addStep\\\",[23,[\\\"step\\\"]],[23,[\\\"step\\\",\\\"STEP_TYPES\\\",\\\"LOAD\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canAddUnloadSteps\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-success\\\"],[12,\\\"data-button-name\\\",[28,[\\\"add-unload-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"step.add.title\\\"],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                            +\\\"],[1,[27,\\\"t\\\",[\\\"transport.unload\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addStep\\\",[23,[\\\"step\\\"]],[23,[\\\"step\\\",\\\"STEP_TYPES\\\",\\\"UNLOAD\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canBeDeleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-right\\\"],[11,\\\"data-button-name\\\",\\\"delete-step\\\"],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"step.delete.title\\\"],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-remove remove-icon\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"deleteStep\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/step-header/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/step-package-type-data/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sortedStepPackageTypes: Ember.computed('step.stepPackageTypes.@each.idx', function () {\n      return this.get('step.stepPackageTypes').sortBy('idx');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/step-package-type-data/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"uVdpAfeE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"spt\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"sortedStepPackageTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"separateLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-lg-12\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[22,1,[\\\"errors\\\",\\\"quantity\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"transport.quantities.\\\",[22,1,[\\\"packageType\\\",\\\"name\\\"]]],null]],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[12,\\\"data-field-name\\\",[28,[\\\"number-of-\\\",[22,1,[\\\"packageType\\\",\\\"lowerCaseName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"title\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",\\\"number\\\",[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"transport.quantities.\\\",[22,1,[\\\"packageType\\\",\\\"name\\\"]]],null]],null],[23,[\\\"adviceDisabled\\\"]],[22,1,[\\\"quantity\\\"]],[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"transport.quantities.\\\",[22,1,[\\\"packageType\\\",\\\"name\\\"]]],null]],null]]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,1,[]],\\\"quantity\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"row \\\",[27,\\\"if\\\",[[22,1,[\\\"errors\\\",\\\"quantity\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"number-of-\\\",[22,1,[\\\"packageType\\\",\\\"lowerCaseName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[11,\\\"class\\\",\\\"input-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"transport.quantities.\\\",[22,1,[\\\"packageType\\\",\\\"name\\\"]]],null]],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"placeholder\\\",\\\"aria-describedby\\\",\\\"value\\\"],[\\\"number\\\",\\\"form-control\\\",[23,[\\\"transport\\\",\\\"disabled\\\"]],[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"transport.quantities.\\\",[22,1,[\\\"packageType\\\",\\\"name\\\"]]],null]],null],\\\"basic-addon1\\\",[22,1,[\\\"quantity\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"referenceQuantityInfo\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"text-info\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"packageTypes.referenceQuantity\\\"],[[\\\"referencePackage\\\",\\\"referenceQuantity\\\"],[[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"packageTypes.\\\",[22,1,[\\\"referencePackage\\\",\\\"name\\\"]],\\\".lowerCase\\\"],null]],null],[22,1,[\\\"referenceQuantityInfo\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,1,[]],\\\"quantity\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/step-package-type-data/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/step-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    addressUnloadTimeService: Ember.inject.service('address-unload-time-service'),\n\n    init() {\n      this._super(...arguments);\n\n      this.autoCompleteContactPersonDetails();\n    },\n\n    classNames: Ember.A(['step-responsive-width']),\n    autoCompleteContactPersonDetails: function () {\n      if (this.get('step.transport.id') || !this.get('step.transport.transportType.isContactDetailsFieldsVisible')) {\n        // uzupełniamy tylko w tworzonym zleceniu z widocznymi polami osoby kontaktowej\n        return;\n      }\n\n      const currentUser = this.get('sessionAccount.currentUser');\n      const name = this.get('step.contactPerson');\n      const email = this.get('step.contactPersonEmail');\n      const mobilePhoneNumber = this.get('step.contactPersonMobilePhoneNumber');\n      const mobilePhoneNumberPrefix = this.get('step.contactPersonMobilePhonePrefix');\n\n      if (email === '' || email === null || email === undefined) {\n        this.set('step.contactPersonEmail', currentUser.get('email'));\n      }\n\n      if (mobilePhoneNumber === '' || mobilePhoneNumber === null || mobilePhoneNumber === undefined) {\n        this.set('step.contactPersonMobilePhoneNumber', currentUser.get('mobilePhoneNumber'));\n      }\n\n      if (name === '' || name === null || name === undefined) {\n        this.set('step.contactPerson', currentUser.get('name'));\n      }\n\n      const currentUserMobilePhonePrefix = currentUser.get('mobilePhoneNumberPrefix');\n\n      if (mobilePhoneNumberPrefix === '' || mobilePhoneNumberPrefix === null || mobilePhoneNumberPrefix === undefined) {\n        if (currentUserMobilePhonePrefix !== null && currentUserMobilePhonePrefix !== '') {\n          this.set('step.contactPersonMobilePhonePrefix', currentUserMobilePhonePrefix);\n        } else {\n          this.set('step.contactPersonMobilePhonePrefix', '48');\n        }\n      }\n    },\n    addNewAddress: Ember.computed('step.newAddressAsDefault', function () {\n      return this.get('step.newAddressAsDefault');\n    }),\n    defaultPrefix: Ember.computed('step.contactPersonMobilePhonePrefix', function () {\n      return this.get('step.contactPersonMobilePhonePrefix');\n    }),\n    masterSteps: Ember.computed('step.transport.masterTransports.firstObject.steps', function () {\n      return this.get('step.transport.masterTransports.firstObject.steps');\n    }),\n    stepOrMasterStep: Ember.computed('step.{[],warehouse.id,transport}', 'masterSteps.@each.warehouse', function () {\n      const self = this;\n      const masterSteps = this.get('masterSteps');\n      const transport = this.get('step.transport');\n      const isTransportInHasToWaitFor = transport.get('relatedHasToWaitForTransports');\n\n      if (!masterSteps || isTransportInHasToWaitFor) {\n        return this.get('step');\n      }\n\n      return masterSteps.filter(s => {\n        return s.get('warehouse.id') && s.get('warehouse.id') === self.get('step.warehouse.id');\n      }).get('firstObject') || this.get('step');\n    }),\n    stepOrMasterTransportStepHasTimeWindow: Ember.computed('stepOrMasterStep.timeWindow.id', function () {\n      return !!this.get('stepOrMasterStep.timeWindow.id');\n    }),\n    countries: Ember.computed(function () {\n      return this.get('store').peekAll('country').sortBy('ibanSymbol');\n    }),\n    companyType: 'SUPPLIER',\n    address: Ember.computed('step.address', function () {\n      return this.get('step.address');\n    }),\n    arrivalDate: Ember.computed('step.arrivalDate', function () {\n      return moment(this.get('step.arrivalDate')).format('YYYY-MM-DD HH:mm');\n    }),\n    addressSummary: Ember.computed('address.{recipient,city,postal,street}', function () {\n      if (this.get('address.recipient')) {\n        return this.get('address.recipient');\n      }\n\n      if (this.get('address.street')) {\n        return `${this.get('address.street')}, ${this.get('address.city')}, ${this.get('address.postal')}`;\n      }\n\n      return '';\n    }).readOnly(),\n    addressAutoCompleteDisabled: Ember.computed('transport.disabled', 'step.{createdFromRoute,company}', function () {\n      return this.get('step.createdFromRoute') || this.get('transport.disabled') || !this.get('step.company.id');\n    }),\n    canChooseCompany: Ember.computed('transport', function () {\n      return !this.get('step.createdFromRoute') && this.get('transport').actionCanBePerformed('ACCESS_SUPPLIER_COMPANY_FIELD');\n    }),\n    showNewAddressButton: Ember.computed('step.company.id', 'transport.canBeUpdated', function () {\n      if (this.get('step.createdFromRoute')) {\n        return false;\n      }\n\n      if (this.get('canChooseCompany')) {\n        return this.get('step.company.id') && this.get('transport.canBeUpdated');\n      }\n\n      return this.get('transport.canBeUpdated');\n    }),\n    showWarehouseTimes: Ember.computed('step.{warehouse,ownedByPrincipal,timeWindow}', 'transport.transportType.requiresAdviceDateRestrictions', function () {\n      return this.get('step.isInWarehouse') && !this.get('transport.transportType.requiresAdviceDateRestrictions');\n    }),\n    showWarehouseZone: Ember.computed('transport.transportType.isWarehouseZoneVisible', function () {\n      return this.get('transport.transportType.isWarehouseZoneVisible');\n    }),\n    showWarehouseLocation: Ember.computed('transport.transportType.isWarehouseLocationVisible', function () {\n      return this.get('transport.transportType.isWarehouseLocationVisible') && this.get('transport').actionCanBePerformed('ROLE_ACCESS_TO_LOCATION');\n    }),\n    warehouseLocationDisabled: Ember.computed('transport.transportType.authorityRestrictions.@each.authorityRange', function () {\n      return !this.get('transport').actionCanBePerformed('ROLE_EDIT_WAREHOUSE_LOCATION');\n    }),\n    showContactPerson: Ember.computed('transport.transportType.isContactDetailsFieldsVisible', function () {\n      return this.get('transport.transportType.isContactDetailsFieldsVisible');\n    }),\n    companyToFindAddress: Ember.computed('step.company.id', 'sessionAccount.currentUser.company.id', function () {\n      return this.get('step.company.id') ? this.get('step.company.id') : this.get('sessionAccount.currentUser.company.id');\n    }),\n    shouldDataBeHidden: Ember.computed('transport.{id,transportType.authorityRestrictions.@each.authorityRange,firstUnconfirmedCheckpoint}', function () {\n      if (!this.get('transport.id')) {\n        return false;\n      }\n\n      return this.get('transport').actionCanBePerformed('DISABLE_DATA_FIELDS');\n    }),\n    alternativeStepsLayout: Ember.computed('transport.id', function () {\n      return this.get('transport.transportType.alternativeStepsLayout');\n    }),\n    StepCountryField: Ember.computed('step.address.country', function () {\n      return this.get('step.address.country');\n    }),\n    arrivalDateInWarehouseStep: Ember.computed('step.arrivalDate', function () {\n      const arrivalDate = this.get('step.arrivalDate'); // Jesli obiekt arrivalDate nie jest typu 'Date' to zwracamy pusty string\n\n      if (arrivalDate instanceof Date) {\n        return moment(arrivalDate).format('YYYY-MM-DD HH:mm');\n      }\n\n      return '';\n    }),\n    canNotEditMainData: Ember.computed('sessionAccount', function () {\n      return !this.get('transport').actionCanBePerformed('UPDATE_MAIN_DATA_SECTION');\n    }),\n    actions: {\n      setArrivalDate(step, dateValues) {\n        Ember.run.next(() => {\n          step.set('arrivalDate', dateValues[0]);\n        });\n      },\n\n      setPhonePrefix(phonePrefix) {\n        this.set('step.contactPersonMobilePhonePrefix', phonePrefix);\n      },\n\n      setContractorCompanyData(step, item) {\n        // troche haks - poniższe zapytania i walidacje długo trwają, więc od razu wrzucamy id nowej firmy,\n        // żeby przy \"szybkim klikaniu\" podpowiedzieć już właściwe adresy\n        this.set('companyToFindAddress', item.id);\n        this.get('store').findRecord('company', item.id).then(company => {\n          const transport = this.get('transport');\n          const oldCompany = step.get('company');\n\n          if (transport.checkIfEditionViolatesPeriodicTransportRules(oldCompany, company)) {\n            alert(this.get('intl').t('periodicTransport.cannotChangeCompany'));\n            step.set('company', oldCompany);\n            return;\n          }\n\n          step.set('companyGroup', null);\n          step.set('company', company);\n          step.set('address', null);\n\n          if (this.get('addNewAddress')) {\n            this.send('setAddressForStep', step);\n          }\n        });\n      },\n\n      removeContractorCompany() {\n        console.debug('Removing company from step..');\n        this.set('companyToFindAddress', this.get('sessionAccount.currentUser.company.id'));\n        this.get('step').set('company', null);\n      },\n\n      selectContractorCompany(id) {\n        if (!id) {\n          return;\n        }\n\n        const self = this;\n        this.get('store').findRecord('company', id).then(company => {\n          self.get('transport').set('contractorCompany', company);\n        });\n      },\n\n      offScroll() {\n        $(':input').on('mousewheel', function (event) {\n          event.preventDefault();\n        });\n      },\n\n      toggleNewAddress(step) {\n        if (this.get('addNewAddress')) {\n          this.send('deleteAddressFromStep', step);\n          this.set('addNewAddress', false);\n        } else {\n          this.send('setAddressForStep', step);\n          this.set('addNewAddress', true);\n        }\n      },\n\n      deleteAddressFromStep(step) {\n        step.get('address').then(address => {\n          address.unloadRecord();\n          step.set('address', null);\n        });\n      },\n\n      setAddressForStep(step) {\n        step.set('address', this.get('store').createRecord('address', {\n          company: step.get('company')\n        }));\n      },\n\n      async setAddressData(address) {\n        const addressModel = await this.get('store').findRecord('address', address.id);\n\n        if (address.id) {\n          this.get('step').set('address', addressModel);\n        } else {\n          this.get('step.address').setProperties({\n            street: address.street,\n            postal: address.postal,\n            city: address.city\n          });\n          this.get('step.address').set('country', addressModel.country);\n        }\n\n        const tt = await this.get('step.transport.transportType');\n        const arrivalDate = await this.get('addressUnloadTimeService').findArrivalDate(addressModel, tt);\n\n        if (!this.get('step.transport.serialTransport')) {\n          this.set('step.arrivalDate', arrivalDate);\n        }\n      },\n\n      removeAddress() {\n        console.debug('Removing address from step..');\n        this.get('step').set('address', null);\n      },\n\n      setWarehouse(warehouse) {\n        this.get('step').set('warehouse', warehouse);\n        this.get('step.errors').remove('warehouse');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/step-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"isflV+KV\",\n    \"block\": \"{\\\"symbols\\\":[\\\"country\\\",\\\"result\\\",\\\"result\\\",\\\"result\\\",\\\"assortmentGroup\\\",\\\"w\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"step-column \\\",[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"step-as-plain-template\\\",[23,[\\\"transport\\\",\\\"stepCssClass\\\"]]],null]]]],[12,\\\"data-step-is-in-warehouse\\\",[28,[[23,[\\\"step\\\",\\\"belongsToWarehouse\\\"]]]]],[12,\\\"data-step-type\\\",[28,[[23,[\\\"step\\\",\\\"stepTypeName\\\"]]]]],[12,\\\"data-order-in-transport\\\",[28,[[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[12,\\\"data-step-type-idx\\\",[28,[[23,[\\\"step\\\",\\\"stepTypeIdx\\\"]]]]],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"transport/step-header\\\",null,[[\\\"asPlainTemplate\\\",\\\"transport\\\",\\\"step\\\",\\\"recalculateStepTypeIdx\\\"],[[23,[\\\"asPlainTemplate\\\"]],[23,[\\\"transport\\\"]],[23,[\\\"step\\\"]],[23,[\\\"recalculateStepTypeIdx\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"isInWarehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"alternativeStepsLayout\\\"]],\\\"stepSectionInRows\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group form-group-padding \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"warehouse\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12 step-field\\\"],[12,\\\"data-field-name\\\",[28,[\\\"warehouse-select-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"warehouse-select\\\",\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"step\\\",\\\"warehouse\\\"]]],null],[23,[\\\"transport\\\",\\\"transportType\\\",\\\"warehousesForCurrentUser\\\"]],true,\\\"name\\\",[27,\\\"t\\\",[\\\"transport.warehouse\\\"],null],[23,[\\\"transport\\\",\\\"disabled\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setWarehouse\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,6,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"warehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 padding-top\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"step\\\"]],\\\"warehouse\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showWarehouseZone\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group form-group-padding\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12 step-field\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"transport/warehouse-zone-section\\\",null,[[\\\"step\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"step\\\"]],[23,[\\\"asPlainTemplate\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"step\\\",\\\"warehouse\\\"]],[23,[\\\"showWarehouseLocation\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"warehouse/warehouse-location-multi-select\\\",null,[[\\\"step\\\",\\\"disabled\\\"],[[23,[\\\"step\\\"]],[23,[\\\"warehouseLocationDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"warehouse\\\",\\\"hasAssortmentGroups\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group form-group-padding \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"assortmentGroup\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12 step-field\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"placeholder\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"onchange\\\"],[[27,\\\"t\\\",[\\\"assortmentGroup.label\\\"],null],[23,[\\\"step\\\",\\\"assortmentGroup\\\"]],[23,[\\\"step\\\",\\\"warehouse\\\",\\\"assortmentGroups\\\"]],true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"step\\\",\\\"assortmentGroup\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,5,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\"]],\\\"assortmentGroup\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group form-group-padding\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12 step-field\\\"],[12,\\\"data-field-name\\\",[28,[\\\"street-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",true,[23,[\\\"step\\\",\\\"warehouse\\\",\\\"address\\\",\\\"street\\\"]],[27,\\\"t\\\",[\\\"address.street\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-field\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 step-field-padding\\\"],[12,\\\"data-field-name\\\",[28,[\\\"postal-code-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",true,[23,[\\\"step\\\",\\\"warehouse\\\",\\\"address\\\",\\\"postal\\\"]],[27,\\\"t\\\",[\\\"address.postal\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8 col-xs-12 step-field-padding\\\"],[12,\\\"data-field-name\\\",[28,[\\\"city-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",true,[23,[\\\"step\\\",\\\"warehouse\\\",\\\"address\\\",\\\"city\\\"]],[27,\\\"t\\\",[\\\"address.city\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12 step-field\\\"],[12,\\\"data-field-name\\\",[28,[\\\"country-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",true,[23,[\\\"step\\\",\\\"warehouse\\\",\\\"address\\\",\\\"country\\\",\\\"name\\\"]],[27,\\\"t\\\",[\\\"address.country\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showContactPerson\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"step-contact-person-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[12,\\\"class\\\",[28,[\\\"col-xs-12 step-field form-group-padding\\\\n                            \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"contactPerson\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"step\\\",\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"contactPerson\\\"]],[27,\\\"t\\\",[\\\"step.contactPerson.label\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\"]],\\\"contactPerson\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"step-contact-person-email-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[12,\\\"class\\\",[28,[\\\"col-xs-12 step-field form-group-padding\\\\n                            \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"contactPersonEmail\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",\\\"email\\\",[23,[\\\"step\\\",\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"contactPersonEmail\\\"]],[27,\\\"t\\\",[\\\"step.contactPerson.email\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\"]],\\\"contactPersonEmail\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"step-contact-person-phone-prefix-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[12,\\\"class\\\",[28,[\\\"col-md-2 col-xs-12\\\\n                                \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"contactPersonMobilePhonePrefix\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"phone-prefix\\\",null,[[\\\"setPhonePrefix\\\",\\\"existingPhonePrefix\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"setPhonePrefix\\\"],null],[23,[\\\"defaultPrefix\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"step-contact-person-phone-number-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[12,\\\"class\\\",[28,[\\\"col-md-10 col-xs-12\\\\n                                \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"contactPersonMobilePhoneNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"min\\\",\\\"max\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",\\\"number\\\",\\\"100000000\\\",\\\"999999999999\\\",[23,[\\\"step\\\",\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"contactPersonMobilePhoneNumber\\\"]],[27,\\\"t\\\",[\\\"step.contactPerson.phoneNumber\\\"],null]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\"]],\\\"contactPersonMobilePhoneNumber\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showWarehouseTimes\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-6 col-xs-12 step-field-padding  \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"text-right\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.workTime\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3 col-xs-6 step-field-padding\\\"],[12,\\\"data-field-name\\\",[28,[\\\"warehouse-work-start-time-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",true,[23,[\\\"step\\\",\\\"warehouse\\\",\\\"workStartTime\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3 col-xs-6 step-field-padding\\\"],[12,\\\"data-field-name\\\",[28,[\\\"warehouse-work-end-time-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",true,[23,[\\\"step\\\",\\\"warehouse\\\",\\\"workEndTime\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"showAdviceDateRestrictions\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row padding-top\\\"],[12,\\\"data-field-name\\\",[28,[[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"isLoad\\\"]],\\\"TIME_RANGE_FOR_LOAD\\\",\\\"TIME_RANGE_FOR_UNLOAD\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-11 col-md-12 step-field-padding \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"text-left\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"isLoad\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"step.timeRangeForLoad\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"isUnload\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"step.timeRangeForUnload\\\"],null],false],[0,\\\"\\\\n                            \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"transport/advice-date-restrictions-section\\\",null,[[\\\"step\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"step\\\"]],[23,[\\\"asPlainTemplate\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"requiresArrivalAndDepartureDateInWarehouseStep\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-6 col-xs-12 step-field-padding \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"text-right\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"control-label\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"isLoad\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"transport.arrivalDate\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"transport.departureDate\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canNotEditMainData\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-6 col-xs-12 step-field-padding arrival-date-in-warehouse-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[11,\\\"data-field-name\\\",\\\"ARRIVAL_DATE_IN_WAREHOUSE\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\",\\\"disabled\\\"],[[23,[\\\"arrivalDateInWarehouseStep\\\"]],\\\"text\\\",\\\"form-control\\\",true]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-6 col-xs-12 step-field-padding arrival-date-in-warehouse-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]],\\\" step-flatpickr\\\"]]],[11,\\\"data-field-name\\\",\\\"ARRIVAL_DATE_IN_WAREHOUSE\\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"disabled\\\",\\\"onChange\\\",\\\"formatType\\\",\\\"class\\\",\\\"nativeFlatpickrOptions\\\"],[[27,\\\"readonly\\\",[[23,[\\\"step\\\",\\\"arrivalDate\\\"]]],null],[23,[\\\"isEditionDisabled\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setArrivalDate\\\",[23,[\\\"step\\\"]]],null],\\\"defaultDateTime\\\",\\\"form-control checkpoint-confirmation-date\\\",[27,\\\"hash\\\",null,[[\\\"static\\\",\\\"minuteIncrement\\\",\\\"enableTime\\\"],[false,15,true]]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"stepOrMasterTransportStepHasTimeWindow\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row padding-top\\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-11 col-md-12 step-field-padding \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"text-left\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"step.timeWindow\\\"],null],false],[0,\\\" (\\\"],[1,[27,\\\"t\\\",[\\\"advice.label\\\"],null],false],[0,\\\")\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"transport/time-window-section\\\",null,[[\\\"step\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"stepOrMasterStep\\\"]],[23,[\\\"asPlainTemplate\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"alternativeStepsLayout\\\"]],\\\"stepAdditionalInfoInRows\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"transport/step-additional-data\\\",null,[[\\\"transport\\\",\\\"step\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"step\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"alternativeStepsLayout\\\"]],\\\"stepSectionInRows\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"shouldDataBeHidden\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"dummy-input-plug\\\",null,[[\\\"rows\\\"],[5]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"canChooseCompany\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group form-group-padding\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"disabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12 step-field\\\"],[12,\\\"data-field-name\\\",[28,[\\\"company-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"step\\\",\\\"companyLabel\\\"]],true]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"company\\\"]],\\\"has-error\\\"],null],\\\" col-md-7 col-xs-12 step-field\\\"]]],[12,\\\"data-field-name\\\",[28,[\\\"company-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"company-auto-complete\\\",null,[[\\\"inputClass\\\",\\\"type\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"clearSelection\\\"],[\\\"dummy\\\",[23,[\\\"companyType\\\"]],[27,\\\"readonly\\\",[[23,[\\\"step\\\",\\\"companyLabel\\\"]]],null],[27,\\\"t\\\",[\\\"transport.company.autoCompletePlaceholder\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setContractorCompanyData\\\",[23,[\\\"step\\\"]]],null],\\\"removeContractorCompany\\\"]],{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                                    \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[22,4,[\\\"shortName\\\"]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\\n                                    \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[22,4,[\\\"name\\\"]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[22,4,[\\\"address\\\"]],[23,[\\\"step\\\",\\\"showAddressFieldsInContractorSteps\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                            \\\"],[1,[22,4,[\\\"address\\\"]],false],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"transport/step-user-group-select\\\",null,[[\\\"step\\\"],[[23,[\\\"step\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"company\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"has-error\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"step\\\"]],\\\"company\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"showAddressFieldsInContractorSteps\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group form-group-padding \\\",[27,\\\"if\\\",[[23,[\\\"showNewAddressButton\\\"]],\\\"max-width\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"showNewAddressButton\\\"]],\\\"col-xs-11\\\"],null],\\\" \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"address\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"unless\\\",[[23,[\\\"showNewAddressButton\\\"]],\\\"col-xs-12\\\"],null],\\\" step-field\\\"]]],[12,\\\"data-field-name\\\",[28,[\\\"recipient-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"addNewAddress\\\"]],[23,[\\\"transport\\\",\\\"disabled\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"address-add-new\\\",null,[[\\\"step\\\",\\\"disabled\\\"],[[23,[\\\"step\\\"]],[23,[\\\"transport\\\",\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"address-auto-complete\\\",null,[[\\\"field\\\",\\\"companyId\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"clearSelection\\\",\\\"disabled\\\"],[\\\"any\\\",[23,[\\\"companyToFindAddress\\\"]],[27,\\\"readonly\\\",[[23,[\\\"addressSummary\\\"]]],null],[27,\\\"t\\\",[\\\"address.autoCompletePlaceholder\\\"],null],\\\"setAddressData\\\",\\\"removeAddress\\\",[23,[\\\"addressAutoCompleteDisabled\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                                            \\\"],[1,[22,3,[\\\"recipient\\\"]],false],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\\n                                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                            \\\"],[1,[22,3,[\\\"postal\\\"]],false],[0,\\\" \\\"],[1,[22,3,[\\\"city\\\"]],false],[0,\\\", \\\"],[1,[22,3,[\\\"street\\\"]],false],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showNewAddressButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-1 center-icon-in-form no-horizontal-padding\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n                         \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"enable-new-address\\\"],[11,\\\"class\\\",\\\"center-icon-in-form\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"addNewAddress\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                 \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-minus\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"address.removeAddress\\\"],null]]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                 \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"address.addNewAddress\\\"],null]]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                         \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"toggleNewAddress\\\",[23,[\\\"step\\\"]]]],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"address\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"has-error\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"step\\\"]],\\\"address\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group form-group-padding\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"street-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[12,\\\"class\\\",[28,[\\\"step-field col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"address\\\",\\\"errors\\\",\\\"street\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[27,\\\"or\\\",[[23,[\\\"transport\\\",\\\"disabled\\\"]],[27,\\\"not\\\",[[23,[\\\"addNewAddress\\\"]]],null]],null],[23,[\\\"step\\\",\\\"address\\\",\\\"street\\\"]],[27,\\\"t\\\",[\\\"address.street\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\",\\\"address\\\"]],\\\"street\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"address\\\",\\\"country\\\",\\\"isWithoutPostalCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group form-group-padding\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-7 col-xs-12 step-field \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"address\\\",\\\"errors\\\",\\\"province\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"data-field-name\\\",[28,[\\\"province-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[27,\\\"or\\\",[[23,[\\\"transport\\\",\\\"disabled\\\"]],[27,\\\"not\\\",[[23,[\\\"addNewAddress\\\"]]],null]],null],[23,[\\\"step\\\",\\\"address\\\",\\\"province\\\"]],[27,\\\"t\\\",[\\\"address.province\\\"],null]]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\",\\\"address\\\"]],\\\"province\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-field\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"postal-code-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[12,\\\"class\\\",[28,[\\\"col-md-4 col-xs-12 step-field-padding \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"address\\\",\\\"errors\\\",\\\"postal\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[27,\\\"or\\\",[[23,[\\\"transport\\\",\\\"disabled\\\"]],[27,\\\"not\\\",[[23,[\\\"addNewAddress\\\"]]],null]],null],[23,[\\\"step\\\",\\\"address\\\",\\\"postal\\\"]],[27,\\\"t\\\",[\\\"address.postal\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"city-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 step-field-padding \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"address\\\",\\\"errors\\\",\\\"city\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"newAddressCityAutocompleteEnabled\\\"]]],null,{\\\"statements\\\":[[4,\\\"address-auto-complete\\\",null,[[\\\"companyId\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"clearSelection\\\",\\\"allowEnteringNewValue\\\",\\\"disabled\\\"],[[23,[\\\"companyToFindAddress\\\"]],[23,[\\\"step\\\",\\\"address\\\",\\\"city\\\"]],[27,\\\"t\\\",[\\\"address.city\\\"],null],\\\"setAddressData\\\",\\\"removeAddress\\\",true,[27,\\\"or\\\",[[23,[\\\"transport\\\",\\\"disabled\\\"]],[27,\\\"not\\\",[[23,[\\\"addNewAddress\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                                    \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[22,2,[\\\"city\\\"]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\\n                                    \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                        / \\\"],[1,[22,2,[\\\"postal\\\"]],false],[0,\\\" / \\\"],[1,[22,2,[\\\"street\\\"]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[27,\\\"or\\\",[[23,[\\\"transport\\\",\\\"disabled\\\"]],[27,\\\"not\\\",[[23,[\\\"addNewAddress\\\"]]],null]],null],[23,[\\\"step\\\",\\\"address\\\",\\\"city\\\"]],[27,\\\"t\\\",[\\\"address.city\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\",\\\"address\\\"]],\\\"postal\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8 col-xs-12\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\",\\\"address\\\"]],\\\"city\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"country-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[12,\\\"class\\\",[28,[\\\"col-md-7 col-xs-12 step-field \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"address\\\",\\\"errors\\\",\\\"country\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"disabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"step\\\",\\\"address\\\",\\\"country\\\",\\\"name\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"StepCountryField\\\"]]],null],[23,[\\\"countries\\\"]],true,\\\"searchFieldCountry\\\",[27,\\\"t\\\",[\\\"transport.selectCountry\\\"],null],[27,\\\"or\\\",[[23,[\\\"transport\\\",\\\"disabled\\\"]],[27,\\\"not\\\",[[23,[\\\"addNewAddress\\\"]]],null]],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"step\\\",\\\"address\\\",\\\"country\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\",\\\"address\\\"]],\\\"country\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showContactPerson\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"step-contact-person-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[12,\\\"class\\\",[28,[\\\"col-xs-12 step-field form-group-padding\\\\n                            \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"contactPerson\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"step\\\",\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"contactPerson\\\"]],[27,\\\"t\\\",[\\\"step.contactPerson.label\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\"]],\\\"contactPerson\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"step-contact-person-email-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[12,\\\"class\\\",[28,[\\\"col-xs-12 step-field form-group-padding\\\\n                            \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"contactPersonEmail\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"step\\\",\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"contactPersonEmail\\\"]],[27,\\\"t\\\",[\\\"step.contactPerson.email\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\"]],\\\"contactPersonEmail\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"step-contact-person-phone-prefix-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[12,\\\"class\\\",[28,[\\\"col-md-2 col-xs-12\\\\n                                \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"contactPersonMobilePhonePrefix\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"phone-prefix\\\",null,[[\\\"setPhonePrefix\\\",\\\"existingPhonePrefix\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"setPhonePrefix\\\"],null],[23,[\\\"defaultPrefix\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"step-contact-person-phone-number-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[12,\\\"class\\\",[28,[\\\"col-md-10 col-xs-12\\\\n                                \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"contactPersonMobilePhoneNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"min\\\",\\\"max\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",\\\"number\\\",\\\"100000000\\\",\\\"999999999999\\\",[23,[\\\"step\\\",\\\"disabled\\\"]],[23,[\\\"step\\\",\\\"contactPersonMobilePhoneNumber\\\"]],[27,\\\"t\\\",[\\\"step.contactPerson.phoneNumber\\\"],null]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\"]],\\\"contactPersonMobilePhoneNumber\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"arrivalDate\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"showAdviceDateRestrictionInEveryStep\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row padding-top\\\"],[12,\\\"data-field-name\\\",[28,[[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"isLoad\\\"]],\\\"TIME_RANGE_FOR_LOAD\\\",\\\"TIME_RANGE_FOR_UNLOAD\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-7 col-xs-12 step-field \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"text-left\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"isLoad\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"step.timeRangeForLoad\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"isUnload\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"step.timeRangeForUnload\\\"],null],false],[0,\\\"\\\\n                            \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"transport/advice-date-restrictions-section\\\",null,[[\\\"step\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"step\\\"]],[23,[\\\"asPlainTemplate\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"requiresArrivalAndDepartureDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-6 col-xs-12 \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"text-right\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"control-label\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"isLoad\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"transport.arrivalDate\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"transport.departureDate\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"transport\\\",\\\"disabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-6 col-xs-12 arrival-date-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[11,\\\"data-field-name\\\",\\\"ARRIVAL_DATE\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\",\\\"disabled\\\"],[[23,[\\\"arrivalDate\\\"]],\\\"text\\\",\\\"form-control\\\",[23,[\\\"step\\\",\\\"transport\\\",\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-6 col-xs-12 arrival-date-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]],\\\" step-flatpickr\\\"]]],[11,\\\"data-field-name\\\",\\\"ARRIVAL_DATE\\\"],[9],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"disabled\\\",\\\"onChange\\\",\\\"formatType\\\",\\\"class\\\",\\\"nativeFlatpickrOptions\\\"],[[27,\\\"readonly\\\",[[23,[\\\"step\\\",\\\"arrivalDate\\\"]]],null],[23,[\\\"isEditionDisabled\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setArrivalDate\\\",[23,[\\\"step\\\"]]],null],\\\"defaultDateTime\\\",\\\"form-control checkpoint-confirmation-date\\\",[27,\\\"hash\\\",null,[[\\\"static\\\",\\\"minuteIncrement\\\",\\\"enableTime\\\"],[false,15,true]]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"arrivalDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 col-md-6 col-md-offset-6\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"step\\\"]],\\\"arrivalDate\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"alternativeStepsLayout\\\"]],\\\"stepAdditionalInfoInRows\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"transport/step-additional-data\\\",null,[[\\\"transport\\\",\\\"step\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"step\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"segmentLdm\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[9],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[\\\"step.segmentLdm\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"step\\\",\\\"stepSegmentLdm\\\"]],false],[0,\\\" [ldm]\\\"],[10],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"segmentPayload\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[9],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[\\\"step.segmentPayload\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"step\\\",\\\"stepSegmentPayload\\\"]],false],[0,\\\" [kg]\\\"],[10],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/step-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/step-user-group-select/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    showUserGroup: Ember.computed('userGroupsList.@each.length', function () {\n      if (this.get('companyType') === 'CARRIER') {\n        return false;\n      }\n\n      return this.get('hasGroup');\n    }),\n    userGroupsList: Ember.computed('company.{userGroups.[],nonDefaultUserGroups}', function () {\n      return this.get('company.nonDefaultUserGroups');\n    }),\n    hasGroup: Ember.computed('userGroupsList', function () {\n      return this.get('userGroupsList.length') > 0 || this.get('step.companyGroup.id');\n    }),\n    hasOnlyOneGroup: Ember.computed('userGroupsList', function () {\n      return this.get('userGroupsList.length') === 1;\n    }),\n    defaultUserGroup: Ember.computed('step.companyGroup', 'userGroupsList.{[],@each.length}', {\n      get() {\n        if (this.get('step.companyGroup.id')) {\n          return this.get('step.companyGroup');\n        } else {\n          if (this.get('hasOnlyOneGroup')) {\n            return this.get('userGroupsList').get('firstObject');\n          } else {\n            return '';\n          }\n        }\n      },\n\n      set(key, value) {\n        return value;\n      }\n\n    }),\n    company: Ember.computed('step', 'step.company', function () {\n      return this.get('step.company');\n    }),\n    actions: {}\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/step-user-group-select/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"bujYueUN\",\n    \"block\": \"{\\\"symbols\\\":[\\\"companyGroup\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showUserGroup\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group form-group-padding \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"companyGroup\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"step-user-group-select\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12 step-field\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"selected\\\",\\\"options\\\",\\\"disabled\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"onchange\\\"],[[23,[\\\"defaultUserGroup\\\"]],[23,[\\\"userGroupsList\\\"]],false,true,[27,\\\"t\\\",[\\\"step.companyGroup\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"step\\\",\\\"companyGroup\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\"]],\\\"companyGroup\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/step-user-group-select/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/steps-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n\n    init() {\n      this._super(...arguments);\n\n      this.send('recalculateStepTypeIdx');\n    },\n\n    quantityLoadSum: Ember.computed('transport.steps.@each.quantitySum', function () {\n      return this.get('transport.loadSteps').getEach('quantitySum').reduce((a, b) => a + b, 0);\n    }),\n    quantityUnloadSum: Ember.computed('transport.steps.@each.quantitySum', function () {\n      return this.get('transport.unloadSteps').getEach('quantitySum').reduce((a, b) => a + b, 0);\n    }),\n    showLoadQuantitySum: Ember.computed('transport.showQuantitySection', 'quantityLoadSum', function () {\n      return !this.get('transport.showQuantitySection') && this.get('quantityLoadSum') > 0;\n    }),\n    showUnloadQuantitySum: Ember.computed('transport.showQuantitySection', 'quantityUnloadSum', function () {\n      return !this.get('transport.showQuantitySection') && this.get('quantityUnloadSum') > 0;\n    }),\n    showQuantitySumCheckMessage: Ember.computed('quantityLoadSum', 'quantityUnloadSum', function () {\n      if (this.showLoadQuantitySumCheckMessage && this.showUnloadQuantitySumCheckMessage) {\n        return this.get('intl').t('step.quantityLoadAndUnloadSumCheckMessage');\n      }\n\n      if (this.showLoadQuantitySumCheckMessage) {\n        return this.get('intl').t('step.quantityLoadSumCheckMessage');\n      }\n\n      if (this.showUnloadQuantitySumCheckMessage) {\n        return this.get('intl').t('step.quantityUnloadSumCheckMessage');\n      }\n\n      return '';\n    }),\n    showQuantityLoadAndUnloadSumCheckMessage: Ember.computed('quantityLoadSum', 'quantityUnloadSum', function () {\n      return this.get('sessionAccount').getSettingValue('SHOW_QUANTITY_SUM_CHECK_MESSAGE') === 'true';\n    }),\n    showLoadQuantitySumCheckMessage: Ember.computed('quantityLoadSum', function () {\n      return this.get('sessionAccount').getSettingValue('SHOW_QUANTITY_SUM_CHECK_MESSAGE') === 'true' && this.get('quantityLoadSum') > this.get('transport.transportType.quantitySumCheckValue');\n    }),\n    showUnloadQuantitySumCheckMessage: Ember.computed('quantityUnloadSum', function () {\n      return this.get('sessionAccount').getSettingValue('SHOW_QUANTITY_SUM_CHECK_MESSAGE') === 'true' && this.get('quantityUnloadSum') > this.get('transport.transportType.quantitySumCheckValue');\n    }),\n    weightLoadSum: Ember.computed('transport.loadSteps.@each.weight', function () {\n      return this.get('transport.loadSteps').getEach('weight').reduce((a, b) => parseInt(a) + parseInt(b), 0);\n    }),\n    showLoadWeightSum: Ember.computed('transport.showWeightField', 'weightLoadSum', function () {\n      return !this.get('transport.showWeightField') && this.get('weightLoadSum') > 0;\n    }),\n    weightUnloadSum: Ember.computed('transport.unloadSteps.@each.weight', function () {\n      this.get('transport.unloadSteps').getEach('weight').reduce((a, b) => parseInt(a) + parseInt(b), 0);\n    }),\n    showUnloadWeightSum: Ember.computed('transport.showWeightField', 'weightUnloadSum', function () {\n      return !this.get('transport.showWeightField') && this.get('weightUnloadSum') > 0;\n    }),\n    actions: {\n      recalculateStepTypeIdx() {\n        this.get('transport.loadSteps').forEach((step, idx) => {\n          step.set('stepTypeIdx', idx + 1);\n        });\n        this.get('transport.unloadSteps').forEach((step, idx) => {\n          step.set('stepTypeIdx', idx + 1);\n        });\n      },\n\n      handleStepsOrder() {\n        this.get('transport.sortedSteps').forEach((step, orderInTransport) => {\n          console.log(`Nowa pozycja etapu dla firmy ${step.get('company.name')}: ${orderInTransport}}`);\n          step.set('orderInTransport', orderInTransport);\n        });\n        this.send(\"recalculateStepTypeIdx\");\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/steps-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"RxiwKiJb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"stepField\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"errors\\\",\\\"contractors\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],[27,\\\"concat\\\",[\\\"section-\\\",[23,[\\\"transport\\\",\\\"stepCssClass\\\"]]],null]],null]]]],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"sortable-objects\\\",null,[[\\\"sortableObjectList\\\",\\\"sortEndAction\\\",\\\"enableSort\\\",\\\"inPlace\\\"],[[23,[\\\"transport\\\",\\\"sortedSteps\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"handleStepsOrder\\\"],null],true,true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"sortedSteps\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"transport/step-section\\\",null,[[\\\"step\\\",\\\"transport\\\",\\\"asPlainTemplate\\\",\\\"recalculateStepTypeIdx\\\"],[[22,1,[]],[23,[\\\"transport\\\"]],[23,[\\\"asPlainTemplate\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"recalculateStepTypeIdx\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row bold text-center margin-top-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showLoadQuantitySum\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"step.quantityLoadSum\\\"],null],false],[0,\\\" : \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"quantity-load-sum\\\"],[9],[1,[21,\\\"quantityLoadSum\\\"],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showUnloadQuantitySum\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"step.quantityUnloadSum\\\"],null],false],[0,\\\" : \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"quantity-unload-sum\\\"],[9],[1,[21,\\\"quantityUnloadSum\\\"],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row bold text-center margin-top-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showLoadWeightSum\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"step.weightLoadSum\\\"],null],false],[0,\\\" : \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"weigth-load-sum\\\"],[9],[1,[21,\\\"weightLoadSum\\\"],false],[0,\\\" [kg]\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showUnloadWeightSum\\\"]]],null,{\\\"statements\\\":[[0,\\\"                 \\\"],[1,[27,\\\"t\\\",[\\\"step.weightUnloadSum\\\"],null],false],[0,\\\" : \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"weigth-unload-sum\\\"],[9],[1,[21,\\\"weightUnloadSum\\\"],false],[0,\\\"\\\\n            [kg]\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showQuantityLoadAndUnloadSumCheckMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row bold text-center margin-top-small info\\\"],[11,\\\"data-field-name\\\",\\\"quantity-sum-check-message\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[21,\\\"showQuantitySumCheckMessage\\\"],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/steps-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/surcharges-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    modalService: Ember.inject.service('modal-service'),\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    surcharges: Ember.computed('transport.surchargeValues', function () {\n      return this.get('transport.surchargeValues').sortBy('id');\n    }),\n    showActionColumn: Ember.computed(function () {\n      return this.get('canDelete') || this.get('canEdit');\n    }),\n    canAdd: Ember.computed(function () {\n      return this.authorityCheckerService.actionCanBePerformed('ROLE_CAN_ADD_SURCHARGE', this.get('transport'));\n    }),\n    canEdit: Ember.computed(function () {\n      return this.authorityCheckerService.actionCanBePerformed('ROLE_CAN_EDIT_SURCHARGE', this.get('transport'));\n    }),\n    canDelete: Ember.computed(function () {\n      return this.authorityCheckerService.actionCanBePerformed('ROLE_CAN_DELETE_SURCHARGE', this.get('transport'));\n    }),\n    canAccept: Ember.computed(function () {\n      return this.authorityCheckerService.actionCanBePerformed('ROLE_CAN_CONFIRM_SURCHARGE', this.get('transport'));\n    }),\n\n    async _prepareModel(surcharge) {\n      const transportTypeId = await this.transport.get('transportType.id');\n      const surchargeDefinitions = await this.store.query('surcharge-definition', {\n        transportTypeId\n      });\n      const currencies = await this.get('store').peekAll('currency');\n      const surchargeValue = surcharge.id ? await surcharge.reload() : surcharge;\n      const surcharges = this.get('surcharges');\n      return {\n        surchargeValue,\n        surchargeDefinitions,\n        currencies,\n        surcharges\n      };\n    },\n\n    actions: {\n      openModalNew: async function () {\n        const model = await this._prepareModel(this.store.createRecord('surcharge-value', {\n          transport: this.transport,\n          quantity: 1\n        }));\n        this.get('modalService').showModal(this.get('modalService').MODALS.TRANSPORT.SURCHARGES_FORM, model, 'sub-modal');\n      },\n      openModalEdit: async function (surcharge) {\n        const model = await this._prepareModel(surcharge);\n        this.get('modalService').showModal(this.get('modalService').MODALS.TRANSPORT.SURCHARGES_FORM, model, 'sub-modal');\n      },\n      delete: function (surcharge) {\n        const self = this;\n\n        if (!surcharge.id) {\n          surcharge.deleteRecord();\n          return;\n        }\n\n        surcharge.destroyRecord().then(() => {\n          self.transport.reload().then(() => {\n            this.transport.reload();\n          });\n        });\n      },\n      accept: async function (surcharge) {\n        if (!surcharge.id) {\n          return;\n        }\n\n        const response = await this.get('apolloApiService').callApolloApi(this.get('apolloApiService').APOLLO_API.SURCHARGES.ACCEPT, {\n          id: surcharge.id\n        });\n\n        if (response.ok) {\n          await surcharge.transport.reload();\n          await surcharge.reload();\n        } else {\n          console.error(response.errors);\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/surcharges-section/modal/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    transport: Ember.computed('model.transport', function () {\n      return this.get('model.transport');\n    }),\n    transportSurcharges: Ember.computed('model.transport.surchargeValues', function () {\n      return this.get('model.transport.surchargeValues');\n    }),\n    contractorName: Ember.computed('surcharge.contractor.shortName', function () {\n      return this.get('surcharge.contractor.shortName') || null;\n    }),\n    currencies: Ember.computed('model.currencies', function () {\n      return this.get('model.currencies');\n    }),\n    definitions: Ember.computed('model.surchargeDefinitions', function () {\n      return this.get('model.surchargeDefinitions');\n    }),\n    surcharge: Ember.computed('model.surchargeValue', function () {\n      return this.get('model.surchargeValue');\n    }),\n    surcharges: Ember.computed('model.surcharges.{length,[]}', function () {\n      return this.get('model.surcharges');\n    }),\n    modalTitle: Ember.computed('model', 'surcharge.id', function () {\n      return this.get('surcharge.id') ? this.intl.t('common.edit') : this.intl.t('common.add');\n    }),\n    actions: {\n      add: function () {\n        if (!this.get('surcharge').validate()) {\n          return;\n        }\n\n        this.get('surcharges').addObject(this.get('surcharge'));\n        this.send('hideModal', 'sub-modal');\n      },\n      close: async function () {\n        const surcharge = await this.get('surcharge');\n\n        if (surcharge.id) {\n          surcharge.rollbackAttributes();\n          surcharge.transport.reload();\n        } else {\n          surcharge.deleteRecord();\n        }\n\n        this.send('hideModal', 'sub-modal');\n      },\n      setContractor: async function (surcharge, item) {\n        const company = await this.store.findRecord('company', item.id);\n        if (company) surcharge.set('contractor', company);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/surcharges-section/modal/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"EHx8Jrez\",\n    \"block\": \"{\\\"symbols\\\":[\\\"c\\\",\\\"surchargeDefinition\\\",\\\"result\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"outletName\\\",\\\"title\\\"],[\\\"sub-modal\\\",[23,[\\\"modalTitle\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.surchargesSection.contractor\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"surcharge-contractor\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"surcharge\\\",\\\"errors\\\",\\\"contractor\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"company-auto-complete\\\",null,[[\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\"],[[23,[\\\"contractorName\\\"]],[27,\\\"t\\\",[\\\"transport.company.autoCompletePlaceholder\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setContractor\\\",[23,[\\\"surcharge\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,3,[\\\"shortName\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"surcharge\\\"]],\\\"contractor\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.surchargesSection.type\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"surcharge-definition\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"surcharge\\\",\\\"errors\\\",\\\"surchargeDefinition\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"surcharge\\\",\\\"surchargeDefinition\\\"]],[23,[\\\"definitions\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"surcharge\\\",\\\"surchargeDefinition\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,2,[\\\"alias\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"surcharge\\\"]],\\\"contractor\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.surchargesSection.quantity\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"surcharge-quantity\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"surcharge\\\",\\\"errors\\\",\\\"quantity\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"number\\\",[27,\\\"not\\\",[[23,[\\\"surcharge\\\",\\\"surchargeDefinition\\\",\\\"multipleOccurences\\\"]]],null],[23,[\\\"surcharge\\\",\\\"quantity\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"surcharge\\\"]],\\\"quantity\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.surchargesSection.value\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"surcharge-value\\\"],[12,\\\"class\\\",[28,[\\\"col-md-6 col-xs-6 no-right-padding \\\",[27,\\\"if\\\",[[23,[\\\"surcharge\\\",\\\"errors\\\",\\\"value\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"pattern\\\",\\\"min\\\",\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"number\\\",\\\"^[0-9]+\\\\\\\\.[0-9][0-9]$\\\",\\\"0\\\",\\\"form-control\\\",[23,[\\\"surcharge\\\",\\\"value\\\"]],[27,\\\"t\\\",[\\\"common.max\\\"],null]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"surcharge\\\"]],\\\"value\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"surcharge-currency\\\"],[12,\\\"class\\\",[28,[\\\"col-md-2 col-xs-6 no-left-padding \\\",[27,\\\"if\\\",[[23,[\\\"surcharge\\\",\\\"errors\\\",\\\"currency\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"surcharge\\\",\\\"currency\\\"]]],null],[23,[\\\"currencies\\\"]],true,\\\"symbol\\\",[27,\\\"t\\\",[\\\"common.currency\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"surcharge\\\",\\\"currency\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[\\\"symbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"surcharge\\\"]],\\\"currency\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons padding-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"surcharge\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"common.close\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"add\\\"]],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"surcharge\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"common.close\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/surcharges-section/modal/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/surcharges-section/table/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    canAcceptSurcharge: false,\n    surchargeValueService: Ember.inject.service('surcharge-value-service'),\n    canEditSurcharge: false,\n    canDeleteSurcharge: false,\n    transactionPriceAvailable: Ember.computed('transport.priceWithCurrency', function () {\n      return !!this.get('transport.priceWithCurrency');\n    }),\n    transportPrice: Ember.computed('transport.priceWithCurrency', function () {\n      return this.get('transport.priceWithCurrency');\n    }),\n    transactionCarrierName: Ember.computed('transport.transaction.carrier.name', function () {\n      return this.get('transport.transaction.carrier.name');\n    }),\n    showSumString: Ember.computed('transactionPriceAvailable', 'surcharges.length', function () {\n      return this.get('transactionPriceAvailable') || this.get('surcharges.length') > 0;\n    }),\n    actions: {\n      editSurcharge(surcharge) {\n        if (!this.canEditSurcharge) {\n          return;\n        }\n\n        this.onEdit(surcharge);\n      },\n\n      deleteSurcharge(surcharge) {\n        if (!this.canDeleteSurcharge) {\n          return;\n        }\n\n        this.onDelete(surcharge);\n      },\n\n      acceptSurcharge(surcharge) {\n        if (!this.canAcceptSurcharge) {\n          return;\n        }\n\n        this.onAccept(surcharge);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/surcharges-section/table/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"snquoOrv\",\n    \"block\": \"{\\\"symbols\\\":[\\\"surcharge\\\"],\\\"statements\\\":[[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table flexible-table table-striped surcharges\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.surchargesSection.id\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.surchargesSection.type\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.surchargesSection.contractor\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.surchargesSection.value\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.surchargesSection.quantity\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.surchargesSection.valueTotal\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.surchargesSection.acceptance\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.surchargesSection.confirmator\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showActionColumn\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"th\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transactionPriceAvailable\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[1,[23,[\\\"transport\\\",\\\"transaction\\\",\\\"id\\\"]],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.surchargesSection.freight\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[1,[21,\\\"transactionCarrierName\\\"],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[1,[21,\\\"transportPrice\\\"],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[0,\\\"1\\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[1,[21,\\\"transportPrice\\\"],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showActionColumn\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"each\\\",[[23,[\\\"surcharges\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[4,\\\"if\\\",[[22,1,[\\\"id\\\"]]],null,{\\\"statements\\\":[[1,[22,1,[\\\"id\\\"]],false]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"]],\\\"parameters\\\":[]}],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[1,[22,1,[\\\"surchargeDefinition\\\",\\\"alias\\\"]],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[1,[22,1,[\\\"contractor\\\",\\\"shortName\\\"]],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[1,[22,1,[\\\"value\\\"]],false],[0,\\\" \\\"],[1,[22,1,[\\\"currency\\\",\\\"symbol\\\"]],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[1,[22,1,[\\\"quantity\\\"]],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[1,[22,1,[\\\"totalValue\\\"]],false],[0,\\\" \\\"],[1,[22,1,[\\\"currency\\\",\\\"symbol\\\"]],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"accepted\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"dateConfirmed\\\"]],\\\"full\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[22,1,[\\\"id\\\"]],[23,[\\\"canAcceptSurcharge\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"accept-surcharge\\\"],[11,\\\"class\\\",\\\"btn btn-xs btn-primary\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.accept\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"acceptSurcharge\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                         \\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\"],[9],[1,[22,1,[\\\"confirmator\\\",\\\"name\\\"]],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showActionColumn\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canEditSurcharge\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"edit-surcharge\\\"],[11,\\\"class\\\",\\\"btn btn-xs btn-primary\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"common.edit\\\"],null],false],[0,\\\"\\\\n                            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"editSurcharge\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"canDeleteSurcharge\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"delete-surcharge\\\"],[11,\\\"class\\\",\\\"btn btn-xs btn-danger\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n                            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"deleteSurcharge\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},{\\\"statements\\\":[[4,\\\"unless\\\",[[23,[\\\"transport\\\",\\\"transaction\\\",\\\"price\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\"],[11,\\\"class\\\",\\\"no-data\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[11,\\\"colspan\\\",\\\"9\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.surchargesSection.noSurcharges\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"tfoot\\\"],[11,\\\"class\\\",\\\"table-summary\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showSumString\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.sum\\\"],null],false],[0,\\\":\\\"],[1,[27,\\\"components/transport-costs-string\\\",null,[[\\\"transport\\\"],[[23,[\\\"transport\\\"]]]]],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                 \\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showActionColumn\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/surcharges-section/table/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/surcharges-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"c5nCnTJu\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"expandable-panel\\\",null,[[\\\"title\\\"],[[27,\\\"t\\\",[\\\"transport.surchargesSection.title\\\"],null]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"isLoading\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"transport/surcharges-section/table\\\",null,[[\\\"surcharges\\\",\\\"transport\\\",\\\"showActionColumn\\\",\\\"canEditSurcharge\\\",\\\"canDeleteSurcharge\\\",\\\"canAcceptSurcharge\\\",\\\"onEdit\\\",\\\"onDelete\\\",\\\"onAccept\\\"],[[23,[\\\"surcharges\\\"]],[23,[\\\"transport\\\"]],[27,\\\"or\\\",[[23,[\\\"canEdit\\\"]],[23,[\\\"canDelete\\\"]]],null],[23,[\\\"canEdit\\\"]],[23,[\\\"canDelete\\\"]],[23,[\\\"canAccept\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"openModalEdit\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"accept\\\"],null]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canAdd\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"add-surcharge\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"openModalNew\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/surcharges-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/time-window-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    hasWindowStartErrors: Ember.computed('step.{errors.minAdviceDate,timeWindow.errors.start}', function () {\n      return this.get('step.timeWindow.errors.start') || this.get('step.errors.minAdviceDate');\n    }),\n    hasWindowStopErrors: Ember.computed('step.{step.errors.maxAdviceDate,timeWindow.errors.stop}', function () {\n      return this.get('step.timeWindow.errors.stop') || this.get('step.errors.maxAdviceDate');\n    }),\n    timeWindowOffsetInterval: Ember.computed('step.warehouse.id', function () {\n      return this.get('step.warehouse.timeWindowOffsetInterval') ? this.get('step.warehouse.timeWindowOffsetInterval') : 15;\n    }),\n    startCanBeUpdated: Ember.computed('step.transport', function () {\n      const transport = this.get('step.transport');\n\n      if (transport.get('periodicTransport.id')) {\n        return false;\n      }\n\n      return transport.get('content') && transport.get('content').actionCanBePerformed('MOVE_ADVICE_WINDOW');\n    }),\n    stopCanBeUpdated: Ember.computed('step.transport', function () {\n      const transport = this.get('step.transport');\n\n      if (transport.get('periodicTransport.id')) {\n        return false;\n      }\n\n      const canMoveWindow = transport.get('content') && transport.get('content').actionCanBePerformed('MOVE_ADVICE_WINDOW');\n      const canResizeWindow = transport.get('content') && transport.get('content').actionCanBePerformed('RESIZE_ADVICE_WINDOW');\n      return canMoveWindow || canResizeWindow;\n    }),\n    actions: {\n      setTimeWindowStart(timeWindow, dateValues) {\n        Ember.run.next(() => {\n          const minAdviceDate = this.get('step.minAdviceDate');\n          const maxAdviceDate = this.get('step.maxAdviceDate');\n\n          if (minAdviceDate && dateValues[0] < minAdviceDate) {\n            timeWindow.set('start', minAdviceDate);\n          } else if (maxAdviceDate && dateValues[0] > maxAdviceDate) {\n            timeWindow.set('start', maxAdviceDate);\n          } else {\n            if (!timeWindow.get('initialStart')) {\n              timeWindow.set('initialStart', timeWindow.get('start'));\n            }\n\n            timeWindow.set('start', dateValues[0]);\n          }\n        });\n      },\n\n      setTimeWindowStop(timeWindow, dateValues) {\n        Ember.run.next(() => {\n          const minAdviceDate = this.get('step.minAdviceDate');\n          const maxAdviceDate = this.get('step.maxAdviceDate');\n\n          if (minAdviceDate && dateValues[0] < minAdviceDate) {\n            timeWindow.set('stop', minAdviceDate);\n          } else if (maxAdviceDate && dateValues[0] > maxAdviceDate) {\n            timeWindow.set('stop', maxAdviceDate);\n          } else {\n            timeWindow.set('stop', dateValues[0]);\n          }\n        });\n      },\n\n      setAdviceRange(timeWindow, dateValues, flatpickrInstance) {\n        Ember.run.next(() => {\n          if (this.get('step.minAdviceDate')) {\n            flatpickrInstance.set('minDate', this.get('step.minAdviceDate'));\n          }\n\n          if (this.get('step.maxAdviceDate')) {\n            flatpickrInstance.set('maxDate', this.get('step.maxAdviceDate'));\n          }\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/time-window-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"CAJOjZxt\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-6\\\",\\\"col-xs-12 col-md-6 \\\"],null],\\\" \\\",[27,\\\"if\\\",[[23,[\\\"hasWindowStartErrors\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-3\\\",\\\"col-md-2 col-xs-12\\\"],null],\\\" control-label no-left-padding padding-right-small text-right\\\"]]],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"common.from\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-9\\\",\\\"col-md-10 col-xs-12\\\"],null],\\\" no-padding\\\"]]],[11,\\\"data-field-name\\\",\\\"time-window-start\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"startCanBeUpdated\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"onOpen\\\",\\\"formatType\\\",\\\"class\\\",\\\"nativeFlatpickrOptions\\\"],[[27,\\\"readonly\\\",[[23,[\\\"step\\\",\\\"timeWindow\\\",\\\"start\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"setTimeWindowStart\\\",[23,[\\\"step\\\",\\\"timeWindow\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"setAdviceRange\\\"],null],\\\"defaultDateTime\\\",\\\"form-control date-chooser\\\",[27,\\\"hash\\\",null,[[\\\"enableTime\\\",\\\"static\\\",\\\"minuteIncrement\\\"],[true,false,[23,[\\\"timeWindowOffsetInterval\\\"]]]]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"step\\\",\\\"timeWindow\\\",\\\"start\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"timeWindow\\\",\\\"errors\\\",\\\"start\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 col-md-10 col-md-offset-2 no-padding\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"step\\\",\\\"timeWindow\\\"]],\\\"start\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-6\\\",\\\"col-xs-12 col-md-6 \\\"],null],\\\" \\\",[27,\\\"if\\\",[[23,[\\\"hasWindowStopErrors\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-3\\\",\\\"col-md-2 col-xs-12\\\"],null],\\\" control-label no-left-padding padding-right-small text-right\\\"]]],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"common.to\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-9\\\",\\\"col-md-10 col-xs-12\\\"],null],\\\" no-padding\\\"]]],[11,\\\"data-field-name\\\",\\\"time-window-stop\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"stopCanBeUpdated\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"disabled\\\",\\\"formatType\\\",\\\"class\\\",\\\"onOpen\\\",\\\"onChange\\\",\\\"nativeFlatpickrOptions\\\"],[[27,\\\"readonly\\\",[[23,[\\\"step\\\",\\\"timeWindow\\\",\\\"stop\\\"]]],null],[23,[\\\"isEditionDisabled\\\"]],\\\"defaultDateTime\\\",\\\"form-control\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setAdviceRange\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setTimeWindowStop\\\",[23,[\\\"step\\\",\\\"timeWindow\\\"]]],null],[27,\\\"hash\\\",null,[[\\\"static\\\",\\\"minuteIncrement\\\",\\\"enableTime\\\"],[false,[23,[\\\"timeWindowOffsetInterval\\\"]],true]]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"step\\\",\\\"timeWindow\\\",\\\"stop\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"timeWindow\\\",\\\"errors\\\",\\\"stop\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 col-md-10 col-md-offset-2 no-padding\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"step\\\",\\\"timeWindow\\\"]],\\\"stop\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/time-window-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/transport-package-steps-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    init() {\n      this._super(...arguments);\n\n      this._setDefaultSteps();\n    },\n\n    _setDefaultSteps() {\n      this._setDefaultStep('load');\n\n      this._setDefaultStep('unload');\n    },\n\n    _setDefaultStep(stepType) {\n      const pckg = this.get('package');\n\n      if (!pckg.get(`${stepType}Step.id`)) {\n        const steps = this.get(`${stepType}Steps`);\n\n        if (steps.length === 1) {\n          pckg.set(`${stepType}Step`, steps[0]);\n        }\n      }\n    },\n\n    loadSteps: Ember.computed('steps.@each.stepTypeName', 'step.stepTypeName', function () {\n      return this.get('steps').filterBy('stepTypeName', 'load');\n    }),\n    unloadSteps: Ember.computed('steps', 'step.stepTypeName', function () {\n      return this.get('steps').filterBy('stepTypeName', 'unload');\n    }),\n    selectedLoadStep: Ember.computed('package.loadStep', function () {\n      return this.get('package.loadStep');\n    }),\n    selectedUnloadStep: Ember.computed('package.unloadStep', function () {\n      return this.get('package.unloadStep');\n    }),\n    setPackagingStep: function (step, type) {\n      const isLoadStep = step.get('stepTypeName') === 'load';\n      this.get('package').set(type, step);\n\n      if (!step.get('id')) {\n        this.get('package').set(isLoadStep ? 'temporaryLoadStepId' : 'temporaryUnloadStepId', step.get('temporaryStepId'));\n      }\n\n      this.get('package.errors').remove(type);\n    },\n    actions: {\n      setLoadStep(step) {\n        this.setPackagingStep(step, 'loadStep');\n      },\n\n      setUnloadStep(step) {\n        this.setPackagingStep(step, 'unloadStep');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/transport-package-steps-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"1+EeyxEF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"s\\\",\\\"s\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"package\\\",\\\"errors\\\",\\\"loadStep\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"step-warehouse\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"transport.load\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[12,\\\"data-field-name\\\",[28,[\\\"warehouse-select-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"warehouse-select\\\",\\\"form-control\\\",[23,[\\\"selectedLoadStep\\\"]],[23,[\\\"loadSteps\\\"]],true,[27,\\\"t\\\",[\\\"transport.load\\\"],null],false,[27,\\\"action\\\",[[22,0,[]],\\\"setLoadStep\\\"],null]]],{\\\"statements\\\":[[4,\\\"if\\\",[[22,2,[\\\"warehouse\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,2,[\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\", \\\"],[1,[22,2,[\\\"warehouse\\\",\\\"address\\\",\\\"toAddressString\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[22,2,[\\\"address\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,2,[\\\"address\\\",\\\"recipient\\\"]],false],[0,\\\", \\\"],[1,[22,2,[\\\"address\\\",\\\"toAddressString\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                -\\\\n            \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"package\\\"]],\\\"loadStep\\\"]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"package\\\",\\\"errors\\\",\\\"unloadStep\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"step-warehouse\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"transport.unload\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[12,\\\"data-field-name\\\",[28,[\\\"recipient-\\\",[23,[\\\"step\\\",\\\"stepTypeName\\\"]],\\\"-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"recipient-select\\\",\\\"form-control\\\",[23,[\\\"selectedUnloadStep\\\"]],[23,[\\\"unloadSteps\\\"]],true,[27,\\\"t\\\",[\\\"transport.unload\\\"],null],false,[27,\\\"action\\\",[[22,0,[]],\\\"setUnloadStep\\\"],null]]],{\\\"statements\\\":[[4,\\\"if\\\",[[22,1,[\\\"warehouse\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,1,[\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\", \\\"],[1,[22,1,[\\\"warehouse\\\",\\\"address\\\",\\\"toAddressString\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[22,1,[\\\"address\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,1,[\\\"address\\\",\\\"recipient\\\"]],false],[0,\\\", \\\"],[1,[22,1,[\\\"address\\\",\\\"toAddressString\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                -\\\\n            \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"package\\\"]],\\\"unloadStep\\\"]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/transport-package-steps-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/transport-packages-section/component\", [\"exports\", \"apollo/models/packages-table-column-model\"], function (_exports, _packagesTableColumnModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    init() {\n      this._super(...arguments);\n\n      this.send('loadPackages');\n    },\n\n    intl: Ember.inject.service(),\n    transportPackagingService: Ember.inject.service(),\n    store: Ember.inject.service(),\n    showPackageFormModal: false,\n    currentPackage: null,\n    packages: Ember.computed('transport', function () {\n      return Ember.A([]);\n    }),\n    canDeletePackages: Ember.computed('packages.length', 'transport.truckType.requireTransportPackaging', function () {\n      const truckTypeRequiresPackages = this.get('transport.truckType.requireTransportPackaging');\n\n      if (!truckTypeRequiresPackages) {\n        return true;\n      }\n\n      return this.get('packages.length') > 1;\n    }),\n    isNewTransport: Ember.computed('transport', function () {\n      return this.get('transport.id') === null;\n    }),\n    transportSteps: Ember.computed('transport.{steps.[],sortedSteps.[]}', function () {\n      return this.get('transport.sortedSteps');\n    }),\n    showActionColumn: Ember.computed(function () {\n      return this.get('canAddPackage') || this.get('canEditPackage');\n    }),\n    canAddPackage: Ember.computed(function () {\n      return this.get('transport').actionCanBePerformed('ADD_PACKAGES');\n    }),\n    canEditPackage: Ember.computed(function () {\n      return this.get('transport').actionCanBePerformed('EDIT_PACKAGES');\n    }),\n    showLdm: Ember.computed('packages.@each.ldm', function () {\n      return this.get('packages').some(p => {\n        return p.get('ldm');\n      });\n    }),\n    columns: Ember.computed('showLdm', function () {\n      const columns = Ember.A([_packagesTableColumnModel.default.create({\n        key: 'id',\n        label: 'ID',\n        sortable: true\n      }), _packagesTableColumnModel.default.create({\n        key: 'length',\n        label: this.intl.t('transport.packagesSection.package.length'),\n        sortable: true\n      }), _packagesTableColumnModel.default.create({\n        key: 'width',\n        label: this.intl.t('transport.packagesSection.package.width'),\n        sortable: true\n      }), _packagesTableColumnModel.default.create({\n        key: 'height',\n        label: this.intl.t('transport.packagesSection.package.height'),\n        sortable: true\n      }), _packagesTableColumnModel.default.create({\n        key: 'weight',\n        label: this.intl.t('transport.packagesSection.package.weight'),\n        sortable: true,\n        summable: true,\n        sumFunction: (row, columns) => {\n          const weight = parseFloat(row.weight) || 0;\n          const quantity = parseFloat(row.quantity) || 0;\n          return weight * quantity;\n        }\n      }), _packagesTableColumnModel.default.create({\n        key: 'quantity',\n        label: this.intl.t('transport.packagesSection.package.quantity'),\n        sortable: true,\n        summable: true\n      }), _packagesTableColumnModel.default.create({\n        key: 'packageType',\n        label: this.intl.t('transport.packagesSection.package.packageType'),\n        template: 'packages-table/templates/package-type-row'\n      }), _packagesTableColumnModel.default.create({\n        key: 'stackingFactor',\n        label: this.intl.t('transport.packagesSection.package.stackingFactor'),\n        template: 'packages-table/templates/package-stacking-factor-row'\n      }), _packagesTableColumnModel.default.create({\n        key: 'description',\n        label: this.intl.t('transport.packagesSection.package.description')\n      })]);\n\n      if (this.get('showLdm')) {\n        columns.pushObject(_packagesTableColumnModel.default.create({\n          key: 'roundedLdm',\n          label: this.intl.t('deliveryPackaging.ldmLabel'),\n          summable: true\n        }));\n      }\n\n      return columns;\n    }),\n    rows: Ember.computed('packages.length', function () {\n      return this.get('packages');\n    }),\n    showStepsInPackagingSection: Ember.computed('transport.{transportType.automaticallyAssignStepsInPackagingSection,packages}', function () {\n      const transport = this.get('transport');\n      const transportType = transport.get('transportType');\n      return !transportType.get('automaticallyAssignStepsInPackagingSection');\n    }),\n    groupedPackages: Ember.computed('packages.@each.{loadStep,unloadStep}', 'transport.transportPackages.{[],length}', function () {\n      const grouped = {};\n      this.get('packages').forEach(pkg => {\n        const loadStep = pkg.belongsTo('loadStep').value();\n        const unloadStep = pkg.belongsTo('unloadStep').value();\n\n        if (!loadStep || !unloadStep) {\n          return;\n        }\n\n        const key = `${loadStep.id ? loadStep.id : loadStep.temporaryStepId}-${unloadStep.id ? unloadStep.id : unloadStep.temporaryStepId}`;\n\n        if (!grouped[key]) {\n          grouped[key] = {\n            loadInfo: this._prepareStepInfoString(loadStep),\n            unloadInfo: this._prepareStepInfoString(unloadStep),\n            packages: []\n          };\n        }\n\n        grouped[key].packages.push(pkg);\n      });\n      return Object.values(grouped);\n    }),\n\n    _getCompanyShortName(step) {\n      if (!this.get('transport').actionCanBePerformed('ACCESS_SUPPLIER_COMPANY_FIELD')) {\n        return '';\n      }\n\n      return (step.get('warehouse.id') ? `${step.get('warehouse.company.shortName')}, ` : `${step.get('address.company.shortName')}, `) || '';\n    },\n\n    _prepareStepInfoString(step) {\n      return step.get('warehouse.id') ? `${this._getCompanyShortName(step)}${step.get('warehouse.nameInAppropriateLanguage') || ''}` : `${this._getCompanyShortName(step)}${step.get('address.recipient') || ''}`;\n    },\n\n    _setPackageSteps: function (packaging, loadStep, unloadStep) {\n      packaging.set('loadStep', loadStep);\n      packaging.set('unloadStep', unloadStep);\n    },\n    actions: {\n      loadPackages: async function () {\n        try {\n          const transportId = this.transport.id;\n\n          if (!transportId) {\n            if (this.transport.originalTransportId) {\n              this.set('packages', this.transport.get('transportPackages').toArray());\n            }\n\n            return;\n          }\n\n          this.set('isLoading', true);\n          const records = await this.store.query('transport-packaging', {\n            transportId\n          });\n          this.set('packages', records.toArray());\n        } catch (error) {\n          console.error('Failed to load packages', error);\n        } finally {\n          this.set('isLoading', false);\n        }\n      },\n      openModalForCreatingNew: function () {\n        // TODO: manipulacja DOM do zmiany\n        // stary modal nie działa dobrze z nowym gdy ten nowy jest nad nim\n        document.querySelector('.modal-open .modal').style.overflowY = 'hidden';\n        document.querySelector('.modal-open .modal').removeAttribute('tabindex');\n        const currentPackage = this.set('currentPackage', this.store.createRecord('transport-packaging', {\n          transport: this.get('transport'),\n          enabled: true\n        }));\n\n        if (!this.get('showStepsInPackagingSection')) {\n          this._setPackageSteps(currentPackage, this.get('transport.firstLoadStep'), this.get('transport.firstUnloadStep'));\n        }\n\n        this.set('showPackageFormModal', true);\n      },\n      openModalForEdition: function (transportPackage) {\n        // TODO: manipulacja DOM do zmiany\n        document.querySelector('.modal-open .modal').style.overflowY = 'hidden';\n        document.querySelector('.modal-open .modal').removeAttribute('tabindex');\n        this.set('currentPackage', transportPackage);\n        this.set('isEditing', true);\n        this.set('showPackageFormModal', true);\n      },\n      closeModal: function () {\n        // TODO: manipulacja DOM do zmiany\n        document.querySelector('.modal-open .modal').style.overflowY = 'auto';\n        document.querySelector('.modal-open .modal').setAttribute('tabindex', -1);\n        const currentPackage = this.get('currentPackage');\n\n        if (currentPackage.get('id')) {\n          currentPackage.rollbackAttributes();\n        } else if (!this.get('isEditing') && !currentPackage.get('id')) {\n          this.get('transport.transportPackages').removeObject(currentPackage);\n          currentPackage.unloadRecord();\n        }\n\n        this.set('currentPackage', null);\n        this.set('showPackageFormModal', false);\n      },\n      onSave: function () {\n        // TODO: do zmiany\n        const transportModalElement = document.querySelector('.modal-open .modal');\n\n        if (transportModalElement) {\n          transportModalElement.style.overflowY = 'auto';\n          transportModalElement.setAttribute('tabindex', -1);\n        }\n\n        const currentPackage = this.get('currentPackage');\n        const isNewTransport = this.get('isNewTransport');\n        const isAddingNewPackage = !this.packages.findBy('id', `${currentPackage.id}`) && !this.get('isEditing');\n\n        if (isNewTransport && !this.get('isEditing')) {\n          this.get('transport.transportPackages').pushObject(currentPackage);\n        }\n\n        if (isAddingNewPackage) {\n          this.packages.pushObject(currentPackage);\n        }\n\n        this.setProperties({\n          isEditing: false,\n          currentPackage: null,\n          showPackageFormModal: false\n        });\n      },\n      deleteTransportPackage: function (transportPackage) {\n        if (this.transportPackagingService.delete(transportPackage)) {\n          this.packages.removeObject(transportPackage);\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/transport-packages-section/modal/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    availableStackingFactors: Ember.A([1, 2, 3, 4]),\n    packageTypes: Ember.computed(function () {\n      const transportTypeId = this.get('package.transport.transportType.id');\n\n      if (!transportTypeId) {\n        return;\n      }\n\n      return this.get('store').peekAll('packageTypeTransportType').filter(pttt => pttt.get('transportType.id') === transportTypeId).map(pttt => pttt.get('packageType'));\n    }),\n    showSteps: Ember.computed('package.transport.transportType.automaticallyAssignStepsInPackagingSection', function () {\n      return !this.get('package.transport.transportType.automaticallyAssignStepsInPackagingSection');\n    }),\n    actions: {\n      onSaveHandler: function (transportPackage) {\n        if (!transportPackage.validate()) {\n          return;\n        }\n\n        if (this.get('isNewTransport') || // Transport has unsaved steps, we treat it as new transport and save packages with transport.\n        !transportPackage.get('loadStep.id') || !transportPackage.get('unloadStep.id')) {\n          this.onSave();\n          return;\n        }\n\n        transportPackage.save().then(() => {\n          this.onSave();\n        });\n      },\n      onCloseHandler: function () {\n        this.onClose();\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/transport-packages-section/modal/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"lW8o4jKw\",\n    \"block\": \"{\\\"symbols\\\":[\\\"stackingFactor\\\",\\\"packageType\\\"],\\\"statements\\\":[[4,\\\"modal-dialog\\\",null,[[\\\"translucentOverlay\\\",\\\"onClose\\\"],[false,[27,\\\"action\\\",[[22,0,[]],\\\"onCloseHandler\\\"],null]]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section\\\"],[11,\\\"data-field-name\\\",\\\"transport-packages-modal\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-header\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"bold col-xs-12\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"package\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.packagesSection.modal.editPackageTitle\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.packagesSection.modal.newPackageTitle\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-body\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showSteps\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"transport/transport-package-steps-section\\\",null,[[\\\"package\\\",\\\"steps\\\"],[[23,[\\\"package\\\"]],[23,[\\\"steps\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"package\\\",\\\"errors\\\",\\\"width\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transport.packagesSection.package.length\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[11,\\\"data-field-name\\\",\\\"length\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"min\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"number\\\",\\\"0\\\",\\\"form-control\\\",\\\"10\\\",[23,[\\\"package\\\",\\\"length\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"package\\\"]],\\\"length\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"package\\\",\\\"errors\\\",\\\"width\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transport.packagesSection.package.width\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[11,\\\"data-field-name\\\",\\\"width\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"min\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"number\\\",\\\"0\\\",\\\"form-control\\\",\\\"10\\\",[23,[\\\"package\\\",\\\"width\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"package\\\"]],\\\"width\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"package\\\",\\\"errors\\\",\\\"height\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transport.packagesSection.package.height\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[11,\\\"data-field-name\\\",\\\"height\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"min\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"number\\\",\\\"0\\\",\\\"form-control\\\",\\\"10\\\",[23,[\\\"package\\\",\\\"height\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"package\\\"]],\\\"height\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"package\\\",\\\"errors\\\",\\\"weight\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transport.packagesSection.package.weight\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[11,\\\"data-field-name\\\",\\\"weight\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"min\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"number\\\",\\\"0\\\",\\\"form-control\\\",\\\"10\\\",[23,[\\\"package\\\",\\\"weight\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"package\\\"]],\\\"weight\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"package\\\",\\\"errors\\\",\\\"quantity\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transport.packagesSection.package.quantity\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[11,\\\"data-field-name\\\",\\\"quantity\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"min\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"number\\\",\\\"0\\\",\\\"form-control\\\",\\\"10\\\",[23,[\\\"package\\\",\\\"quantity\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"package\\\"]],\\\"quantity\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"package\\\",\\\"errors\\\",\\\"packageType\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transport.packagesSection.package.packageType\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[11,\\\"data-field-name\\\",\\\"packageType\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"package\\\",\\\"packageType\\\"]],[23,[\\\"packageTypes\\\"]],true,[27,\\\"t\\\",[\\\"transport.packagesSection.package.packageType\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"package\\\",\\\"packageType\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"packageTypes.\\\",[22,2,[\\\"name\\\"]],\\\".label\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"package\\\"]],\\\"packageType\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"package\\\",\\\"errors\\\",\\\"stackingFactor\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transport.packagesSection.package.stackingFactor\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[11,\\\"data-field-name\\\",\\\"stackingFactor\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"package\\\",\\\"stackingFactor\\\"]],[23,[\\\"availableStackingFactors\\\"]],true,[27,\\\"t\\\",[\\\"transport.packagesSection.package.stackingFactor\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"package\\\",\\\"stackingFactor\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"transport.packagesSection.stackingFactorOptions.\\\",[22,1,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"package\\\"]],\\\"packageType\\\"]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"package\\\"]],\\\"stackingFactor\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"package\\\",\\\"errors\\\",\\\"description\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transport.packagesSection.package.description\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[11,\\\"data-field-name\\\",\\\"description\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"rows\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[2,\\\"form-control\\\",[27,\\\"t\\\",[\\\"transport.packagesSection.package.description\\\"],null],[23,[\\\"package\\\",\\\"description\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"package\\\"]],\\\"description\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"onSaveHandler\\\",[22,0,[\\\"package\\\"]]]],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[27,\\\"not\\\",[[23,[\\\"isEditing\\\"]]],null],[22,0,[\\\"package\\\",\\\"transport\\\",\\\"id\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-secondary\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,0,[\\\"package\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"common.close\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"onCloseHandler\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/transport-packages-section/modal/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/transport-packages-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Y9kHdXD1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"group\\\"],\\\"statements\\\":[[4,\\\"expandable-panel\\\",null,[[\\\"title\\\"],[[27,\\\"t\\\",[\\\"transport.packagesSection.title\\\"],null]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"truckType\\\",\\\"requireTransportPackaging\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row text-center\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.packagesSection.requiresAtLeastOne\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"isLoading\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showStepsInPackagingSection\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"groupedPackages\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom\\\"],[11,\\\"data-field-name\\\",\\\"package-addresses\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"loadInfo\\\"]],false],[0,\\\" >>> \\\"],[1,[22,1,[\\\"unloadInfo\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"transport/transport-packages-table\\\",null,[[\\\"actionColumn\\\",\\\"canEditPackage\\\",\\\"canDeletePackages\\\",\\\"columns\\\",\\\"rows\\\",\\\"onEdit\\\",\\\"onDelete\\\"],[[23,[\\\"showActionColumn\\\"]],[23,[\\\"canEditPackage\\\"]],[23,[\\\"canDeletePackages\\\"]],[22,0,[\\\"columns\\\"]],[22,1,[\\\"packages\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"openModalForEdition\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"deleteTransportPackage\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"transport/transport-packages-table\\\",null,[[\\\"actionColumn\\\",\\\"canEditPackage\\\",\\\"canDeletePackages\\\",\\\"columns\\\",\\\"rows\\\",\\\"onEdit\\\",\\\"onDelete\\\"],[[23,[\\\"showActionColumn\\\"]],[23,[\\\"canEditPackage\\\"]],[23,[\\\"canDeletePackages\\\"]],[22,0,[\\\"columns\\\"]],[22,0,[\\\"rows\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"openModalForEdition\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"deleteTransportPackage\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canAddPackage\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"add-package\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"openModalForCreatingNew\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showPackageFormModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"transport/transport-packages-section/modal\\\",null,[[\\\"isNewTransport\\\",\\\"package\\\",\\\"steps\\\",\\\"isEditing\\\",\\\"onSave\\\",\\\"onClose\\\"],[[23,[\\\"isNewTransport\\\"]],[23,[\\\"currentPackage\\\"]],[23,[\\\"transportSteps\\\"]],[23,[\\\"isEditing\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"onSave\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"closeModal\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/transport-packages-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/transport-packages-table/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    groupedPackages: null,\n    canEditPackage: false,\n    canDeletePackages: false,\n    actions: {\n      editPackage(pkg) {\n        this.onEdit(pkg);\n      },\n\n      deletePackage(pkg) {\n        this.onDelete(pkg);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/transport-packages-table/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"DWEvn26y\",\n    \"block\": \"{\\\"symbols\\\":[\\\"package\\\"],\\\"statements\\\":[[4,\\\"packages-table\\\",null,[[\\\"hover\\\",\\\"striped\\\",\\\"actionColumn\\\",\\\"defaultSortKey\\\",\\\"columns\\\",\\\"rows\\\",\\\"noDataMessage\\\",\\\"showSummary\\\"],[false,true,[23,[\\\"actionColumn\\\"]],\\\"id\\\",[23,[\\\"columns\\\"]],[23,[\\\"rows\\\"]],[27,\\\"t\\\",[\\\"transport.packagesSection.noDataMessage\\\"],null],true]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"canEditPackage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-xs btn-primary\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.edit\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"editPackage\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canDeletePackages\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-xs btn-danger\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"deletePackage\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/transport-packages-table/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/warehouse-zone-section/component\", [\"exports\", \"apollo/mixins/form-utils-mixin\"], function (_exports, _formUtilsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Component.extend(_formUtilsMixin.default, {\n    intl: service(),\n    sessionAccount: service('session-account'),\n    languageService: service('language-service'),\n    store: service(),\n    transport: Ember.computed('step.transport', function () {\n      return this.get('step.transport');\n    }),\n    warehouse: Ember.computed('step.warehouse', function () {\n      return this.get('step.warehouse');\n    }),\n    warehouseZones: Ember.computed('step.warehouseZones', function () {\n      return this.get('step.warehouseZones').sortBy('idx');\n    }),\n    showWarehouseZoneHint: Ember.computed('', function () {\n      return this.get('sessionAccount').hasRole('ROLE_MOVE_WINDOWS_BETWEEN_WAREHOUSE_ZONES');\n    }),\n    warehouseLabel: function () {\n      const properKey = this.get('languageService').findProperLanguageVersion('WAREHOUSE_LABEL', 'WAREHOUSE_LABEL_EN');\n      const setting = this.get('sessionAccount').getSettingValue(properKey);\n      return setting ? setting : this.get('intl').t('transport.warehouse');\n    }.property().readOnly(),\n    actions: {\n      warehouseZoneSelected(selectedZone, object) {\n        this.get('step').set('warehouseZone', selectedZone);\n        this.clearBootstrapError($(\"#\" + object.uniqueId));\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/warehouse-zone-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Mi0MbrMO\",\n    \"block\": \"{\\\"symbols\\\":[\\\"w\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"warehouseZone\\\"]],\\\"has-error\\\"],null],\\\" warehouse-zone-select-transport\\\"]]],[12,\\\"data-field-name\\\",[28,[\\\"warehouse-zone-step-\\\",[23,[\\\"step\\\",\\\"orderInTransport\\\"]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"transport\\\",\\\"id\\\"]],[23,[\\\"step\\\",\\\"warehouseZone\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"step\\\",\\\"warehouseZone\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showWarehouseZoneHint\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-question-circle\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"warehouseZone.hint\\\"],[[\\\"warehouseZoneLabel\\\"],[[23,[\\\"warehouseZoneLabel\\\"]]]]]]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"step\\\",\\\"warehouse\\\"]]],null,{\\\"statements\\\":[[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"warehouse-zone-select\\\",\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"step\\\",\\\"warehouseZone\\\"]]],null],[23,[\\\"warehouseZones\\\"]],true,\\\"name\\\",[23,[\\\"warehouseZoneLabel\\\"]],[23,[\\\"transport\\\",\\\"disabled\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"warehouseZoneSelected\\\"],null]]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"warehouseZones\\\",\\\"length\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"warehouseZone.noTransportTypesAssigned\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"warehouseZone.selectWarehouse\\\"],[[\\\"warehouseZoneLabel\\\",\\\"warehouseLabel\\\"],[[23,[\\\"warehouseZoneLabel\\\"]],[23,[\\\"warehouseLabel\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\"]],\\\"warehouseZone\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/warehouse-zone-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/weight-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    canEditWeight: Ember.computed('transport.hasAutoWeight', function () {\n      if (this.get('transport.hasAutoWeight')) {\n        return true;\n      } else {\n        return !this.get('transport').actionCanBePerformed('ROLE_EDIT_WEIGHT');\n      }\n    }),\n    transportWeightReceiptsList: Ember.computed('transport.transportWeightReceipts', function () {\n      if (this.get('transport.isRelatedTransportInTransportCombining')) {\n        return this.get('transport.masterTransportInTransportCombining.transportWeightReceipts');\n      }\n\n      return this.get('transport.transportWeightReceipts');\n    }),\n    actions: {\n      weigh() {\n        const lastConfirmedCheckpointWithWeighingIncluded = this.get('transport.lastConfirmedCheckpointWithWeighingIncluded');\n\n        if (!lastConfirmedCheckpointWithWeighingIncluded) {\n          console.debug('Brak potwierdzonych checkpointów wymagających ważenia - nie dokonujemy pomiaru');\n          return;\n        }\n\n        this.set('action', 'weigh');\n        this.sendAction('action', lastConfirmedCheckpointWithWeighingIncluded);\n      },\n\n      generateWeightReceipt() {\n        this.set('action', 'generateWeightReceipt');\n        this.sendAction('action', this.get('transport.id'));\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transport/weight-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"3Zz+FgZT\",\n    \"block\": \"{\\\"symbols\\\":[\\\"twr\\\",\\\"wh\\\",\\\"tw\\\"],\\\"statements\\\":[[1,[27,\\\"transport/custom-fields-section\\\",null,[[\\\"transport\\\",\\\"weightSection\\\"],[[23,[\\\"transport\\\"]],true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"warehousesWithWeighingIncluded\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"related-to-labels-plain\\\",null,[[\\\"transport\\\",\\\"title\\\"],[[23,[\\\"transport\\\"]],[27,\\\"t\\\",[\\\"transport.combinedWeight\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[27,\\\"warehouse-weights\\\",null,[[\\\"weights\\\",\\\"warehouse\\\"],[[23,[\\\"transport\\\",\\\"enabledWeights\\\"]],[22,2,[]]]]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[22,3,[\\\"warehouse\\\",\\\"name\\\"]],false],[0,\\\" - \\\"],[1,[22,3,[\\\"task\\\",\\\"checkpointNameInAppropriateLanguage\\\"]],false],[0,\\\" - \\\"],[1,[27,\\\"t\\\",[\\\"transport.weightSection.weight\\\"],null],false],[0,\\\" [\\\"],[1,[27,\\\"t\\\",[\\\"transport.weightSection.unit\\\"],null],false],[0,\\\"]\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left col-md-3\\\"],[12,\\\"data-field-name\\\",[28,[\\\"weight-\\\",[22,3,[\\\"warehouse\\\",\\\"name\\\"]],\\\"-\\\",[22,3,[\\\"task\\\",\\\"checkpointNameInAppropriateLanguage\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"number\\\",\\\"form-control\\\",[23,[\\\"canEditWeight\\\"]],\\\"0,00\\\",[22,3,[\\\"readOut\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,3,[\\\"notSynchronized\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-exclamation-circle col-md-1 no-horizontal-padding center-icon-in-form\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transport.weightSection.notSynchronized\\\"],null]]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"not\\\",[[23,[\\\"transport\\\",\\\"archived\\\"]]],null],[27,\\\"and\\\",[[23,[\\\"transport\\\",\\\"hasAutoWeight\\\"]],[27,\\\"last-weight-task\\\",null,[[\\\"checkpoint\\\",\\\"transport\\\",\\\"weight\\\"],[[23,[\\\"transport\\\",\\\"lastConfirmedCheckpointWithWeighingIncluded\\\"]],[23,[\\\"transport\\\"]],[22,3,[]]]]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-field-name\\\",\\\"weighing-again\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.weightSection.weighAgain\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"weigh\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[4,\\\"if\\\",[[27,\\\"not\\\",[[27,\\\"eq\\\",[[27,\\\"warehouse-net-weight\\\",null,[[\\\"weights\\\",\\\"warehouse\\\"],[[23,[\\\"transport\\\",\\\"enabledWeights\\\"]],[22,2,[]]]]],\\\"NaN\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-5 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[22,2,[\\\"name\\\"]],false],[0,\\\" - \\\"],[1,[27,\\\"t\\\",[\\\"transport.weightSection.netWeight\\\"],null],false],[0,\\\" [\\\"],[1,[27,\\\"t\\\",[\\\"transport.weightSection.unit\\\"],null],false],[0,\\\"]\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left col-md-3\\\"],[11,\\\"data-field-name\\\",\\\"net-weight\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"true\\\",[27,\\\"warehouse-net-weight\\\",null,[[\\\"weights\\\",\\\"warehouse\\\"],[[23,[\\\"transport\\\",\\\"enabledWeights\\\"]],[22,2,[]]]]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2]},null],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"twr-continer\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.weightSection.downloadWeightReceipt\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"twr-btn-container\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transportWeightReceiptsList\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"twr-btn btn-primary btn\\\"],[12,\\\"href\\\",[22,1,[\\\"refLink\\\"]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"file-excel\\\",\\\"solid\\\"],null],false],[1,[22,1,[\\\"warehouse\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right col-xs-12\\\"],[11,\\\"data-field-name\\\",\\\"generate-weigh-receipt\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"generatingWeightReceiptEnabled\\\"]],[23,[\\\"transport\\\",\\\"id\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"a\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"transport.weightSection.downloadWeightReceipt\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"generateWeightReceipt\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transport/weight-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/choose-type/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    tagName: 'div',\n    classNames: ['pull-right', 'text-right', 'horizontal-container'],\n    actionName: '',\n    scrollPage: 'scrollPage',\n    transportTypeModes: Ember.computed('transportTypes.@each.name', function () {\n      return ['ALL', ...this.get('transportTypes').filterBy('canBeSeenInArchiveByRoleGroup').getEach('alias')];\n    }),\n    transportTypesCanBeSeenInArchiveByRoleGroup: Ember.computed('transportTypes.[]', function () {\n      return this.get('transportTypes').filterBy('canBeSeenInArchiveByRoleGroup');\n    }),\n    allTransportTypesLoaded: Ember.computed('transportTypes.@each.loadingCompleted', 'transportTypeMode', function () {\n      return this.get('transportTypes').filterBy('loadingCompleted').get('length') === this.get('transportTypes').get('length');\n    }),\n    actions: {\n      scrollPage: function (transportTypeId) {\n        this.sendAction('scrollPage', transportTypeId);\n      },\n\n      setTransportTypeMode(mode) {\n        this.set('actionName', 'setTransportTypeMode');\n        this.sendAction('actionName', mode);\n      },\n\n      saveTransportAliasTypeToLocalStorage(alias) {\n        localStorage.setItem('LastVisitedTransportType', alias);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/choose-type/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"VuOdDIEn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tt\\\",\\\"tt\\\",\\\"type\\\",\\\"type\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"archive\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"show-on-big-screens horizontal-scroll small-padding\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transportTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\"],[12,\\\"data-button-name\\\",[22,4,[\\\"alias\\\"]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"transports.archive\\\",[22,4,[\\\"id\\\"]],[27,\\\"query-params\\\",null,[[\\\"page\\\",\\\"query\\\",\\\"start\\\",\\\"stop\\\"],[1,[23,[\\\"query\\\"]],[23,[\\\"start\\\"]],[23,[\\\"stop\\\"]]]]]],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,4,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"hide-on-big-screens form-inline small-padding\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"archive-type-mode-select\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"table.transports.selectType\\\"],null],false],[0,\\\":\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"select\\\"],[11,\\\"name\\\",\\\"archiveTypeMode\\\"],[11,\\\"id\\\",\\\"archive-type-mode-select\\\"],[11,\\\"class\\\",\\\"form-control\\\"],[12,\\\"onchange\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setTransportTypeMode\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transportTypesCanBeSeenInArchiveByRoleGroup\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"option\\\"],[12,\\\"value\\\",[28,[[22,3,[\\\"alias\\\"]]]]],[12,\\\"data-option-name\\\",[28,[[22,3,[\\\"alias\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[22,3,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"show-on-big-screens horizontal-scroll small-padding\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transportTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"btn-group\\\"],[11,\\\"role\\\",\\\"group\\\"],[12,\\\"data-button-name\\\",[22,2,[\\\"alias\\\"]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"saveTransportAliasTypeToLocalStorage\\\",[22,2,[\\\"alias\\\"]]],null]],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"transports.index\\\",[22,2,[\\\"alias\\\"]],[27,\\\"query-params\\\",null,[[\\\"query\\\"],[[23,[\\\"query\\\"]]]]]],null]]]],[12,\\\"class\\\",[28,[\\\"btn btn-default \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"transportTypeMode\\\"]],[22,2,[\\\"alias\\\"]]],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[22,2,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[27,\\\"eq\\\",[[23,[\\\"transportTypeMode\\\"]],\\\"ALL\\\"],null],[27,\\\"eq\\\",[[23,[\\\"transportTypeMode\\\"]],[22,2,[\\\"alias\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,2,[\\\"loadingCompleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"check\\\",\\\"solid\\\"],[[\\\"title\\\"],[[27,\\\"t\\\",[\\\"table.transports.scrollToType\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/images/ajax-loader.gif\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"scrollPage\\\",[22,2,[\\\"id\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[12,\\\"class\\\",[28,[\\\"btn-group \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"transportTypeMode\\\"]],\\\"ALL\\\"],null],\\\"active\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"saveTransportAliasTypeToLocalStorage\\\",\\\"ALL\\\"],null]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"transports.index\\\",\\\"ALL\\\",[27,\\\"query-params\\\",null,[[\\\"query\\\"],[[23,[\\\"query\\\"]]]]]],null]]]],[12,\\\"class\\\",[28,[\\\"btn btn-default \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"transportTypeMode\\\"]],\\\"ALL\\\"],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.type.ALL\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"transportTypeMode\\\"]],\\\"ALL\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"allTransportTypesLoaded\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"allTransportTypesLoaded\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"check\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/images/ajax-loader.gif\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"hide-on-big-screens form-inline\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"transport-type-mode-select\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"table.transports.selectType\\\"],null],false],[0,\\\":\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"select\\\"],[11,\\\"name\\\",\\\"typeMode\\\"],[11,\\\"id\\\",\\\"transport-type-mode-select\\\"],[11,\\\"class\\\",\\\"form-control\\\"],[12,\\\"onchange\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setTransportTypeMode\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"ALL\\\"],[11,\\\"data-option-name\\\",\\\"ALL\\\"],[12,\\\"selected\\\",[27,\\\"eq\\\",[[23,[\\\"transportTypeMode\\\"]],\\\"ALL\\\"],null]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.type.ALL\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transportTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"option\\\"],[12,\\\"value\\\",[28,[[22,1,[\\\"alias\\\"]]]]],[12,\\\"data-option-name\\\",[28,[[22,1,[\\\"alias\\\"]]]]],[12,\\\"selected\\\",[27,\\\"eq\\\",[[23,[\\\"transportTypeMode\\\"]],[22,1,[\\\"alias\\\"]]],null]],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/choose-type/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/netpc-report-button/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    isSuperUser: Ember.computed('sessionAccount.isSuperUser', function () {\n      return this.get('sessionAccount.isSuperUser');\n    }),\n\n    _getUrlAndOpen(dashboardName) {\n      const path = this.get('apolloApiService').APOLLO_API.NET_PC.GET_REPORT_URL;\n      this.get('apolloApiService').callApolloApi(path, {\n        dashboardName\n      }).then(response => {\n        return response.json();\n      }).then(data => {\n        const URL = data.url;\n        window.open(URL);\n      });\n    },\n\n    actions: {\n      goToReport: function () {\n        const dashboard = this.get('dashboardName');\n        Ember.run.debounce(this, '_getUrlAndOpen', dashboard || 'Transport_real', 500);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/netpc-report-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"I9cw6Vfn\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"isSuperUser\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"fa-pull-right\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"class\\\",\\\"placeholder\\\"],[\\\"text\\\",[23,[\\\"dashboardName\\\"]],\\\"form-control\\\",\\\"Dashboard Name\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"netpc-report\\\"],[9],[0,\\\"\\\\n            Raport NetPC\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"goToReport\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/netpc-report-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/save-filters-switch/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    /*\n        Komponent reprezentujący przełącznik do zarządzania stanem zapamiętywania filtrów.\n        Stan przechowywany jest w pamięci lokalnej przeglądarki pod kluczem `cacheFilters`.\n        Domyślnie, zapamiętywanie filtrów jest włączone.\n     */\n    init() {\n      this._super(...arguments);\n\n      Ember.run.once(() => {\n        if (localStorage.getItem(\"cacheFilters\") === null) {\n          localStorage.setItem(\"cacheFilters\", \"true\");\n        }\n      });\n    },\n\n    cacheFiltersSwitchState: Ember.computed({\n      get() {\n        return localStorage.getItem(\"cacheFilters\") != null ? localStorage.getItem(\"cacheFilters\") === \"true\" : \"true\";\n      },\n\n      set(key, value) {\n        localStorage.setItem(\"cacheFilters\", value);\n        return value;\n      }\n\n    }),\n    actions: {\n      toggleCacheFiltersSwitch: function () {\n        this.set('cacheFiltersSwitchState', !this.get('cacheFiltersSwitchState'));\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/save-filters-switch/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"kt+3D8AR\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[21,\\\"transports/netpc-report-button\\\"],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-2\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default no-vertical-margin\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"list-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"list-group-item\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"b\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.rememberFilters\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"material-switch pull-right\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"input\\\"],[11,\\\"id\\\",\\\"cacheFiltersSwitch\\\"],[12,\\\"checked\\\",[21,\\\"cacheFiltersSwitchState\\\"]],[12,\\\"onchange\\\",[27,\\\"action\\\",[[22,0,[]],\\\"toggleCacheFiltersSwitch\\\"],null]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"cacheFiltersSwitch\\\"],[11,\\\"class\\\",\\\"label-success\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/save-filters-switch/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/search-transports/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: 'div',\n    classNames: Ember.A(['pull-left']),\n    sessionAccount: Ember.inject.service('session-account'),\n    scannerInputService: Ember.inject.service('scanner-input-service'),\n    dateFormatterService: Ember.inject.service('date.date-formatter-service'),\n    intl: Ember.inject.service(),\n    actionName: '',\n    showSearchButton: false,\n    startProxy: null,\n    stopProxy: null,\n    dateFilterPropertyProxy: null,\n    globalSearchFilterOption: 'ALL',\n    globalSearchFilterOptionForApiV2: 'CAR_REGISTRATION_NUMBER',\n    GLOBAL_SEARCH_FILTER_OPTIONS: Ember.A(['ALL', 'CAR_REGISTRATION_NUMBER', 'ADVICE_DRIVER_NAME']),\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    searchParams: {},\n    // rzeczywista zmienna propagowana po całym systemie\n    queryProxy: '',\n    // zmienna działająca tylko w ramach komponentu\n    filterMode: null,\n\n    init() {\n      this._super(...arguments);\n\n      const dateFilterProperty = this.get('transportType.dateFilterProperty');\n      this.set('dateFilterPropertyProxy', dateFilterProperty);\n    },\n\n    firstKeyPressedTime: null,\n\n    keyPress(e) {\n      const self = this;\n      const inputElement = $(document.getElementById('transport-search-input').children[0]);\n      let inputValue = inputElement.val();\n\n      if (inputValue.length === 0) {\n        this.set('firstKeyPressedTime', Date.now());\n      }\n\n      if (e.keyCode === self.get('scannerInputService').ENTER_KEY_CODE) {\n        if (inputValue.length === self.get('scannerInputService').BARCODE_LENGTH) {\n          const lastKeyPressedTime = Date.now();\n          const elapsedTime = Math.floor(lastKeyPressedTime - self.get('firstKeyPressedTime'));\n\n          if (elapsedTime < 100) {\n            if (self.get('scannerInputService').verifyChecksum(inputValue)) {\n              inputElement.val(inputValue.substring(0, inputValue.length - 1));\n            } else {\n              alert(self.get('intl').t('table.scanBarcodeError'));\n              inputElement.val('');\n            }\n          }\n        } else {\n          inputValue += e.key;\n        }\n      }\n    },\n\n    // eslint-disable-next-line ember/no-component-lifecycle-hooks\n    didReceiveAttrs() {\n      this._super();\n\n      if (this.get('sessionAccount').isGroupFilterEnabled() && !this.get('filterMode')) {\n        const filteringModeValue = localStorage.filteringMode || 'user';\n        this.set('filterMode', filteringModeValue);\n      }\n\n      let showSearchButton = false;\n\n      if (this.get('query') && !this.get('queryProxy')) {\n        this.set('queryProxy', this.get('query'));\n        showSearchButton = true;\n      }\n\n      if (this.get('start') && !this.get('startProxy')) {\n        this.set('startProxy', this.get('start'));\n        showSearchButton = true;\n      }\n\n      if (this.get('stop') && !this.get('stopProxy')) {\n        this.set('stopProxy', this.get('stop'));\n        showSearchButton = true;\n      }\n\n      if (showSearchButton) {\n        this.set('showSearchButton', true);\n      }\n    },\n\n    showScanBarcodeButton: Ember.computed('transportTypeMode', function () {\n      return this.get('sessionAccount').hasRole('ROLE_CAN_SCAN_BARCODES');\n    }),\n    _setShowSearchButtonOnce: function () {\n      if (this.get('queryProxy') !== '' || this.get('startProxy') || this.get('stopProxy')) {\n        this.set('showSearchButton', true);\n      }\n    },\n    // eslint-disable-next-line ember/no-observers\n    setShowSearchButton: Ember.observer('queryProxy', 'startProxy', 'stopProxy', function () {\n      Ember.run.once(this, '_setShowSearchButtonOnce');\n    }),\n    showUserAndGroupFilter: Ember.computed('', function () {\n      return this.get('sessionAccount').isGroupFilterEnabled();\n    }),\n    _cleanParamsOnce: function () {\n      this.set('actionName', 'clearQueryParams');\n      this.sendAction('actionName', '');\n      this.setProperties({\n        queryProxy: '',\n        start: '',\n        stop: '',\n        dateFilterProperty: this.get('transportType.dateFilterProperty'),\n        startProxy: '',\n        stopProxy: '',\n        showSearchButton: false\n      });\n      this.set('searchParams.query', '');\n    },\n    _cleanParams: function () {\n      Ember.run.once(this, '_cleanParamsOnce');\n    },\n    _setParams: function () {\n      this.set('actionName', 'setQueryParams');\n      const startString = this.get('startProxy') ? this.dateFormatterService.formatDateOnlyISO(this.get('startProxy')[0]) : '';\n      const stopString = this.get('stopProxy') ? this.dateFormatterService.formatDateOnlyISO(this.get('stopProxy')[0]) : '';\n      this.sendAction('actionName', this.get('queryProxy'), {\n        globalSearchFilterOption: this.get('globalSearchFilterOption')\n      }, startString, stopString, this.get('dateFilterPropertyProxy'));\n    },\n    _setParamsOnce: function () {\n      Ember.run.once(this, '_setParams');\n    },\n    _setFilterModeOnce: function (mode) {\n      this.setProperties({\n        filterMode: mode\n      });\n      localStorage.setItem('filteringMode', mode);\n      this.set('actionName', 'setFilterMode');\n      this.sendAction('actionName', mode);\n    },\n    _toggleDaysLimitEnabledOnce: function () {\n      const daysLimitEnabled = this.get('searchParams.daysLimitEnabled');\n      this.set('actionName', 'setDaysLimitEnabled');\n      this.sendAction('actionName', !daysLimitEnabled);\n    },\n    actions: {\n      setParams: function () {\n        this._setParams();\n      },\n      cleanParams: function () {\n        this._cleanParams();\n      },\n      scanBarcode: function () {\n        this._cleanParams();\n\n        this.set('actionName', 'showModal');\n        const model = {\n          searchParams: this.get('searchParams'),\n          searchComponent: this\n        };\n        this.sendAction('actionName', 'components.transports.search-transports.scan-barcode-modal', model);\n      },\n      _toggleDaysLimitEnabledOnce: function () {\n        const daysLimitEnabled = this.get('searchParams.daysLimitEnabled');\n        this.set('actionName', 'setDaysLimitEnabled');\n        this.sendAction('actionName', !daysLimitEnabled);\n      },\n      toggleDaysLimitEnabled: function () {\n        Ember.run.once(this, '_toggleDaysLimitEnabledOnce');\n      },\n      setFilterMode: function (mode) {\n        Ember.run.once(this, '_setFilterModeOnce', mode);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/search-transports/scan-barcode-modal/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    errors: Ember.A(),\n\n    init() {\n      this._super(...arguments);\n\n      this.set('errors', Ember.A([]));\n    },\n\n    title: Ember.computed(function () {\n      return this.get('intl').t('table.scanBarcode');\n    }),\n    actions: {\n      cancel() {\n        this.reset();\n      },\n\n      searchTransport(searchText) {\n        console.debug('Zeskanowano barcode, wyszukujemy transport :: ' + searchText);\n        this.set('model.searchParams.query', searchText);\n        this.set('model.searchComponent.queryProxy', searchText);\n\n        this.get('model.searchComponent')._setParamsOnce();\n\n        this.reset();\n      }\n\n    },\n\n    reset() {\n      this.set('errors', Ember.A([]));\n      this.send('hideModal');\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/search-transports/scan-barcode-modal/scanner-input-field/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.TextField.extend({\n    intl: Ember.inject.service(),\n    scannerInputService: Ember.inject.service('scanner-input-service'),\n    classNames: Ember.A(['form-control']),\n    reading: false,\n    focusOut: function (e) {\n      this._setFocus();\n    },\n    // eslint-disable-next-line ember/no-function-prototype-extensions\n    becomeFocused: function () {\n      const self = this;\n\n      this._setFocus();\n\n      let code = this.$().val();\n      this.$().on('paste', function (e) {\n        self._clearInput();\n      });\n      this.$().on('keypress', function (e) {\n        if (e.keyCode === self.get('scannerInputService').ENTER_KEY_CODE) {\n          if (code.length === self.get('scannerInputService').BARCODE_LENGTH) {\n            self._handlePastedContent();\n          }\n        } else {\n          code += e.key;\n        }\n\n        self._clearInput();\n      });\n    }.on('didRender'),\n\n    _clearInput() {\n      const self = this;\n\n      if (!this.reading) {\n        this.reading = true;\n        setTimeout(() => {\n          if (self.$()) {\n            self.$().val('');\n          }\n\n          self.reading = false;\n        }, self.get('scannerInputService').LETTER_INPUT_TIMEOUT_MS);\n      }\n    },\n\n    _handlePastedContent() {\n      const value = this.$().val();\n\n      if (this.get('scannerInputService').verifyChecksum(value)) {\n        this._searchTransport();\n      } else {\n        console.debug('Bląd podczas walidacji sumy kontrolnej podczas skanowania kodu kreskowego,' + ' wprowadzona wartość :: ' + value);\n        this.set('errors', Ember.A([this.get('intl').t('table.scanBarcodeError')]));\n      }\n    },\n\n    _setFocus() {\n      try {\n        const self = this;\n        setTimeout(() => {\n          if (self.$()) {\n            self.$().focus();\n          }\n        }, 200);\n      } catch (e) {\n        console.debug(e);\n      }\n    },\n\n    _searchTransport() {\n      const self = this;\n      setTimeout(() => {\n        if (self.$()) {\n          const value = self.get('value').substring(0, self.get('value').length - 1);\n          self.send('searchTransport', value);\n        }\n      }, 100);\n    },\n\n    actions: {\n      searchTransport(searchText) {\n        this.set('action', 'searchTransport');\n        this.sendAction('action', searchText);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/search-transports/scan-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\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"1G07Axj/\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"showCancelButton\\\",\\\"cancel\\\",\\\"classNames\\\"],[[23,[\\\"title\\\"]],true,[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null],[23,[\\\"classes\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-6\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"components/transports/search-transports/scan-barcode-modal/scanner-input-field\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons padding-top-big\\\"],[9],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/search-transports/scan-barcode-modal/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/search-transports/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"rPLhvSpE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"option\\\",\\\"dfp\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-inline\\\"],[11,\\\"data-section-name\\\",\\\"archive-filters\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"archive\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transport.selectUnloadStartDateTitle\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"min-date\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.from\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"placeholder\\\",\\\"id\\\",\\\"date\\\",\\\"onChange\\\",\\\"formatType\\\",\\\"class\\\"],[[27,\\\"t\\\",[\\\"transport.selectUnloadStartDate\\\"],null],\\\"min-date\\\",[23,[\\\"startProxy\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"startProxy\\\"]]],null]],null],\\\"shortDate\\\",\\\"form-control date-chooser\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transport.selectUnloadStopDateTitle\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"max-date\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.to\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"placeholder\\\",\\\"id\\\",\\\"date\\\",\\\"onChange\\\",\\\"formatType\\\",\\\"class\\\"],[[27,\\\"t\\\",[\\\"transport.selectUnloadStopDate\\\"],null],\\\"max-date\\\",[23,[\\\"stopProxy\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"stopProxy\\\"]]],null]],null],\\\"shortDate\\\",\\\"form-control date-chooser\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[11,\\\"data-field-name\\\",\\\"date-filter-property-proxy\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"dateFilterPropertyProxy\\\"]],[23,[\\\"transportType\\\",\\\"DATE_FILTER_PROPERTIES\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"dateFilterPropertyProxy\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[12,\\\"data-field-name\\\",[28,[[22,2,[]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"dateFilterProperty.\\\",[22,2,[]]],null]],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[11,\\\"data-field-name\\\",\\\"date-filter-property-proxy\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-question-circle clickable\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"dateFilterProperty.hint\\\"],null]]]],[9],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[11,\\\"id\\\",\\\"transport-search-input\\\"],[11,\\\"data-field-name\\\",\\\"searchInput\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"enter\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\"],[[23,[\\\"queryProxy\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setParams\\\"],null],\\\"text\\\",\\\"form-control\\\",[27,\\\"t\\\",[\\\"common.search\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CAN_USE_API_V2_SEARCH\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[11,\\\"data-field-name\\\",\\\"global-api-v2-filter\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"globalSearchFilterOptionForApiV2\\\"]],[23,[\\\"GLOBAL_SEARCH_FILTER_OPTIONS\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"globalSearchFilterOptionForApiV2\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[12,\\\"data-field-name\\\",[28,[[22,1,[]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"globalSearchFilterOption.\\\",[22,1,[]]],null]],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showSearchButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-info\\\"],[11,\\\"data-button-name\\\",\\\"search\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.search\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"setParams\\\"]],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"clear\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.clear\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cleanParams\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showScanBarcodeButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-info\\\"],[11,\\\"data-button-name\\\",\\\"scan-barcode\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"table.scanBarcode\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"scanBarcode\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"daysLimitSettingEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"toggle-days-limit-enabled\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"if\\\",[[23,[\\\"searchParams\\\",\\\"daysLimitEnabled\\\"]],[27,\\\"t\\\",[\\\"table.transports.showAllActive\\\"],null],[27,\\\"t\\\",[\\\"table.transports.showLimited\\\"],null]],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"toggleDaysLimitEnabled\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showUserAndGroupFilter\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-group\\\"],[11,\\\"data-toggle\\\",\\\"buttons\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-default \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"filterMode\\\"]],\\\"user\\\"],null],\\\"active\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setFilterMode\\\",\\\"user\\\"],null]],[11,\\\"data-field-name\\\",\\\"show-mine\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"input\\\"],[11,\\\"name\\\",\\\"options\\\"],[11,\\\"id\\\",\\\"option1\\\"],[11,\\\"autocomplete\\\",\\\"off\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"table.transports.showMine\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"userGroup\\\",\\\"mainGroup\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-default \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"filterMode\\\"]],\\\"group\\\"],null],\\\"active\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setFilterMode\\\",\\\"group\\\"],null]],[11,\\\"data-field-name\\\",\\\"show-within-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"input\\\"],[11,\\\"name\\\",\\\"options\\\"],[11,\\\"id\\\",\\\"option2\\\"],[11,\\\"autocomplete\\\",\\\"off\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"table.transports.showWithinGroup\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"userGroup\\\",\\\"canSeeOtherGroupsTransports\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-default \\\",[27,\\\"if\\\",[[27,\\\"or\\\",[[27,\\\"not\\\",[[23,[\\\"filterMode\\\"]]],null],[27,\\\"eq\\\",[[23,[\\\"filterMode\\\"]],\\\"all\\\"],null]],null],\\\"active\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setFilterMode\\\",\\\"all\\\"],null]],[11,\\\"data-field-name\\\",\\\"show-all\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"input\\\"],[11,\\\"name\\\",\\\"options\\\"],[11,\\\"id\\\",\\\"option3\\\"],[11,\\\"autocomplete\\\",\\\"off\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"table.transports.showAll\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/search-transports/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/action-progress-toast/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    actionProgressToast: Ember.inject.service('action-progress-service'),\n    intl: Ember.inject.service(),\n    toastMessage: Ember.computed('actionProgressToast.typeOfToast', function () {\n      return this.get('actionProgressToast.message');\n    }),\n    toastDetails: Ember.computed('actionProgressToast.typeOfToast', function () {\n      return this.get('actionProgressToast.details');\n    }),\n    isLoading: Ember.computed('actionProgressToast.isLoading', function () {\n      return this.get('actionProgressToast.isLoading');\n    }),\n    toastType: Ember.computed('actionProgressToast.typeOfToast', function () {\n      return this.get('actionProgressToast.typeOfToast');\n    }),\n    toastTitle: Ember.computed('toastType', function () {\n      return this.get('intl').t('notificationToast.titles.' + this.get('toastType'));\n    }),\n    displayIcon: Ember.computed('toastType', function () {\n      const type = this.get('toastType');\n      const icons = {\n        success: 'check-circle',\n        error: 'exclamation-circle'\n      };\n      return icons[type];\n    }),\n    actions: {\n      close() {\n        const toast = $('.toast');\n        const progress = $('.toast-progress');\n        toast.removeClass('loading error success toast-active');\n        progress.removeClass('active');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/action-progress-toast/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"KDqTByf6\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"toast\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"toast-content\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[12,\\\"class\\\",[28,[\\\"toast-icon \\\",[21,\\\"toastType\\\"]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isLoading\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/images/ajax-loader.gif\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"fa-icon\\\",[[23,[\\\"displayIcon\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"toast-message \\\",[21,\\\"toastType\\\"]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"toast-title\\\"],[9],[1,[21,\\\"toastTitle\\\"],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"toast-text\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[21,\\\"toastMessage\\\"],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"toast-text\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[21,\\\"toastDetails\\\"],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"close\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"close\\\"],null]],[9],[1,[27,\\\"fa-icon\\\",[\\\"xmark\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"toast-progress\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/transports-table/action-progress-toast/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/add-relations-button/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    relationsTrackerService: Ember.inject.service('transport-relations.relations-tracker'),\n    sessionAccount: Ember.inject.service(),\n    showButton: Ember.computed('canCombineTransports', 'relationsTrackerService.currentTransports.length', function () {\n      const atLeastTwoTransportsSelected = this.get('relationsTrackerService.currentTransports.length') > 1;\n      const userHasAuthorityToAddRelations = this.get('sessionAccount').hasRole('ROLE_CAN_ADD_TRANSPORT_COMBINING_RELATION') || this.get('sessionAccount').hasRole('ROLE_CAN_ADD_HAS_TO_WAIT_FOR_RELATION');\n      return userHasAuthorityToAddRelations && atLeastTwoTransportsSelected;\n    }),\n    shouldRedirectToRelationsWizard: Ember.computed('relationsTrackerService.currentTransports.length', function () {\n      const chosenTransport = this.relationsTrackerService.currentTransports;\n      const chosenAnyRelationCombiningTransport = chosenTransport.any(transport => transport.get('isRelatedTransportInTransportCombining'));\n      const chosenAnyTransportWithoutRelations = chosenTransport.any(transport => !transport.get('transportRelationIdentifier'));\n      return chosenAnyRelationCombiningTransport && chosenAnyTransportWithoutRelations;\n    }),\n    actions: {\n      openRelationsModal() {\n        this.set('action', 'openRelationsModal');\n        this.sendAction('action');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/add-relations-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"JiVVSVi+\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showButton\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"shouldRedirectToRelationsWizard\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"combining-relations-wizard.index\\\"],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"transport-add-relation\\\"],[11,\\\"class\\\",\\\"btn btn-primary add-relation-btn\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.relations.bind\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"transport-add-relation\\\"],[11,\\\"class\\\",\\\"btn btn-primary add-relation-btn\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transport.relations.bind\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"openRelationsModal\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/transports-table/add-relations-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/column-names/component\", [\"exports\", \"apollo/mixins/form-utils-mixin\"], function (_exports, _formUtilsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_formUtilsMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    // Używane w hbs.\n    tagName: 'div',\n    classNames: Ember.A(['column-names', 'row', 'flex-position-start']),\n    getTransportSupervisorTranslationKey: Ember.computed('transportType', function () {\n      return this.get('transportType.transportSupervisorTranslationKey');\n    }),\n    getWorkerTranslationKey: Ember.computed('transportType', function () {\n      return this.get('transportType.workerFieldTranslationKey');\n    }),\n    canMultiArchive: Ember.computed('transport', function () {\n      return this.get('sessionAccount').hasRole('ROLE_CAN_MULTI_ARCHIVE_TRANSPORTS');\n    }),\n    priceTranslationKey: Ember.computed('transportType.id', function () {\n      return this.get('transportType.priceLabelTranslation');\n    }),\n    actions: {}\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/column-names/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Fwsg5E08\",\n    \"block\": \"{\\\"symbols\\\":[\\\"gcm\\\",\\\"cfd\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"canCombineTransports\\\"]],[23,[\\\"canMultiArchive\\\"]]],null]],null,{\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"cell column-name-combine-width\\\"],[9],[0,\\\" \\\"],[10]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"IDENTIFIER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"IDENTIFIER\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CUSTOM_FIELDS\\\",[23,[\\\"tableColumnNames\\\"]]],null],\\\"column-name-cf-width \\\"],null]]]],[9],[1,[27,\\\"t\\\",[\\\"columns.IDENTIFIER\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"PERIODIC_TRANSPORT_INTERNAL_INDEX\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"PERIODIC_TRANSPORT_INTERNAL_INDEX\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.PERIODIC_TRANSPORT_INTERNAL_INDEX\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ERP_IDENTIFIER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"ERP_IDENTIFIER\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[21,\\\"erpIdentifierColumnLabel\\\"],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ALT_IDENTIFIER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"ALT_IDENTIFIER\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[21,\\\"altIdentifierColumnLabel\\\"],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"transports/transports-table/transport-sorter\\\",null,[[\\\"archive\\\",\\\"key\\\",\\\"activeSortingKey\\\",\\\"changeSortingKey\\\",\\\"transportType\\\"],[[23,[\\\"archive\\\"]],\\\"altIdentifier\\\",[23,[\\\"activeSortingKey\\\"]],[23,[\\\"changeSortingKey\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DELIVERY_NUMBER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"DELIVERY_NUMBER\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.DELIVERY_NUMBER\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROUTE_ID\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"ROUTE_ID\\\"],[11,\\\"class\\\",\\\"cell text-center\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.ROUTE_ID\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROUTE_NAME\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"ROUTE_NAME\\\"],[11,\\\"class\\\",\\\"cell text-center\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.ROUTE_NAME\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"TRANSPORT_RELATION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"TRANSPORT_RELATION\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.TRANSPORT_RELATION\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"INDEX_PRODUCTS\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"INDEX_PRODUCTS\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.INDEX_PRODUCTS\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"STORAGE_ZONE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"STORAGE_ZONE\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[21,\\\"warehouseZoneLabel\\\"],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"RAMP\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"RAMP\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.RAMP\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOCATION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"LOCATION\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.LOCATION\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DOCUMENT_IDENTIFIER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"DOCUMENT_IDENTIFIER\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.DOCUMENT_IDENTIFIER\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CONTRACTOR_SHORT_NAME\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"CONTRACTOR_SHORT_NAME\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.CONTRACTOR\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CONTRACTOR_FULL_NAME\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"CONTRACTOR_FULL_NAME\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.CONTRACTOR\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"SERVICE_COMPANY_SHORT_NAME\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"SERVICE_COMPANY_SHORT_NAME\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.SERVICE_COMPANY_SHORT_NAME\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"TRANSPORT_SUPERVISOR\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"TRANSPORT_SUPERVISOR\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"transportSupervisorTranslationKeys.\\\",[23,[\\\"getTransportSupervisorTranslationKey\\\"]]],null]],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CREATION_DATE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"CREATION_DATE\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.CREATION_DATE\\\"],null],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"transports/transports-table/transport-sorter\\\",null,[[\\\"archive\\\",\\\"key\\\",\\\"activeSortingKey\\\",\\\"changeSortingKey\\\",\\\"transportType\\\"],[[23,[\\\"archive\\\"]],\\\"dateCreated\\\",[23,[\\\"activeSortingKey\\\"]],[23,[\\\"changeSortingKey\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_WAREHOUSE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_WAREHOUSE\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.LOAD_WAREHOUSE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_TIME_WINDOW\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_TIME_WINDOW\\\"],[11,\\\"class\\\",\\\"cell no-wrap\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.LOAD_TIME_WINDOW\\\"],null],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"transports/transports-table/transport-sorter\\\",null,[[\\\"archive\\\",\\\"key\\\",\\\"activeSortingKey\\\",\\\"changeSortingKey\\\",\\\"transportType\\\"],[[23,[\\\"archive\\\"]],\\\"timeWindowLoadSortProperty\\\",[23,[\\\"activeSortingKey\\\"]],[23,[\\\"changeSortingKey\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_PLACE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_PLACE\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.LOAD_PLACE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_COUNTRY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_COUNTRY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.LOAD_COUNTRY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_CITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_CITY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.LOAD_CITY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"SUM_LOAD_QUANTITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"SUM_LOAD_QUANTITY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.SUM_LOAD_QUANTITY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_QUANTITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_QUANTITY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.LOAD_QUANTITY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_PACKAGES_QUANTITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_PACKAGES_QUANTITY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.LOAD_PACKAGES_QUANTITY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_WAREHOUSE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_WAREHOUSE\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.UNLOAD_WAREHOUSE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_TIME_WINDOW\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_TIME_WINDOW\\\"],[11,\\\"class\\\",\\\"cell no-wrap\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.UNLOAD_TIME_WINDOW\\\"],null],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"transports/transports-table/transport-sorter\\\",null,[[\\\"archive\\\",\\\"key\\\",\\\"activeSortingKey\\\",\\\"changeSortingKey\\\",\\\"transportType\\\"],[[23,[\\\"archive\\\"]],\\\"timeWindowUnloadSortProperty\\\",[23,[\\\"activeSortingKey\\\"]],[23,[\\\"changeSortingKey\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_PLACE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_PLACE\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.UNLOAD_PLACE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_COUNTRY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_COUNTRY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.UNLOAD_COUNTRY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_CITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_CITY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.UNLOAD_CITY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"SUM_UNLOAD_QUANTITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"SUM_UNLOAD_QUANTITY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.SUM_UNLOAD_QUANTITY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_QUANTITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_QUANTITY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.UNLOAD_QUANTITY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_PACKAGES_QUANTITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_PACKAGES_QUANTITY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.UNLOAD_PACKAGES_QUANTITY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ARRIVAL_DATE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"ARRIVAL_DATE\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.ARRIVAL_DATE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"PRICE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"PRICE\\\"],[11,\\\"class\\\",\\\"cell text-center\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[21,\\\"priceTranslationKey\\\"],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNIT_AMOUNT_TYPE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"UNIT_AMOUNT_TYPE\\\"],[11,\\\"class\\\",\\\"cell text-center\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.UNIT_AMOUNT_TYPE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CARRIER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"CARRIER\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.CARRIER\\\"],null],false],[0,\\\"\\\\n        \\\"],[1,[27,\\\"transports/transports-table/transport-sorter\\\",null,[[\\\"archive\\\",\\\"key\\\",\\\"activeSortingKey\\\",\\\"changeSortingKey\\\",\\\"transportType\\\"],[[23,[\\\"archive\\\"]],\\\"carrierSortProperty\\\",[23,[\\\"activeSortingKey\\\"]],[23,[\\\"changeSortingKey\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"SURCHARGE_WITHOUT_CONFIRMATION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"SURCHARGE_WITHOUT_CONFIRMATION\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.SURCHARGE_WITHOUT_CONFIRMATION\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ADVICE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"ADVICE\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.ADVICE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"VEHICLE_TRUCK_TYPE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"VEHICLE_TRUCK_TYPE\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"truck.vehicleType\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"MANUAL_NOTIFICATION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"MANUAL_NOTIFICATION\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.MANUAL_NOTIFICATION\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"WORKER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"WORKER\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"workerFieldTranslationKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"worker.\\\",[23,[\\\"transportType\\\",\\\"workerFieldTranslationKey\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"worker.WORKERS\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"WORKER_PHONE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"WORKER_PHONE\\\"],[11,\\\"class\\\",\\\"responsive-main-hide cell\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"workerFieldTranslationKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"worker.phoneNumber.\\\",[23,[\\\"transportType\\\",\\\"workerFieldTranslationKey\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"worker.phoneNumber.WORKERS\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"EMAIL_ADVICE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"EMAIL_ADVICE\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.EMAIL_ADVICE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"EMAIL_ADVICE_EMAIL_ADDRESS\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"EMAIL_ADVICE_EMAIL_ADDRESS\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.EMAIL_ADVICE_EMAIL_ADDRESS\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"INDEX_DOCUMENT_NUMBER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"INDEX_DOCUMENT_NUMBER\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.INDEX_DOCUMENT_NUMBER\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"INDEX_TRANSPORT_NUMBER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"INDEX_DOCUMENT_NUMBER\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.INDEX_TRANSPORT_NUMBER\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DRIVER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"DRIVER\\\"],[11,\\\"class\\\",\\\"responsive-main-hide cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.DRIVER\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DRIVER_PHONE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"DRIVER_PHONE\\\"],[11,\\\"class\\\",\\\"responsive-main-hide cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.DRIVER_PHONE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DRIVER_IDENTIFIER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"DRIVER_IDENTIFIER\\\"],[11,\\\"class\\\",\\\"responsive-main-hide cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.DRIVER_IDENTIFIER\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CAR\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"CAR\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.CAR\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"TRAILER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"TRAILER\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.TRAILER\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"INVOICE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"INVOICE\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.INVOICE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"TRANSPORT_DESCRIPTION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"EMAIL_ADVICE\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.TRANSPORT_DESCRIPTION\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"TOTAL_WEIGHT\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"TOTAL_WEIGHT\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.TOTAL_WEIGHT\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"TRUCK_TYPE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"TRUCK_TYPE\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.TRUCK_TYPE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CUSTOM_FIELDS\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"customFieldsVisibleInTable\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"data-column-name\\\",[28,[[22,2,[\\\"englishName\\\"]]]]],[11,\\\"class\\\",\\\"responsive-hide-lvl2 cell column-name-cf-width\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[22,2,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"REQUIRES_INSPECTION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"REQUIRES_INSPECTION\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.REQUIRES_INSPECTION\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"INSPECTION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"INSPECTION\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.INSPECTION\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DELIVERY_NETTO_WEIGHT\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"DELIVERY_NETTO_WEIGHT\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.DELIVERY_NETTO_WEIGHT\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DELIVERY_INCOTERMS\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"DELIVERY_INCOTERMS\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.DELIVERY_INCOTERMS\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DELIVERY_INVOICE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"DELIVERY_INVOICE\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.DELIVERY_INVOICE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"STATUS\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"STATUS\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl4 cell \\\",[27,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CUSTOM_FIELDS\\\",[23,[\\\"tableColumnNames\\\"]]],null],\\\"column-name-cf-width \\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.STATUS\\\"],null],false],[0,\\\"\\\\n        \\\"],[1,[27,\\\"transports/transports-table/transport-sorter\\\",null,[[\\\"archive\\\",\\\"key\\\",\\\"activeSortingKey\\\",\\\"changeSortingKey\\\",\\\"transportType\\\"],[[23,[\\\"archive\\\"]],\\\"firstUnconfirmedCheckpoint.task.checkpointSortId\\\",[23,[\\\"activeSortingKey\\\"]],[23,[\\\"changeSortingKey\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleGroup\\\",\\\"isGuard\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"transportType\\\",\\\"guardUniqueSortedTasks\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"data-column-name\\\",[28,[[22,1,[\\\"alias\\\"]]]]],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[22,1,[\\\"checkpointNameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"NOTES\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"NOTES\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl1 cell cell-narrow text-center \\\",[27,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CUSTOM_FIELDS\\\",[23,[\\\"tableColumnNames\\\"]]],null],\\\"column-name-cf-width \\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"fa-icon\\\",[\\\"comment\\\",\\\"solid\\\"],null],false],[0,\\\"\\\\n\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DOCUMENTS\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"data-column-name\\\",\\\"DOCUMENTS\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl1 cell cell-narrow text-center \\\",[27,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CUSTOM_FIELDS\\\",[23,[\\\"tableColumnNames\\\"]]],null],\\\"column-name-cf-width \\\"],null]]]],[9],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file\\\"],[9],[10],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/transports-table/column-names/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/component\", [\"exports\", \"apollo/config/environment\", \"jquery\", \"apollo/mixins/persistence-mixin\", \"apollo/mixins/adjust-page-content-mixin\", \"apollo/utils/objects/TransportsTableFilters\", \"apollo/utils/objects/ArchiveTableFilters\"], function (_exports, _environment, _jquery, _persistenceMixin, _adjustPageContentMixin, _TransportsTableFilters, _ArchiveTableFilters) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_persistenceMixin.default, _adjustPageContentMixin.default, {\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    INPUT_FILTER_QUERY_DEBOUNCE_MS: 2000,\n    router: Ember.inject.service(),\n    // TODO: Przenieść logikę filtrów do jakiegoś serwisu [A-10622]\n    transportsTableFilters: Ember.computed('transportType', function () {\n      return new _TransportsTableFilters.default(this.get('transportType'), this.get('sessionAccount.currentUser'), this.get('customFieldsVisibleInTable'));\n    }),\n    archiveTableFilters: Ember.computed('transportType', function () {\n      return new _ArchiveTableFilters.default(this.get('transportType'), this.get('sessionAccount.currentUser'), this.get('customFieldsVisibleInTable'));\n    }),\n    FILTERS: Ember.computed('transportType', 'router.currentRouteName', function () {\n      if (this.router.currentRoute.name.includes('archive')) {\n        return this.get('archiveTableFilters');\n      }\n\n      return this.get('transportsTableFilters');\n    }),\n    // Zmienna pomocnicza służy do wyświetlania przycisku \"Wyczyść filtry\" w przypadku zmiany zakładki, gdy mamy zapisane filtry\n    activeFiltersQueryParams: Ember.A([]),\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    session: Ember.inject.service('session'),\n    appTabActiveService: Ember.inject.service('application-tab-active-service'),\n    attributeBindings: Ember.A(['data-transport-type']),\n    transportType: null,\n    archive: null,\n    ROWS_INTERVAL: 7,\n    // liczba wierszy renderowanych jednocześnie podczas wstępnego generowania tabeli\n    ROWS_PER_PAGE: 30,\n    numberOfRenderedRows: 7,\n    // liczba wierszy aktualnie wyrenderowanych wstępnie\n    DEFAULT_SORTING_KEY: 'earliestTimeWindowStart',\n    sortingKey: 'earliestTimeWindowStart',\n    descDirection: false,\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    searchParams: {},\n    loadingMore: false,\n    // true oznacza, że dodatkowe dane są ładowane\n    highlightedTransportId: null,\n    openTransportId: null,\n    showColumnFilters: Ember.computed('transportTypeMode', 'searchParams.query', function () {\n      return this.get('transportTypeMode') !== 'ALL' && this.get('sessionAccount').hasRole('ROLE_FILTER_ACTIVE_TRANSPORTS_TABLE') && !this.get('searchParams.query');\n    }).readOnly(),\n    'data-transport-type': Ember.computed('transportType.alias', function () {\n      return this.get('transportType.alias');\n    }).readOnly(),\n    transports: Ember.computed(function () {\n      return [];\n    }),\n    pollInterval: Ember.computed(function () {\n      return this.get('sessionAccount').getSettingValue('POLL_INTERVAL') || 30000;\n    }).readOnly(),\n    columnsAccessCommands: Ember.computed('transportType', function () {\n      const self = this;\n      return this.get('store').peekAll('columns-access-command').filter(it => {\n        return it.get('transportType.id') === self.get('transportType.id') && it.get('roleGroup.id') === self.get('sessionAccount.currentUser.roleGroup.id');\n      });\n    }).readOnly(),\n    currentMax: Ember.computed('max', 'transportTypeMode', 'transportType.alias', function () {\n      const key = 'MAX_ROWS_IN_TRANSPORT_LIST_TABLE_' + this.get('transportType.alias');\n\n      if (this.get('transportTypeMode') === 'ALL') {\n        return localStorage.getItem(key) || this.get('max');\n      }\n\n      return this.get('max') || localStorage.getItem(key) || this.get('sessionAccount').getSettingValue('TRANSPORT_PAGINATION_DEFAULT_MAX_ROWS');\n    }),\n    activeTableColumnNames: Ember.computed('archive', 'columnsAccessCommands.[]', function () {\n      return this.columnsAccessCommands.filter(it => {\n        return ['ACTIVE', 'ALL'].includes(it.get('visibility'));\n      }).map(it => it.get('tableColumn.name'));\n    }).readOnly(),\n    archiveTableColumnNames: Ember.computed('archive', 'columnsAccessCommands.[]', function () {\n      return this.columnsAccessCommands.filter(it => {\n        return ['ARCHIVE', 'ALL'].includes(it.get('visibility'));\n      }).map(it => it.get('tableColumn.name'));\n    }).readOnly(),\n    customFieldsVisibleInTable: Ember.computed('columnsAccessCommands.{[],@each.customFieldDefinitions}', 'transportType.custoFieldDefinitions.@each.{enabled,idx}', function () {\n      const cfs = this.get('transportType').get('customFieldDefinitions');\n      return cfs.filter(cf => this.get('columnsAccessCommands').some(ca => ca.get('customFieldDefinition.id') === cf.id)).filterBy('enabled').sortBy('idx');\n    }),\n    tableColumnNames: Ember.computed('archive', 'activeTableColumnNames', 'archiveTableColumnNames', function () {\n      return this.get('archive') ? this.get('archiveTableColumnNames') : this.get('activeTableColumnNames');\n    }).readOnly(),\n    hasMore: Ember.computed('currentPage', 'totalPages', function () {\n      return this.get('currentPage') < this.get('totalPages');\n    }).readOnly(),\n    showClearFiltersButton: false,\n    _setShowClearFiltersButton: function () {\n      if (this.get('searchParams.filters').length === 0 && this.get('activeFiltersQueryParams').length === 0) {\n        this.set('showClearFiltersButton', false);\n      } else {\n        this.set('showClearFiltersButton', true);\n      }\n    },\n    // eslint-disable-next-line ember/no-observers\n    setShowClearFiltersButton: Ember.observer('searchParams.filters.@each.filterValue', 'activeFiltersQueryParams', function () {\n      Ember.run.once(this, '_setShowClearFiltersButton');\n    }),\n    // eslint-disable-next-line ember/no-observers\n    pollRequested: Ember.observer('transportType.forcedPollRequestTime', function () {\n      if (this.get('transportType.forcedPollRequestTime')) {\n        console.debug(`Sending poll request for transport type ${this.get('transportType.name')}..`);\n        this.send('poll');\n      }\n\n      this.get('transportType').set('forcedPollRequestTime', null);\n    }),\n    // eslint-disable-next-line ember/no-observers\n    activatePolling: Ember.observer('archive', 'transportType.loadingCompleted', function () {\n      if (!this.get('archive') && this.get('transportType.loadingCompleted')) {\n        console.debug(`Polling for transports of type ${this.get('transportType.name')} activated.`);\n        this.set('timer', this.schedule(this.get('onPoll')));\n      }\n    }),\n    queryParams: Ember.computed('archive', 'searchParams.{daysLimitEnabled,query,filterMode,start,stop,dateFilterProperty,lastSearch,filters.@each.filterValue}', function () {\n      const params = {\n        query: this.get('searchParams.query'),\n        queryOpts: {\n          useApiV2: this.get('searchParams.queryOpts.useApiV2'),\n          globalSearchFilterOption: this.get('searchParams.queryOpts.globalSearchFilterOption')\n        },\n        archived: this.get('archive'),\n        transportTypeId: this.get('transportType.id'),\n        principalId: localStorage.getItem('principalId'),\n        page: this.get('currentPage'),\n        start: this.get('searchParams.start') ? this.get('searchParams.start') : '',\n        stop: this.get('searchParams.stop') ? this.get('searchParams.stop') : '',\n        filters: this.get('searchParams.filters'),\n        daysLimitEnabled: this.get('searchParams.daysLimitEnabled'),\n        max: this.get('currentMax')\n      };\n\n      if (this.get('archive') === true) {\n        params.rowsPerPage = this.get('ROWS_PER_PAGE');\n        params.dateFilterProperty = this.get('searchParams.dateFilterProperty');\n      }\n\n      if (this.get('sessionAccount').isGroupFilterEnabled()) {\n        const filteringModeValue = localStorage.filteringMode;\n        params.filterMode = filteringModeValue || this.get('searchParams.filterMode');\n      }\n\n      params.lastUpdated = new Date().getTime();\n      return params;\n    }),\n    // po dodanie page każde ładowanie dodatkowych danych w archiwum czyści listę\n    transportsProxy: Ember.computed('numberOfRenderedRows', 'transports.{[],@each.lastUpdated}', 'sortingKey', 'descDirection', function () {\n      if (this.get('transports')) {\n        if (this.get('archive')) {\n          return this.get('transports').slice(0, this.get('numberOfRenderedRows'));\n        } else {\n          const sortingKey = this.get('sortingKey');\n          let sortedTransports = [];\n\n          if (this.get('sessionAccount').getSettingValue('SORT_TABLE_BY_TRANSPORT_COMPLETED') === 'true') {\n            const completedTransports = this.get('transports').filterBy('completed', true).sortBy('completed', sortingKey);\n            const uncompletedTransports = this.get('transports').filterBy('completed', false).sortBy('completed', sortingKey);\n\n            if (this.get('descDirection')) {\n              completedTransports.reverse();\n              uncompletedTransports.reverse();\n            }\n\n            sortedTransports = uncompletedTransports.concat(completedTransports);\n            return sortedTransports.slice(0, this.get('numberOfRenderedRows'));\n          } else {\n            sortedTransports = this.get('transports').sortBy(sortingKey);\n            const transports = sortedTransports.slice(0, this.get('numberOfRenderedRows'));\n            return this.get('descDirection') ? transports.reverse() : transports;\n          }\n        }\n      } else {\n        return [];\n      }\n    }),\n    // eslint-disable-next-line ember/no-observers\n    saveParamsChangeTime: Ember.observer('queryParams', function () {\n      this.set('queryParamsChangeTime', new Date().getTime());\n    }),\n    // eslint-disable-next-line ember/no-observers\n    queryInputChanged: Ember.observer('archive', 'searchParams.daysLimitEnabled', 'searchParams.query', 'searchParams.filterMode', 'searchParams.start', 'searchParams.stop', 'searchParams.dateFilterProperty', 'searchParams.filters.@each.filterValue', 'searchParams.lastSearch', 'FILTERS.@each.value', function () {\n      Ember.run.once(this, function () {\n        this.get('transportType').set('loadingCompleted', false);\n        this.get('transports').clear();\n      });\n      Ember.run.debounce(this, this.loadTransports, this.INPUT_FILTER_QUERY_DEBOUNCE_MS);\n    }),\n    // eslint-disable-next-line ember/no-on-calls-in-components\n    loadTransports: Ember.on('init', function () {\n      if (this.isDestroyed) {\n        return;\n      }\n\n      this.set('lastPoll', new Date());\n      Ember.run.next(this, function () {\n        const self = this; // TODO: Szycie, do przerobienia [A-10622]\n\n        const activeFilters = this.get('FILTERS').filter(filter => filter != null && filter.value != null).map(filter => {\n          return {\n            'filterValue': filter.value,\n            'filterType': filter.type,\n            'filterKeys': filter.keys\n          };\n        });\n        this.set('activeFiltersQueryParams', activeFilters);\n        const searchParams = this.get('searchParams');\n        const queryParams = this.get('queryParams'); // Filtry dodatkowe, które nie są zdefiniowane w `FILTERS`\n\n        const additionalCustomFieldFilters = queryParams.filters.filter(filter => filter.filterKeys.includes('cfd_'));\n        this.set('queryParams.filters', activeFilters.concat(additionalCustomFieldFilters));\n        let list = [];\n        const ttId = this.get('transportType.id');\n        const relations = this.get('store').peekAll('transport-relation').filter(relation => {\n          return relation.get('primaryTransportType.id') === ttId || relation.get('subordinateTransportType') === ttId;\n        });\n\n        if (relations && relations.length > 0) {\n          console.debug('Transport type :: ' + ttId + ' :: used in relations, always query the server.');\n          self.set('transportType.transportsTabVisited', false);\n        } // Jeżeli dany typ transportu został już wczytany, to po powrocie do zakładki transportów\n        // nie powinniśmy ponownie o niego pytań serwer - wystarczy wybrać odpowiednie transporty z sesji\n        // i przypisać do listy `transports`.\n\n\n        if (self.get('transportType.transportsTabVisited') && !this.get('currentMax')) {\n          console.debug('Transport type was visited before; not querying the server..');\n          list = this.get('store').peekAll('transport').filter(t => {\n            return t.get('archived') === self.get('archive') && t.get('transportType.id') === self.get('transportType.id');\n          });\n        }\n\n        self.get('transportType').set('transportsTabVisited', true);\n\n        if (list.length > 0 && !self.get('archive') && // [Kacper] lamerskie rozwiązanie, ale nie wiem jak inaczej zapisać totalPages\n        !queryParams.filterMode && !self.get('daysLimitSettingEnabled') && (!queryParams.filters || !queryParams.filters.length) && (searchParams === null || searchParams.query === null || searchParams.query === '')) {\n          self.set('transports', list);\n          self.didRender(); // Niektóre transporty, które zostały przysłane przez /updates nie zostały odświeżone w tabeli,\n          // np. z powodu wybranych filtrów; teraz pytamy o nie jeszcze raz\n\n          if (self.get('transportType.unhandledTransportIds.length')) {\n            console.debug(`Transport type ${self.get('transportType.name')} has unhandled updates, refreshing ${self.get('transportType.unhandledTransportIds').join(', ')}..`);\n            self.refreshSelectedTransports(self.get('transportType.unhandledTransportIds'));\n          }\n\n          return;\n        }\n\n        queryParams.max = this.get('currentMax');\n        queryParams.page = this.get('currentPage');\n        this.get('transportType').set('loadingCompleted', false);\n        this.get('transports').clear();\n        console.debug('Loading transports from server..');\n        this.getTransports(queryParams).then(response => {\n          if (self.isDestroyed) {\n            return;\n          }\n\n          if (self.get('queryParamsChangeTime') > response.meta.requestTime) {\n            console.log('Przed wczytaniem listy transportów ktoś rozpoczął filtrowanie - przerywamy operację.');\n            return;\n          }\n\n          const totalPages = response.meta.totalPages;\n          self.set('totalPages', totalPages);\n          delete response.meta;\n          self.get('store').pushPayload(response);\n          self.get('transports').clear();\n\n          if (response.transports.length === 0) {\n            self.get('transportType').set('loadingCompleted', true);\n          } else {\n            response.transports.forEach(t => {\n              self.get('transports').pushObject(self.get('store').peekRecord('transport', t.id));\n            });\n\n            if (response.transports && response.transports.length >= self.get('ROWS_INTERVAL')) {\n              self.set('numberOfRenderedRows', self.get('ROWS_INTERVAL'));\n            } else if (response.transports && response.transports.length > 0) {\n              self.set('numberOfRenderedRows', 1);\n            }\n          }\n        }).catch(response => {\n          if (response.status === 524) {\n            alert(self.get('intl').t('errors.filterRequestTimeout'));\n            self.get('transportType').set('loadingCompleted', true);\n          }\n        });\n      });\n    }),\n\n    getTransports(queryParams) {\n      const useApiV2 = queryParams.queryOpts.globalSearchFilterOption && queryParams.queryOpts.globalSearchFilterOption !== 'ALL';\n\n      if (useApiV2) {\n        // Tylko na potrzeby Atlasu [A-13504] bo im wolno chodzi.\n        const path = this.get('apolloApiService').APOLLO_API.TRANSPORTS.GET;\n        let searchParams = {\n          'transportTypeId': queryParams.transportTypeId,\n          'archived': queryParams.archived,\n          'page': queryParams.page - 1,\n          'limit': queryParams.max\n        };\n\n        if (queryParams.queryOpts.globalSearchFilterOption === 'CAR_REGISTRATION_NUMBER') {\n          searchParams = { ...searchParams,\n            'il:carRegistrationNumber': queryParams.query\n          };\n        } else if (queryParams.queryOpts.globalSearchFilterOption === 'ADVICE_DRIVER_NAME') {\n          searchParams = { ...searchParams,\n            'il:driverName': queryParams.query\n          };\n        }\n\n        return this.get('apolloApiService').callApolloApi(path, null, {\n          headers: {\n            'APIVersion': 'v2-apollo'\n          }\n        }, searchParams).then(response => {\n          return response.json().then(data => {\n            const metaData = data.metaData; // tłumaczymy strukturę z publicznego api do apollo api\n\n            const mergedMaps = this.mergeMaps(data.data);\n            return { ...mergedMaps,\n              meta: {\n                totalPages: metaData.totalPages,\n                currentPage: metaData.currentPage + 1,\n                count: metaData.totalItems\n              }\n            };\n          });\n        });\n      } else {\n        const path = this.get('apolloApiService').APOLLO_API.TRANSPORTS.INDEX;\n        return this.get('apolloApiService').callApolloApi(path, null, {\n          body: JSON.stringify(queryParams)\n        }).then(response => response.json());\n      }\n    },\n\n    /**\n     * Zrzyna z backendu z MapUtil#mergeMaps. Tylko na potrzeby Atlasu [A-13504] bo im wolno chodzi. Patologia.\n     * @param maps\n     * @returns {{}}\n     */\n    mergeMaps: function (maps) {\n      const resp = {};\n      maps.forEach(m => {\n        Object.entries(m).forEach(([key, v]) => {\n          if (key === 'transport') {\n            // As an argument, we receive a list of maps for specific transports,\n            // and as output, we need a list of transports\n            key = 'transports';\n          }\n\n          const value = Array.isArray(v) ? v : [v]; // In case of 'transport' key, we receive a map as a value\n\n          const existingValue = resp[key] || []; // eslint-disable-next-line no-prototype-builtins\n\n          const newValues = resp.hasOwnProperty(key) ? value.filter(item => !existingValue.includes(item)) : value;\n          resp[key] = [...existingValue, ...newValues];\n        });\n      });\n      return resp;\n    },\n    // eslint-disable-next-line ember/no-component-lifecycle-hooks\n    didRender: function () {\n      this._super(...arguments);\n\n      const self = this;\n      const loadingCompleted = this.get('transportType.loadingCompleted');\n      Ember.run.next(function () {\n        if (self.get('showColumnFilters')) {\n          self.resizeTableHeader();\n        }\n\n        if (self.isDestroyed || !self.get('transports.length')) {\n          return;\n        }\n\n        if (self.get('numberOfRenderedRows') < self.get('transports.length')) {\n          self.renderMoreRows();\n        } else if (self.get('transports.length') > 0 && !loadingCompleted) {\n          self.get('transportType').set('loadingCompleted', true);\n        }\n      });\n    },\n    switchOffHighlight: function () {\n      const highlightedTransportId = this.get('highlightedTransportId');\n\n      if (highlightedTransportId) {\n        const highlightedTransport = this.get('store').peekRecord('transport', highlightedTransportId);\n\n        if (highlightedTransport) {\n          highlightedTransport.set('isHighlighted', false);\n        }\n      }\n\n      this.set('highlightedTransportId', null);\n    },\n    // eslint-disable-next-line ember/no-component-lifecycle-hooks\n    didDestroyElement: function () {\n      this._super(...arguments);\n\n      Ember.run.cancel(this.get('timer')); // this.get('transportType').set('loadingCompleted', false)\n\n      this.setProperties({\n        transportType: null,\n        transports: []\n      });\n      this.switchOffHighlight();\n    },\n    isTransportRowHighlightingEnabled: Ember.computed('', function () {\n      return this.get('sessionAccount').getSettingValue('ENABLE_TRANSPORT_ROW_HIGHLIGHTING') === 'true';\n    }),\n    currentPage: Ember.computed('page', function () {\n      return this.get('page') || '1';\n    }),\n    availableMaxPages: Ember.computed(function () {\n      return ['25', '50', '100'];\n    }),\n    // Akcje\n    action: '',\n    actions: {\n      showModal: function (template, transport) {\n        this.set('action', 'showModal');\n        this.sendAction('action', template, transport);\n      },\n      goToWarehouse: function (step) {\n        this.goToWarehouse(step);\n      },\n\n      openCreateAdviceModal(transport) {\n        this.openCreateAdviceModal(transport);\n      },\n\n      generateWeightReceipt(transportId) {\n        this.set('action', 'generateWeightReceipt');\n        this.sendAction('action', transportId);\n      },\n\n      addNote(noteContent, transportId) {\n        this.set('action', 'addNote');\n        this.sendAction('action', noteContent, transportId);\n      },\n\n      deleteFile(file) {\n        this.set('action', 'deleteFile');\n        this.sendAction('action', file);\n      },\n\n      fileUploadSuccess: function (transportId) {\n        this.set('action', 'fileUploadSuccess');\n        this.sendAction('action', transportId);\n      },\n      fileUploadFail: function (transportId) {\n        this.set('action', 'fileUploadFail');\n        this.sendAction('action', transportId);\n      },\n\n      saveMaxRows() {\n        const key = 'MAX_ROWS_IN_TRANSPORT_LIST_TABLE_' + this.get('transportTypeMode');\n        localStorage.setItem(key, this.get('currentMax'));\n        this.set('saveButtonMessage', this.get('intl').t('common.saved'));\n      },\n\n      incrementPage() {\n        this.set('transportType.transportsTabVisited', false);\n        this.set('page', String(Number(this.get('currentPage')) + 1));\n        Ember.run.debounce(this, this.loadTransports, 500);\n      },\n\n      decrementPage() {\n        this.set('transportType.transportsTabVisited', false);\n        this.set('page', String(Number(this.get('currentPage')) - 1));\n        Ember.run.debounce(this, this.loadTransports, 500);\n      },\n\n      setPage(page) {\n        this.set('page', page);\n        this.set('transportType.transportsTabVisited', false);\n        Ember.run.debounce(this, this.loadTransports, 500);\n      },\n\n      loadMore() {\n        const self = this;\n        const token = this.get('session.data.authenticated.token');\n        const queryParams = this.get('queryParams');\n        queryParams.page = Number(queryParams.page) + 1;\n        this.set('loadingMore', true); // TODO :: apollo-api-service\n\n        _jquery.default.ajax({\n          url: _environment.default.serverURL + '/transports/index',\n          data: JSON.stringify(queryParams),\n          type: 'POST',\n          contentType: 'application/json',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(function (data) {\n          if (!self.isDestroyed) {\n            self.incrementProperty('page');\n            self.setProperties({\n              loadingMore: false,\n              totalPages: data.meta.totalPages,\n              count: data.meta.count\n            });\n            delete data.meta;\n            self.get('store').pushPayload(data);\n\n            if (data.transports.length === 0) {\n              self.get('transportType').set('loadingCompleted', true);\n            } else {\n              data.transports.forEach(t => {\n                self.get('transports').pushObject(self.get('store').peekRecord('transport', t.id));\n              });\n            }\n          }\n        }, function () {\n          self.set('loadingMore', false);\n        });\n      },\n\n      poll() {\n        this.onPoll();\n      },\n\n      clearFilters() {\n        this.get('FILTERS').forEach(filter => {\n          if (filter != null && filter.value != null) {\n            filter.set('value', null);\n          }\n        });\n        this.get('searchParams.filters').clear();\n      },\n\n      updateHighlightedRow(transportId) {\n        const highlightedTransportId = this.get('highlightedTransportId');\n\n        if (highlightedTransportId === transportId) {\n          return;\n        }\n\n        this.switchOffHighlight();\n        this.set('highlightedTransportId', transportId);\n      },\n\n      scrollToClosestTransport() {\n        const self = this;\n        const today = moment();\n        const transportTypeId = this.get('transportType.id');\n        let closestTransportInternalId;\n        let minDiffPast = Number.MIN_SAFE_INTEGER;\n        let minDiffFuture = Number.MAX_SAFE_INTEGER;\n        this.get('transports').filterBy('transportType.id', transportTypeId).forEach(function (tr) {\n          const difference = moment(tr.get('earliestTimeWindowStart')).diff(today, 'minutes');\n\n          if (difference < 0 && difference > minDiffPast) {\n            minDiffPast = difference;\n            closestTransportInternalId = tr.get('internalIndex');\n          }\n        });\n\n        if (minDiffPast === Number.MIN_SAFE_INTEGER) {\n          // nie znaleźliśmy transportu w przeszłości, więc zaczynamy szukać w przyszłości\n          this.get('transports').filterBy('transportType.id', transportTypeId).forEach(function (tr) {\n            const difference = moment(tr.get('earliestTimeWindowStart')).diff(today, 'minutes');\n\n            if (difference > 0 && difference < minDiffFuture) {\n              minDiffFuture = difference;\n              closestTransportInternalId = tr.get('internalIndex');\n            }\n          });\n        }\n\n        (0, _jquery.default)('.transport-row').each(function () {\n          if ((0, _jquery.default)(this).data('order-number') === closestTransportInternalId) {\n            const closestTransport = self.get('transports').filterBy('internalIndex', closestTransportInternalId).get('firstObject');\n\n            if (self.get('isTransportRowHighlightingEnabled') && !closestTransport.get('isHighlighted')) {\n              closestTransport.set('isHighlighted', !closestTransport.get('isHighlighted'));\n              self.send('updateHighlightedRow', closestTransport.get('id'));\n            }\n\n            const offset = (0, _jquery.default)(this).offset().top - (0, _jquery.default)(this).height() - (0, _jquery.default)('.navbar').height() - (0, _jquery.default)('.transport-table-nav').height();\n            (0, _jquery.default)('html, body').animate({\n              scrollTop: offset\n            }, 'slow');\n          }\n        });\n      },\n\n      changeSortingKey: function (newKey, newDirection) {\n        if (!newDirection) {\n          this.set('sortingKey', this.DEFAULT_SORTING_KEY);\n          this.set('descDirection', false);\n        } else {\n          this.set('sortingKey', newKey);\n          this.set('descDirection', newDirection === 'down');\n        }\n      },\n\n      openRelationsModal() {\n        this.set('action', 'openRelationsModal');\n        this.sendAction('action');\n      }\n\n    },\n\n    // Metody\n    refreshSelectedTransports(transportIds) {\n      if (!transportIds || !transportIds.length) {\n        return;\n      }\n\n      const self = this;\n      const queryParams = Object.assign({}, this.get('queryParams'));\n      queryParams.lastUpdatedIds = transportIds.uniq();\n      queryParams.page = 1; // TODO :: apollo-api-service\n\n      const token = this.get('session.data.authenticated.token');\n      jQuery.ajax({\n        url: _environment.default.serverURL + '/transports/index',\n        data: JSON.stringify(queryParams),\n        contentType: 'application/json; charset=utf-8',\n        dataType: 'json',\n        type: 'POST',\n        beforeSend: function (xhr) {\n          xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n        }\n      }).then(response => {\n        self.get('transportType').get('unhandledTransportIds').removeObjects(transportIds);\n        const receivedTransportIds = response.transports.map(t => t.id); // Mogliśmy nie dostać odpowiedzi dla niektórych transportów z powodu tego, że użytkownik utracił\n        // do nich dostęp (np. usunięcie zlecenia, zakończenie aukcji) lub z powodu wybranych filtrów\n\n        const unhandledTransportIds = transportIds.filter(id => !receivedTransportIds.includes(id));\n        self.get('transportType').get('unhandledTransportIds').pushObjects(unhandledTransportIds);\n        unhandledTransportIds.forEach(id => {\n          const transportToRemove = self.get('transports').findBy('id', id.toString());\n\n          if (transportToRemove) {\n            console.log(`Removing transport #${id}..`);\n\n            if (this.get('highlightedTransportId') === id) {\n              this.set('highlightedTransportId', null);\n            }\n\n            self.get('transports').removeObject(transportToRemove);\n            this.get('store').unloadRecord(transportToRemove);\n          }\n        });\n        const openTransportId = this.get('openTransportId');\n        const prevCustomFields = openTransportId ? self.getPreviousCustomFieldValuesMap(this.get('openTransportId')) : null;\n        delete response.meta;\n        self.get('store').pushPayload(response);\n        const newCFValues = response.customFieldValues;\n        response.transports.forEach(t => {\n          const loadedTransport = self.get('store').peekRecord('transport', t.id);\n          const transportId = loadedTransport.get('id');\n\n          if (self.get('transports').includes(loadedTransport)) {\n            console.debug(`Unloading checkpoints from transport ${loadedTransport.get('logString')}..`);\n            self.unloadDeletedRecords('transport', transportId, 'checkpoint');\n\n            if (loadedTransport.get('activeAuction.id')) {\n              console.debug(`Refreshing auction for transport ${transportId}..`);\n              loadedTransport.get('activeAuction').reload();\n            }\n\n            if (loadedTransport.get('courierPricings')) {\n              console.debug(`Refreshing courier Pricings for transport ${transportId}..`);\n              loadedTransport.get('courierPricings').reload();\n            }\n\n            if (loadedTransport.get('courierOrrder')) {\n              console.debug(`Refreshing courier order for transport ${transportId}..`);\n              loadedTransport.get('courierOrder').reload();\n            }\n\n            loadedTransport.get('timeWindows').forEach(tw => {\n              tw.reload().then(reloadedWindow => {\n                if (reloadedWindow.get('data.start') && reloadedWindow.get('data.stop')) {\n                  tw.set('start', moment(reloadedWindow.get('data.start')).toDate());\n                  tw.set('stop', moment(reloadedWindow.get('data.stop')).toDate());\n                }\n              });\n            });\n            loadedTransport.get('steps').forEach(s => {\n              if (s.get('data.minAdviceDate') && s.get('data.maxAdviceDate')) {\n                s.set('start', s.get('data.minAdviceDate'));\n                s.set('stop', s.get('data.maxAdviceDate'));\n              }\n            });\n\n            if (loadedTransport.get('transaction')) {\n              loadedTransport.get('transaction').reload();\n            }\n\n            loadedTransport.get('indexes').forEach(index => {\n              if (index.get('id') && index.get('currentState.stateName') !== 'root.loading') {\n                index.reload();\n              }\n            });\n            loadedTransport.notifyPropertyChange('lastUpdated');\n            loadedTransport.notifyPropertyChange('files.length');\n            loadedTransport.notifyPropertyChange('notes.length');\n\n            if (loadedTransport.get('deleted')) {\n              self.get('transports').removeObject(loadedTransport);\n              console.debug(`Transport ${loadedTransport.get('logString')} has been removed from the table.`);\n            } else {\n              console.debug(`Transport ${loadedTransport.get('logString')} has been refreshed.`);\n            }\n\n            if (prevCustomFields && parseInt(openTransportId) === t.id) {\n              const newCustomFields = newCFValues.filter(ncf => ncf.transport === t.id);\n              self.markDirtyCustomFieldValues(loadedTransport, prevCustomFields, newCustomFields);\n            }\n          } else if (loadedTransport.get('deleted') === false && self.get('archive') !== true && !self.get('searchParams.query')) {\n            // && self.get('archive') !== true dodanie zapobiega wyświetlaniu kopii transportu z archiwum,\n            // które nie jest archiwalne, od razu w tabeli archiwum\n            const transportBelongToCurrentTransportSupervisor = loadedTransport.get('transportSupervisor.id') === self.get('sessionAccount.currentUser.id');\n            const currentUserCreatedTransport = loadedTransport.get('creator.id') === self.get('sessionAccount.currentUser.id');\n            const transportBelongToCurrentTransportSupervisorUserGroup = loadedTransport.get('transportSupervisor.userGroup.id') === self.get('sessionAccount.currentUser.userGroup.id');\n\n            if (self.get('searchParams.filterMode') === 'user' && !currentUserCreatedTransport && !transportBelongToCurrentTransportSupervisor) {\n              return;\n            } else if (self.get('searchParams.filterMode') === 'group' && !transportBelongToCurrentTransportSupervisorUserGroup) {\n              return;\n            }\n\n            self.get('transports').addObject(loadedTransport);\n\n            if (loadedTransport.get('previouslyActiveAuction.id') && loadedTransport.get('currentState.stateName') !== 'root.loaded.saved') {\n              console.debug(`Refreshing previously active auction for transport ${transportId}..`);\n              loadedTransport.get('previouslyActiveAuction').reload();\n            }\n\n            console.debug(`Transport ${loadedTransport.get('logString')} has been added to the table.`);\n          }\n        });\n      });\n    },\n\n    // eslint-disable-next-line ember/no-on-calls-in-components\n    initializeOnPollActiveTabHandling: Ember.on('init', function () {\n      this.get('appTabActiveService').setOnPollHandlingObject(this, 'TRANSPORTS_TABLE');\n    }),\n    // eslint-disable-next-line ember/no-on-calls-in-components\n    deactivateOnPollActiveTabHandling: Ember.on('didDestroyElement', function () {\n      this.get('appTabActiveService').setOnPollHandlingObject(null, 'TRANSPORTS_TABLE');\n    }),\n    onPollWrapper: function () {\n      this.onPoll();\n    },\n\n    /** @namespace json.transportIds */\n    onPoll: function () {\n      try {\n        const self = this;\n        const lastPollFormatted = moment(this.get('lastPoll')).format();\n        const queryParams = this.get('queryParams');\n        queryParams.lastPoll = lastPollFormatted;\n        const pollQueryParams = Object.assign({}, queryParams);\n        pollQueryParams.filters = null;\n        const token = this.get('session.data.authenticated.token'); // TODO :: apollo-api-service\n\n        jQuery.ajax({\n          url: _environment.default.serverURL + '/transports/updates',\n          data: pollQueryParams,\n          type: 'GET',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(function (json) {\n          if (!self.isDestroyed && json.transportIds.length) {\n            const transportIds = json.transportIds;\n            self.refreshSelectedTransports(transportIds);\n            self.set('lastPoll', json.pollTime);\n          }\n        });\n      } catch (e) {\n        console.error(e);\n      }\n    },\n    // eslint-disable-next-line ember/no-on-calls-in-components\n    initResizeObserver: Ember.on('init', function () {\n      (0, _jquery.default)(window).off('resize');\n      (0, _jquery.default)(window).on('resize', this.resizeTableHeader.bind(this));\n      this.adjustPageContent('.transport-tables-container', ['.transport-table-nav']);\n      (0, _jquery.default)(window).on('resize', () => this.adjustPageContent('.transport-tables-container', ['.transport-table-nav']));\n    }),\n    _resizeTableHeaderLater: function () {\n      if (!this.showColumnFilters) {\n        return;\n      }\n\n      if (this.isDestroyed) {\n        return;\n      }\n\n      (0, _jquery.default)('div.transport-table-header div.cell').each(function () {\n        const name = (0, _jquery.default)(this).data('column-name');\n        (0, _jquery.default)(\"div[data-column-name='\" + name + \"']\").each(function () {\n          const windowInnerWidth = window.innerWidth;\n          const numOfCells = (0, _jquery.default)('.column-names .cell').length;\n          const defaultWidth = Math.floor(windowInnerWidth / (numOfCells + 1)); // -1 to poprawka na marginesy między filtrami\n\n          const width = (0, _jquery.default)(this).closest('.table-responsive').find(\"td[data-column-name='\" + name + \"']\").outerWidth(true) - 1;\n\n          if (isNaN(width)) {\n            console.debug(`Błąd podczas obliczania szerokości elementów tabeli transportów, width: ${width}`);\n          }\n\n          (0, _jquery.default)(this).outerWidth(width || defaultWidth);\n        });\n      });\n      (0, _jquery.default)('.column-names').each(function () {\n        (0, _jquery.default)(this).outerWidth((0, _jquery.default)(this).closest('.table-responsive').find('.transport-table').outerWidth(true));\n      });\n      (0, _jquery.default)('.transport-filters').each(function () {\n        (0, _jquery.default)(this).outerWidth((0, _jquery.default)(this).closest('.table-responsive').find('.transport-table').outerWidth(true));\n      });\n    },\n    resizeTableHeader: function () {\n      Ember.run.once(this, '_resizeTableHeaderLater');\n    },\n    schedule: function (f) {\n      const self = this;\n      return Ember.run.later(self, function () {\n        if (!self.isDestroyed) {\n          f.apply(self);\n          self.set('timer', self.schedule(f));\n        }\n      }, self.get('pollInterval'));\n    },\n\n    renderMoreRows() {\n      const interval = this.get('ROWS_INTERVAL');\n      const numberOfRenderedRows = this.get('numberOfRenderedRows'); // console.debug(`+ numberOfRenderedRows: ${numberOfRenderedRows}, interval: ${interval}, L :: ${this.get('transports.length')}`);\n\n      if (numberOfRenderedRows + interval < this.get('transports.length')) {\n        this.set('numberOfRenderedRows', numberOfRenderedRows + interval);\n      } else if (numberOfRenderedRows < this.get('transports.length')) {\n        this.set('numberOfRenderedRows', numberOfRenderedRows + 1);\n      } else if (this.get('transports.length') > 0) {\n        this.get('transportType').set('loadingCompleted', true);\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/intable-column-names/component\", [\"exports\", \"apollo/mixins/form-utils-mixin\"], function (_exports, _formUtilsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_formUtilsMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    // Używane w hbs.\n    tagName: 'tr',\n    classNames: ['column-names'],\n    priceTranslationKey: Ember.computed('transportType.id', function () {\n      return this.get('transportType.priceLabelTranslation');\n    }),\n    actions: {}\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/intable-column-names/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"SCr6OVcb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"gcm\\\",\\\"cfd\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"canCombineTransports\\\"]]],null,{\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\" \\\"],[10]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"IDENTIFIER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"IDENTIFIER\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[1,[27,\\\"t\\\",[\\\"columns.IDENTIFIER\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"PERIODIC_TRANSPORT_INTERNAL_INDEX\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"PERIODIC_TRANSPORT_INTERNAL_INDEX\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.PERIODIC_TRANSPORT_INTERNAL_INDEX\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ERP_IDENTIFIER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"ERP_IDENTIFIER\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[21,\\\"erpIdentifierColumnLabel\\\"],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ALT_IDENTIFIER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"ALT_IDENTIFIER\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[21,\\\"altIdentifierColumnLabel\\\"],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DELIVERY_NUMBER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"DELIVERY_NUMBER\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.DELIVERY_NUMBER\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROUTE_ID\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"ROUTE_ID\\\"],[11,\\\"class\\\",\\\"cell text-center\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.ROUTE_ID\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROUTE_NAME\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"ROUTE_NAME\\\"],[11,\\\"class\\\",\\\"cell text-center\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.ROUTE_NAME\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"TRANSPORT_RELATION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"TRANSPORT_RELATION\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.TRANSPORT_RELATION\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"INDEX_PRODUCTS\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"INDEX_PRODUCTS\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.INDEX_PRODUCTS\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"STORAGE_ZONE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"STORAGE_ZONE\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[21,\\\"warehouseZoneLabel\\\"],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"RAMP\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"RAMP\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.RAMP\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOCATION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"LOCATION\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.LOCATION\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DOCUMENT_IDENTIFIER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"DOCUMENT_IDENTIFIER\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.DOCUMENT_IDENTIFIER\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CONTRACTOR_SHORT_NAME\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"CONTRACTOR_SHORT_NAME\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.CONTRACTOR\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CONTRACTOR_FULL_NAME\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"CONTRACTOR_FULL_NAME\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.CONTRACTOR\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"SERVICE_COMPANY_SHORT_NAME\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"SERVICE_COMPANY_SHORT_NAME\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.SERVICE_COMPANY_SHORT_NAME\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"TRANSPORT_SUPERVISOR\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"TRANSPORT_SUPERVISOR\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.TRANSPORT_SUPERVISOR\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CREATION_DATE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"CREATION_DATE\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.CREATION_DATE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_WAREHOUSE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_WAREHOUSE\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.LOAD_WAREHOUSE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_TIME_WINDOW\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_TIME_WINDOW\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.LOAD_TIME_WINDOW\\\"],null],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"transports/transports-table/transport-sorter\\\",null,[[\\\"archive\\\",\\\"key\\\",\\\"activeSortingKey\\\",\\\"changeSortingKey\\\",\\\"transportType\\\"],[[23,[\\\"archive\\\"]],\\\"timeWindowLoadSortProperty\\\",[23,[\\\"activeSortingKey\\\"]],[23,[\\\"changeSortingKey\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_PLACE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_PLACE\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.LOAD_PLACE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_COUNTRY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_COUNTRY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.LOAD_COUNTRY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_CITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_CITY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.LOAD_CITY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"SUM_LOAD_QUANTITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"SUM_LOAD_QUANTITY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.SUM_LOAD_QUANTITY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_QUANTITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_QUANTITY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.LOAD_QUANTITY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_PACKAGES_QUANTITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_PACKAGES_QUANTITY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.LOAD_PACKAGES_QUANTITY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_WAREHOUSE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_WAREHOUSE\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.UNLOAD_WAREHOUSE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_TIME_WINDOW\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_TIME_WINDOW\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.UNLOAD_TIME_WINDOW\\\"],null],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"transports/transports-table/transport-sorter\\\",null,[[\\\"archive\\\",\\\"key\\\",\\\"activeSortingKey\\\",\\\"changeSortingKey\\\",\\\"transportType\\\"],[[23,[\\\"archive\\\"]],\\\"timeWindowUnloadSortProperty\\\",[23,[\\\"activeSortingKey\\\"]],[23,[\\\"changeSortingKey\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_PLACE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_PLACE\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.UNLOAD_PLACE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"SUM_UNLOAD_QUANTITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"SUM_UNLOAD_QUANTITY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.SUM_UNLOAD_QUANTITY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_QUANTITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_QUANTITY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.UNLOAD_QUANTITY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_PACKAGES_QUANTITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_PACKAGES_QUANTITY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.UNLOAD_PACKAGES_QUANTITY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_COUNTRY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_COUNTRY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.UNLOAD_COUNTRY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_CITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_CITY\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.UNLOAD_CITY\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ARRIVAL_DATE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"ARRIVAL_DATE\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.ARRIVAL_DATE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"PRICE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"PRICE\\\"],[11,\\\"class\\\",\\\"cell text-center\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[21,\\\"priceTranslationKey\\\"],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNIT_AMOUNT_TYPE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"UNIT_AMOUNT_TYPE\\\"],[11,\\\"class\\\",\\\"cell text-center\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.UNIT_AMOUNT_TYPE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CARRIER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"CARRIER\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.CARRIER\\\"],null],false],[0,\\\"\\\\n        \\\"],[1,[27,\\\"transports/transports-table/transport-sorter\\\",null,[[\\\"archive\\\",\\\"key\\\",\\\"activeSortingKey\\\",\\\"changeSortingKey\\\",\\\"transportType\\\"],[[23,[\\\"archive\\\"]],\\\"carrierSortProperty\\\",[23,[\\\"activeSortingKey\\\"]],[23,[\\\"changeSortingKey\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"SURCHARGE_WITHOUT_CONFIRMATION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"SURCHARGE_WITHOUT_CONFIRMATION\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.SURCHARGE_WITHOUT_CONFIRMATION\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ADVICE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"ADVICE\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.ADVICE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"VEHICLE_TRUCK_TYPE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"VEHICLE_TRUCK_TYPE\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"truck.vehicleType\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"MANUAL_NOTIFICATION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"MANUAL_NOTIFICATION\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.MANUAL_NOTIFICATION\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"WORKER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"WORKER\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"workerFieldTranslationKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"worker.\\\",[23,[\\\"transportType\\\",\\\"workerFieldTranslationKey\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"worker.WORKERS\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"WORKER_PHONE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"WORKER_PHONE\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"workerFieldTranslationKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"worker.phoneNumber.\\\",[23,[\\\"transportType\\\",\\\"workerFieldTranslationKey\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"worker.phoneNumber.WORKERS\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"EMAIL_ADVICE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"EMAIL_ADVICE\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.EMAIL_ADVICE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"EMAIL_ADVICE_EMAIL_ADDRESS\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"EMAIL_ADVICE_EMAIL_ADDRESS\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.EMAIL_ADVICE_EMAIL_ADDRESS\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"INDEX_DOCUMENT_NUMBER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"INDEX_DOCUMENT_NUMBER\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.INDEX_DOCUMENT_NUMBER\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"INDEX_TRANSPORT_NUMBER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"INDEX_DOCUMENT_NUMBER\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.INDEX_TRANSPORT_NUMBER\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DRIVER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"DRIVER\\\"],[11,\\\"class\\\",\\\"responsive-main-hide cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.DRIVER\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DRIVER_PHONE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"DRIVER_PHONE\\\"],[11,\\\"class\\\",\\\"responsive-main-hide cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.DRIVER_PHONE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DRIVER_IDENTIFIER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"DRIVER_IDENTIFIER\\\"],[11,\\\"class\\\",\\\"responsive-main-hide cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.DRIVER_IDENTIFIER\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CAR\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"CAR\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.CAR\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"TRAILER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"TRAILER\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.TRAILER\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"INVOICE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"INVOICE\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.INVOICE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"TRANSPORT_DESCRIPTION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"TRANSPORT_DESCRIPTION\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.TRANSPORT_DESCRIPTION\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"TOTAL_WEIGHT\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"TOTAL_WEIGHT\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.TOTAL_WEIGHT\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"TRUCK_TYPE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"TRUCK_TYPE\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.TRUCK_TYPE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CUSTOM_FIELDS\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"customFieldsVisibleInTable\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"th\\\"],[12,\\\"data-column-name\\\",[28,[[22,2,[\\\"englishName\\\"]]]]],[11,\\\"class\\\",\\\"responsive-hide-lvl2 cell\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[22,2,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"REQUIRES_INSPECTION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"REQUIRES_INSPECTION\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.REQUIRES_INSPECTION\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"INSPECTION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"INSPECTION\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.INSPECTION\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DELIVERY_NETTO_WEIGHT\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"DELIVERY_NETTO_WEIGHT\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.DELIVERY_NETTO_WEIGHT\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DELIVERY_INCOTERMS\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"DELIVERY_INCOTERMS\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.DELIVERY_INCOTERMS\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DELIVERY_INVOICE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"DELIVERY_INVOICE\\\"],[11,\\\"class\\\",\\\"cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.DELIVERY_INVOICE\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"STATUS\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"STATUS\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl4 cell\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"columns.STATUS\\\"],null],false],[0,\\\"\\\\n        \\\"],[1,[27,\\\"transports/transports-table/transport-sorter\\\",null,[[\\\"archive\\\",\\\"key\\\",\\\"activeSortingKey\\\",\\\"changeSortingKey\\\",\\\"transportType\\\"],[[23,[\\\"archive\\\"]],\\\"firstUnconfirmedCheckpoint.task.checkpointSortId\\\",[23,[\\\"activeSortingKey\\\"]],[23,[\\\"changeSortingKey\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleGroup\\\",\\\"isGuard\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"transportType\\\",\\\"guardUniqueSortedTasks\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"th\\\"],[12,\\\"data-column-name\\\",[28,[[22,1,[\\\"alias\\\"]]]]],[11,\\\"class\\\",\\\"responsive-hide-lvl4 cell text-left\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[22,1,[\\\"checkpointNameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"NOTES\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"NOTES\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell text-center\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-comment\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DOCUMENTS\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\"],[11,\\\"data-column-name\\\",\\\"DOCUMENTS\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell text-center\\\"],[9],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-file\\\"],[9],[10],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/transports-table/intable-column-names/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/load-more/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Component.extend({\n    loadMore: \"loadMore\",\n    actions: {\n      loadMore: function () {\n        this.sendAction(\"loadMore\");\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/load-more/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"4ItV2d42\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"hasMore\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-4 col-md-offset-4\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-info load-more\\\"],[12,\\\"disabled\\\",[21,\\\"loadingMore\\\"]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"loadingMore\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-hourglass\\\"],[9],[10],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"table.loading\\\"],null],false],[0,\\\"...\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-refresh\\\"],[9],[10],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"table.loadMore\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"loadMore\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/transports-table/load-more/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/multi-archive-button/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    multiArchiveTrackerService: Ember.inject.service(),\n    // TODO: Zastąpić przez apolloApiService\n    ajaxService: Ember.inject.service(),\n    sessionAccount: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    showMultiArchiveButton: Ember.computed('multiArchiveTrackerService.currentTransports.length', function () {\n      return this.multiArchiveTrackerService.get('currentTransports').length !== 0;\n    }),\n    actions: {\n      validateAndArchive() {\n        const self = this;\n        const transports = this.get('multiArchiveTrackerService.currentTransports');\n\n        if (!transports) {\n          return;\n        }\n\n        const transportsThatCantBeArchived = this.get('multiArchiveTrackerService').getTransportsThatCantBeArchived();\n\n        if (transportsThatCantBeArchived.length > 0) {\n          alert(this.get('intl').t('transport.multiArchive.alert') + transportsThatCantBeArchived.map(t => {\n            return t.get('internalIndex');\n          }));\n          return;\n        }\n\n        if (!confirm(this.get('intl').t('transport.multiArchive.confirm') + transports.map(t => {\n          return t.get('internalIndex');\n        }))) {\n          return;\n        }\n\n        const url = '/transports/multiArchive';\n        const data = transports.map(t => {\n          return t.get('id');\n        });\n        this.get('ajaxService').send(url, 'POST', data, true).then(() => {\n          console.debug('Poprawnie zarchiwizowaliśmy transporty');\n          self.multiArchiveTrackerService.clearTransportsList();\n        }).catch(response => {\n          const errors = response.responseJSON.errors;\n\n          if (errors) {\n            const msg = this.get('intl').t('transport.multiArchive.confirm') + errors;\n            console.error(msg);\n            alert(msg);\n          }\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/multi-archive-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"4TeALe76\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showMultiArchiveButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"multi-archive-btn\\\"],[11,\\\"class\\\",\\\"btn btn-primary multi-archive-btn\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"transport.multiArchive.label\\\"],null],false],[0,\\\"\\\\n    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"validateAndArchive\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/transports-table/multi-archive-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"EpTFmBap\",\n    \"block\": \"{\\\"symbols\\\":[\\\"transport\\\",\\\"idx\\\"],\\\"statements\\\":[[1,[27,\\\"transports/transports-table/transport-title\\\",null,[[\\\"transportType\\\",\\\"lastPoll\\\",\\\"searchParams\\\",\\\"archive\\\",\\\"numberOfTransports\\\",\\\"numberOfRenderedRows\\\",\\\"showClearFiltersButton\\\"],[[23,[\\\"transportType\\\"]],[23,[\\\"lastPoll\\\"]],[23,[\\\"searchParams\\\"]],[23,[\\\"archive\\\"]],[23,[\\\"transports\\\",\\\"length\\\"]],[23,[\\\"numberOfRenderedRows\\\"]],[23,[\\\"showClearFiltersButton\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-responsive\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showColumnFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"transports/transports-table/transport-header\\\",null,[[\\\"transportType\\\",\\\"archive\\\",\\\"searchParams\\\",\\\"queryParams\\\",\\\"canCombineTransports\\\",\\\"filters\\\",\\\"tableColumnNames\\\",\\\"customFieldsVisibleInTable\\\",\\\"activeSortingKey\\\",\\\"changeSortingKey\\\"],[[23,[\\\"transportType\\\"]],[23,[\\\"archive\\\"]],[23,[\\\"searchParams\\\"]],[23,[\\\"queryParams\\\"]],[23,[\\\"canCombineTransports\\\"]],[23,[\\\"FILTERS\\\"]],[23,[\\\"tableColumnNames\\\"]],[23,[\\\"customFieldsVisibleInTable\\\"]],[23,[\\\"sortingKey\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"changeSortingKey\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-hover table-condensed table-striped transport-table\\\"],[12,\\\"data-transport-type\\\",[28,[[23,[\\\"transportType\\\",\\\"alias\\\"]]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transportsProxy\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,[\\\"showColumnFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"transports/transports-table/intable-column-names\\\",null,[[\\\"transportType\\\",\\\"archive\\\",\\\"tableColumnNames\\\",\\\"canCombineTransports\\\",\\\"activeSortingKey\\\",\\\"customFieldsVisibleInTable\\\",\\\"changeSortingKey\\\"],[[23,[\\\"transportType\\\"]],[23,[\\\"archive\\\"]],[23,[\\\"tableColumnNames\\\"]],[23,[\\\"canCombineTransports\\\"]],[23,[\\\"sortingKey\\\"]],[23,[\\\"customFieldsVisibleInTable\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"changeSortingKey\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transportsProxy\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"transports/transports-table/transport-row\\\",null,[[\\\"transport\\\",\\\"transportType\\\",\\\"availableRelations\\\",\\\"tableColumnNames\\\",\\\"archive\\\",\\\"data-order-number\\\",\\\"isTransportRowHighlightingEnabled\\\",\\\"updateHighlightedRow\\\",\\\"goToWarehouse\\\",\\\"openCreateAdviceModal\\\",\\\"confirm\\\",\\\"revoke\\\",\\\"reject\\\",\\\"openTransportId\\\",\\\"customFieldsVisibleInTable\\\",\\\"canCombineTransports\\\"],[[22,1,[]],[23,[\\\"transportType\\\"]],[23,[\\\"availableRelations\\\"]],[23,[\\\"tableColumnNames\\\"]],[23,[\\\"archive\\\"]],[22,1,[\\\"internalIndex\\\"]],[23,[\\\"isTransportRowHighlightingEnabled\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"updateHighlightedRow\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"goToWarehouse\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"openCreateAdviceModal\\\",[22,1,[]]],null],[23,[\\\"confirm\\\"]],[23,[\\\"revoke\\\"]],[23,[\\\"reject\\\"]],[23,[\\\"openTransportId\\\"]],[23,[\\\"customFieldsVisibleInTable\\\"]],[23,[\\\"canCombineTransports\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top padding-bottom-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"loadingCompleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.noResults\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"table.loading\\\"],null],false],[0,\\\" \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/images/ajax-loader.gif\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"archive\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"pagination-buttons\\\",null,[[\\\"url\\\",\\\"page\\\",\\\"max\\\",\\\"totalPages\\\",\\\"navigateWithActions\\\",\\\"availableMaxPages\\\",\\\"hideMaxCountPerPageSettings\\\"],[\\\"transports.index\\\",[23,[\\\"currentPage\\\"]],[23,[\\\"currentMax\\\"]],[23,[\\\"totalPages\\\"]],true,[23,[\\\"availableMaxPages\\\"]],[27,\\\"eq\\\",[[23,[\\\"transportTypeMode\\\"]],\\\"ALL\\\"],null]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[27,\\\"eq\\\",[[23,[\\\"transportTypeMode\\\"]],\\\"ALL\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"pull-right plain-btn\\\"],[9],[0,\\\" \\\"],[1,[27,\\\"fa-icon\\\",[\\\"floppy-disk\\\"],[[\\\"class\\\"],[\\\"clickable\\\"]]],false],[0,\\\" \\\"],[1,[21,\\\"saveButtonMessage\\\"],false],[0,\\\" \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"saveMaxRows\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"archive\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"transports/transports-table/load-more\\\",null,[[\\\"hasMore\\\",\\\"loadingMore\\\"],[[23,[\\\"hasMore\\\"]],[23,[\\\"loadingMore\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"paid-feature-info\\\",null,[[\\\"authority\\\"],[\\\"UNLIMITED_ACCESS_TO_ARCHIVED_TRANSPORTS\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/transports-table/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-filters/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    // Używane w hbs.\n    cfColumnNames: Ember.computed('customFieldsVisibleInTable.@each.englishName', function () {\n      return this.get('customFieldsVisibleInTable').map(cf => cf.get('englishName'));\n    }),\n    tagName: 'div',\n    classNames: Ember.A(['transport-filters', 'row', 'flex-position-start']),\n    canMultiArchive: Ember.computed('transport', function () {\n      return this.get('sessionAccount').hasRole('ROLE_CAN_MULTI_ARCHIVE_TRANSPORTS');\n    }),\n    actions: {}\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-filters/filter/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    tagName: '',\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    searchParams: {},\n    // rzeczywista zmienna propagowana po całym systemie\n    filterValue: Ember.computed('filterObj.value', {\n      get() {\n        if (this.get('filterObj') !== undefined) {\n          // TODO: Mamy też `transport/custom-field-filters`, który korzysta z tego komponentu,\n          //  a nie korzystamy tam z obiektu Filter, więc musimy mieć póki co takie obejście if'em.\n          return this.get('filterObj.value');\n        }\n\n        return null;\n      },\n\n      set(key, value) {\n        if (this.get('filterObj') !== undefined) {\n          if (this.get('filterObj.type') === 'date' && value) {\n            value = moment(value[0]).format('YYYY-MM-DD');\n          }\n\n          this.set('filterObj.value', value === '' ? null : value);\n        }\n\n        return value == null ? null : value;\n      }\n\n    }),\n    // zmienna działająca tylko w ramach komponentu\n    filterKeys: '',\n    selectOptions: Ember.A(),\n    selectedOption: Ember.computed('filterObj.value', {\n      get() {\n        if (this.get('filterValue')) {\n          const foundOption = this.get('selectOptions').find(option => option.key === this.get('filterValue'));\n          return foundOption ? foundOption.name : this.get('filterValue');\n        }\n\n        return '';\n      },\n\n      set(key, value) {\n        return value;\n      }\n\n    }),\n    searchField: Ember.computed('', function () {\n      return '';\n    }),\n    findTransports: function () {\n      return this.get('store').peekAll('transport').filter(t => t.get('transportType.id') === this.get('transportType.id'));\n    },\n    _setSelectOptions: function () {\n      const self = this;\n      const data = JSON.stringify(this.get('queryParams'));\n      const path = this.get('apolloApiService').APOLLO_API.TRANSPORTS.FILTER_OPTIONS;\n      this.set('selectOptions', this.get('apolloApiService').callApolloApi(path, null, {\n        body: data\n      }).then(response => response.json()).then(response => {\n        const filterSelectOptions = response.filterSelectOptions;\n        self.set('selectOptions', Ember.A());\n\n        if (self.get('selectOptionsType') === 'driver') {\n          filterSelectOptions.driverNames.forEach(driverName => {\n            if (driverName !== undefined) {\n              self.get('selectOptions').pushObject(driverName);\n            }\n          });\n        } else if (self.get('selectOptionsType') === 'truck') {\n          filterSelectOptions.truckRegistrationNumbers.forEach(truckRegistrationNumber => {\n            if (truckRegistrationNumber !== undefined) {\n              self.get('selectOptions').pushObject(truckRegistrationNumber);\n            }\n          });\n        } else if (self.get('selectOptionsType') === 'checkpoint') {\n          self.set('searchField', 'name');\n          filterSelectOptions.checkpointNames.forEach(checkpointName => {\n            if (checkpointName !== undefined) {\n              const stageNameAndKey = {\n                name: checkpointName.name,\n                key: checkpointName.key\n              };\n              self.get('selectOptions').pushObject(stageNameAndKey);\n            }\n          });\n        } else if (self.get('selectOptionsType') === 'personsGroup') {\n          self.set('searchField', 'name'); // eslint-disable-next-line array-callback-return\n\n          self.get('store').peekAll('userGroup').uniqBy('userGroupNameAndKey.name').sortBy('userGroupNameAndKey.name').filter(function (item) {\n            if (item.get('userGroupNameAndKey') !== undefined) {\n              self.get('selectOptions').pushObject(item.get('userGroupNameAndKey'));\n            }\n          });\n        } else if (self.get('selectOptionsType') === 'transportSupervisor') {\n          filterSelectOptions.transportSupervisorsNames.forEach(transportSupervisorName => {\n            if (transportSupervisorName !== undefined) {\n              self.get('selectOptions').pushObject(transportSupervisorName);\n            }\n          });\n        } else if (self.get('selectOptionsType') === 'carrierCompany') {\n          filterSelectOptions.carrierCompanies.forEach(carrierCompanyShortName => {\n            if (carrierCompanyShortName !== undefined) {\n              self.get('selectOptions').pushObject(carrierCompanyShortName);\n            }\n          });\n        } else if (self.get('selectOptionsType') === 'invoice') {\n          self.set('searchField', 'name');\n          const withInvoice = this.get('intl').t('transaction.withInvoice').toString();\n          const withoutInvoice = this.get('intl').t('transaction.withoutInvoice').toString();\n          self.get('selectOptions').pushObject({\n            name: withInvoice,\n            key: 'WITH_INVOICE'\n          });\n          self.get('selectOptions').pushObject({\n            name: withoutInvoice.toString(),\n            key: 'WITHOUT_INVOICE'\n          });\n        } else if (self.get('selectOptionsType') === 'requiresInspection') {\n          self.set('searchField', 'name');\n          self.get('selectOptions').pushObject(this.get('intl').t('common.yes'));\n          self.get('selectOptions').pushObject(this.get('intl').t('common.no'));\n        } else if (self.get('selectOptionsType') === 'hasUnacceptedSurcharges') {\n          self.set('searchField', 'hasUnacceptedSurcharges');\n          self.get('selectOptions').pushObject(this.get('intl').t('common.yes'));\n        }\n      }));\n    },\n    actions: {\n      setSelectOptions: function () {\n        Ember.run.debounce(this, this._setSelectOptions, 1000, true);\n      },\n      setSelectedOptionAndFilterValue: function (selectValue) {\n        const self = this;\n\n        if (self.get('selectOptionsType') === 'checkpoint') {\n          self.set('filterValue', selectValue ? selectValue.name : null);\n        } else if (self.get('selectOptionsType') === 'personsGroup') {\n          self.set('filterValue', selectValue.key);\n        } else if (self.get('selectOptionsType') === 'requiresInspection') {\n          if (selectValue === this.get('intl').t('common.yes')) {\n            self.set('filterValue', 'true');\n          }\n\n          if (selectValue === this.get('intl').t('common.no')) {\n            self.set('filterValue', 'false');\n          }\n        } else {\n          self.set('filterValue', selectValue);\n        }\n\n        self.set('selectedOption', selectValue);\n      },\n\n      setDate(date) {\n        if (!date[0]) {\n          this.set('filterValue', null);\n        }\n\n        if (date.length === 2) {\n          this.set('filterValue', [date[0].getTime(), date[1].getTime()]);\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-filters/filter/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Ql58GFDF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"fv\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"filterType\\\"]],\\\"select\\\"],null]],null,{\\\"statements\\\":[[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"allowClear\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"searchField\\\",\\\"loadingMessage\\\",\\\"onopen\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[27,\\\"readonly\\\",[[23,[\\\"selectedOption\\\"]]],null],[23,[\\\"selectOptions\\\"]],true,\\\"-\\\",[23,[\\\"searchField\\\"]],[27,\\\"t\\\",[\\\"common.loadingData\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setSelectOptions\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setSelectedOptionAndFilterValue\\\"],null]]],{\\\"statements\\\":[[4,\\\"if\\\",[[22,1,[\\\"name\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"filterType\\\"]],\\\"date\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"has-feedback\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"disabled\\\",\\\"onChange\\\",\\\"formatType\\\",\\\"class\\\"],[[27,\\\"if\\\",[[23,[\\\"filterValue\\\"]],[23,[\\\"filterValue\\\"]],null],null],[23,[\\\"pair\\\",\\\"value\\\",\\\"editionDisabled\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"filterValue\\\"]]],null]],null],\\\"shortDate\\\",\\\"form-control date-chooser\\\"]]],false],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"filterValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"form-control-feedback flatpickr-mobile-calendar\\\"],[9],[1,[27,\\\"fa-icon\\\",[\\\"calendar-days\\\",\\\"regular\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"filterValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"clear-date-btn\\\"],[9],[0,\\\"\\\\n                ×\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"filterValue\\\"]],null],null]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"filterType\\\"]],\\\"date-range\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"has-feedback\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"formatType\\\",\\\"class\\\",\\\"nativeFlatpickrOptions\\\"],[[27,\\\"if\\\",[[23,[\\\"filterValue\\\"]],[23,[\\\"filterValue\\\"]],null],null],[27,\\\"action\\\",[[22,0,[]],\\\"setDate\\\"],null],\\\"shortDate\\\",\\\"form-control\\\",[27,\\\"hash\\\",null,[[\\\"mode\\\"],[\\\"range\\\"]]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"filterValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"form-control-feedback flatpickr-mobile-calendar\\\"],[9],[1,[27,\\\"fa-icon\\\",[\\\"calendar-days\\\",\\\"regular\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"filterValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"clear-date-btn\\\"],[9],[0,\\\"\\\\n                ×\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"filterValue\\\"]],null],null]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\"],[[23,[\\\"filterValue\\\"]],\\\"text\\\",\\\"form-control\\\",[23,[\\\"placeholder\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/transports-table/transport-filters/filter/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-filters/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"jh6bCYAc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"filter\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"canCombineTransports\\\"]],[23,[\\\"canMultiArchive\\\"]]],null]],null,{\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"cell column-name-combine-width\\\"],[9],[0,\\\" \\\"],[10]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"filters\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"or\\\",[[27,\\\"is-in-list\\\",[[22,1,[\\\"name\\\"]],[23,[\\\"tableColumnNames\\\"]]],null],[27,\\\"and\\\",[[27,\\\"eq\\\",[[22,1,[\\\"type\\\"]],\\\"custom-field\\\"],null],[27,\\\"is-in-list\\\",[[22,1,[\\\"name\\\"]],[23,[\\\"cfColumnNames\\\"]]],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"data-column-name\\\",[28,[[22,1,[\\\"name\\\"]]]]],[12,\\\"class\\\",[28,[\\\"cell \\\",[22,1,[\\\"cssClass\\\"]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"shouldBeRendered\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"transports/transports-table/transport-filters/filter\\\",null,[[\\\"searchParams\\\",\\\"queryParams\\\",\\\"filterObj\\\",\\\"filterKeys\\\",\\\"filterType\\\",\\\"selectOptionsType\\\",\\\"archive\\\",\\\"transportType\\\"],[[23,[\\\"searchParams\\\"]],[23,[\\\"queryParams\\\"]],[22,1,[]],[22,1,[\\\"keys\\\"]],[22,1,[\\\"type\\\"]],[22,1,[\\\"selectOptionsType\\\"]],[27,\\\"if\\\",[[22,1,[\\\"useArchive\\\"]],[23,[\\\"archive\\\"]]],null],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                 \\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/transports-table/transport-filters/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-header/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: 'div',\n    classNames: Ember.A(['transport-table-header'])\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-header/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"8PG3ENu3\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[21,\\\"transports/save-filters-switch\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[1,[27,\\\"transport/custom-fields-filters\\\",null,[[\\\"transportType\\\",\\\"searchParams\\\",\\\"customFieldsVisibleInTable\\\"],[[23,[\\\"transportType\\\"]],[23,[\\\"searchParams\\\"]],[23,[\\\"customFieldsVisibleInTable\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\n\\\"],[1,[27,\\\"transports/transports-table/column-names\\\",null,[[\\\"archive\\\",\\\"transportType\\\",\\\"tableColumnNames\\\",\\\"customFieldsVisibleInTable\\\",\\\"canCombineTransports\\\",\\\"activeSortingKey\\\",\\\"changeSortingKey\\\"],[[23,[\\\"archive\\\"]],[23,[\\\"transportType\\\"]],[23,[\\\"tableColumnNames\\\"]],[23,[\\\"customFieldsVisibleInTable\\\"]],[23,[\\\"canCombineTransports\\\"]],[23,[\\\"activeSortingKey\\\"]],[23,[\\\"changeSortingKey\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[1,[27,\\\"transports/transports-table/transport-filters\\\",null,[[\\\"archive\\\",\\\"filters\\\",\\\"transportType\\\",\\\"searchParams\\\",\\\"queryParams\\\",\\\"canCombineTransports\\\",\\\"customFieldsVisibleInTable\\\",\\\"tableColumnNames\\\"],[[23,[\\\"archive\\\"]],[23,[\\\"filters\\\"]],[23,[\\\"transportType\\\"]],[23,[\\\"searchParams\\\"]],[23,[\\\"queryParams\\\"]],[23,[\\\"canCombineTransports\\\"]],[23,[\\\"customFieldsVisibleInTable\\\"]],[23,[\\\"tableColumnNames\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/transports-table/transport-header/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-row/component\", [\"exports\", \"apollo/config/environment\", \"apollo/mixins/checkpoint-mixin\"], function (_exports, _environment, _checkpointMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_checkpointMixin.default, {\n    truckTypeService: Ember.inject.service('truck-type-service'),\n\n    init() {\n      this._super(...arguments);\n\n      const transport = this.get('transport');\n      const masterTransportId = transport.get('combinedMasterTransport.id');\n\n      if (masterTransportId !== undefined) {\n        this.set('transport.loading', true);\n        this.get('store').findRecord('transport', masterTransportId).then(masterTransport => {\n          this.set('transport.loading', false);\n          this.set('masterTransport', masterTransport);\n        });\n      }\n    },\n\n    tagName: 'tr',\n    classNames: Ember.A(['transport-row']),\n    attributeBindings: Ember.A(['data-order-number']),\n    classNameBindings: Ember.A(['transport.isHighlighted:checked-transport-row']),\n\n    click() {\n      if (this.get('isTransportRowHighlightingEnabled')) {\n        this.toggleProperty('transport.isHighlighted');\n        this.updateHighlightedRow(this.get('transport.id'));\n      }\n    },\n\n    sessionAccount: Ember.inject.service('session-account'),\n    // uzywane w template\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    relationsTrackerService: Ember.inject.service('transport-relations.relations-tracker'),\n    multiArchiveTrackerService: Ember.inject.service(),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    deliveryService: Ember.inject.service('delivery-service'),\n    transport: null,\n    masterTransport: null,\n    action: '',\n    advice: Ember.computed('masterTransport', 'transport.advice', 'masterTransport.advice', function () {\n      const masterTransportOfCombinedTransportExists = this.get('masterTransport') !== null;\n\n      if (masterTransportOfCombinedTransportExists) {\n        return this.get('masterTransport.advice');\n      }\n\n      return this.get('transport.advice');\n    }),\n    maxCharactersInOrderNumberColumn: Ember.computed(function () {\n      return this.get('sessionAccount').getSettingValue('MAX_CHARACTERS_IN_ORDER_NUMBER_COLUMN');\n    }),\n    maxCharactersInProductsColumn: Ember.computed(function () {\n      return this.get('sessionAccount').getSettingValue('MAX_CHARACTERS_IN_INDEX_PRODUCTS_COLUMN');\n    }),\n    maxCharactersInTransportRelationColumn: Ember.computed(function () {\n      return this.get('sessionAccount').getSettingValue('MAX_CHARACTERS_IN_TRANSPORT_RELATION_COLUMN');\n    }),\n    courierErrorLabel: Ember.computed(function () {\n      return this.get('intl').t('common.error').toUpperCase();\n    }),\n    showCourierSpinner: Ember.computed('transport.{transaction,carrierCompany,getCouriersQuotes}', function () {\n      return !!(this.get('transport.transaction.content') && this.get('transport.carrierCompany.content') && this.get('transport.getCouriersQuotes'));\n    }),\n    transportNotReadyToPlan: Ember.computed('transport.readyToPlan', function () {\n      return !this.get('transport.readyToPlan');\n    }),\n    hasMasterTransport: Ember.computed('masterTransport', function () {\n      if (this.get('transport.isMasterTransportInTransportCombining')) {\n        return false;\n      }\n\n      return this.get('masterTransport') !== null;\n    }),\n    showLoadTimeWindowsOfMasterTransport: Ember.computed('hasMasterTransport', 'masterTransport.loadWarehouses.length', function () {\n      return this.get('hasMasterTransport') && this.get('masterTransport.loadSteps').any(step => !!step.get('timeWindow.id'));\n    }),\n    showUnloadTimeWindowsOfMasterTransport: Ember.computed('hasMasterTransport', 'masterTransport.unloadWarehouses.length', function () {\n      return this.get('hasMasterTransport') && this.get('masterTransport.unloadSteps').any(step => !!step.get('timeWindow.id'));\n    }),\n    masterTransportLoadTimeWindows: Ember.computed('masterTransport.timeWindows.@each.start', function () {\n      const masterTransport = this.get('masterTransport');\n      return masterTransport.get('loadSteps').filter(function (s) {\n        return s.get('timeWindow') && !s.get('timeWindow.deleted');\n      }).map(function (s) {\n        return s.get('timeWindow');\n      });\n    }),\n    masterTransportUnloadTimeWindows: Ember.computed('masterTransport.timeWindows.@each.start', function () {\n      const masterTransport = this.get('masterTransport');\n      return masterTransport.get('unloadSteps').filter(function (s) {\n        return s.get('timeWindow') && !s.get('timeWindow.deleted');\n      }).map(function (s) {\n        return s.get('timeWindow');\n      });\n    }),\n    transportHasEmailAdvice: Ember.computed('transport.emailAdvices.@each.sent', function () {\n      const emailAdvice = this._getCurrentEmailAdviceForTransport('ADVICE_DATA');\n\n      return emailAdvice ? emailAdvice.get('sent') : false;\n    }),\n    transportHasEmailAdviceCf: Ember.computed('transport.emailAdvices.@each.sent', function () {\n      const emailAdvice = this._getCurrentEmailAdviceForTransport('CF_DATA');\n\n      return emailAdvice ? emailAdvice.get('sent') : false;\n    }),\n    currentEmailAdviceEmail: Ember.computed('transport.emailAdvices.@each.expired', function () {\n      const emailAdvice = this._getCurrentEmailAdviceForTransport('ADVICE_DATA');\n\n      return emailAdvice ? emailAdvice.get('email') : Ember.String.htmlSafe('&nbsp;');\n    }),\n    currentEmailAdviceCfEmail: Ember.computed('transport.emailAdvices.@each.expired', function () {\n      const emailAdvice = this._getCurrentEmailAdviceForTransport('CF_DATA');\n\n      return emailAdvice ? emailAdvice.get('email') : null;\n    }),\n    _getCurrentEmailAdviceForTransport: function (type) {\n      let emailAdvice = null;\n\n      if (this.get('transport.completed')) {\n        emailAdvice = this.get('transport.emailAdvices').filter(ea => {\n          return ea && ea.get('type') === type;\n        }).sortBy('dateCreated').reverse().get('firstObject');\n      } else {\n        emailAdvice = this.get('transport.emailAdvices').filter(ea => {\n          return ea && ea.get('expired') === false && ea.get('type') === type;\n        }).get('firstObject');\n      }\n\n      return emailAdvice;\n    },\n    transportDescriptionMaxLength: Ember.computed(function () {\n      let maxChars = Number(this.get('sessionAccount').getSettingValue('TRANSPORT_DESCRIPTION_COLUMN_MAX_CHARS'));\n\n      if (!maxChars) {\n        maxChars = 100;\n      }\n\n      return maxChars;\n    }),\n    userHasEmailAdviceRole: Ember.computed(function () {\n      return this.get('transport').actionCanBePerformed('ROLE_CAN_SEND_EMAIL_ADVICE');\n    }),\n    userHasEmailAdviceCfRole: Ember.computed(function () {\n      return this.get('transport').actionCanBePerformed('ROLE_CAN_SEND_EMAIL_ADVICE_CF');\n    }),\n    userCanAddEmailAdvice: Ember.computed(function () {\n      return this.get('transport').actionCanBePerformed('ROLE_CAN_SEND_EMAIL_ADVICE');\n    }),\n    userCanAddEmailAdviceCf: Ember.computed(function () {\n      return this.get('transport').actionCanBePerformed('ROLE_CAN_SEND_EMAIL_ADVICE_CF');\n    }),\n    showCourierDocuments: Ember.computed('transport.courierOrder.{tntAccessCode,documents.length}', function () {\n      return this.get('transport.courierOrder.tntAccessCode') || this.get('transport.courierOrder.documents.length') > 0;\n    }),\n    showTNTCourierDocuments: Ember.computed('transport.courierOrder', function () {\n      return this.get('transport.courierOrder.tntAccessCode') !== null;\n    }),\n    showDHLCourierDocuments: Ember.computed('transport.courierOrder.documents.length', function () {\n      return this.get('transport.courierOrder.documents.length') > 0;\n    }),\n    _trackingListLinkFactory: function (courierName, trackingNumber) {\n      switch (courierName) {\n        case 'TNT':\n          return `https://www.tnt.com/express/en_gb/site/shipping-tools/tracking.html?utm_redirect=legacy_track&respCountry=pl&respLang=pl&navigation=1&page=1&sourceID=1&sourceCountry=ww&plazaKey=&refs=&requesttype=GEN&searchType=CON&cons=${trackingNumber}`;\n\n        case 'DHL EXPRESS':\n          return `https://mydhl.express.dhl/pl/pl/tracking.html#/results?id=${trackingNumber}`;\n\n        case 'DHL PL':\n          return `https://www.dhl.com/pl-en/home/tracking/tracking-parcel.html?submit=1&tracking-id=${trackingNumber}`;\n\n        default:\n          return null;\n      }\n    },\n    _getCourierName: function () {\n      return this.get('store').findRecord('transaction', this.get('transport.transaction.id')).then(courierTransaction => {\n        return courierTransaction.get('carrier.name').toUpperCase();\n      });\n    },\n    canMultiArchive: Ember.computed('transport', function () {\n      return this.get('sessionAccount').hasRole('ROLE_CAN_MULTI_ARCHIVE_TRANSPORTS');\n    }),\n    canEditFreight: Ember.computed('transport.{transaction.price}', function () {\n      const hasAuthority = this.get('transport').actionCanBePerformed('EDIT_TRANSACTION_FREIGHT');\n      const price = this.get('transport.transaction.price');\n      const hasPrice = typeof price === 'number';\n      return hasAuthority && hasPrice;\n    }),\n    showPassCourierButton: Ember.computed('transport.{activeAuction,transaction.id}', function () {\n      const transportHasNoActivePassingAction = !this.get('transport.transaction.id') && !this.get('transport.activeAuction');\n      const canPassToCourier = this.get('transport').actionCanBePerformed('PASS_COURIER');\n      const transportHasCourierQuotesEnabled = this.get('transport.getCouriersQuotes');\n      return transportHasNoActivePassingAction && canPassToCourier && transportHasCourierQuotesEnabled;\n    }),\n    showAutoPassButton: Ember.computed('transport.{activeAuction,transaction.id,transportType}', function () {\n      const hasActiveTransaction = !!this.get('transport.transaction.id');\n      const transportHasNoActiveAuction = !this.get('transport.activeAuction');\n      const canAutoPass = this.get('transport').actionCanBePerformed('ROLE_AUTOMATIC_PASS_TRANSPORT_TO_ROUTE_OFFERS');\n      const properTransportType = this.get('transport.transportType.allowsPriceList');\n      const transactionSetting = this.get('sessionAccount').getTransactionSetting(this.get('transport.transportType'));\n      const autoPassOnTransportCreation = transactionSetting ? transactionSetting.get('autoPassOnTransportCreation') : false;\n      return !autoPassOnTransportCreation && !hasActiveTransaction && canAutoPass && properTransportType && transportHasNoActiveAuction;\n    }),\n    showPassTransportButton: Ember.computed('transport.{transaction.id,activeAuction,transportType,checkpoints.@each.executionDate}', function () {\n      const transportType = this.get('transport.transportType');\n      const transactionSetting = this.get('sessionAccount').getTransactionSetting(transportType);\n      const canChooseCarrierFromTransportTable = transactionSetting ? transactionSetting.get('canChooseCarrierFromTransportTable') : false;\n      const transportHasNoActivePassingAction = !this.get('transport.transaction.id') && !this.get('transport.activeAuction');\n      const passingActionCanBePerformed = this.get('transport').actionCanBePerformed('PASS_TRANSPORT');\n      return transportHasNoActivePassingAction && passingActionCanBePerformed && canChooseCarrierFromTransportTable;\n    }),\n    showAcceptAndRejectTransactionButton: Ember.computed('transport.{transaction.content,carrierCompany.id,checkpoints.@each.executionDate,transaction.carrier.id}', function () {\n      const carrierCompanyId = this.get('transport.transaction.carrier.id');\n      const currentCompanyId = this.get('sessionAccount.currentUser.company.id');\n      const isPrincipalUser = this.get('sessionAccount.currentUser.isPrincipal');\n      return this.get('transport.transaction.content') && !this.get('transport.carrierCompany.id') && this.get('transport').actionCanBePerformed('ACCEPT_AND_REJECT_TRANSPORT') && (carrierCompanyId === currentCompanyId || isPrincipalUser);\n    }),\n    disableAcceptAndRejectButton: Ember.computed('sessionAccount.{sessionAccount.currentUser.company,currentUser.company.partnershipType}', function () {\n      const partnershipType = this.get('sessionAccount').get('currentUser').get('company.partnershipType.name');\n      return partnershipType === 'SUPPLIER';\n    }),\n    showPencil: Ember.computed('advice', function () {\n      return this.get('advice') && this.get('sessionAccount').getPositiveAuthorityRestrictionsByTransportTypeId(this.get('transport.transportType.id')).filter(ar => {\n        return ['MOVE_ADVICE_WINDOW'].includes(ar.get('authority.name'));\n      });\n    }),\n    transactionWaitingForAcceptance: Ember.computed('transport.{transaction.id,carrierCompany.id}', function () {\n      const positiveAuthorityRestrictions = this.get('transport.transportType.content').findPositiveAuthorityRestrictionsByActionType('PASS_TRANSPORT', this.get('transport.transportType.id'));\n      return this.get('transport.transaction.id') && positiveAuthorityRestrictions.get('length') !== 0 && !this.get('transport.carrierCompany.id');\n    }),\n    indexesTransportNumbersAsArray: Ember.computed('transport.indexes', function () {\n      return this.get('transport.indexes').filterBy('transportNumber').getEach('transportNumber').uniq();\n    }),\n    indexesDocumentNumbersAsArray: Ember.computed('transport.indexes', function () {\n      return this.get('transport.indexes').filterBy('documentNumber').getEach('documentNumber').uniq();\n    }),\n    showWeightReceiptDownloadButton: Ember.computed('transport.{warehousesWithWeightIncluded.length,weighingTasks.length,transportType.generatingWeightReceiptEnabled}', function () {\n      return this.get('sessionAccount.currentUser.roleGroup.isGuard') && this.get('transport.warehousesWithWeighingIncluded.length') > 0 && this.get('transport.weighingTasks.length') > 0 && this.get('transport.transportType.generatingWeightReceiptEnabled');\n    }),\n    adviceTrailerRegistrationNumber: Ember.computed('advice', 'advice.trailerRegistrationNumber', function () {\n      return this.get('advice').get('trailerRegistrationNumber');\n    }),\n    adviceCarRegistrationNumber: Ember.computed('advice', 'advice.carRegistrationNumber', function () {\n      return this.get('advice').get('carRegistrationNumber');\n    }),\n    allConfirmedTaskGuardCheckpoints: Ember.computed('transport.checkpointsThatCanBeConfirmedByGuardRole.@each.executionDate', 'transportType.guardUniqueSortedTasks', function () {\n      return this.get('transport.checkpointsThatCanBeConfirmedByGuardRole').filterBy('executionDate').sortBy('executionDate').reverse();\n    }),\n    uniqueTaskGuardCheckpoints: Ember.computed('transport.{checkpointsThatCanBeConfirmedByGuard,checkpointsThatCanBeConfirmedByGuard.[],checkpoints.@each.executionDate}', 'transportType.guardUniqueSortedTasks', function () {\n      const currentUserWarehousesIds = this.get('sessionAccount').get('currentUser.warehouses').getEach('id');\n      const checkpoints = Ember.A();\n      this.get('transportType.guardUniqueSortedTasks').forEach(t => {\n        let checkpoint = this.get('transport.checkpointsThatCanBeConfirmedByGuard').find(c => c.get('task.alias') === t.get('alias') && !c.get('executionDate'));\n\n        if (!checkpoint) {\n          checkpoint = this.get('transport.checkpointsThatCanBeConfirmedByGuard').find(c => c.get('task.alias') === t.get('alias') && c.get('executionDate'));\n        }\n\n        if (!checkpoint) {\n          return;\n        }\n\n        const cp = Ember.ObjectProxy.create({\n          content: checkpoint,\n          task: t\n        });\n\n        if (currentUserWarehousesIds.includes(cp.get('step.warehouse.id'))) {\n          checkpoints.pushObject(cp);\n        }\n      });\n      return checkpoints.sortBy('task.taskGroupIdentifier', 'task.idxInGroup').filterBy('task.enabled');\n    }),\n    uniqueTaskGuardCheckpointsIds: Ember.computed('transport.{checkpointsThatCanBeConfirmedByGuardRole,checkpointsThatCanBeConfirmedByGuard.[],checkpoints.@each.executionDate}', 'transportType.guardUniqueSortedTasks', function () {\n      return this.get('uniqueTaskGuardCheckpoints').getEach('id');\n    }),\n    showSingleColumnLayout: Ember.computed('', function () {\n      return this.get('transport').get('transportType.guardCheckpointConfirmationSingleColumnLayout');\n    }),\n    showTransportDetails: Ember.computed('', function () {\n      return this.get('sessionAccount').hasRole('ACCESS_TO_TRANSPORT_DETAILS');\n    }),\n    showProducts: Ember.computed('transport.products', function () {\n      const productsArr = this.get('transport.products');\n      return productsArr ? productsArr.join(',').replaceAll(',', ', \\n') : '';\n    }),\n\n    _openDocumentWindow(documentUrl, orderId) {\n      return window.open(_environment.default.serverURL + documentUrl + orderId + '?token=' + this.get('sessionAccount').get('token'), '_blank');\n    },\n\n    combiningTransportsCanBeAdded: Ember.computed('transport', function () {\n      return this.get('transport').actionCanBePerformed('ROLE_CAN_ADD_TRANSPORT_COMBINING_RELATION');\n    }),\n    hasToWaitForCanBeAdded: Ember.computed('transport', function () {\n      return this.get('transport').actionCanBePerformed('ROLE_CAN_ADD_HAS_TO_WAIT_FOR_RELATION');\n    }),\n    showInspectionButton: Ember.computed('transport.checkpoints.@each.executionDate', function () {\n      return this.get('transport').actionCanBePerformed('ROLE_ACCESS_TO_INSPECTION_BUTTON') && this.get('transport.requiresInspection');\n    }),\n    showFillInspectionText: Ember.computed('transport.customFieldPairs.@each.{definition,value}', 'transport.lastUpdated', function () {\n      const customFields = this.get('transport.customFields');\n      const filteredCustomFields = customFields.filter(cf => {\n        return cf.get('definition.visibleInInspectionPanelSection') && cf.get('definition.options').any(option => option.allowsInspectionPanel);\n      });\n      if (filteredCustomFields.length === 0) return true;\n      return filteredCustomFields.any(cf => {\n        return cf.get('option.name') === undefined;\n      });\n    }),\n    filledInspectionText: Ember.computed('transport.customFieldPairs.@each.{definition,value}', 'transport.lastUpdated', function () {\n      const customFields = this.get('transport.customFields');\n      return customFields.filter(cf => {\n        return cf.get('definition.visibleInInspectionPanelSection') && cf.get('definition.options').any(option => option.allowsInspectionPanel);\n      }).get('firstObject.option.name');\n    }),\n    combinedMasterTransportTimeWindows: Ember.computed('transport.timeWindows.length', function () {\n      const combinedMasterTransportId = this.get('transport.combinedMasterTransport.id');\n      return this.get('store').findRecord('transport', combinedMasterTransportId).then(transport => {\n        return transport.get('loadTimeWindows');\n      });\n    }),\n    showMultiSelectCheckbox: Ember.computed('showMultiArchiveCheckbox', 'showRelationCheckbox', function () {\n      return this.get('showMultiArchiveCheckbox') || this.get('showRelationCheckbox');\n    }),\n    showMultiArchiveCheckbox: Ember.computed('transport', function () {\n      return this.get('transport').actionCanBePerformed('ROLE_CAN_MULTI_ARCHIVE_TRANSPORTS');\n    }),\n    deliveriesNetWeightWithColor: Ember.computed('transport.deliveries.@each.netWeight', function () {\n      return this.get('transport.deliveries').map(d => {\n        return {\n          weight: d.get('netWeight'),\n          color: d.get('color')\n        };\n      });\n    }),\n    deliveriesIncoterms: Ember.computed('transport.deliveries.@each.incoterms', function () {\n      const incoterms = this.get('transport.deliveries').map(d => {\n        return d.get('incoterms');\n      });\n      return incoterms ? incoterms.toString() : '';\n    }),\n    showRelationCheckbox: Ember.computed('availableRelations', 'canCombineTransports', 'relationsTrackerService.currentTransports.{[],length,firstUnconfirmedCheckpoint}', 'transport.{masterTransports.length,relatedToTransports.length,transportType.alias,firstUnconfirmedCheckpoint}', function () {\n      if (this.get('transport.completed') || this.get('transport.archived') || this.get('transport.deleted')) {\n        return false;\n      }\n\n      const masterTransportTypes = Ember.A([]);\n      const relatedTransportTypes = Ember.A([]);\n      const availableRelations = this.get('availableRelations');\n\n      if (!availableRelations) {\n        return false;\n      }\n\n      availableRelations.forEach(r => {\n        masterTransportTypes.pushObject(r.primaryTransportType.get('id'));\n        relatedTransportTypes.pushObject(r.subordinateTransportType.get('id'));\n      });\n\n      if (this.get('relationsTrackerService.currentTransports.length') === 0) {\n        // Brak zaznaczonych transportów, pokazujemy checkbox przy wszystkich typach które maja opcje relacji i zezwalaja na to uprawnienia\n        const correctTransportType = masterTransportTypes.includes(this.get('transport.transportType.id')) || relatedTransportTypes.includes(this.get('transport.transportType.id'));\n        const actionCanBePerformed = this.get('transport').actionCanBePerformed('ROLE_CAN_ADD_TRANSPORT_COMBINING_RELATION') || this.get('transport').actionCanBePerformed('ROLE_CAN_ADD_HAS_TO_WAIT_FOR_RELATION');\n        return this.get('canCombineTransports') && correctTransportType && actionCanBePerformed;\n      } // Zaznaczony minimum 1 transport\n\n\n      const masterTransport = this.get('relationsTrackerService.currentTransports.firstObject');\n\n      if (!masterTransport) {\n        return false;\n      }\n\n      const masterTransportType = masterTransport.get('transportType');\n\n      if (this.get('relationsTrackerService.currentTransports').some(t => {\n        return t.get('id') === this.get('transport.id');\n      })) {\n        // Nie znikamy czekboxow zaznaczonych już transportów\n        return true;\n      }\n\n      const currentTransportType = this.get('transport.transportType');\n      const currentRelTransportCombining = availableRelations.find(relation => {\n        const transportCombiningRelation = relation.get('alias') === 'TRANSPORT_COMBINING';\n\n        if (!transportCombiningRelation) {\n          return false;\n        }\n\n        const transportsToCombineIsTheSameTransportType = this.get('relationsTrackerService.currentTransports').every(transport => {\n          return transport.get('transportType.id') === currentTransportType.get('id');\n        });\n        const primaryTransportTypeIsTheSameAsCurrentTransportType = relation.get('primaryTransportType.id') === currentTransportType.get('id');\n        const subordinateTransportTypeIsTheSameAsCurrentTransportType = relation.get('subordinateTransportType.id') === currentTransportType.get('id');\n\n        if (transportsToCombineIsTheSameTransportType) {\n          return primaryTransportTypeIsTheSameAsCurrentTransportType && subordinateTransportTypeIsTheSameAsCurrentTransportType;\n        }\n\n        const primaryTransportTypeIsTheSameAsMasterTransportType = relation.get('primaryTransportType.id') === masterTransportType.get('id');\n        const subordinateTransportTypeIsTheSameAsMasterTransportType = relation.get('subordinateTransportType.id') === masterTransportType.get('id');\n        return (subordinateTransportTypeIsTheSameAsCurrentTransportType || primaryTransportTypeIsTheSameAsCurrentTransportType) && (primaryTransportTypeIsTheSameAsMasterTransportType || subordinateTransportTypeIsTheSameAsMasterTransportType);\n      });\n      const currentRelHasToWaitFor = availableRelations.find(relation => {\n        if (this.get('relationsTrackerService.currentTransports').every(t => {\n          return t.get('transportType.id') === currentTransportType.get('id');\n        })) {\n          return relation.get('primaryTransportType.id') === currentTransportType.get('id') && relation.get('subordinateTransportType.id') === currentTransportType.get('id') && relation.get('alias') === 'HAS_TO_WAIT_FOR';\n        }\n\n        return (relation.get('subordinateTransportType.id') === currentTransportType.get('id') || relation.get('primaryTransportType.id') === currentTransportType.get('id')) && (relation.get('primaryTransportType.id') === masterTransportType.get('id') || relation.get('subordinateTransportType.id') === masterTransportType.get('id')) && relation.get('alias') === 'HAS_TO_WAIT_FOR';\n      });\n      let transportsCanBeCombined = this.get('combiningTransportsCanBeAdded') && !!currentRelTransportCombining;\n      let transportsCanBeRelated = this.get('hasToWaitForCanBeAdded') && !!currentRelHasToWaitFor;\n      const loadWhs = this.get('transport.loadWarehouses');\n      const unloadWhs = this.get('transport.unloadWarehouses');\n      const masterLoadWhs = masterTransport.get('loadWarehouses');\n      const masterUnloadWhs = masterTransport.get('unloadWarehouses');\n\n      if (transportsCanBeCombined) {\n        // Wyświetlamy checkbox, jeśli jest dostępna i możliwa do dododania relcja typu TRANSPORT_COMBINING,\n        // dla zaznaczonego transportu głównego i danego transportu.\n        if (currentRelTransportCombining.get('requiresTheSameWarehouseInTheSameStepType')) {\n          // Jeśli relacja ma flage requiresTheSameWarehouseInTheSameStepType,\n          // to checkbox pokazujemy, tylko jeśli transporty chociaz jeden ten sam magazyn w tych samych typach stepów.\n          if (loadWhs && loadWhs.length > 0) {\n            const ids = [];\n            masterLoadWhs.forEach(wh => {\n              if (wh.get('id')) {\n                ids.pushObject(wh.get('id'));\n              }\n            });\n\n            if (transportsCanBeCombined && loadWhs.some(wh => ids.includes(wh.get('id')))) {\n              return true;\n            }\n          }\n\n          if (unloadWhs && unloadWhs.length > 0) {\n            const ids = [];\n            masterUnloadWhs.forEach(wh => {\n              if (wh.get('id')) {\n                ids.pushObject(wh.get('id'));\n              }\n            });\n\n            if (transportsCanBeCombined && unloadWhs.some(wh => ids.includes(wh.get('id')))) {\n              return true;\n            }\n          }\n\n          transportsCanBeCombined = false;\n        }\n      }\n\n      if (transportsCanBeRelated) {\n        // Wyświetlamy checkbox, jeśli jest dostępna i możliwa do dododania relcja typu HAS_TO_WAIT_FOR,\n        // dla zaznaczonego transportu głównego i danego transportu.\n        if (currentRelHasToWaitFor.get('requiresTheSameWarehouseInDifferentStepType')) {\n          // Jeśli relacja ma flage requiresTheSameWarehouseInDifferentStepType,\n          // to checkbox pokazujemy, tylko jeśli transporty chociaz jeden ten sam magazyn w przeciwnych typach stepów.\n          if (loadWhs && loadWhs.length > 0) {\n            const ids = [];\n            masterUnloadWhs.forEach(wh => {\n              if (wh.get('id')) {\n                ids.pushObject(wh.get('id'));\n              }\n            });\n\n            if (transportsCanBeRelated && loadWhs.some(wh => ids.includes(wh.get('id')))) {\n              return true;\n            }\n          }\n\n          if (unloadWhs && unloadWhs.length > 0) {\n            const ids = [];\n            masterLoadWhs.forEach(wh => {\n              if (wh.get('id')) {\n                ids.pushObject(wh.get('id'));\n              }\n            });\n\n            if (transportsCanBeRelated && unloadWhs.some(wh => ids.includes(wh.get('id')))) {\n              return true;\n            }\n          }\n\n          transportsCanBeRelated = false;\n        }\n      }\n\n      return transportsCanBeCombined || transportsCanBeRelated;\n    }),\n    _transportOrRelatedTransportWithHighestNumOfWindows: function (transport) {\n      if (!transport.get('isCombinedTransport')) {\n        return transport;\n      }\n\n      return transport.get('allCombinedTransports').filterBy('isRelatedTransportInTransportCombining').sortBy('stepsWithWarehouse.length').get('lastObject');\n    },\n    latestManualNotification: Ember.computed('transport.manualNotification.id', function () {\n      return this.get('transport.manualNotification');\n    }),\n\n    _addToRelationsTracker(selectedTransport) {\n      if (!this.get('showRelationCheckbox')) {\n        return;\n      }\n\n      const alreadyExists = this.relationsTrackerService.findExisting(selectedTransport);\n\n      if (alreadyExists) {\n        this.relationsTrackerService.removeRelation(selectedTransport);\n        return;\n      }\n\n      this.relationsTrackerService.addRelation(selectedTransport);\n    },\n\n    _addToMultiArchiveTracker(selectedTransport) {\n      if (!this.get('showMultiArchiveCheckbox')) {\n        return;\n      }\n\n      const alreadyExists = this.multiArchiveTrackerService.findExisting(selectedTransport);\n\n      if (alreadyExists) {\n        this.multiArchiveTrackerService.removeTransport(selectedTransport);\n        return;\n      }\n\n      this.multiArchiveTrackerService.addTransport(selectedTransport);\n    },\n\n    checkboxState: Ember.computed('transport.id', function () {\n      const selectedTransport = this.get('transport');\n      return this.relationsTrackerService.findExisting(selectedTransport) || this.multiArchiveTrackerService.findExisting(selectedTransport);\n    }),\n    showTransactionRejectedLabel: Ember.computed('transport.{lastRejectedTransactionCarrierShortName,transaction.id}', function () {\n      return this.get('transport.lastRejectedTransactionCarrierShortName') && !this.get('transport.carrierCompany.id') && this.get('sessionAccount.currentUser.isPrincipal');\n    }),\n    vehicleTruckType: Ember.computed('transport.{advice.truck.vehicleMainSection.truckType}', function () {\n      return this.get('transport.advice.truck.vehicleMainSection.truckType.nameInAppropriateLanguage');\n    }),\n    showRequireAcceptanceInfo: Ember.computed('transport.{activeAuction.hasPreferredOffer,transaction.id}', function () {\n      return this.get('transport.activeAuction.hasPreferredOffer') && !this.get('transaction.id') && this.get('sessionAccount').get('isPrincipal');\n    }),\n    surcharges: Ember.computed('transport.surchargeValues', function () {\n      return this.get('transport.surchargeValues');\n    }),\n    showSumString: Ember.computed('surcharges.length', function () {\n      return this.get('surcharges.length') > 0;\n    }),\n    actions: {\n      toggleTransportPresenceInCheckboxTrackersLists: function () {\n        this.set('checkboxState', !this.get('checkboxState'));\n        const selectedTransport = this.get('transport');\n\n        if (this.get('checkboxState')) {\n          this._addToRelationsTracker(selectedTransport);\n\n          this._addToMultiArchiveTracker(selectedTransport);\n\n          selectedTransport.set('transportType.transportsTabVisited', false);\n          return;\n        }\n\n        this.relationsTrackerService.removeRelation(selectedTransport);\n      },\n      editFreight: function (transport) {\n        if (!this.get('canEditFreight')) {\n          return;\n        }\n\n        const transaction = this.get('store').peekRecord('transaction', transport.get('transaction.id'));\n        const model = {\n          transaction,\n          initialCurrency: transaction.get('currency')\n        };\n        this.set('action', 'showModal');\n        this.sendAction('action', 'transaction.modals.edit-freight', model);\n      },\n      showTransportModal: async function () {\n        const transport = this.get('transport');\n        this.set('openTransportId', transport.get('id'));\n        this.get('transport.customFields').forEach(cf => cf.set('changeMessage', null));\n\n        transport._createAmountOfCover();\n\n        if (this.get('sessionAccount.currentUser.company.isPrincipal')) {\n          await this.get('deliveryService').reloadDeliveries(transport);\n          await this.truckTypeService.setTruckTypes(transport);\n        }\n\n        this.set('action', 'showModal');\n        this.sendAction('action', 'transports.modals.create-transport', transport);\n      },\n      showModal: function (templateName = 'transports.modals.create-transport', model = null) {\n        const transport = this.get('transport');\n\n        if (transport.get('id')) {\n          transport.reload();\n        }\n\n        transport._createAmountOfCover();\n\n        this.set('action', 'showModal');\n        this.sendAction('action', templateName, model || transport);\n      },\n      goToWarehouse: function (step) {\n        this.goToWarehouse(step);\n      },\n      confirm: function (checkpoint) {\n        if (checkpoint.get('task.canConfirmPrevious') && checkpoint.get('id') !== this.get('transport.firstUnconfirmedCheckpoint.id') && !confirm(this.get('intl').t('task.canConfirmPreviousConfirm'))) {\n          return;\n        }\n\n        this.confirm(checkpoint);\n      },\n      revoke: function (checkpoint) {\n        this.revoke(checkpoint);\n      },\n\n      generateWeightReceipt() {\n        this.set('action', 'generateWeightReceipt');\n        this.sendAction('action', this.get('transport.id'));\n      },\n\n      addNote(noteContent, transportId) {\n        this.set('action', 'addNote');\n        this.sendAction('action', noteContent, transportId);\n      },\n\n      fileUploadSuccess(transportId) {\n        this.set('action', 'fileUploadSuccess');\n        this.sendAction('action', transportId);\n      },\n\n      deleteFile(file) {\n        this.set('action', 'deleteFile');\n        this.sendAction('action', file);\n      },\n\n      fileUploadFail: function (transportId) {\n        this.set('action', 'fileUploadFail');\n        this.sendAction('action', transportId);\n      },\n      acceptTransaction: function () {\n        const acceptTransactionButton = $('.accept-transaction-button');\n        acceptTransactionButton.button('loading');\n        const self = this;\n        const transaction = self.get('transport.transaction.content');\n        transaction.set('isRejected', false);\n        transaction.save().then(() => {\n          acceptTransactionButton.button('reset');\n          console.debug(`User has accepted transport ${self.get('transport.id')}.`);\n          self.set('transport.transportType.forcedPollRequestTime', new Date().getTime());\n        }).catch(response => {\n          acceptTransactionButton.button('reset');\n          alert(response.errors[0]);\n        });\n      },\n      rejectTransaction: function () {\n        const rejectTransactionButton = $('.reject-transaction-button');\n        rejectTransactionButton.button('loading');\n        const self = this;\n        const transaction = self.get('transport.transaction.content');\n        transaction.set('isRejected', true);\n        transaction.save().then(() => {\n          rejectTransactionButton.button('reset');\n          console.debug(`User has rejected transport ${self.get('transport.id')}.`);\n          self.set('transport.transportType.forcedPollRequestTime', new Date().getTime());\n        }).catch(response => {\n          rejectTransactionButton.button('reset');\n          alert(response.errors[0]);\n        });\n      },\n      getCourierDocument: function (documentType, documentId) {\n        const orderId = this.get('transport.courierOrder.id');\n\n        switch (documentType) {\n          case 'MANIFEST':\n            Ember.run.once(this, this._openDocumentWindow('/courier/getManifest/', orderId));\n            break;\n\n          case 'LABEL':\n            Ember.run.once(this, this._openDocumentWindow('/courier/getLabel/', orderId));\n            break;\n\n          case 'CONNOTE':\n            Ember.run.once(this, this._openDocumentWindow('/courier/getConnote/', orderId));\n            break;\n\n          case 'DHL':\n            Ember.run.once(this, this._openDocumentWindow('/courier/getDhlCourierDocument/', orderId + '/' + documentId));\n            break;\n\n          default:\n            console.error('Wrong documentType to download!');\n        }\n      },\n      getCourierOrderErrors: function () {\n        this.set('action', 'showModal');\n        const transport = this.get('transport');\n        const model = {\n          transport\n        };\n        this.sendAction('action', 'transaction.modals.courier-errors', model);\n      },\n      openEmailAdviceModal: function (type) {\n        this.set('action', 'showModal');\n        const transport = this.get('transport');\n\n        const emailAdvice = this._getCurrentEmailAdviceForTransport(type);\n\n        const model = this.get('store').createRecord('emailAdvice', {\n          transport,\n          type\n        });\n\n        if (emailAdvice) {\n          model.set('email', emailAdvice.get('email'));\n          model.set('rodoAccepted', emailAdvice.get('rodoAccepted'));\n          model.set('mobilePhonePrefix', emailAdvice.get('mobilePhonePrefix'));\n          model.set('mobilePhoneNumber', emailAdvice.get('mobilePhoneNumber'));\n          model.set('sent', emailAdvice.get('sent'));\n          model.set('edit', true);\n        }\n\n        this.sendAction('action', 'transports.modals.email-advice', model);\n      },\n      showInspecionModal: function (transport) {\n        this.set('action', 'showModal');\n        this.sendAction('action', 'components.inspection-modal', transport);\n      },\n      sendEmailNotification: async function (id) {\n        this.set('manualNotificationIsLoading', true);\n        const transport = this.get('transport');\n        const path = this.get('apolloApiService').APOLLO_API.MANUAL_NOTIFICATIONS.SEND;\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, {\n            manualNotificationId: id\n          });\n\n          if (response.ok) {\n            transport.reload().then(() => this.set('manualNotificationIsLoading', false));\n          } else {\n            console.error(`Błąd podczas wysyłania powiadomienia ręcznęgo do transportu id ${transport.id}`);\n            this.set('manualNotificationIsLoading', false);\n          }\n        } catch (error) {\n          console.error(`Błąd podczas wysyłania powiadomienia ręcznęgo do transportu id ${transport.id}`);\n          this.set('manualNotificationIsLoading', false);\n          console.error(error);\n        }\n      },\n      navigateToCourierTracking: async function () {\n        const courierName = this.get('transport.transaction.carrier.name');\n        const trackingNumber = this.get('transport.courierOrder.trackingNumber');\n\n        if (courierName) {\n          console.debug('Znaleźliśmy dane transakcji w keszu embera...');\n          window.location.replace(this._trackingListLinkFactory(courierName, trackingNumber));\n        }\n\n        console.debug('Nie znaleźliśmy danych transakcji w keszu embera, pobieramy z bazy...');\n        const courierNameFromDb = await this._getCourierName();\n\n        if (!courierNameFromDb) {\n          return;\n        }\n\n        window.location.replace(this._trackingListLinkFactory(courierNameFromDb, trackingNumber));\n      },\n      openCreateAdviceModal: function (transport) {\n        this.openCreateAdviceModal(transport);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-row/guard-checkpoint-fields/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service(),\n    tagName: '',\n    actions: {\n      confirm(checkpoint) {\n        this.set('action', 'confirm');\n        this.sendAction('action', checkpoint);\n      },\n\n      reject(checkpoint) {\n        this.set('action', 'reject');\n        this.sendAction('action', checkpoint);\n      },\n\n      showModal(templateName, model) {\n        this.set('action', 'showModal');\n        this.sendAction('action', templateName, model);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-row/guard-checkpoint-fields/confirmed-checkpoint-text/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({});\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-row/guard-checkpoint-fields/confirmed-checkpoint-text/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"MVMc6Ig/\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"executionDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"my-format-date\\\",[[23,[\\\"checkpoint\\\",\\\"executionDate\\\"]],\\\"defaultDateTime\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"checkpoint\\\",\\\"task\\\",\\\"weighingIncluded\\\"]],[23,[\\\"checkpoint\\\",\\\"step\\\",\\\"warehouse\\\",\\\"weighingIncluded\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transport.weight\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"checkpoint\\\",\\\"currentWeight\\\",\\\"readOut\\\"]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transport.weightSection.unit\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"checkpoint\\\",\\\"hasUnsynchronizedWeight\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-exclamation-circle no-horizontal-padding center-icon-in-form\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transport.weightSection.notSynchronized\\\"],null]]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"checkpoint\\\",\\\"showNetWeight\\\"]],[27,\\\"not\\\",[[27,\\\"eq\\\",[[27,\\\"warehouse-net-weight\\\",null,[[\\\"weights\\\",\\\"warehouse\\\"],[[23,[\\\"transport\\\",\\\"enabledWeights\\\"]],[23,[\\\"checkpoint\\\",\\\"step\\\",\\\"warehouse\\\"]]]]],\\\"NaN\\\"],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.weightSection.netWeight\\\"],null],false],[0,\\\": \\\"],[1,[27,\\\"warehouse-net-weight\\\",null,[[\\\"weights\\\",\\\"warehouse\\\"],[[23,[\\\"transport\\\",\\\"enabledWeights\\\"]],[23,[\\\"checkpoint\\\",\\\"step\\\",\\\"warehouse\\\"]]]]],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"transport.weightSection.unit\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/transports-table/transport-row/guard-checkpoint-fields/confirmed-checkpoint-text/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-row/guard-checkpoint-fields/guard-checkpoint-button/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    actions: {\n      confirm(checkpoint) {\n        this.set('action', 'confirm');\n        this.sendAction('action', checkpoint);\n      },\n\n      reject(checkpoint) {\n        this.set('action', 'reject');\n        this.sendAction('action', checkpoint);\n      },\n\n      showModal(templateName, model) {\n        this.set('action', 'showModal');\n        this.sendAction('action', templateName, model);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-row/guard-checkpoint-fields/guard-checkpoint-button/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"xf9P80AK\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"confirm-statuses\\\",null,[[\\\"transport\\\",\\\"checkpoint\\\",\\\"asPlainTemplate\\\",\\\"confirm\\\",\\\"showModal\\\",\\\"isFromGuardTable\\\",\\\"currentGuardCheckpointsIds\\\",\\\"confirmedGuardCheckpoints\\\"],[[23,[\\\"checkpoint\\\",\\\"transport\\\"]],[23,[\\\"checkpoint\\\"]],[23,[\\\"asPlainTemplate\\\"]],\\\"confirm\\\",\\\"showModal\\\",true,[23,[\\\"uniqueTaskGuardCheckpointsIds\\\"]],[23,[\\\"allConfirmedTaskGuardCheckpoints\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/transports-table/transport-row/guard-checkpoint-fields/guard-checkpoint-button/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-row/guard-checkpoint-fields/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"NFPuNFHX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"checkpoint\\\",\\\"confirmedCheckpoint\\\",\\\"checkpoint\\\",\\\"confirmedCheckpoint\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleGroup\\\",\\\"isGuard\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"currentGuardCheckpoints\\\"]],[23,[\\\"showSingleColumnLayout\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"currentGuardCheckpoints\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\"],[12,\\\"data-column-name\\\",[28,[[22,3,[\\\"task\\\",\\\"alias\\\"]]]]],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl4 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"GUARD\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,3,[\\\"shouldConfirmationButtonBeVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"transports/transports-table/transport-row/guard-checkpoint-fields/guard-checkpoint-button\\\",null,[[\\\"checkpoint\\\"],[[22,3,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"confirmedGuardCheckpoints\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,4,[\\\"task\\\",\\\"alias\\\"]],[22,3,[\\\"task\\\",\\\"alias\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[9],[1,[27,\\\"transports/transports-table/transport-row/guard-checkpoint-fields/confirmed-checkpoint-text\\\",null,[[\\\"checkpoint\\\"],[[22,4,[]]]]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[4]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"not\\\",[[27,\\\"and\\\",[[23,[\\\"currentGuardCheckpointsIds\\\"]],[23,[\\\"showSingleColumnLayout\\\"]]],null]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"checkpointsThatCanBeConfirmedByGuardRole\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\"],[12,\\\"data-column-name\\\",[28,[[22,1,[\\\"task\\\",\\\"alias\\\"]]]]],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl4 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"GUARD\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[[22,1,[\\\"id\\\"]],[23,[\\\"currentGuardCheckpointsIds\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,1,[\\\"shouldConfirmationButtonBeVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"transports/transports-table/transport-row/guard-checkpoint-fields/guard-checkpoint-button\\\",null,[[\\\"checkpoint\\\"],[[22,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"confirmedGuardCheckpoints\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,2,[\\\"task\\\",\\\"alias\\\"]],[22,1,[\\\"task\\\",\\\"alias\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[9],[1,[27,\\\"transports/transports-table/transport-row/guard-checkpoint-fields/confirmed-checkpoint-text\\\",null,[[\\\"checkpoint\\\"],[[22,2,[]]]]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/transports-table/transport-row/guard-checkpoint-fields/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-row/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"2qcSmy7H\",\n    \"block\": \"{\\\"symbols\\\":[\\\"weightAndColor\\\",\\\"definition\\\",\\\"indexTransportNumber\\\",\\\"indexDocNumber\\\",\\\"worker\\\",\\\"worker\\\",\\\"doc\\\",\\\"index\\\",\\\"step\\\",\\\"quantity\\\",\\\"packageName\\\",\\\"unloadStep\\\",\\\"step\\\",\\\"step\\\",\\\"step\\\",\\\"us\\\",\\\"tw\\\",\\\"w\\\",\\\"quantity\\\",\\\"packageName\\\",\\\"loadStep\\\",\\\"step\\\",\\\"step\\\",\\\"step\\\",\\\"ls\\\",\\\"tw\\\",\\\"w\\\",\\\"contractor\\\",\\\"step\\\",\\\"step\\\",\\\"location\\\",\\\"tw\\\",\\\"step\\\",\\\"delivery\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"loading\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showMultiSelectCheckbox\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"cell transport-row-combine-transports\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"input\\\"],[12,\\\"checked\\\",[21,\\\"checkboxState\\\"]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"toggleTransportPresenceInCheckboxTrackersLists\\\"],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"canCombineTransports\\\"]],[23,[\\\"canMultiArchive\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"cell transport-row-combine-transports\\\"],[9],[0,\\\"\\\\n                 \\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"IDENTIFIER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"IDENTIFIER\\\"],[12,\\\"data-transport-id\\\",[28,[[23,[\\\"transport\\\",\\\"id\\\"]]]]],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"IDENTIFIER\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showTransportDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"data-field-name\\\",\\\"transport-details-button\\\"],[11,\\\"class\\\",\\\"btn btn-sm\\\"],[12,\\\"style\\\",[23,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]]],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"transport\\\",\\\"internalIndex\\\"]],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showTransportModal\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"transport-internal-index\\\"],[9],[1,[23,[\\\"transport\\\",\\\"internalIndex\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"incompleteLoading\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-exclamation\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transport.incompleteLoading\\\"],null]]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"PERIODIC_TRANSPORT_INTERNAL_INDEX\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"PERIODIC_TRANSPORT_INTERNAL_INDEX\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"PERIODIC_TRANSPORT_INTERNAL_INDEX\\\"]]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"transport\\\",\\\"periodicTransportInternalIndex\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ERP_IDENTIFIER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"ERP_IDENTIFIER\\\"],[12,\\\"data-transport-id\\\",[28,[[23,[\\\"transport\\\",\\\"id\\\"]]]]],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"ERP_IDENTIFIER\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"IDENTIFIER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"transport-erp-identifier\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"trim-long-text\\\",null,[[\\\"text\\\",\\\"maxLength\\\"],[[23,[\\\"transport\\\",\\\"erpIdentifier\\\"]],[23,[\\\"maxCharactersInOrderNumberColumn\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showTransportDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"data-field-name\\\",\\\"transport-details-button\\\"],[11,\\\"class\\\",\\\"btn btn-sm\\\"],[12,\\\"style\\\",[23,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"trim-long-text\\\",null,[[\\\"text\\\",\\\"maxLength\\\"],[[23,[\\\"transport\\\",\\\"erpIdentifier\\\"]],[23,[\\\"maxCharactersInOrderNumberColumn\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showModal\\\",\\\"transports.modals.create-transport\\\",[23,[\\\"transport\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"transport-erp-identifier\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"trim-long-text\\\",null,[[\\\"text\\\",\\\"maxLength\\\"],[[23,[\\\"transport\\\",\\\"erpIdentifier\\\"]],[23,[\\\"maxCharactersInOrderNumberColumn\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"incompleteLoading\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-exclamation\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transport.incompleteLoading\\\"],null]]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ALT_IDENTIFIER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"ALT_IDENTIFIER\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"ALT_IDENTIFIER\\\"]]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"transport\\\",\\\"altIdentifier\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DELIVERY_NUMBER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"DELIVERY_NUMBER\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"DELIVERY_NUMBER\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"deliveries\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[9],[1,[22,34,[\\\"deliveryNumber\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[34]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROUTE_ID\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"ROUTE_ID\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"ROUTE_ID\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"transaction\\\",\\\"autoRouteOfferPass\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,[\\\"transport\\\",\\\"routeTemplate\\\",\\\"id\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROUTE_NAME\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"ROUTE_NAME\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"ROUTE_NAME\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"transaction\\\",\\\"autoRouteOfferPass\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,[\\\"transport\\\",\\\"routeTemplate\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"TRANSPORT_RELATION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"TRANSPORT_RELATION\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"TRANSPORT_RELATION\\\"]]]]]],[12,\\\"style\\\",[27,\\\"if\\\",[[23,[\\\"transportNotReadyToPlan\\\"]],\\\"color: darkred;font-weight: bold;\\\"],null]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"trim-long-text\\\",null,[[\\\"text\\\",\\\"maxLength\\\"],[[23,[\\\"transport\\\",\\\"transportRelationIdentifier\\\"]],[23,[\\\"maxCharactersInTransportRelationColumn\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"INDEX_PRODUCTS\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"INDEX_PRODUCTS\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"INDEX_PRODUCTS\\\"]]]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"line-break\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"trim-long-text\\\",null,[[\\\"text\\\",\\\"maxLength\\\"],[[23,[\\\"showProducts\\\"]],[23,[\\\"maxCharactersInProductsColumn\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"STORAGE_ZONE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"STORAGE_ZONE\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl2 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"STORAGE_ZONE\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"stepsWithWarehouse\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,33,[\\\"warehouseZone\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[1,[22,33,[\\\"warehouseZone\\\",\\\"name\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[33]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"RAMP\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"RAMP\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl2 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"RAMP\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"timeWindows\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,32,[\\\"ramp\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[32]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOCATION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"LOCATION\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl2 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"LOCATION\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"stepsWithWarehouse\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,30,[\\\"stepWarehouseLocations\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,30,[\\\"stepWarehouseLocations\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[1,[22,31,[\\\"warehouseLocation\\\",\\\"nameInAppropriateLanguage\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[31]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[30]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DOCUMENT_IDENTIFIER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"DOCUMENT_IDENTIFIER\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl3 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"DOCUMENT_IDENTIFIER\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"sortedSteps\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[22,29,[\\\"warehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[1,[22,29,[\\\"documentIdentifier\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[29]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CONTRACTOR_SHORT_NAME\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"CONTRACTOR_SHORT_NAME\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl3 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"CONTRACTOR_SHORT_NAME\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"contractors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[12,\\\"title\\\",[28,[[22,28,[\\\"name\\\"]]]]],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[1,[22,28,[\\\"shortName\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[28]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CONTRACTOR_FULL_NAME\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"CONTRACTOR_FULL_NAME\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl3 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"CONTRACTOR_FULL_NAME\\\"]]]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[9],[1,[23,[\\\"transport\\\",\\\"contractorNames\\\"]],false],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"SERVICE_COMPANY_SHORT_NAME\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"SERVICE_COMPANY_SHORT_NAME\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl3 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"SERVICE_COMPANY_SHORT_NAME\\\"]]]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[9],[1,[23,[\\\"transport\\\",\\\"serviceCompany\\\",\\\"shortName\\\"]],false],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"TRANSPORT_SUPERVISOR\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"TRANSPORT_SUPERVISOR\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"TRANSPORT_SUPERVISOR\\\"]]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"transport\\\",\\\"transportSupervisorName\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CREATION_DATE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"CREATION_DATE\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"CREATION_DATE\\\"]]]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"text-to-color\\\"],[12,\\\"style\\\",[23,[\\\"transport\\\",\\\"textColorStyle\\\"]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"transport\\\",\\\"dateCreated\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_WAREHOUSE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_WAREHOUSE\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl2 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"LOAD_WAREHOUSE\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"loadWarehouses\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,27,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis small\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"POSTAL\\\"],[9],[1,[22,27,[\\\"address\\\",\\\"postal\\\"]],false],[10],[0,\\\" \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"CITY\\\"],[9],[1,[22,27,[\\\"address\\\",\\\"city\\\"]],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[27]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_TIME_WINDOW\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_TIME_WINDOW\\\"],[12,\\\"class\\\",[28,[\\\"cell-date-row cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"LOAD_TIME_WINDOW\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showLoadTimeWindowsOfMasterTransport\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"masterTransportLoadTimeWindows\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showPencil\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"warehouses.schedule\\\",[22,26,[\\\"ramp\\\",\\\"warehouse\\\",\\\"id\\\"]],[22,26,[\\\"startFormattedISO\\\"]],\\\"1\\\"],null]]]],[11,\\\"class\\\",\\\"text-to-color text-link\\\"],[12,\\\"style\\\",[23,[\\\"transport\\\",\\\"textColorStyle\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"my-format-date\\\",[[22,26,[\\\"start\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-xs\\\"],[12,\\\"data-time-window\\\",[22,26,[\\\"slotIdentifier\\\"]]],[12,\\\"style\\\",[23,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-pencil\\\"],[9],[10],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"goToWarehouse\\\",[22,26,[\\\"step\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"my-format-date\\\",[[22,26,[\\\"start\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[26]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"loadSteps\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,25,[\\\"timeWindow\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"style\\\",[22,25,[\\\"timeWindow\\\",\\\"textColorStyle\\\"]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,25,[\\\"timeWindow\\\",\\\"wasMovedAutomatically\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"span\\\"],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"common.windowMovedAutomatically\\\"],null]],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"clock-rotate-left\\\"],null],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showPencil\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,25,[\\\"timeWindow\\\",\\\"ramp\\\",\\\"warehouse\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"warehouses.schedule\\\",[22,25,[\\\"timeWindow\\\",\\\"ramp\\\",\\\"warehouse\\\",\\\"id\\\"]],[22,25,[\\\"timeWindow\\\",\\\"startFormattedISO\\\"]],\\\"1\\\"],null]]]],[11,\\\"class\\\",\\\"text-to-color text-link\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[27,\\\"my-format-date\\\",[[22,25,[\\\"timeWindow\\\",\\\"start\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[27,\\\"my-format-date\\\",[[22,25,[\\\"timeWindow\\\",\\\"start\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"transport\\\",\\\"advice\\\",\\\"canBeUpdated\\\"]],[22,25,[\\\"timeWindow\\\",\\\"id\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-xs\\\"],[12,\\\"data-time-window\\\",[22,25,[\\\"timeWindow\\\",\\\"slotIdentifier\\\"]]],[12,\\\"style\\\",[22,25,[\\\"timeWindow\\\",\\\"backgroundColorStyle\\\"]]],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-pencil\\\"],[9],[10],[0,\\\"\\\\n                                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"goToWarehouse\\\",[22,25,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"text-to-color\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"my-format-date\\\",[[22,25,[\\\"timeWindow\\\",\\\"start\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"or\\\",[[22,25,[\\\"showAdviceDateRestrictions\\\"]],[22,25,[\\\"showAdviceDateRestrictionInEveryStep\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.from\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"my-format-date\\\",[[22,25,[\\\"minAdviceDate\\\"]],\\\"defaultDateTime\\\"],null],false],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.to\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"my-format-date\\\",[[22,25,[\\\"maxAdviceDate\\\"]],\\\"defaultDateTime\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"my-format-date\\\",[[22,25,[\\\"arrivalDate\\\"]],\\\"defaultDateTime\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[25]},null]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_PLACE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_PLACE\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl1 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"LOAD_PLACE\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"loadSteps\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,24,[\\\"warehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,24,[\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis small\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"IBAN\\\"],[9],[1,[22,24,[\\\"warehouse\\\",\\\"address\\\",\\\"country\\\",\\\"ibanSymbol\\\"]],false],[0,\\\",\\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"POSTAL\\\"],[9],[1,[22,24,[\\\"warehouse\\\",\\\"address\\\",\\\"postal\\\"]],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"CITY\\\"],[9],[1,[22,24,[\\\"warehouse\\\",\\\"address\\\",\\\"city\\\"]],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,24,[\\\"address\\\",\\\"recipient\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis small\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"IBAN\\\"],[9],[1,[22,24,[\\\"address\\\",\\\"country\\\",\\\"ibanSymbol\\\"]],false],[0,\\\",\\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"POSTAL\\\"],[9],[1,[22,24,[\\\"address\\\",\\\"postal\\\"]],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"CITY\\\"],[9],[1,[22,24,[\\\"address\\\",\\\"city\\\"]],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[24]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_COUNTRY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_COUNTRY\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl1 cell country-td \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"LOAD_COUNTRY\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"loadSteps\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[22,23,[\\\"warehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[1,[22,23,[\\\"address\\\",\\\"country\\\",\\\"ibanSymbol\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[23]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_CITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_CITY\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl1 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"LOAD_CITY\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"loadSteps\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[22,22,[\\\"warehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"POSTAL\\\"],[9],[1,[22,22,[\\\"address\\\",\\\"postal\\\"]],false],[10],[0,\\\" \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"CITY\\\"],[9],[1,[22,22,[\\\"address\\\",\\\"city\\\"]],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[22]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_QUANTITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_QUANTITY\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl1 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"LOAD_QUANTITY\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"loadSteps\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,21,[\\\"palletsQuantity\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[1,[22,21,[\\\"palletsQuantity\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[21]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"LOAD_PACKAGES_QUANTITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"LOAD_PACKAGES_QUANTITY\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl1 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"LOAD_PACKAGES_QUANTITY\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[27,\\\"-each-in\\\",[[23,[\\\"transport\\\",\\\"loadPackageTypeQuantities\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"small\\\"],[9],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"transport.quantities.shortName.\\\",[22,20,[]]],null]],null],false],[0,\\\": \\\"],[1,[22,19,[]],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[19,20]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_WAREHOUSE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_WAREHOUSE\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl2 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"UNLOAD_WAREHOUSE\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"unloadWarehouses\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,18,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis small\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"POSTAL\\\"],[9],[1,[22,18,[\\\"address\\\",\\\"postal\\\"]],false],[10],[0,\\\" \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"CITY\\\"],[9],[1,[22,18,[\\\"address\\\",\\\"city\\\"]],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[18]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_TIME_WINDOW\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_TIME_WINDOW\\\"],[12,\\\"class\\\",[28,[\\\"cell-date-row cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"UNLOAD_TIME_WINDOW\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showUnloadTimeWindowsOfMasterTransport\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"masterTransportUnloadTimeWindows\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showPencil\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"warehouses.schedule\\\",[22,17,[\\\"ramp\\\",\\\"warehouse\\\",\\\"id\\\"]],[22,17,[\\\"startFormattedISO\\\"]],\\\"1\\\"],null]]]],[11,\\\"class\\\",\\\"text-to-color text-link\\\"],[12,\\\"style\\\",[23,[\\\"transport\\\",\\\"textColorStyle\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"my-format-date\\\",[[22,17,[\\\"start\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"my-format-date\\\",[[22,17,[\\\"start\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[17]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"unloadSteps\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,16,[\\\"timeWindow\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"style\\\",[22,16,[\\\"timeWindow\\\",\\\"textColorStyle\\\"]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,16,[\\\"timeWindow\\\",\\\"wasMovedAutomatically\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"span\\\"],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"common.windowMovedAutomatically\\\"],null]],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"clock-rotate-left\\\"],null],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showPencil\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,16,[\\\"timeWindow\\\",\\\"ramp\\\",\\\"warehouse\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"warehouses.schedule\\\",[22,16,[\\\"timeWindow\\\",\\\"ramp\\\",\\\"warehouse\\\",\\\"id\\\"]],[22,16,[\\\"timeWindow\\\",\\\"startFormattedISO\\\"]],\\\"1\\\"],null]]]],[11,\\\"class\\\",\\\"text-to-color text-link\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[27,\\\"my-format-date\\\",[[22,16,[\\\"timeWindow\\\",\\\"start\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[27,\\\"my-format-date\\\",[[22,16,[\\\"timeWindow\\\",\\\"start\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"transport\\\",\\\"advice\\\",\\\"canBeUpdated\\\"]],[22,16,[\\\"timeWindow\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-xs\\\"],[12,\\\"data-time-window\\\",[22,16,[\\\"timeWindow\\\",\\\"slotIdentifier\\\"]]],[12,\\\"style\\\",[22,16,[\\\"timeWindow\\\",\\\"backgroundColorStyle\\\"]]],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-pencil\\\"],[9],[10],[0,\\\"\\\\n                                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"goToWarehouse\\\",[22,16,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"text-to-color\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"my-format-date\\\",[[22,16,[\\\"timeWindow\\\",\\\"start\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"or\\\",[[22,16,[\\\"showAdviceDateRestrictions\\\"]],[22,16,[\\\"showAdviceDateRestrictionInEveryStep\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.from\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"my-format-date\\\",[[22,16,[\\\"minAdviceDate\\\"]],\\\"defaultDateTime\\\"],null],false],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.to\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"my-format-date\\\",[[22,16,[\\\"maxAdviceDate\\\"]],\\\"defaultDateTime\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"my-format-date\\\",[[22,16,[\\\"arrivalDate\\\"]],\\\"defaultDateTime\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[16]},null]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_PLACE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_PLACE\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl1 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"UNLOAD_PLACE\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"unloadSteps\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,15,[\\\"warehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,15,[\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis small\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"IBAN\\\"],[9],[1,[22,15,[\\\"warehouse\\\",\\\"address\\\",\\\"country\\\",\\\"ibanSymbol\\\"]],false],[0,\\\",\\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"POSTAL\\\"],[9],[1,[22,15,[\\\"warehouse\\\",\\\"address\\\",\\\"postal\\\"]],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"CITY\\\"],[9],[1,[22,15,[\\\"warehouse\\\",\\\"address\\\",\\\"city\\\"]],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,15,[\\\"address\\\",\\\"recipient\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis small\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"IBAN\\\"],[9],[1,[22,15,[\\\"address\\\",\\\"country\\\",\\\"ibanSymbol\\\"]],false],[0,\\\",\\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"POSTAL\\\"],[9],[1,[22,15,[\\\"address\\\",\\\"postal\\\"]],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"CITY\\\"],[9],[1,[22,15,[\\\"address\\\",\\\"city\\\"]],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[15]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_COUNTRY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_COUNTRY\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl1 cell country-td \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"UNLOAD_COUNTRY\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"unloadSteps\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[22,14,[\\\"warehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[1,[22,14,[\\\"address\\\",\\\"country\\\",\\\"ibanSymbol\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[14]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_CITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_CITY\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl1 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"UNLOAD_CITY\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"unloadSteps\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[22,13,[\\\"warehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"POSTAL\\\"],[9],[1,[22,13,[\\\"address\\\",\\\"postal\\\"]],false],[10],[0,\\\" \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"CITY\\\"],[9],[1,[22,13,[\\\"address\\\",\\\"city\\\"]],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[13]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_QUANTITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_QUANTITY\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl1 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"UNLOAD_QUANTITY\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"unloadSteps\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,12,[\\\"palletsQuantity\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[1,[22,12,[\\\"palletsQuantity\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[12]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNLOAD_PACKAGES_QUANTITY\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"UNLOAD_PACKAGES_QUANTITY\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl1 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"UNLOAD_PACKAGES_QUANTITY\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[27,\\\"-each-in\\\",[[23,[\\\"transport\\\",\\\"unloadPackageTypeQuantities\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"small\\\"],[9],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"transport.quantities.shortName.\\\",[22,11,[]]],null]],null],false],[0,\\\": \\\"],[1,[22,10,[]],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[10,11]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ARRIVAL_DATE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"ARRIVAL_DATE\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"ARRIVAL_DATE\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"steps\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[22,9,[\\\"warehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[9],[1,[27,\\\"my-format-date\\\",[[22,9,[\\\"arrivalDate\\\"]],\\\"defaultDateTime\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[9]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"PRICE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"PRICE\\\"],[12,\\\"class\\\",[28,[\\\"text-center cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"PRICE\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"showPrice\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-small\\\"],[11,\\\"data-field-name\\\",\\\"price-with-currency\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"transport\\\",\\\"priceWithCurrency\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canEditFreight\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"clickable\\\"],[11,\\\"data-button-name\\\",\\\"edit-price-button\\\"],[9],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[9],[10],[3,\\\"action\\\",[[22,0,[]],\\\"editFreight\\\",[23,[\\\"transport\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showSumString\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"components/transport-costs-string\\\",null,[[\\\"transport\\\",\\\"braced\\\"],[[23,[\\\"transport\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[1,[27,\\\"transports/transports-table/transport-row/transaction-icon\\\",null,[[\\\"transaction\\\"],[[23,[\\\"transport\\\",\\\"transaction\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showAcceptAndRejectTransactionButton\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"disableAcceptAndRejectButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-sm margin-bottom accept-transaction-button\\\"],[12,\\\"style\\\",[23,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]]],[11,\\\"disabled\\\",\\\"disabled\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transport.companyNotQualified\\\"],null],[27,\\\"t\\\",[\\\"transport.forAcceptOrReject}}\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transaction.accept\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"acceptTransaction\\\"]],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-sm margin-bottom reject-transaction-button\\\"],[12,\\\"style\\\",[23,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]]],[11,\\\"disabled\\\",\\\"disabled\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transport.companyNotQualified\\\"],null],[27,\\\"t\\\",[\\\"transport.forAcceptOrReject}}\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transaction.reject\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"rejectTransaction\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"transaction/accept-transaction-button\\\",null,[[\\\"transport\\\",\\\"acceptTransaction\\\"],[[23,[\\\"transport\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"acceptTransaction\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-sm margin-bottom reject-transaction-button\\\"],[12,\\\"style\\\",[23,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transaction.reject\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"rejectTransaction\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[1,[27,\\\"auction/auction-cell\\\",null,[[\\\"transport\\\"],[[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"UNIT_AMOUNT_TYPE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"UNIT_AMOUNT_TYPE\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"UNIT_AMOUNT_TYPE\\\"]]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"transport\\\",\\\"transaction\\\",\\\"unitAmountType\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CARRIER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"CARRIER\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"CARRIER\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transactionWaitingForAcceptance\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"waiting-for-acceptance\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transaction.waitingForAcceptanceInfo\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"transport\\\",\\\"transaction\\\",\\\"carrier\\\",\\\"shortName\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showPassTransportButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"transaction/create-transaction-button\\\",null,[[\\\"transport\\\"],[[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showPassCourierButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"transaction/courier-transaction-button\\\",null,[[\\\"transport\\\"],[[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showAutoPassButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"transaction/auto-transaction-button\\\",null,[[\\\"transport\\\"],[[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"transaction\\\",\\\"autoRouteOfferPassError\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"transaction-rejected\\\"],[11,\\\"style\\\",\\\"color: red;font-size: 12px\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transaction.autoRouteOfferPassError\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showTransactionRejectedLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"transaction-rejected\\\"],[11,\\\"style\\\",\\\"color: red;font-size: 12px\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"lastTransactionAutoPassNotAccepted\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"transaction.rejectedByAllCarriers\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"transaction.rejectedByCarrier\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"transport\\\",\\\"lastRejectedTransactionCarrierShortName\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,[\\\"showRequireAcceptanceInfo\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"auction.requireAcceptanceInfo\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"carrier-company-name\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"transport\\\",\\\"carrierCompany\\\",\\\"shortName\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"transport\\\",\\\"carrierCompany\\\",\\\"contractorNumberWithPrincipal\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"courierOrder\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"courier-trackingNumber\\\"],[11,\\\"style\\\",\\\"cursor: pointer;\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"nav-link\\\"],[9],[0,\\\" \\\"],[1,[23,[\\\"transport\\\",\\\"courierOrder\\\",\\\"trackingNumber\\\"]],false],[3,\\\"action\\\",[[22,0,[]],\\\"navigateToCourierTracking\\\"]],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"courier-bookingNumber\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[23,[\\\"transport\\\",\\\"courierOrder\\\",\\\"bookingNumber\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showCourierSpinner\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"SURCHARGE_WITHOUT_CONFIRMATION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"SURCHARGE_WITHOUT_CONFIRMATION\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"ADVICE\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"hasUnacceptedSurcharges\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"common.yes\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"common.no\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ADVICE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"ADVICE\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"ADVICE\\\"]]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"advice-handler\\\",null,[[\\\"transport\\\",\\\"goToWarehouse\\\",\\\"openCreateAdviceModal\\\",\\\"isFromTransportModal\\\"],[[23,[\\\"transport\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"goToWarehouse\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"openCreateAdviceModal\\\"],null],false]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"transport\\\",\\\"courierOrderError\\\"]],[27,\\\"not\\\",[[23,[\\\"transport\\\",\\\"transaction\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"a\\\"],[11,\\\"style\\\",\\\"color: darkred;font-weight: bold;\\\"],[11,\\\"href\\\",\\\"true\\\"],[9],[1,[21,\\\"courierErrorLabel\\\"],false],[3,\\\"action\\\",[[22,0,[]],\\\"getCourierOrderErrors\\\",[23,[\\\"transport\\\"]]]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showCourierDocuments\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showTNTCourierDocuments\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"nav flex-column\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"nav-item\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"nav-link active\\\"],[11,\\\"href\\\",\\\"true\\\"],[9],[1,[27,\\\"t\\\",[\\\"courier.documents.manifest\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"getCourierDocument\\\",\\\"MANIFEST\\\"]],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"nav-item\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"nav-link\\\"],[11,\\\"href\\\",\\\"true\\\"],[9],[1,[27,\\\"t\\\",[\\\"courier.documents.connote\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"getCourierDocument\\\",\\\"CONNOTE\\\"]],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"nav-item\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"nav-link\\\"],[11,\\\"href\\\",\\\"true\\\"],[9],[1,[27,\\\"t\\\",[\\\"courier.documents.label\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"getCourierDocument\\\",\\\"LABEL\\\"]],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showDHLCourierDocuments\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"ol\\\"],[11,\\\"class\\\",\\\"number-indexed\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"courierOrder\\\",\\\"documents\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"nav-item\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"nav-link\\\"],[11,\\\"href\\\",\\\"true\\\"],[9],[1,[27,\\\"t\\\",[\\\"courier.documents.connote\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"getCourierDocument\\\",\\\"DHL\\\",[22,7,[]]]],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7,8]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"VEHICLE_TRUCK_TYPE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"VEHICLE_TRUCK_TYPE\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"VEHICLE_TRUCK_TYPE\\\"]]]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[21,\\\"vehicleTruckType\\\"],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"MANUAL_NOTIFICATION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"MANUAL_NOTIFICATION\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"MANUAL_NOTIFICATION\\\"]]]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"latestManualNotification\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"manualNotificationIsLoading\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn\\\"],[12,\\\"style\\\",[23,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"span\\\"],[9],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"notification.\\\",[23,[\\\"latestManualNotification\\\",\\\"notification\\\",\\\"name\\\"]],\\\".labelShort\\\"],null]],null],false],[10],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"sendEmailNotification\\\",[23,[\\\"latestManualNotification\\\",\\\"id\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"WORKER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"WORKER\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2 cell\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"workers\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[1,[22,6,[\\\"name\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"WORKER_PHONE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"WORKER_PHONE\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2 cell\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"workers\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[1,[22,5,[\\\"formattedPhoneNumber\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"EMAIL_ADVICE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"EMAIL_ADVICE\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2 cell text-center\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"userHasEmailAdviceCfRole\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"nav-item\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transportHasEmailAdviceCf\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"check-square\\\",\\\"regular\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"square\\\",\\\"regular\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,[\\\"userCanAddEmailAdviceCf\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"nav-link\\\"],[11,\\\"href\\\",\\\"true\\\"],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"emailAdvice.titleCf\\\"],null]],[12,\\\"style\\\",[27,\\\"if\\\",[[23,[\\\"transportHasEmailAdviceCf\\\"]],\\\"color:green\\\"],null]],[11,\\\"data-field-name\\\",\\\"email-advice-cf-enabled\\\"],[9],[1,[27,\\\"t\\\",[\\\"emailAdvice.adviceDetailsCf\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"openEmailAdviceModal\\\",\\\"CF_DATA\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"a\\\"],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"emailAdvice.noRole\\\"],null]],[11,\\\"style\\\",\\\"color:black\\\"],[11,\\\"data-field-name\\\",\\\"email-advice-cf-disabled\\\"],[9],[1,[27,\\\"t\\\",[\\\"emailAdvice.adviceDetailsCf\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"userHasEmailAdviceRole\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"nav-item\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transportHasEmailAdvice\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"check-square\\\",\\\"regular\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"square\\\",\\\"regular\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,[\\\"userCanAddEmailAdvice\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"nav-link\\\"],[11,\\\"href\\\",\\\"true\\\"],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"emailAdvice.title\\\"],null]],[12,\\\"style\\\",[27,\\\"if\\\",[[23,[\\\"transportHasEmailAdvice\\\"]],\\\"color:green\\\"],null]],[11,\\\"data-field-name\\\",\\\"email-advice-enabled\\\"],[9],[1,[27,\\\"t\\\",[\\\"emailAdvice.adviceDetails\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"openEmailAdviceModal\\\",\\\"ADVICE_DATA\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"a\\\"],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"emailAdvice.noRole\\\"],null]],[11,\\\"style\\\",\\\"color:black\\\"],[11,\\\"data-field-name\\\",\\\"email-advice-disabled\\\"],[9],[1,[27,\\\"t\\\",[\\\"emailAdvice.adviceDetails\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"EMAIL_ADVICE_EMAIL_ADDRESS\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"EMAIL_ADVICE_EMAIL_ADDRESS\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl2 cell text-center\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"nav-item\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"p1\\\"],[9],[1,[21,\\\"currentEmailAdviceCfEmail\\\"],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"p1\\\"],[9],[1,[21,\\\"currentEmailAdviceEmail\\\"],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"INDEX_DOCUMENT_NUMBER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"INDEX_DOCUMENT_NUMBER\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl3 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"INDEX_DOCUMENT_NUMBER\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"indexesDocumentNumbersAsArray\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[1,[22,4,[]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"INDEX_TRANSPORT_NUMBER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"INDEX_DOCUMENT_NUMBER\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl3 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"INDEX_TRANSPORT_NUMBER\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"indexesTransportNumbersAsArray\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"overflow-ellipsis\\\"],[9],[1,[22,3,[]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DRIVER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"DRIVER\\\"],[12,\\\"class\\\",[28,[\\\"responsive-main-hide cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"DRIVER\\\"]]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"advice\\\",\\\"driverName\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DRIVER_PHONE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"DRIVER_PHONE\\\"],[12,\\\"class\\\",[28,[\\\"responsive-main-hide cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"DRIVER_PHONE\\\"]]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"advice\\\",\\\"formattedPhoneNumber\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DRIVER_IDENTIFIER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"DRIVER_IDENTIFIER\\\"],[12,\\\"class\\\",[28,[\\\"responsive-main-hide cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"DRIVER_IDENTIFIER\\\"]]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"advice\\\",\\\"documentNumber\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CAR\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"CAR\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl3 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"CAR\\\"]]]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[21,\\\"adviceCarRegistrationNumber\\\"],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"TRAILER\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"TRAILER\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl2 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"TRAILER\\\"]]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[21,\\\"adviceTrailerRegistrationNumber\\\"],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"INVOICE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"INVOICE\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl1 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"INVOICE\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"transaction\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"transport-row-invoice-data\\\",null,[[\\\"transaction\\\"],[[23,[\\\"transport\\\",\\\"transaction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"TRANSPORT_DESCRIPTION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"TRANSPORT_DESCRIPTION\\\"],[11,\\\"style\\\",\\\"max-width: 100px\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"trim-long-text\\\",null,[[\\\"text\\\",\\\"maxLength\\\"],[[23,[\\\"transport\\\",\\\"description\\\"]],[23,[\\\"transportDescriptionMaxLength\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"TOTAL_WEIGHT\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"TOTAL_WEIGHT\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl2 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"TOTAL_WEIGHT\\\"]]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"transport\\\",\\\"totalWeight\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"TRUCK_TYPE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"TRUCK_TYPE\\\"],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl1 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"TRUCK_TYPE\\\"]]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"transport\\\",\\\"truckType\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"CUSTOM_FIELDS\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"customFieldsVisibleInTable\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\"],[12,\\\"data-column-name\\\",[28,[[22,2,[\\\"englishName\\\"]]]]],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl2 cell text-center \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"CUSTOM_FIELDS\\\"]]]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"transport-and-deliveries-custom-fields\\\",null,[[\\\"definition\\\",\\\"transportCfPairs\\\",\\\"deliveries\\\"],[[22,2,[]],[23,[\\\"transport\\\",\\\"customFieldPairs\\\"]],[23,[\\\"transport\\\",\\\"deliveries\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"REQUIRES_INSPECTION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"REQUIRES_INSPECTION\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"REQUIRES_INSPECTION\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"requiresInspection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"common.yes\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"common.no\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"INSPECTION\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"INSPECTION\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"INSPECTION\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showInspectionButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-secondary\\\"],[11,\\\"data-button-name\\\",\\\"inspection\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"inspectionSection.label\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showInspecionModal\\\",[23,[\\\"transport\\\"]]]],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showFillInspectionText\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"text-danger\\\"],[9],[1,[27,\\\"t\\\",[\\\"inspectionSection.fillInspection\\\"],null],false],[0,\\\"!\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"text-info\\\"],[9],[1,[21,\\\"filledInspectionText\\\"],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DELIVERY_NETTO_WEIGHT\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"DELIVERY_NETTO_WEIGHT\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"DELIVERY_NETTO_WEIGHT\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"deliveriesNetWeightWithColor\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[12,\\\"style\\\",[28,[\\\"color: \\\",[22,1,[\\\"color\\\"]]]]],[9],[1,[22,1,[\\\"weight\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DELIVERY_INCOTERMS\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"DELIVERY_INCOTERMS\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell cell-narrow text-center\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[21,\\\"deliveriesIncoterms\\\"],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DELIVERY_INVOICE\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"DELIVERY_INVOICE\\\"],[12,\\\"class\\\",[28,[\\\"cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"DELIVERY_INVOICE\\\"]]]]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"transport-row-delivery-innvoice\\\",null,[[\\\"transport\\\"],[[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"STATUS\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"STATUS\\\"],[12,\\\"data-status-name\\\",[28,[[23,[\\\"transport\\\",\\\"stageNameEnTrimmed\\\"]]]]],[12,\\\"data-order-number\\\",[28,[[23,[\\\"transport\\\",\\\"internalIndex\\\"]]]]],[12,\\\"class\\\",[28,[\\\"responsive-hide-lvl4 cell \\\",[27,\\\"table-column-style\\\",null,[[\\\"columnName\\\"],[\\\"STATUS\\\"]]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"loadingCompleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"show-statuses\\\",null,[[\\\"transport\\\",\\\"currentUser\\\",\\\"confirm\\\",\\\"revoke\\\",\\\"reject\\\",\\\"showModal\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"sessionAccount\\\",\\\"currentUser\\\"]],[23,[\\\"confirm\\\"]],[23,[\\\"revoke\\\"]],[23,[\\\"reject\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"showModal\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,[\\\"transport\\\",\\\"stageName\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"transports/transports-table/transport-row/guard-checkpoint-fields\\\",null,[[\\\"currentGuardCheckpoints\\\",\\\"currentGuardCheckpointsIds\\\",\\\"showSingleColumnLayout\\\",\\\"confirmedGuardCheckpoints\\\",\\\"transport\\\"],[[23,[\\\"uniqueTaskGuardCheckpoints\\\"]],[23,[\\\"uniqueTaskGuardCheckpointsIds\\\"]],[23,[\\\"showSingleColumnLayout\\\"]],[23,[\\\"allConfirmedTaskGuardCheckpoints\\\"]],[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"NOTES\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"NOTES\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell cell-narrow text-center\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"loadingCompleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"show-notes\\\",null,[[\\\"transport\\\"],[[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,[\\\"transport\\\",\\\"numberOfNotes\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"DOCUMENTS\\\",[23,[\\\"tableColumnNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\"],[11,\\\"data-column-name\\\",\\\"DOCUMENTS\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 cell cell-narrow text-center\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showWeightReceiptDownloadButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"a\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-download\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"generateWeightReceipt\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"loadingCompleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"show-docs\\\",null,[[\\\"transport\\\"],[[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[23,[\\\"transport\\\",\\\"numberOfAllDocuments\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/transports-table/transport-row/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-row/transaction-icon/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: 'span',\n    transactionMethod: Ember.computed('transaction.transactionMethod', function () {\n      return this.get('transaction.transactionMethod');\n    }),\n    transactionIcon: Ember.computed('transactionMethod', function () {\n      switch (this.get('transactionMethod')) {\n        case 'AUCTION':\n          return 'fa fa-gavel';\n\n        case 'ROUTE_OFFER':\n          return 'fa-solid fa-file-contract';\n\n        case 'FORWARDED':\n          return 'fa fa-handshake';\n\n        default:\n          return '';\n      }\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-row/transaction-icon/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"85KnG2+Y\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transactionMethod\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"i\\\"],[12,\\\"class\\\",[28,[[21,\\\"transactionIcon\\\"]]]],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"transaction.transactionMethod.\\\",[23,[\\\"transactionMethod\\\"]]],null]],null]]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"     \\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/transports-table/transport-row/transaction-icon/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-sorter/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    OPTIONS: [null, 'up', 'down'],\n    STORAGE_KEY_PREFIX: 'sortingType_',\n    tagName: 'span',\n    classNames: ['clickable'],\n    direction: null,\n\n    init() {\n      const self = this;\n\n      self._super(...arguments);\n\n      const transportTypeId = self.get('transportType.id');\n      const storageKey = self.STORAGE_KEY_PREFIX + transportTypeId;\n      const sortingType = JSON.parse(localStorage.getItem(storageKey));\n\n      if (!sortingType) {\n        return;\n      }\n\n      const sortingKey = sortingType.key;\n      const sortingDirection = sortingType.direction;\n      const sortingTransportTypeId = sortingType.transportTypeId;\n\n      if (sortingKey === self.get('key') && sortingTransportTypeId === transportTypeId) {\n        self.set('key', sortingKey);\n        self.set('direction', sortingDirection);\n        Ember.run.next(() => {\n          self.changeSortingKey(sortingKey, sortingDirection);\n        });\n      }\n    },\n\n    activeKeyChangedObserver: Ember.observer('activeSortingKey', function () {\n      if (this.get('key') !== this.get('activeSortingKey')) {\n        this.set('direction', null);\n      }\n    }),\n    icon: Ember.computed('direction', function () {\n      const baseIcon = 'fa fa-sort';\n      const direction = this.get('direction');\n      return direction ? `${baseIcon}-${direction}` : baseIcon;\n    }),\n    click: function () {\n      const self = this;\n      const transportTypeId = self.get('transportType.id');\n      const currentDirection = self.get('direction');\n      const key = self.get('key');\n      const currentOptionIndex = self.OPTIONS.indexOf(currentDirection);\n      const nextOptionIndex = (currentOptionIndex + 1) % self.OPTIONS.length;\n      const newDirection = self.OPTIONS[nextOptionIndex];\n      const storageKey = self.STORAGE_KEY_PREFIX + transportTypeId;\n      localStorage.setItem(storageKey, JSON.stringify({\n        key: key,\n        direction: newDirection,\n        transportTypeId: transportTypeId\n      }));\n      self.set('direction', newDirection);\n      self.changeSortingKey(key, newDirection);\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-sorter/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"NkDiuDOD\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_SORT_TRANSPORT_TABLE\\\"],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,[\\\"archive\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"i\\\"],[12,\\\"class\\\",[21,\\\"icon\\\"]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/transports-table/transport-sorter/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-title/component\", [\"exports\", \"apollo/mixins/attachment-mixin\", \"apollo/config/environment\"], function (_exports, _attachmentMixin, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Component.extend(_attachmentMixin.default, {\n    store: service(),\n    sessionAccount: service('session-account'),\n    relationsTrackerService: service('transport-relations.relations-tracker'),\n    tagName: 'div',\n    classNames: Ember.A(['row', 'h2']),\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    searchParams: {},\n    // rzeczywista zmienna propagowana po całym systemie\n    action: '',\n    canGenerateExcel: Ember.computed('sessionAccount.currentUser.roleNames', function () {\n      return ['ROLE_ADVICE_EXCEL', 'ROLE_CAN_GENERATE_FULL_SETTLEMENT_REPORT', 'ROLE_CAN_GENERATE_SHORT_SETTLEMENT_REPORT'].some(role => this.get('sessionAccount').hasRole(role));\n    }),\n    disableGenerateExcelButton: Ember.computed('searchParams', 'searchParams.filters.@each.filterValue', function () {\n      if (this.get('archive') === false) {\n        return false;\n      } else {\n        const searchParams = this.get('searchParams');\n        let disableExcelButton = true;\n        const startDate = searchParams.start;\n        const stopDate = searchParams.stop;\n        const areDatesMandatory = this.get('sessionAccount').getSettingValue('MANDATORY_DATES_RANGE_TO_GENERATE_EXCEL') === 'true';\n\n        if (areDatesMandatory && !(startDate || stopDate)) {\n          disableExcelButton = true;\n          return disableExcelButton;\n        }\n\n        for (const prop in searchParams) {\n          if (searchParams[prop] && searchParams[prop] !== '' && searchParams[prop].length !== 0 && prop !== 'filterMode') {\n            disableExcelButton = false;\n          }\n        }\n\n        return disableExcelButton;\n      }\n    }),\n    percentageOfLoadedRow: Ember.computed('numberOfRenderedRows', 'numberOfTransports', function () {\n      if (!this.get('numberOfTransports')) {\n        return null;\n      }\n\n      return Math.round(this.get('numberOfRenderedRows') / this.get('numberOfTransports') * 100);\n    }),\n    showPercentage: Ember.computed('numberOfTransports', 'percentageOfLoadedRow', function () {\n      return this.get('numberOfTransports') && this.get('percentageOfLoadedRow') < 100;\n    }),\n    availableTransportTypes: Ember.computed('sessionAccount.currentUser.transportTypes.[]', function () {\n      const userTransportTypes = this.get('sessionAccount.currentUser.transportTypes');\n      const principalId = localStorage.getItem('principalId');\n      const company = this.get('store').peekRecord('company', principalId);\n      return company.get('transportTypes').filter(tt => {\n        return userTransportTypes.includes(tt);\n      });\n    }),\n    refreshButtonHidden: Ember.computed(function () {\n      return this.get('sessionAccount').getSettingValue('CAN_REFRESH_MANUALLY') !== 'true';\n    }),\n    _downloadRegistryOfPersonsXls: function (warehouse) {\n      const token = this.get('sessionAccount.token');\n      const url = _environment.default.serverURL + '/reports/personsRegistry?token=' + token + '&warehousesId=' + warehouse.get('id');\n      return window.open(url, '_blank');\n    },\n    actions: {\n      poll: function () {\n        this.set('action', 'poll');\n        this.sendAction('action');\n      },\n\n      openExportXlsModal() {\n        const availableTransportTypes = this.get('availableTransportTypes');\n        const checkedTransportTypes = [];\n        checkedTransportTypes.pushObject(this.get('transportType'));\n        this.set('action', 'showModal');\n        this.sendAction('action', 'transports.modals.transport-types-to-excel', {\n          availableTransportTypes,\n          checkedTransportTypes,\n          archived: this.get('archive'),\n          searchParams: this.get('searchParams')\n        });\n      },\n\n      downloadRegistryOfPersonsXls() {\n        const self = this;\n        const warehouses = this.get('sessionAccount.currentUser.warehouses');\n\n        if (warehouses.length > 1) {\n          self.set('action', 'showModal');\n          self.sendAction('action', 'transports.modals.warehouses-to-excel', {\n            warehouses\n          });\n          return;\n        }\n\n        Ember.run.once(self, '_downloadRegistryOfPersonsXls', warehouses[0]);\n      },\n\n      scrollToClosestTransport() {\n        this.set('action', 'scrollToClosestTransport');\n        this.sendAction('action');\n      },\n\n      clearFilters() {\n        this.set('action', 'clearFilters');\n        this.sendAction('action');\n      },\n\n      openRelationsModal() {\n        this.set('action', 'openRelationsModal');\n        this.sendAction('action');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/transports/transports-table/transport-title/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"7N67CCkH\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[12,\\\"id\\\",[28,[[23,[\\\"transportType\\\",\\\"id\\\"]]]]],[9],[0,\\\"\\\\n    \\\"],[1,[23,[\\\"transportType\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"loadingCompleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,[\\\"refreshButtonHidden\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"refresh-button\\\",null,[[\\\"data-field-name\\\"],[\\\"REFRESH_BUTTON\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"canGenerateExcel\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"open-export-xls-modal\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[12,\\\"disabled\\\",[21,\\\"disableGenerateExcelButton\\\"]],[12,\\\"title\\\",[27,\\\"if\\\",[[23,[\\\"disableGenerateExcelButton\\\"]],[27,\\\"t\\\",[\\\"common.disableXLS\\\"],null],[27,\\\"t\\\",[\\\"common.exportAsXLS\\\"],null]],null]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"file-excel\\\",\\\"solid\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"openExportXlsModal\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"allowTimeWindow\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"common.scrollToClosestTransport\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"clock\\\",\\\"solid\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"scrollToClosestTransport\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/images/ajax-loader.gif\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showClearFiltersButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-secondary clear-filters-button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.clearFilters\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"clearFilters\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CAN_DOWNLOAD_REGISTRY_OF_PERSONS_XLS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"registry-of-persons-xls\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"file-excel\\\",\\\"solid\\\"],null],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.registryOfPersons\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"downloadRegistryOfPersonsXls\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right header-help-block\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"numberOfTransports\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showPercentage\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[21,\\\"percentageOfLoadedRow\\\"],false],[0,\\\"% /\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"table.numberOfTransports\\\"],[[\\\"n\\\"],[[23,[\\\"numberOfTransports\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/transports/transports-table/transport-title/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/trim-long-text/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    elipsis: '(...)',\n    tooLong: Ember.computed('text.length', 'maxLength', function () {\n      return this.get('text.length') > this.get('maxLength');\n    }),\n    spacedText: Ember.computed('text', function () {\n      if (!this.get('text')) {\n        return '';\n      }\n\n      return this.insertSpaces(this.get('text'));\n    }),\n    trimmedText: Ember.computed('spacedText', 'maxLength', function () {\n      if (!this.get('spacedText')) {\n        return '';\n      }\n\n      return this.get('spacedText').substring(0, this.get('maxLength')) + this.get('elipsis');\n    }),\n    insertSpaces: function (text) {\n      let result = text;\n      ['\\\\.', ',', ';'].forEach(breakChar => {\n        const regex = new RegExp(`${breakChar}(?=[^\\s])`, 'g');\n        result = result.replace(regex, `${breakChar} `);\n      });\n      return result;\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/trim-long-text/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"+Q3iyg7W\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"tooLong\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\"],[12,\\\"title\\\",[28,[[21,\\\"spacedText\\\"]]]],[9],[0,\\\"\\\\n        \\\"],[1,[21,\\\"trimmedText\\\"],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[1,[21,\\\"text\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/trim-long-text/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/trucks/main-data-section/component\", [\"exports\", \"apollo/mixins/section-mixin\"], function (_exports, _sectionMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend(_sectionMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    isMoTEnabled: Ember.computed('truck.status', function () {\n      return this.get('truck.status') !== 'DISABLED';\n    }),\n    isMoTNotAccepted: Ember.computed('truck.status', function () {\n      return this.get('truck.status') !== 'ACCEPTED';\n    }),\n    canApprove: Ember.computed('truck.verificationCompleted', function () {\n      return !this.get('truck.verificationCompleted') && this.get('sessionAccount').hasRole('ROLE_APPROVE_MOT');\n    }),\n    showInvalidRequiredDocumentTypesInfo: Ember.computed('truck.id', 'invalidRequiredDocumentTypes', function () {\n      return this.get('invalidRequiredDocumentTypes.length') && this.get('truck.id');\n    }),\n    invalidRequiredDocumentTypes: Ember.computed('truck.documents.@each.state', function () {\n      const self = this;\n      const requiredDocumentTypes = self.get('store').peekAll('document-type').filter(dt => {\n        return dt.get('isRequiredForModeOfTransportation');\n      });\n      const invalidDocumentTypes = [];\n      requiredDocumentTypes.forEach(dt => {\n        const acceptedDocumentsOfType = self.get('truck.acceptedDocuments').filter(doc => {\n          return doc.get('documentType.name') === dt.get('name');\n        });\n\n        if (!acceptedDocumentsOfType || acceptedDocumentsOfType.get('length') === 0) {\n          invalidDocumentTypes.push(dt);\n        }\n      });\n      return invalidDocumentTypes;\n    }),\n    availableTruckTypes: Ember.computed('truck.id', function () {\n      return this.get('truckTypesArray');\n    }),\n    actions: {\n      showModal(templateName, model) {\n        this.set('action', 'showModal');\n        this.sendAction('action', templateName, model);\n      },\n\n      changeTruckStatus(status, enabled) {\n        const self = this;\n        self.get('truck').setProperties({\n          enabled,\n          status\n        });\n        self.get('truck').save().then(() => {\n          self.transitionTo('mode-of-transportation.index');\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/trucks/main-data-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"5UWpqMLM\",\n    \"block\": \"{\\\"symbols\\\":[\\\"type\\\",\\\"documentType\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showInvalidRequiredDocumentTypesInfo\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-warning alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"documentType.isRequiredForModeOfTransportationInfo\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"margin-top\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"invalidRequiredDocumentTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"documentType.\\\",[22,2,[\\\"translationKey\\\"]],\\\".name\\\"],null]],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal col-md-6 col-xs-12\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"company.shortName\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"short-name\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"section\\\",\\\"truck\\\",\\\"owner\\\",\\\"shortName\\\"]],true]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"truck.registrationNumber\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"registration-number\\\"],[12,\\\"class\\\",[28,[\\\"col-md-7 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"section\\\",\\\"truck\\\",\\\"errors\\\",\\\"registrationNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"section\\\",\\\"truck\\\",\\\"registrationNumber\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"section\\\",\\\"truck\\\"]],\\\"registrationNumber\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"truck.vehicleType\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"truck-type\\\"],[12,\\\"class\\\",[28,[\\\"col-md-7 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"section\\\",\\\"errors\\\",\\\"truckType\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"section\\\",\\\"truckType\\\"]]],null],[23,[\\\"availableTruckTypes\\\"]],true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"section\\\",\\\"truckType\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"section\\\"]],\\\"truckType\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"modeOfTransportation.brand\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"brand\\\"],[12,\\\"class\\\",[28,[\\\"col-md-7 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"section\\\",\\\"errors\\\",\\\"brand\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"section\\\",\\\"brand\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"section\\\"]],\\\"brand\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"modeOfTransportation.subcontractor\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"model\\\"],[12,\\\"class\\\",[28,[\\\"col-md-7 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"section\\\",\\\"errors\\\",\\\"model\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"section\\\",\\\"subcontractor\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"section\\\"]],\\\"subcontractor\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"modeOfTransportation.serialNumberOfRecorder\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"serial-number-of-recorder\\\"],[12,\\\"class\\\",[28,[\\\"col-md-7 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"section\\\",\\\"errors\\\",\\\"serialNumberOfRecorder\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"section\\\",\\\"serialNumberOfRecorder\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"section\\\"]],\\\"serialNumberOfRecorder\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 form-buttons margin-bottom\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"success\\\"],[9],[1,[21,\\\"successMessage\\\"],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isMoTEnabled\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"section\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canApprove\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"approve-mot\\\"],[11,\\\"class\\\",\\\"btn btn-success\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"modeOfTransportation.approve\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"confirm\\\",[23,[\\\"section\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_MOT_SECTIONS\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"truck\\\",\\\"verificationCompleted\\\"]],[23,[\\\"isMoTNotAccepted\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[2,\\\" Ta sama akcja jest wykonywana kilka linijek wyżej w 'if canApprove' jest to celowe.\\\\n                        Pierwszego potwierdzenia może dokonać user ze specjalną rolą i przycisk musi mieć inne tłumaczenie\\\"],[0,\\\"\\\\n                        \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"confirm-mot\\\"],[11,\\\"class\\\",\\\"btn btn-success\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.accept\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"confirm\\\",[23,[\\\"section\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"reject-mot\\\"],[11,\\\"class\\\",\\\"btn btn-warning\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.reject\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"changeTruckStatus\\\",\\\"REJECTED\\\",true]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"dataButtonName\\\",\\\"onConfirm\\\",\\\"text\\\"],[\\\"btn btn-default\\\",\\\"disable-mot\\\",[27,\\\"action\\\",[[22,0,[]],\\\"changeTruckStatus\\\",\\\"DISABLED\\\",false],null],[27,\\\"t\\\",[\\\"modeOfTransportation.edit.disable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.disable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"update-mot\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.update\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"update\\\",[23,[\\\"section\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save-mot\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\",[23,[\\\"section\\\"]],\\\"mode-of-transportation.edit\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/trucks/main-data-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/trucks/truck-type-helper-text/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service('store'),\n    intl: Ember.inject.service(),\n    rounding: Ember.inject.service('rounding-service'),\n    showTruckHelperText: Ember.computed('model.{id,truckType.ltlPricingEnabled}', function () {\n      return this.get('model.id') && !this.get('model.truckType.ltlPricingEnabled');\n    }),\n    showWarning: Ember.computed('model.showWarning', function () {\n      return this.get('model.showWarning');\n    }),\n    firstEntry: Ember.computed('truckTypeList.firstObject.[]', function () {\n      return this.get('truckTypeList.firstObject');\n    }),\n    firstEntryIdx: Ember.computed('firstEntry.idx', function () {\n      return this.get('firstEntry.truckTypeIdx');\n    }),\n    firstEntryName: Ember.computed('firstEntry.idx', function () {\n      return this.get('firstEntry.truckTypeName');\n    }),\n    selectedTruckIdx: Ember.computed('model.truckType.truckTypeIdx', function () {\n      return this.get('model.truckType.truckTypeIdx');\n    }),\n    truckHelperText: Ember.computed('truckTypeList.length', 'selectedTruckIdx', 'firstEntryName', 'firstEntryIdx', function () {\n      const topIdx = this.get('firstEntryIdx');\n      const topName = this.get('firstEntryName');\n      const selectedIdx = this.get('selectedTruckIdx');\n\n      if (selectedIdx === null || selectedIdx === undefined) {\n        return Ember.String.htmlSafe('');\n      }\n\n      if (!topIdx && !topName) {\n        // Potrzeba dwóch aut, lista jest pusta.\n        const txt = this.intl.t('transport.needTwoVehicles');\n        return Ember.String.htmlSafe('<span style=\"color:darkred;\">' + txt + '</span>');\n      }\n\n      if (selectedIdx === topIdx) {\n        // Wybrana opcja to odpowiednie auto\n        const txt = this.intl.t('transport.optimalVehicleSelected');\n        return Ember.String.htmlSafe('<span style=\"color:green;\">' + txt + '</span>');\n      }\n\n      if (selectedIdx > topIdx) {\n        // Możliwe mniejsze auto\n        const txt = this.intl.t('transport.smallerVehiclePossible');\n        return Ember.String.htmlSafe('<span style=\"color:blue;\">' + txt + topName + ' </span>');\n      } // Potrzeba większego auta\n\n\n      const txt = this.intl.t('transport.biggerVehicleRequired');\n      return Ember.String.htmlSafe('<span style=\"color:darkred;\">' + txt + topName + ' </span>');\n    }),\n    maxSegmentLdm: Ember.computed('model.maxSegmentLdm', function () {\n      return this.rounding.roundToTwoDecimals(this.get('model.maxSegmentLdm'));\n    }),\n    maxSegmentWeight: Ember.computed('model.maxSegmentWeight', function () {\n      return this.rounding.roundToTwoDecimals(this.get('model.maxSegmentWeight'));\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/trucks/truck-type-helper-text/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"U/EAq+WC\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"truck-type-helper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"truckType\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[4,\\\"if\\\",[[23,[\\\"maxSegmentLdm\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"transport.maxSegmentLdm\\\"],null],false],[0,\\\" \\\"],[1,[21,\\\"maxSegmentLdm\\\"],false],[0,\\\" [ldm]\\\\n            \\\"],[4,\\\"if\\\",[[23,[\\\"showWarning\\\"]]],null,{\\\"statements\\\":[[7,\\\"span\\\"],[11,\\\"class\\\",\\\"alert-text\\\"],[9],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-exclamation-circle\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"deliveryPackaging.ldmWarning\\\"],null]]]],[9],[10],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]},null],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[4,\\\"if\\\",[[23,[\\\"maxSegmentWeight\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"transport.maxSegmentWeight\\\"],null],false],[1,[21,\\\"maxSegmentWeight\\\"],false],[0,\\\" [kg]\\\"]],\\\"parameters\\\":[]},null],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showTruckHelperText\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[21,\\\"truckHelperText\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/trucks/truck-type-helper-text/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/trucks/truck-type-select/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    showRouteWarning: Ember.computed('transportType.priceListSetting.truckTypeRouteOfferRestriction', 'selectedTruck', '_truckTypes.{length,@each.id}', function () {\n      return !this.get('selectedTruck') && this.get('transportType.priceListSetting.truckTypeRouteOfferRestriction') && this.get('_truckTypes.length') === 0;\n    }),\n    selectedTruck: Ember.computed('model.truckType', '_truckTypes.{length,@each.id}', function () {\n      if (this.get('_truckTypes.length') === 0) {\n        console.debug('Brak dostępnych typów pojazdów dla tego zlecenia');\n        return null;\n      }\n\n      if (!this.get('_truckTypes').getEach('id').includes(this.get('model.truckType.id'))) {\n        console.debug('Typ pojazdu :: ' + this.get('model.truckType.id') + ' :: nie występuje w liście dostępnych pojazdów :: ' + this.get('_truckTypes').getEach('id'));\n        return null;\n      }\n\n      return this.get('model.truckType');\n    }),\n    showLdmWarning: Ember.computed('model.showLdmWarning', function () {\n      return this.get('model.showLdmWarning');\n    }),\n    _truckTypes: Ember.computed('ltlOnly', 'model.truckTypes.[]', function () {\n      const truckTypes = this.get('truckTypes') ? this.get('truckTypes') : this.get('model.truckTypes');\n\n      if (this.get('ltlOnly')) {\n        return truckTypes.filterBy('ltlPricingEnabled');\n      }\n\n      return truckTypes;\n    }),\n    transportType: Ember.computed('model.transportType', function () {\n      return this.get('model.transportType');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/trucks/truck-type-select/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"k0KaKBiI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"truckType\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"truckType\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"big\\\"],null],\\\"col-md-5 col-xs-12 control-label\\\",\\\"col-md-4 col-xs-12 control-label\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"transport.truckType\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"size\\\"]],\\\"big\\\"],null],\\\"col-md-7 col-xs-12\\\",\\\"col-md-8 col-xs-12\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"truck-type\\\"],[11,\\\"class\\\",\\\"col-xs-12 col-md-12 no-padding\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"selectedTruck\\\"]],[23,[\\\"_truckTypes\\\"]],true,\\\"nameInAppropriateLanguage\\\",[23,[\\\"disabled\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"truckType\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"truckType\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showHelper\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"components/trucks/truck-type-helper-text\\\",null,[[\\\"model\\\",\\\"truckTypeList\\\",\\\"showWarning\\\"],[[23,[\\\"model\\\"]],[23,[\\\"truckTypes\\\"]],[23,[\\\"showLdmWarning\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showRouteWarning\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"h5\\\"],[11,\\\"class\\\",\\\"text-danger\\\"],[9],[1,[27,\\\"t\\\",[\\\"truckType.noTruckTypeForRoute\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/trucks/truck-type-select/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/trucks/trucks-list/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    columns: Ember.computed(function () {\n      return [{\n        propertyName: 'registrationNumber',\n        title: this.get('intl').t('truck.registrationNumber'),\n        className: 'column-registration-number'\n      }, {\n        propertyName: 'truckTypeId',\n        title: this.get('intl').t('truck.truckType'),\n        className: 'column-truck-type',\n        filterWithSelect: true,\n        predefinedFilterOptions: this.get('store').peekAll('truck-type').map(tt => {\n          return {\n            value: tt.get('id'),\n            label: tt.get('nameInAppropriateLanguage')\n          };\n        })\n      }, {\n        propertyName: 'trailer',\n        title: this.get('intl').t('truck.trailer'),\n        className: 'column-trailer'\n      }, {\n        propertyName: 'description',\n        title: this.get('intl').t('truck.description'),\n        className: 'column-description'\n      }, {\n        propertyName: 'hds',\n        title: this.get('intl').t('truck.hds'),\n        className: 'column-hds',\n        filterWithSelect: true,\n        predefinedFilterOptions: [{\n          value: 'true',\n          label: this.get('intl').t('common.yes')\n        }, {\n          value: 'false',\n          label: this.get('intl').t('common.no')\n        }]\n      }, {\n        propertyName: 'lastUpdated',\n        title: this.get('intl').t('truck.lastUpdated'),\n        className: 'column-last-updated',\n        componentForFilterCell: 'server-table/filters/date-filter'\n      }];\n    }),\n    actions: {\n      openAddTruckModal(company, truck) {\n        if (!truck) {\n          truck = this.get('store').createRecord('truck', {\n            enabled: true,\n            isModeOfTransportation: false,\n            owner: company\n          });\n        }\n\n        this.set('action', 'showModal');\n        this.sendAction('action', 'companies.modals.add-truck', truck);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/trucks/trucks-list/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"MbG/+lPp\",\n    \"block\": \"{\\\"symbols\\\":[\\\"mt\\\",\\\"footer\\\",\\\"table\\\",\\\"body\\\",\\\"truck\\\",\\\"index\\\",\\\"header\\\"],\\\"statements\\\":[[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"no-margin\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"truck.label\\\"],null],false],[0,\\\" (\\\"],[1,[23,[\\\"trucks\\\",\\\"meta\\\",\\\"itemsCount\\\"]],false],[0,\\\")\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_TRUCK\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-right\\\"],[9],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"openAddTruckModal\\\",[23,[\\\"company\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"server-table\\\",null,[[\\\"clear\\\",\\\"data\\\",\\\"saveSuccessMessage\\\",\\\"columns\\\"],[[23,[\\\"clear\\\"]],[23,[\\\"trucks\\\"]],[23,[\\\"saveSuccessMessage\\\"]],[23,[\\\"columns\\\"]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom padding-bottom-big\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[22,1,[\\\"global-filter\\\"]],false],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-right\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"clear\\\"]]],null]],null]],[9],[1,[27,\\\"t\\\",[\\\"common.clearFilters\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"borderless-wrapper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,1,[\\\"table\\\"]],\\\"expected `mt.table` to be a contextual component but found a string. Did you mean `(component mt.table)`? ('apollo/pods/components/trucks/trucks-list/template.hbs' @ L23:C15) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,3,[\\\"header\\\"]],\\\"expected `table.header` to be a contextual component but found a string. Did you mean `(component table.header)`? ('apollo/pods/components/trucks/trucks-list/template.hbs' @ L24:C19) \\\"],null]],[[\\\"class\\\"],[\\\"companies-table-header\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,7,[\\\"row-sorting\\\"]],false],[0,\\\"\\\\n                    \\\"],[1,[22,7,[\\\"row-filtering\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,3,[\\\"body\\\"]],\\\"expected `table.body` to be a contextual component but found a string. Did you mean `(component table.body)`? ('apollo/pods/components/trucks/trucks-list/template.hbs' @ L28:C19) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,4,[\\\"visibleContent\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"car-registration-number\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_TRUCK\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"text-link\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[22,5,[\\\"registrationNumber\\\"]],false],[0,\\\"\\\\n                                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"openAddTruckModal\\\",[23,[\\\"company\\\"]],[22,5,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[22,5,[\\\"registrationNumber\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"truck-type-name\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,5,[\\\"truckType\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"trailer-registration-number\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,5,[\\\"trailer\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"truck-description\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,5,[\\\"description\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"truck-hds\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"common.\\\",[27,\\\"if\\\",[[22,5,[\\\"hds\\\"]],\\\"yes\\\",\\\"no\\\"],null]],null]],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"truck-last-updated\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"my-format-date\\\",[[22,5,[\\\"lastUpdated\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5,6]},null]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,1,[\\\"footer\\\"]],\\\"expected `mt.footer` to be a contextual component but found a string. Did you mean `(component mt.footer)`? ('apollo/pods/components/trucks/trucks-list/template.hbs' @ L60:C15) \\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[22,2,[\\\"pagination-numeric\\\"]],false],[0,\\\"\\\\n                \\\"],[1,[22,2,[\\\"pagination-simple\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/trucks/trucks-list/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/unit-amount-type-select/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    unitAmountTypes: Ember.A([]),\n\n    async init() {\n      this._super(...arguments);\n\n      const types = await this.store.findAll('transaction-unit-amount-type');\n      this.set('unitAmountTypes', types);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/unit-amount-type-select/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"TQnEVOOQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"unit\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transaction.unitAmountType\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-7 no-padding text-left \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"unitAmountType\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"unitAmountType\\\"]],[23,[\\\"unitAmountTypes\\\"]],true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"unitAmountType\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"unitAmountType\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/unit-amount-type-select/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/user-edit-form-outlet/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    isInMyAccount: Ember.computed('user.id', function () {\n      return this.get('user.id') === this.get('sessionAccount.currentUser.id');\n    }),\n    isEditing: Ember.computed('user.id', function () {\n      return this.get('user').get('id') !== null;\n    }),\n    limitedEdition: Ember.computed('user.{id,company.principalInDifferentPrincipalSpace}', function () {\n      return this.get('user.id') && this.get('user.company.principalInDifferentPrincipalSpace');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/user-edit-form-outlet/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"K0NdCeIX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"user-nav-header\\\",null,[[\\\"user\\\"],[[23,[\\\"user\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h1\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isInMyAccount\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"user.myAccount\\\"],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"link-to\\\",[\\\"invitations\\\"],[[\\\"class\\\"],[\\\"btn btn-default pull-right\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"tabs.invitations\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"unless\\\",[[23,[\\\"user\\\",\\\"company\\\",\\\"isAuxiliaryPartner\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"user.editUser\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"user\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"user.createUser\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[23,[\\\"user\\\",\\\"company\\\",\\\"name\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"limitedEdition\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 col-sm-12 text-info padding-bottom-big padding-top\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-info-circle\\\"],[9],[10],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"user.limitedDataHint\\\"],[[\\\"user\\\",\\\"company\\\"],[[23,[\\\"user\\\",\\\"name\\\"]],[23,[\\\"user\\\",\\\"company\\\",\\\"partnershipWithPrincipal\\\",\\\"contractorShortName\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[14,1],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/user-edit-form-outlet/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/user-nav-header/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    userAccessService: Ember.inject.service('user-access-service'),\n    showMainDataLink: Ember.computed('user.id', function () {\n      return this.shouldShowTab(\"ROLE_EDIT_USERS_MAIN_DATA\", null);\n    }),\n    showRampLink: Ember.computed('user.id', function () {\n      return this.shouldShowTab(\"ROLE_EDIT_USERS_RAMP\", \"ROLE_EDIT_MY_RAMP\");\n    }),\n    showNotificationLink: Ember.computed('user.id', function () {\n      return this.shouldShowTab(\"ROLE_EDIT_USERS_NOTIFICATION\", \"ROLE_EDIT_MY_NOTIFICATION\");\n    }),\n    showQueueLink: Ember.computed('user.id', function () {\n      return this.shouldShowTab(\"ROLE_MANAGE_QUEUES_ACCESSIBILITY\", \"ROLE_EDIT_MY_QUEUES\");\n    }),\n    showActivityLink: Ember.computed('user.id', function () {\n      return this.shouldShowTab(\"ROLE_ACCESS_USERS_ACTIVITY\", \"ROLE_ACCESS_USERS_ACTIVITY\");\n    }),\n    shouldShowTab: function (generalRole, myAccountRole) {\n      return this.get('userAccessService').canAccess(this.get('user.id'), generalRole, myAccountRole);\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/user-nav-header/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"sgRSYeW8\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"user\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 text-right padding-bottom\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showMainDataLink\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"users.edit\\\",[23,[\\\"user\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"users.data\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showRampLink\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"users.ramps\\\",[23,[\\\"user\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"users.ramps\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showNotificationLink\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"users.notifications\\\",[23,[\\\"user\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"users.notifications\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showQueueLink\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"users.queues\\\",[23,[\\\"user\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"users.queues\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showActivityLink\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"users.activity\\\",[23,[\\\"user\\\",\\\"id\\\"]],[27,\\\"query-params\\\",null,[[\\\"page\\\",\\\"max\\\"],[1,10]]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"users.activity\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/user-nav-header/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/users/rodo-information/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Component.extend({\n    approveAllPoints: 'approveAllPoints',\n    unApproveSomePoints: 'unApproveSomePoints',\n    allParagraphsAccepted: function () {\n      const acceptance = this.get('paragraph_1_accept') && this.get('paragraph_2_accept') && this.get('paragraph_3_accept') && this.get('paragraph_4_accept') && this.get('paragraph_5_accept') && this.get('paragraph_6_accept') && this.get('paragraph_7_1_accept') && this.get('paragraph_7_2_accept') && this.get('paragraph_7_3_accept') && this.get('paragraph_8_accept') && this.get('paragraph_9_accept') && this.get('paragraph_10_accept');\n\n      if (acceptance) {\n        this.sendAction('approveAllPoints');\n      } else {\n        this.sendAction('unApproveSomePoints');\n      }\n    }.observes('paragraph_1_accept', 'paragraph_2_accept', 'paragraph_3_accept', 'paragraph_4_accept', 'paragraph_5_accept', 'paragraph_6_accept', 'paragraph_7_1_accept', 'paragraph_7_2_accept', 'paragraph_7_3_accept', 'paragraph_8_accept', 'paragraph_9_accept', 'paragraph_10_accept', 'test'),\n    actions: {}\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/users/rodo-information/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"WxBNOLnG\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-justify\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"statute.accept.subHeader\\\"],null],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-justify\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_1\\\"],null],false],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"name\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"paragraph_1_accept\\\",\\\"paragraph_1_accept\\\",[23,[\\\"paragraph_1_accept\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"paragraph_1_accept\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.label\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-justify\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_2\\\"],null],false],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"name\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"paragraph_2_accept\\\",\\\"paragraph_2_accept\\\",[23,[\\\"paragraph_2_accept\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"paragraph_2_accept\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.label\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-justify\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_3\\\"],null],false],[0,\\\"\\\\n    \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_3_1\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_3_2\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_3_3\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_3_4\\\"],null],false],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"name\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"paragraph_3_accept\\\",\\\"paragraph_3_accept\\\",[23,[\\\"paragraph_3_accept\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"paragraph_3_accept\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.label\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-justify\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_4\\\"],null],false],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"name\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"paragraph_4_accept\\\",\\\"paragraph_4_accept\\\",[23,[\\\"paragraph_4_accept\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"paragraph_4_accept\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.label\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-justify\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_5\\\"],null],false],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"name\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"paragraph_5_accept\\\",\\\"paragraph_5_accept\\\",[23,[\\\"paragraph_5_accept\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"paragraph_5_accept\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.informed\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-justify\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_6\\\"],null],false],[0,\\\"\\\\n    \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_6_1\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_6_2\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_6_3\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_6_4\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_6_5\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_6_6\\\"],null],false],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_6_bottom\\\"],null],false],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"name\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"paragraph_6_accept\\\",\\\"paragraph_6_accept\\\",[23,[\\\"paragraph_6_accept\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"paragraph_6_accept\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.informed\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-justify\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_7\\\"],null],false],[0,\\\"\\\\n    \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"text-link-light\\\"],[11,\\\"target\\\",\\\"_blank\\\"],[12,\\\"href\\\",[28,[[27,\\\"t\\\",[\\\"statute.links.policy\\\"],null]]]],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_7_1\\\"],null],false],[10],[10],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"text-link-light\\\"],[11,\\\"target\\\",\\\"_blank\\\"],[12,\\\"href\\\",[28,[[27,\\\"t\\\",[\\\"statute.links.manual\\\"],null]]]],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_7_2\\\"],null],false],[10],[10],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"text-link-light\\\"],[11,\\\"target\\\",\\\"_blank\\\"],[12,\\\"href\\\",[28,[[27,\\\"t\\\",[\\\"statute.links.statute\\\"],null]]]],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_7_3\\\"],null],false],[10],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_7_bottom\\\"],null],false],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"name\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"paragraph_7_1_accept\\\",\\\"paragraph_7_1_accept\\\",[23,[\\\"paragraph_7_1_accept\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"paragraph_7_1_accept\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.policy\\\"],null],false],[10],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"name\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"paragraph_7_2_accept\\\",\\\"paragraph_7_2_accept\\\",[23,[\\\"paragraph_7_2_accept\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"paragraph_7_2_accept\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.manual\\\"],null],false],[10],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"name\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"paragraph_7_3_accept\\\",\\\"paragraph_7_3_accept\\\",[23,[\\\"paragraph_7_3_accept\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"paragraph_7_3_accept\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.statute\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-justify\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_8\\\"],null],false],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"name\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"paragraph_8_accept\\\",\\\"paragraph_8_accept\\\",[23,[\\\"paragraph_8_accept\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"paragraph_8_accept\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.label\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-justify\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_9\\\"],null],false],[0,\\\"\\\\n    \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_9_1\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_9_2\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_9_3\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_9_4\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_9_5\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_9_6\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_9_7\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_9_8\\\"],null],false],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_9_bottom\\\"],null],false],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"name\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"paragraph_9_accept\\\",\\\"paragraph_9_accept\\\",[23,[\\\"paragraph_9_accept\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"paragraph_9_accept\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.informed\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-justify\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"statute.accept.paragraph_10\\\"],null],false],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"name\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"paragraph_10_accept\\\",\\\"paragraph_10_accept\\\",[23,[\\\"paragraph_10_accept\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"paragraph_10_accept\\\"],[9],[1,[27,\\\"t\\\",[\\\"statute.accept.inTouch\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/users/rodo-information/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/users/users-extended-list/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"DnZApl9P\",\n    \"block\": \"{\\\"symbols\\\":[\\\"user\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-responsive\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"user.name\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"company\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"company.label\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"user.email\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"roleGroup.label\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"user.lastLoginDate\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"user.status.label\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[27,\\\"not\\\",[[23,[\\\"company\\\",\\\"id\\\"]]],null],[27,\\\"can-edit-user\\\",null,[[\\\"companyId\\\"],[[23,[\\\"company\\\",\\\"id\\\"]]]]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl4\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.edit\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"users\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"name\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"users.show\\\",[22,1,[\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"company\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"company.shortName\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"company\\\",\\\"shortName\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl1 word-break-all\\\"],[11,\\\"data-field-name\\\",\\\"email\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"email\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3\\\"],[11,\\\"data-field-name\\\",\\\"roleGroup\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"roleGroup\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"lastLoginDate\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"user.status.\\\",[22,1,[\\\"accountStatus\\\"]]],null]],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can-edit-user\\\",null,[[\\\"companyId\\\"],[[22,1,[\\\"company\\\",\\\"id\\\"]]]]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl4\\\"],[11,\\\"data-field-name\\\",\\\"edit\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"users.edit\\\",[22,1,[\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/users/users-extended-list/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/voivodeship-select/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    store: Ember.inject.service(),\n    country: Ember.computed(function () {\n      return this.get('country');\n    }),\n    actions: {\n      setVoivodeship(voivodeshipName) {\n        const self = this;\n        this.get('store').queryRecord('voivodeship', {\n          name: voivodeshipName\n        }).then(voivodeship => {\n          self.set('voivodeship', voivodeship);\n        }).catch(response => {\n          console.error(response);\n          self.set('errors', response.errors);\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/voivodeship-select/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"benIogq5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"voivodeship\\\"],\\\"statements\\\":[[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"placeholder\\\",\\\"renderInPlace\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"voivodeship\\\",\\\"name\\\"]],[23,[\\\"country\\\",\\\"voivodeships\\\"]],[27,\\\"t\\\",[\\\"company.selectVoivodeship\\\"],null],true,[27,\\\"action\\\",[[22,0,[]],\\\"setVoivodeship\\\"],null]]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/voivodeship-select/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/warehouse-location/multiple-select/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    // TODO: A-12882 Mamy dwa komponenty do pola lokalizacja - ujednolicenie\n    init(...args) {\n      this._super(...args);\n\n      (true && !(Array.isArray(this.get('inputArray'))) && Ember.assert(this.get('intl').t('debug.requiredArgAndType', {\n        name: 'inputArray',\n        type: 'Array'\n      }), Array.isArray(this.get('inputArray'))));\n      (true && !(Array.isArray(this.get('options'))) && Ember.assert(this.get('intl').t('debug.requiredArgAndType', {\n        name: 'options',\n        type: 'Array<WarehouseLocationModel>'\n      }), Array.isArray(this.get('options'))));\n      (true && !(!!this.get('step')) && Ember.assert(this.get('intl').t('debug.requiredArgAndType', {\n        name: 'step',\n        type: 'Step Model'\n      }), !!this.get('step')));\n    },\n\n    intl: Ember.inject.service(),\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    selectedWarehouseLocations: Ember.computed.reads('inputArray'),\n    warehouseLocationsOptions: Ember.computed.reads('options'),\n    warehouseLocationDisabled: Ember.computed(function () {\n      return !this.get('authorityCheckerService').actionCanBePerformed('ROLE_EDIT_WAREHOUSE_LOCATION', this.get('step.transport'));\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/warehouse-location/multiple-select/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"msIfV1Rt\",\n    \"block\": \"{\\\"symbols\\\":[\\\"swl\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group form-group-padding \\\",[27,\\\"if\\\",[[23,[\\\"step\\\",\\\"errors\\\",\\\"stepWarehouseLocations\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.warehouseLocationLabel\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-7\\\"],[11,\\\"data-field-name\\\",\\\"warehouse-locations\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select-multiple\\\",null,[[\\\"placeholder\\\",\\\"selected\\\",\\\"options\\\",\\\"disabled\\\",\\\"searchEnabled\\\",\\\"renderInPlace\\\",\\\"onchange\\\"],[[27,\\\"t\\\",[\\\"warehouse.warehouseLocationLabel\\\"],null],[23,[\\\"selectedWarehouseLocations\\\"]],[23,[\\\"warehouseLocationsOptions\\\"]],[23,[\\\"warehouseLocationDisabled\\\"]],false,true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"inputArray\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[4,\\\"if\\\",[[23,[\\\"required\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"help-block alert-text\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"small\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"errors.blankSelect\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/warehouse-location/multiple-select/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/warehouse-zone-nav-header/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Tf08uX6J\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"warehouseZone\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 text-right padding-bottom\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"warehouseZones.edit\\\",[23,[\\\"warehouseZone\\\"]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"warehouseZone.settings\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"link-to\\\",[\\\"algorithm-settings.index\\\",[27,\\\"query-params\\\",null,[[\\\"warehouseZoneId\\\"],[[23,[\\\"warehouseZone\\\",\\\"id\\\"]]]]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"warehouseZone.algorithmSettings\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/warehouse-zone-nav-header/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/warehouse/assortment-group-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({});\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/warehouse/assortment-group-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"H/iqcpaV\",\n    \"block\": \"{\\\"symbols\\\":[\\\"ag\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"warehouse\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[11,\\\"data-field-name\\\",\\\"assortment-group-section\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-heading\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"b\\\"],[9],[1,[27,\\\"t\\\",[\\\"assortmentGroup.listLabel\\\"],null],false],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"warehouse\\\",\\\"assortmentGroups\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"p\\\"],[12,\\\"class\\\",[28,[[27,\\\"unless\\\",[[22,1,[\\\"enabled\\\"]],\\\"disabled\\\"],null]]]],[9],[0,\\\"\\\\n                                        \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_EDIT_ASSORTMENT_GROUP\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"assortment-groups.edit\\\",[22,1,[]]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/warehouse/assortment-group-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/warehouse/warehouse-location-multi-select/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    // TODO: A-12882 Mamy dwa komponenty do pola lokalizacja - ujednolicenie\n    store: Ember.inject.service(),\n    warehouseLocationsNames: Ember.computed('step.stepWarehouseLocations.length', function () {\n      const objects = [];\n      this.get('step.stepWarehouseLocations').forEach(whl => {\n        objects.pushObject({\n          id: whl.get('id'),\n          nameInAppropriateLanguage: whl.get('warehouseLocation.nameInAppropriateLanguage'),\n          wlId: whl.get('warehouseLocation.id')\n        });\n      });\n      return objects;\n    }),\n    actions: {\n      setWarehouseLocations: function (locations) {\n        const self = this;\n        const step = this.get('step');\n        const swls = step.get('stepWarehouseLocations');\n\n        if (!step || !swls) {\n          return;\n        }\n\n        locations.forEach(loc => {\n          if (!swls.get('length') || !swls.any(swl => {\n            return loc.id === swl.get('id');\n          })) {\n            const newSwl = self.get('store').createRecord('stepWarehouseLocation', {\n              step,\n              warehouseLocation: self.get('store').peekRecord('warehouseLocation', loc.id),\n              test: true\n            });\n            step.get('stepWarehouseLocations').pushObject(newSwl);\n          }\n        });\n\n        if (locations.length === step.get('stepWarehouseLocations.length')) {\n          return;\n        }\n\n        let obsoleteLoc = step.get('stepWarehouseLocations').find(swl => {\n          return !locations.any(loc => loc.id === swl.get('id'));\n        });\n\n        if (!obsoleteLoc) {\n          obsoleteLoc = step.get('stepWarehouseLocations').find(swl => {\n            return !locations.any(loc => !loc.id && loc.wlId === swl.get('warehouseLocation.id'));\n          });\n        }\n\n        if (obsoleteLoc) {\n          step.get('stepWarehouseLocations').removeObject(obsoleteLoc);\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/warehouse/warehouse-location-multi-select/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"i8uWGWHL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"swl\\\"],\\\"statements\\\":[[4,\\\"power-select-multiple\\\",null,[[\\\"id\\\",\\\"dropdownClass\\\",\\\"placeholder\\\",\\\"selected\\\",\\\"options\\\",\\\"disabled\\\",\\\"searchEnabled\\\",\\\"renderInPlace\\\",\\\"onchange\\\"],[\\\"warehouse-location\\\",[27,\\\"if\\\",[[23,[\\\"warehouseLocationDropdownHidden\\\"]],\\\"hidden\\\"],null],[27,\\\"t\\\",[\\\"warehouse.warehouseLocationLabel\\\"],null],[23,[\\\"warehouseLocationsNames\\\"]],[23,[\\\"step\\\",\\\"stepWarehouseLocationsLabels\\\"]],[23,[\\\"disabled\\\"]],false,true,[27,\\\"action\\\",[[22,0,[]],\\\"setWarehouseLocations\\\"],null]]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"step\\\"]],\\\"stepWarehouseLocations\\\",\\\"has-error\\\"]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/warehouse/warehouse-location-multi-select/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/warehouse/warehouse-location-section/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    whLocations: Ember.computed('model.warehouse.warehouseLocations', function () {\n      return this.get('warehouse.warehouseLocations').sortBy('namePl');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/components/warehouse/warehouse-location-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"EFj1XVwK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"location\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"warehouse\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[11,\\\"data-field-name\\\",\\\"assortment-group-section\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-heading\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"b\\\"],[9],[1,[27,\\\"t\\\",[\\\"warehouse.warehouseLocationLabelPlural\\\"],null],false],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"whLocations\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,1,[\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"p\\\"],[12,\\\"class\\\",[28,[[27,\\\"unless\\\",[[22,1,[\\\"enabled\\\"]],\\\"disabled\\\"],null]]]],[9],[0,\\\"\\\\n                                            \\\"],[1,[22,1,[\\\"namePl\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"warehouse-locations.edit\\\",[22,1,[]]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/components/warehouse/warehouse-location-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/conditional-rate/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model,\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = Model.extend(_modelValidator.default, {\n    intl: Ember.inject.service(),\n    routeOffer: belongsTo('routeOffer', {\n      async: true\n    }),\n    type: attr('string'),\n    intervalStop: attr('number'),\n    rate: attr('number'),\n    enabled: attr('boolean'),\n    validations: {\n      intervalStop: {\n        custom: [{\n          validation: function (key, value) {\n            return !!value;\n          },\n          message: 'blank'\n        }, {\n          validation: function (key, value) {\n            if (!value) {\n              return true;\n            }\n\n            return !value.toString().includes(',');\n          },\n          message: function (key, value, self) {\n            return self.get('intl').t('errors.dotSeparator');\n          }\n        }]\n      },\n      rate: {\n        custom: [{\n          validation: function (key, value) {\n            return !!value;\n          },\n          message: 'blank'\n        }, {\n          validation: function (key, value) {\n            if (!value) {\n              return true;\n            }\n\n            return !value.toString().includes(',');\n          },\n          message: function (key, value, self) {\n            return self.get('intl').t('errors.dotSeparator');\n          }\n        }]\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/contractors-group-type/model\", [\"exports\", \"ember-data/model\", \"ember-data\"], function (_exports, _model, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    hasMany\n  } = _emberData.default;\n\n  var _default = _model.default.extend({\n    intl: Ember.inject.service(),\n    contractorsGroups: hasMany('contractorsGroup', {\n      async: true\n    }),\n    name: attr('string'),\n    idx: attr('number'),\n    lastUpdated: attr('date'),\n    requiresContractorsGroup: attr('boolean'),\n    canSelectOnlyOneContractorsGroup: attr('boolean'),\n    partnershipTypesWithAccess: attr('string'),\n    isPrivate: attr('boolean'),\n    nameInAppropriateLanguage: Ember.computed('name', function () {\n      const self = this;\n      return this.get('intl').t('contractors-group-type.' + self.get('name'));\n    }).readOnly()\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/contractors-group/modals/create-contractors-group/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    contractorsGroup: Ember.computed('model.contractorsGroup', function () {\n      return this.get('model.contractorsGroup');\n    }),\n    ibans: Ember.computed('', function () {\n      const ibans = Ember.A();\n      this.get('store').peekAll('country').forEach(c => {\n        ibans.pushObject(c.ibanSymbol);\n      });\n      return ibans;\n    }),\n    title: Ember.computed('transport.{title,internalIndex}', function () {\n      return this.get('intl').t('contractors-group.addGroup');\n    }),\n    actions: {\n      async save() {\n        const contractorsGroup = this.get('contractorsGroup');\n\n        if (!contractorsGroup.validate()) {\n          return;\n        }\n\n        const self = this;\n\n        try {\n          await contractorsGroup.save();\n          self.get('model.groupType').notifyPropertyChange('lastUpdated');\n          self.get('model.partnership').notifyPropertyChange('partnershipContractorsGroups');\n          $('.save-group-button').button('reset');\n          self.send('refreshModel');\n          this.send('hideModal');\n        } catch (error) {\n          console.error('Bład podczas zapsywania grupy kontrahentów :: ' + error);\n        }\n      },\n\n      setCountry(country) {\n        const iban = country.ibanSymbol;\n        this.set('contractorsGroup.activeWhenCountryIn', iban);\n      },\n\n      cancel() {\n        console.debug('Zamykamy okienko dodawania grupy...');\n        this.get('contractorsGroup').rollback();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/contractors-group/modals/create-contractors-group/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"GBsIBOlV\",\n    \"block\": \"{\\\"symbols\\\":[\\\"iban\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"showCancelButton\\\",\\\"cancel\\\"],[[23,[\\\"title\\\"]],true,[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal driver-section\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"contractorsGroup\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"contractors-group.name\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[11,\\\"data-field-name\\\",\\\"contractors-group-name\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"contractorsGroup\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"contractorsGroup\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"contractorsGroup\\\",\\\"errors\\\",\\\"nameEn\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"contractors-group.nameEn\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[11,\\\"data-field-name\\\",\\\"contractors-group-nameEn\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"contractorsGroup\\\",\\\"nameEn\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"contractorsGroup\\\"]],\\\"nameEn\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"contractorsGroup\\\",\\\"errors\\\",\\\"shortName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"contractors-group.shortName\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[11,\\\"data-field-name\\\",\\\"contractors-group-shortName\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"contractorsGroup\\\",\\\"shortName\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"contractorsGroup\\\"]],\\\"shortName\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"contractorsGroup\\\",\\\"errors\\\",\\\"shortNameEn\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"contractors-group.shortNameEn\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[11,\\\"data-field-name\\\",\\\"contractors-group-shortNameEn\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"contractorsGroup\\\",\\\"shortNameEn\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"contractorsGroup\\\"]],\\\"shortNameEn\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"contractorsGroup\\\",\\\"errors\\\",\\\"activeWhenCountryIn\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"contractors-group.activeWhenCountryIn\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[11,\\\"data-field-name\\\",\\\"contractors-group-activeWhenCountryIn\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchField\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"contractorsGroup\\\",\\\"activeWhenCountryIn\\\"]],[23,[\\\"ibans\\\"]],\\\"ibanSymbol\\\",true,[27,\\\"t\\\",[\\\"company.selectCountry\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"contractorsGroup\\\",\\\"activeWhenCountryIn\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"span\\\"],[12,\\\"data-option-name\\\",[23,[\\\"country\\\",\\\"ibanSymbol\\\"]]],[9],[1,[22,1,[]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"contractorsGroup\\\"]],\\\"activeWhenCountryIn\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"contractorsGroup\\\",\\\"errors\\\",\\\"priority\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"contractors-group.priority\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[11,\\\"data-field-name\\\",\\\"contractors-group-priority\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\"],[\\\"number\\\",\\\"form-control\\\",[23,[\\\"contractorsGroup\\\",\\\"priority\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"contractorsGroup\\\"]],\\\"priority\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"contractorsGroup\\\",\\\"errors\\\",\\\"isDefault\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"contractors-group.isDefault\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7 col-xs-12\\\"],[11,\\\"data-field-name\\\",\\\"contractors-group-isDefault\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"contractorsGroup\\\",\\\"isDefault\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"contractorsGroup\\\"]],\\\"isDefault\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons padding-top-big\\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"buttom\\\"],[11,\\\"class\\\",\\\"btn btn-primary save-group-button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/contractors-group/modals/create-contractors-group/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/contractors-group/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    hasMany,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = _emberData.default.Model.extend(_modelValidator.default, {\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    languageService: Ember.inject.service('language-service'),\n    changeTracker: {\n      auto: true,\n      enableIsDirty: true\n    },\n    documentValidations: hasMany('documentValidation', {\n      async: true\n    }),\n    principalCompany: belongsTo('company', {\n      async: true\n    }),\n    groupType: belongsTo('contractorsGroupType', {\n      async: true\n    }),\n    name: attr('string'),\n    nameEn: attr('string'),\n    shortName: attr('string'),\n    shortNameEn: attr('string'),\n    activeWhenCountryIn: attr('string'),\n    priority: attr('number'),\n    isDefault: attr('boolean'),\n    validations: {\n      name: {\n        presence: {\n          message: 'blank'\n        }\n      }\n    },\n    nameInAppropriateLanguage: Ember.computed('name', 'nameEn', function () {\n      const propertyName = this.get('languageService').findProperLanguageVersion('name', 'nameEn');\n      return this.get(propertyName);\n    }).readOnly(),\n    shortNameInAppropriateLanguage: Ember.computed('nameInAppropriateLanguage', 'shortName', 'shortNameEn', function () {\n      const propertyName = this.get('languageService').findProperLanguageVersion('shortName', 'shortNameEn');\n      return this.get(propertyName) || this.get('nameInAppropriateLanguage');\n    }).readOnly(),\n    obligatoryDocuments: Ember.computed('documentValidations.[]', function () {\n      return this.get('documentValidations').filterBy('obligatory', true);\n    }),\n    optionalDocuments: Ember.computed('documentValidations.[]', function () {\n      return this.get('documentValidations').filterBy('obligatory', false);\n    }),\n    idsOfObligatoryDocumentsTypes: Ember.computed('obligatoryDocuments.[]', function () {\n      return this.get('obligatoryDocuments').map(d => d.get('documentType.id'));\n    }).readOnly(),\n    idsOfOptionalDocumentsTypes: Ember.computed('optionalDocuments.[]', function () {\n      return this.get('optionalDocuments').map(d => d.get('documentType.id'));\n    }).readOnly(),\n    obligatoryDocumentsNames: Ember.computed('obligatoryDocuments.[]', function () {\n      const self = this;\n      return this.get('obligatoryDocuments').map(d => self.get('intl').t('sectionType.' + d.get('documentType.name'))).join(', ');\n    }).readOnly(),\n    optionalDocumentsNames: Ember.computed('optionalDocuments.[]', function () {\n      const self = this;\n      return this.get('optionalDocuments').map(d => self.get('intl').t('sectionType.' + d.get('documentType.name'))).join(', ');\n    }).readOnly(),\n    shouldHaveTheObligatoryDocuments: Ember.computed('obligatoryDocuments', function () {\n      return this.get('obligatoryDocuments.length') > 0;\n    }).readOnly(),\n    shouldHaveTheOptionalDocuments: Ember.computed('optionalDocuments', function () {\n      return this.get('optionalDocuments.length') > 0;\n    }).readOnly(),\n    hasErrors: Ember.computed('errors.length', function () {\n      return this.get('errors.length') > 0;\n    }).readOnly(),\n\n    /**\n     * Określa, czy grupa powinna być widoczna, ale zablokowana do edycji\n     */\n    shouldBeDisabled: function (partnership) {\n      if (!this.get('activeWhenCountryIn')) {\n        return false;\n      }\n\n      const companyCountry = partnership.get('contractorCompany.country.ibanSymbol');\n      return !companyCountry || this.get('activeWhenCountryIn').search(companyCountry) === -1;\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/contractors-group/serializer\", [\"exports\", \"ember-data\", \"apollo/mixins/serializer-mixin\"], function (_exports, _emberData, _serializerMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, _serializerMixin.default, {\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    attrs: {\n      groupType: {\n        serialize: 'records'\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/country/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model,\n    attr,\n    hasMany\n  } = _emberData.default;\n\n  var _default = Model.extend({\n    ibanSymbol: attr('string'),\n    alternativeIsoCodes: attr('list'),\n    name: attr('string'),\n    phonePrefix: attr('string'),\n    searchFieldCountry: function () {\n      return this.get('name') + this.get('ibanSymbol');\n    }.property(''),\n    isWithoutPostalCode: attr('boolean'),\n    voivodeships: attr('list')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/courier-invoice/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend(_modelValidator.default, {\n    intl: Ember.inject.service(),\n    transport: _emberData.default.belongsTo('transport', {\n      async: true\n    }),\n    number: _emberData.default.attr('string'),\n    date: _emberData.default.attr('date'),\n    base64: _emberData.default.attr('string'),\n    fileName: _emberData.default.attr('string'),\n    validations: {}\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/courier-order-error/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend(_modelValidator.default, {\n    transport: _emberData.default.belongsTo('transport', {\n      async: true\n    }),\n    errorCode: _emberData.default.attr('string'),\n    errorMessage: _emberData.default.attr('string'),\n    errorType: _emberData.default.attr('string')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/courier-order/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    transport: belongsTo('transport', {\n      async: true\n    }),\n    bookingNumber: attr('string'),\n    trackingNumber: attr('string'),\n    tntAccessCode: attr('string'),\n    documents: attr()\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/courier-package/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    changeTracker: {\n      auto: true\n    },\n    intl: Ember.inject.service(),\n    loadStep: belongsTo('step', {\n      async: true,\n      inverse: null\n    }),\n    unloadStep: belongsTo('step', {\n      async: true,\n      inverse: null\n    }),\n    packageType: belongsTo('packageType', {\n      async: true\n    }),\n    length: attr('number'),\n    width: attr('number'),\n    height: attr('number'),\n    weight: attr('number'),\n    packageValue: attr('number'),\n    description: attr('string'),\n    quantity: attr('number'),\n    lastUpdated: attr('date'),\n    idx: attr('number'),\n    enabled: attr('boolean'),\n    ordinalNumber: Ember.computed('idx', function () {\n      return this.get('idx') + 1;\n    }).readOnly(),\n    sortValue: Ember.computed('id', function () {\n      return this.get('id') || Number.MAX_SAFE_INTEGER.toString();\n    }),\n    internalId: Ember.computed('id', function () {\n      return this.get('id');\n    }),\n    hasChanges: Ember.computed('hasDirtyAttributes', function () {\n      return this.get('hasDirtyAttributes') > 0;\n    }),\n    totalValue: Ember.computed('quantity', 'packageValue', function () {\n      return (Math.round(this.get('quantity') * this.get('packageValue') * 100) / 100).toFixed(2) || 0;\n    }),\n    transport: Ember.computed('loadStep.transport', 'unloadStep.transport', function () {\n      return this.get('loadStep.transport') || this.get('unloadStep.transport');\n    }),\n    validations: {\n      packageType: {\n        custom: [{\n          validation: function (key, value) {\n            return value.content;\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('errors.blankSelect');\n          }\n        }]\n      },\n      length: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!value) {\n              return false;\n            }\n\n            const formattedValue = Number(value.toString().replace(',', '.'));\n\n            if (formattedValue) {\n              value = formattedValue;\n              model.set(key, value);\n            }\n\n            if (value < 1 || value > 9999999) {\n              return false;\n            }\n\n            return /^[0-9]*[.|,]?[0-9]*$/.test(value);\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('courier.validation.range');\n          }\n        }]\n      },\n      width: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!value) {\n              return false;\n            }\n\n            const formattedValue = Number(value.toString().replace(',', '.'));\n\n            if (formattedValue) {\n              value = formattedValue;\n              model.set(key, value);\n            }\n\n            if (value < 1 || value > 9999999) {\n              return false;\n            }\n\n            return /^[0-9]*[.|,]?[0-9]*$/.test(value);\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('courier.validation.range');\n          }\n        }]\n      },\n      height: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!value) {\n              return false;\n            }\n\n            const formattedValue = Number(value.toString().replace(',', '.'));\n\n            if (formattedValue) {\n              value = formattedValue;\n              model.set(key, value);\n            }\n\n            if (value < 1 || value > 9999999) {\n              return false;\n            }\n\n            return /^[0-9]*[.|,]?[0-9]*$/.test(value);\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('courier.validation.range');\n          }\n        }]\n      },\n      weight: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!value) {\n              return false;\n            }\n\n            const formattedValue = Number(value.toString().replace(',', '.'));\n\n            if (formattedValue) {\n              value = formattedValue;\n              model.set(key, value);\n            }\n\n            if (value < 0.001 || value > 999999999999) {\n              return false;\n            }\n\n            return /^[0-9]*[.|,]?[0-9]*$/.test(value);\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('courier.validation.float.range');\n          }\n        }]\n      },\n      packageValue: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!value) {\n              return false;\n            }\n\n            const formattedValue = Number(value.toString().replace(',', '.'));\n\n            if (formattedValue) {\n              value = formattedValue;\n              model.set(key, value);\n            }\n\n            if (value < 0.001 || value > 999999999999) {\n              return false;\n            }\n\n            return /^[0-9]*[.|,]?[0-9]*$/.test(value);\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('courier.validation.float.range');\n          }\n        }]\n      },\n      description: {\n        custom: [{\n          validation: function (key, value) {\n            return value;\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('errors.blank');\n          }\n        }]\n      },\n      quantity: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!value) {\n              return false;\n            }\n\n            const formattedValue = Number(value.toString().replace(',', '.'));\n\n            if (formattedValue) {\n              value = formattedValue;\n              model.set(key, value);\n            }\n\n            if (value < 1 || value > 9999999) {\n              return false;\n            }\n\n            return /^\\d+$/.test(value);\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('courier.validation.integer.range');\n          }\n        }]\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/courier-pricing-error/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend(_modelValidator.default, {\n    changeTracker: {\n      auto: true\n    },\n    intl: Ember.inject.service(),\n    errorCode: _emberData.default.attr('string'),\n    errorMessage: _emberData.default.attr('string'),\n    errorType: _emberData.default.attr('string'),\n    courierPricing: _emberData.default.belongsTo('courierPricing'),\n    validations: {}\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/courier-pricing-error/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, {\n    primaryKey: 'id'\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/courier-pricing-success/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    changeTracker: Object.freeze({\n      auto: true\n    }),\n    intl: Ember.inject.service(),\n    serviceName: attr('string'),\n    priceFuel: attr('number'),\n    priceSumNetto: attr('number'),\n    priceSumVat: attr('number'),\n    price: attr('number'),\n    priceBase: attr('number'),\n    priceBaseVat: attr('number'),\n    pricePeak: attr('number'),\n    priceMultiplePackaging: attr('number'),\n    priceCurrency: belongsTo('currency'),\n    dhlPricePremium: attr('number'),\n    dhlPriceEs: attr('number'),\n    dhlPickupCapabilities: attr('string'),\n    dhlDeliveryCapabilities: attr('string'),\n    dhlProductCode: attr('string'),\n    courierPricing: belongsTo('courierPricing'),\n    validations: {}\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/courier-pricing-success/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, {\n    primaryKey: 'id'\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/courier-pricing/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend(_modelValidator.default, {\n    changeTracker: {\n      auto: true\n    },\n    intl: Ember.inject.service(),\n    transport: _emberData.default.belongsTo('transport', {\n      async: true\n    }),\n    courierCompany: _emberData.default.belongsTo('company', {\n      async: true\n    }),\n    enabled: _emberData.default.attr('boolean'),\n    pricingSuccesses: _emberData.default.hasMany('courierPricingSuccess', {\n      async: true\n    }),\n    pricingErrors: _emberData.default.hasMany('courierPricingError', {\n      async: true\n    }),\n    validations: {}\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/courier-pricing/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, {\n    primaryKey: 'id',\n    attrs: {\n      pricingSuccesses: {\n        serialize: 'records',\n        deserialize: 'records'\n      },\n      pricingErrors: {\n        serialize: 'records',\n        deserialize: 'records'\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/courier-setting/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend({\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    transportType: _emberData.default.belongsTo('transportType', {\n      async: true\n    }),\n    isGetCourierQuotesFieldVisibility: _emberData.default.attr('boolean'),\n    shouldGetCourierQuotesByDefault: _emberData.default.attr('boolean'),\n    translationKey: _emberData.default.attr('string', {\n      defaultValue() {\n        return \"COURIER_PACKAGE\";\n      }\n\n    }),\n    disableConfirmation: Ember.computed('', function () {\n      return this.getTranslation('disableConfirm');\n    }),\n    sectionLabel: Ember.computed('', function () {\n      return this.getTranslation('sectionLabel');\n    }),\n    packageTypePlaceholder: Ember.computed('', function () {\n      return this.getTranslation('packageTypePlaceholder');\n    }),\n    packageIdPlaceholder: Ember.computed('', function () {\n      return this.getTranslation('packageIdPlaceholder');\n    }),\n\n    getTranslation(propertyName) {\n      const transportType = this.get('transportType');\n      const cpSetting = this.get('sessionAccount').getCourierSetting(transportType.get('id'));\n\n      if (!cpSetting) {\n        return this.get('intl').t(`courier.COURIER_PACKAGE.${propertyName}`);\n      }\n\n      const key = cpSetting.get('translationKey');\n      return this.get('intl').t(`courier.${key}.${propertyName}`);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/courier/modals/package-form/controller\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    courierPackage: Ember.computed('model', function () {\n      return this.get('model.courierPackage') ? this.get('model.courierPackage') : this.get('model');\n    }),\n    modalTitle: Ember.computed('', function () {\n      const transportType = this.get('transport.transportType');\n      const cpSetting = this.get('sessionAccount').getCourierSetting(transportType.get('id'));\n\n      if (!cpSetting) {\n        return this.get('intl').t('courier.COURIER_PACKAGE.add');\n      }\n\n      const key = cpSetting.get('translationKey');\n      return this.get('intl').t(`courier.${key}.add`);\n    }),\n    showCourierPackageValue: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_CAN_SEE_COURIER_PACKAGE_VALUE');\n    }),\n    packageTypes: Ember.computed('', function () {\n      return this.get('store').peekAll('package-type').filter(packageType => {\n        return packageType.get('name') === 'PALLETS' || packageType.get('name') === 'CARTONS';\n      });\n    }),\n    courierSetting: Ember.computed('model.transport.transportType.courierSetting', function () {\n      return this.get('model.transport.transportType.courierSetting');\n    }),\n    // eslint-disable-next-line ember/no-observers\n    saveInitialProperties: Ember.observer('courierPackage.modelOpenTime', function () {\n      const initialProperties = {\n        courierPackage: this.get('courierPackage').toJSON()\n      };\n      this.set('initialProperties', initialProperties);\n    }),\n    transport: Ember.computed('model.transport', function () {\n      return this.get('model.transport');\n    }),\n    isEditionDisabled: Ember.computed('transport.disabled', function () {\n      if (!this.get('transport')) {\n        return true;\n      }\n\n      const transport = this.get('transport').actionCanBePerformed ? this.get('transport') : this.get('transport.content');\n      return !transport.actionCanBePerformed('EDIT_PACKAGES');\n    }),\n    isNewPackage: Ember.computed('courierPackage.id', function () {\n      return this.get('courierPackage.id');\n    }),\n    isDeletionAllowed: Ember.computed('courierPackage.id', 'transport.transportType', function () {\n      if (!this.get('courierPackage.id') && this.get('courierPackage.isNew') || !this.get('transport')) {\n        return false;\n      }\n\n      const transport = this.get('transport').actionCanBePerformed ? this.get('transport') : this.get('transport.content');\n      return transport.actionCanBePerformed('DELETE_PACKAGES');\n    }),\n    actions: {\n      save() {\n        this.get('courierPackage').validate();\n\n        if (this.get('courierPackage').get('errors.length')) {\n          return;\n        }\n\n        this.get('courierPackage').set('enabled', true);\n        (0, _jquery.default)('#sub-modal').data('skip-cancel-action', true);\n        this.send('hideModal', 'sub-modal');\n      },\n\n      setPackageType(packageType) {\n        this.get('courierPackage').set('packageType', packageType);\n      },\n\n      disable() {\n        if (this.get('courierPackage').get('id')) {\n          this.get('courierPackage').set('enabled', false);\n          const transport = this.get('courierPackage').get('transport');\n          transport.get('courierPackages').filter(cp => cp.get('id') === this.get('courierPackage').get('id')).get('firstObject').set('enabled', false);\n        } else {\n          const transport = this.get('courierPackage').get('transport');\n          transport.get('courierPackages').removeObject(this.get('model'));\n          this.get('courierPackage').unloadRecord();\n        }\n\n        this.send('hideModal', 'sub-modal');\n      },\n\n      /**\n       * Obsługa anulowania / zamknięcia formularza courierPackage'u.\n       *\n       * Musimy rozważyć trzy przypadki.\n       *\n       * 1. courierPackage jest niezapisany ani w bazie, ani w ember-data --> zupełnie usuwamy jego model; taka sytuacja wystąpi,\n       * jeśli dodajemy nowy courierPackage, ale nie zapiszemy go i klikniemy \"Anuluj\".\n       *\n       * 2. courierPackage jest zapisany, wprowadzamy zmiany w jego formularzu (po kliknięciu ołówka) a następnie\n       * wybieramy \"Anuluj\" --> usuwamy wprowadzone zmiany, ale poza tym courierPackage pozostaje przypisany do transportu.\n       *\n       * 3. courierPackage jest niezapisany w bazie, ale jest już dodany do transportu --> taka sytuacja wystąpi,\n       * gdy dodajemy nowy courierPackage i uda się go zapisać (courierPackage pojawi się w tabelce), następnie otworzymy\n       * formularz ze szczegółami (po kliknięciu ołówka) oraz wybierzemy \"Anuluj\" --> zamykamy wtedy formularz, ale nie usuwamy courierPackage'u\n       */\n      cancel() {\n        console.debug('Zamykamy okienko edycji courierPackageów...'); // To, że courierPackage został poprawnie dodany do transportu (pojawił się na liście courierPackageów) możemy\n        // poznać sprawdzając flagę `enabled` .\n        //\n        // Nie możemy użyć tu `this.get('model').rollbackAttributes()`, ponieważ możliwa jest taka sytuacja:\n        //  - użytkownik dodaje nowy courierPackage;\n        //  - użytkownik otwiera formularz edycji courierPackage'u (ikona ołówka) oraz klika \"Anuluj\"\n        //\n        // Efekt jest taki, że `rollbackAttributes` uzna, że powinien zupełnie usunąć courierPackage, a nie powinniśmy tego\n        // robić w tej sytuacji (użytkownik spodziewa się tylko zamknięcia formularza).\n        //\n        // Stąd tak naprawdę te skomplikowane operacje z `initialProperties` itp (gałąź `else`).\n\n        if (this.get('courierPackage') && !this.get('courierPackage.id') && !this.get('courierPackage.enabled')) {\n          // 1. courierPackage jest niezapisany ani w bazie, ani w ember-data\n          this.get('transport.courierPackages').removeObject(this.get('courierPackage'));\n          this.get('courierPackage').unloadRecord();\n        } else if (this.get('model.id')) {\n          // courierPackage jest zapisany, wprowadzamy zmiany w jego formularzu (po kliknięciu ołówka) a następnie wybieramy \"Anuluj\"\n          const enabled = this.get('courierPackage.enabled');\n          this.get('courierPackage').rollback();\n\n          if (!enabled) {\n            this.get('courierPackage').set('enabled', false);\n          }\n        } else {\n          // courierPackage jest niezapisany w bazie, ale jest już dodany do transportu\n          const self = this;\n          const initialProperties = this.get('initialProperties');\n          const initialModelProperties = initialProperties.courierPackage;\n          const excluded = ['transport', 'enabled', 'loadStep', 'unloadStep', 'packageType'];\n          const belongsToKeys = ['step', 'product'];\n          Object.keys(initialModelProperties).filter(key => !excluded.includes(key)).forEach(key => {\n            const value = initialModelProperties[key];\n\n            if (belongsToKeys.includes(key)) {\n              if (value) {\n                this.get('courierPackage').set(key, self.get('store').peekRecord(key, value));\n              }\n            } else {\n              this.get('courierPackage').set(key, initialModelProperties[key]);\n            }\n          });\n        }\n      },\n\n      close() {\n        this.send('hideModal', 'sub-modal');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/courier/modals/package-form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"uksWo67p\",\n    \"block\": \"{\\\"symbols\\\":[\\\"packageType\\\",\\\"error\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"outletName\\\",\\\"cancel\\\"],[[23,[\\\"modalTitle\\\"]],\\\"sub-modal\\\",[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"courierPackage\\\",\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"courierPackage\\\",\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",[22,2,[\\\"attribute\\\"]],[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\" :: \\\"],[1,[22,2,[\\\"message\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"data-form-name\\\",\\\"add-package-form\\\"],[11,\\\"class\\\",\\\"form-horizontal section\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"length\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-length\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"courierPackage\\\",\\\"errors\\\",\\\"length\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"courierPackage\\\",\\\"length\\\"]],[27,\\\"and\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"isNewPackage\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"courierPackage\\\"]],\\\"length\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"width\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-width\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"courierPackage\\\",\\\"errors\\\",\\\"width\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"courierPackage\\\",\\\"width\\\"]],[27,\\\"and\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"isNewPackage\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"courierPackage\\\"]],\\\"width\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"height\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-height\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"courierPackage\\\",\\\"errors\\\",\\\"height\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"courierPackage\\\",\\\"height\\\"]],[27,\\\"and\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"isNewPackage\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"courierPackage\\\"]],\\\"height\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"weight\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-weight\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"courierPackage\\\",\\\"errors\\\",\\\"weight\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"courierPackage\\\",\\\"weight\\\"]],[27,\\\"and\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"isNewPackage\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"courierPackage\\\"]],\\\"weight\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"quantity\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"number-of-packages\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"courierPackage\\\",\\\"errors\\\",\\\"quantity\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"courierPackage\\\",\\\"quantity\\\"]],[27,\\\"and\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"isNewPackage\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"courierPackage\\\"]],\\\"quantity\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"packageType\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-type\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"courierPackage\\\",\\\"errors\\\",\\\"packageType\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"courierPackage\\\",\\\"packageType\\\"]],[23,[\\\"packageTypes\\\"]],true,[23,[\\\"courierSetting\\\",\\\"packageTypePlaceholder\\\"]],[27,\\\"and\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"isNewPackage\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"setPackageType\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"packageTypes.\\\",[22,1,[\\\"name\\\"]],\\\".label\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"courierPackage\\\"]],\\\"packageType\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"description\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-description\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"courierPackage\\\",\\\"errors\\\",\\\"description\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"courierPackage\\\",\\\"description\\\"]],[27,\\\"and\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"isNewPackage\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"courierPackage\\\"]],\\\"description\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showCourierPackageValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"courier\\\",\\\"packageValue\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-price\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"courierPackage\\\",\\\"errors\\\",\\\"packageValue\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"courierPackage\\\",\\\"packageValue\\\"]],[27,\\\"and\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"isNewPackage\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"courierPackage\\\"]],\\\"packageValue\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.courierSection.goodsValueCurrency\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"package-price-currency\\\"],[11,\\\"class\\\",\\\"col-md-8 col-xs-12\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"transport\\\",\\\"goodsValueCurrency\\\"]],true]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[27,\\\"and\\\",[[23,[\\\"isEditionDisabled\\\"]],[23,[\\\"isNewPackage\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"save-package-button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.ok\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"isDeletionAllowed\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"dataButtonName\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",\\\"delete-package-button\\\",[23,[\\\"courierSetting\\\",\\\"disableConfirmation\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"disable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"ban\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.disable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"cancel-index-button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isEditionDisabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.close\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/courier/modals/package-form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/currency/model\", [\"exports\", \"ember-data\", \"ember-data/model\"], function (_exports, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend({\n    symbol: attr('string'),\n    idx: attr('number'),\n    exchangeRate: attr('number')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/custom-field-definition/adapter\", [\"exports\", \"apollo/adapters/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _application.default.extend({\n    urlForQuery(query) {\n      if (query.planning) {\n        return `${this.urlPrefix()}/planning/customFieldDefinitions`;\n      }\n\n      return this._super(...arguments);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/custom-field-definition/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    hasMany,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    changeTracker: Object.freeze({\n      auto: true\n    }),\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    languageService: Ember.inject.service('language-service'),\n    FIELD_TYPES: Object.freeze({\n      TYPE_TEXT: 'text',\n      TYPE_DATE: 'date',\n      TYPE_DATETIME: 'datetime',\n      TYPE_NUMBER: 'number',\n      TYPE_SELECT: 'select',\n      TYPE_TEXT_AREA: 'text_area'\n    }),\n    TRANSPORT_PANEL_VALUES: Ember.A(['ADVICE', 'DISCREPANCY_REPORT', 'WEIGHT', 'DOCUMENTS', 'LOGS', 'INSPECTION']),\n    TRANSPORT_PANEL_CLASS: Object.freeze({\n      ADVICE: 'advice-panel',\n      DISCREPANCY_REPORT: 'discrepancy-report-panel',\n      WEIGHT: 'weight-panel',\n      DOCUMENTS: 'documents-panel',\n      LOGS: 'logs-panel',\n      INSPECTION: 'inspection-panel'\n    }),\n    transportType: belongsTo('transportType', {\n      async: true\n    }),\n    task: belongsTo('task', {\n      async: true\n    }),\n    options: hasMany('customFieldOption', {\n      async: true\n    }),\n    type: attr('string'),\n    name: attr('string'),\n    textAreaRowsNumber: attr('number', {\n      defaultValue() {\n        return 2;\n      }\n\n    }),\n    englishName: attr('string'),\n    obligatory: attr('boolean'),\n    visibleDuringTransportCreation: attr('boolean', {\n      defaultValue() {\n        return true;\n      }\n\n    }),\n    visibleInDiscrepancyReportSection: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    visibleInInspectionPanelSection: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    visibleInAdviceSection: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    visibleInWeightSection: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    visibleOnTimeWindow: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    visibleInOfferForm: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    enabled: attr('boolean', {\n      defaultValue() {\n        return true;\n      }\n\n    }),\n    filterInArchive: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    includedInPriceList: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    requiredInDelayedTransport: attr('boolean'),\n    delayedTask: belongsTo('task'),\n    timeIntervalValue: attr('number', {\n      defaultValue() {\n        return 0;\n      }\n\n    }),\n    timeIntervalUnit: attr('string', {\n      defaultValue() {\n        return 's';\n      }\n\n    }),\n    visibilityDependsOnDefinition: belongsTo('customFieldDefinition', {\n      async: true,\n      inverse: null\n    }),\n    visibilityDependsOnOption: belongsTo('customFieldOption', {\n      async: true,\n      inverse: null\n    }),\n    defaultOption: belongsTo('customFieldOption', {\n      async: true,\n      inverse: null\n    }),\n    autocompleteEnabled: attr('boolean'),\n    side: attr('string'),\n    idx: attr('number'),\n    minValue: attr('number'),\n    maxValue: attr('number'),\n    numberDecimalFormat: attr('string'),\n    visibleInDeliveryDocument: attr('boolean'),\n    visibleInTransportWeightReceipt: attr('boolean'),\n    deliveryAlias: attr('string'),\n    alias: attr('string'),\n    automaticValueEnabled: attr('boolean'),\n    automaticValue: attr('string'),\n    visibleInDelivery: attr('boolean'),\n    resetsTransportFromRoute: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    validations: {\n      type: {\n        presence: {\n          message: 'blankSelect'\n        }\n      },\n      name: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      englishName: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      minValue: {\n        custom: {\n          validation: function (key, value, model) {\n            if (!value) {\n              return true;\n            }\n\n            if (value.toString().includes(',')) {\n              return false;\n            }\n\n            return !(model.get('maxValue') && model.get('maxValue') < value);\n          },\n          message: function (key, value, model) {\n            if (value.toString().includes(',')) {\n              return 'dotSeparator';\n            }\n\n            if (model.get('maxValue') && model.get('maxValue') < value) {\n              return 'minHigherThanMax';\n            }\n          }\n        }\n      },\n      maxValue: {\n        custom: {\n          validation: function (key, value, model) {\n            if (!value) {\n              return true;\n            }\n\n            if (value.toString().includes(',')) {\n              return false;\n            }\n\n            return !(model.get('minValue') && model.get('minValue') > value);\n          },\n          message: function (key, value, model) {\n            if (value.toString().includes(',')) {\n              return 'dotSeparator';\n            }\n\n            if (model.get('minValue') && model.get('minValue') > value) {\n              return 'maxLowerThenMin';\n            }\n          }\n        }\n      },\n      numberDecimalFormat: {\n        custom: {\n          validation: function (key, value, model) {\n            if (!value) {\n              return true;\n            }\n\n            return /^[#,.0i_]+$/.test(value);\n          },\n          message: 'regex'\n        }\n      },\n      obligatory: {\n        custom: {\n          validation: function (key, value, model) {\n            if (!value) {\n              return true;\n            }\n\n            if (model.get('visibilityDependsOnDefinition.id')) {\n              return true;\n            }\n\n            return model.get('task.id') || model.get('visibleDuringTransportCreation');\n          },\n          message: 'invalid'\n        }\n      },\n      options: {\n        custom: {\n          validation: function (key, value, model) {\n            if (model.get('type') !== 'select') {\n              return true;\n            }\n\n            return value.get('length') >= 1;\n          },\n          message: 'empty'\n        }\n      },\n      visibilityDependsOnDefinition: {\n        custom: {\n          validation: function (key, value, model) {\n            if (!model.get('showDependencySection')) {\n              return true;\n            }\n\n            return !!value.get('id');\n          },\n          message: 'blankSelect'\n        }\n      },\n      textAreaRowsNumber: {\n        custom: {\n          validation: function (key, value, model) {\n            if (model.get('type') !== 'text_area') {\n              return true;\n            }\n\n            return value && value >= 1;\n          },\n          message: 'textAreaSize'\n        }\n      },\n      timeIntervalValue: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('requiredInDelayedTransport')) {\n              return true;\n            }\n\n            return !!value;\n          },\n          message: 'blank'\n        }, {\n          validation: function (key, value, model) {\n            if (!model.get('requiredInDelayedTransport')) {\n              return true;\n            }\n\n            return value && /[0-9]*/.test(value);\n          },\n          message: 'number'\n        }]\n      },\n      timeIntervalUnit: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('requiredInDelayedTransport')) {\n              return true;\n            }\n\n            return !!value;\n          },\n          message: 'blankSelect'\n        }]\n      }\n    },\n    visibleInTransportForm: Ember.computed('visibleInInspectionPanelSection', 'visibleInDiscrepancyReportSection', 'visibleInAdviceSection', 'visibleInWeightSection', 'visibleInOfferForm', function () {\n      return !this.get('visibleInInspectionPanelSection') && !this.get('visibleInDiscrepancyReportSection') && !this.get('visibleInAdviceSection') && !this.get('visibleInWeightSection');\n    }),\n    showDependencySection: Ember.computed('visibilityDependsOnDefinition.id', function () {\n      return this.get('visibilityDependsOnDefinition.id');\n    }),\n    showDefaultOptionSection: Ember.computed('defaultOption.id', function () {\n      return this.get('defaultOption.id');\n    }),\n    enabledOptions: Ember.computed('options.@each.enabled', function () {\n      return this.get('options').filterBy('enabled');\n    }),\n    isTextType: Ember.computed('type', function () {\n      return this.get('type') === this.get('FIELD_TYPES').TYPE_TEXT;\n    }).readOnly(),\n    isTextAreaType: Ember.computed('type', function () {\n      return this.get('type') === this.get('FIELD_TYPES').TYPE_TEXT_AREA;\n    }).readOnly(),\n    isNumberType: Ember.computed('type', function () {\n      return this.get('type') === this.get('FIELD_TYPES').TYPE_NUMBER;\n    }).readOnly(),\n    isDateType: Ember.computed('type', function () {\n      return [this.get('FIELD_TYPES').TYPE_DATE, this.get('FIELD_TYPES').TYPE_DATETIME].includes(this.get('type'));\n    }).readOnly(),\n    isOnlyDateType: Ember.computed('type', function () {\n      return this.get('type') === this.get('FIELD_TYPES').TYPE_DATE;\n    }),\n    isDateTimeType: Ember.computed('type', function () {\n      return this.get('type') === this.get('FIELD_TYPES').TYPE_DATETIME;\n    }).readOnly(),\n    isSelectType: Ember.computed('type', function () {\n      return this.get('type') === this.get('FIELD_TYPES').TYPE_SELECT;\n    }).readOnly(),\n    findDateFormat: Ember.computed('type', function () {\n      return this.get('type') === this.get('FIELD_TYPES').TYPE_DATETIME ? 'd.m.Y H:i' : 'd.m.Y';\n    }),\n    availableFieldTypes: Ember.computed(function () {\n      const text = this.get('FIELD_TYPES').TYPE_TEXT;\n      const number = this.get('FIELD_TYPES').TYPE_NUMBER;\n      const date = this.get('FIELD_TYPES').TYPE_DATE;\n      const datetime = this.get('FIELD_TYPES').TYPE_DATETIME;\n      return [text, number, date, datetime, this.get('FIELD_TYPES').TYPE_SELECT, this.get('FIELD_TYPES').TYPE_TEXT_AREA];\n    }).readOnly(),\n    nameInAppropriateLanguage: Ember.computed('name', 'englishName', function () {\n      const propertyName = this.get('languageService').findProperLanguageVersion('name', 'englishName');\n      return this.get(propertyName);\n    }).readOnly(),\n    englishNameTrimmed: Ember.computed('englishName', function () {\n      if (!this.get('englishName')) {\n        return '';\n      }\n\n      return this.get('englishName').replace(/ /g, '-').toLowerCase();\n    }),\n    hasErrors: Ember.computed('errors.length', 'options.@each.numberOfErrors', function () {\n      if (this.get('errors.length') > 0) {\n        return true;\n      }\n\n      return this.get('options').filterBy('numberOfErrors').get('length') > 0;\n    }).readOnly(),\n    canBeViewed: Ember.computed('transportType', 'id', function () {\n      const ars = this.get('transportType.content').findPositiveAuthorityRestrictionsByActionNameAndCustomFieldDefinition('ACCESS_CUSTOM_FIELD', this.get('id'));\n      return ars && ars.get('length') !== 0;\n    }),\n    hasAutomaticValueEnabled: Ember.computed('automaticValueEnabled,automaticValue', function () {\n      return !!this.get('automaticValueEnabled');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/custom-field-definition/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, {\n    attrs: {\n      options: {\n        embedded: 'save'\n      },\n      defaultOption: {\n        embedded: 'save'\n      }\n    },\n    serializeBelongsTo: function (record, json, relationship) {\n      var embeddedRecord, key;\n      key = relationship.key;\n      embeddedRecord = record.belongsTo(key);\n\n      if (embeddedRecord && this.attrs[key] && this.attrs[key].embedded === \"save\") {\n        var data = embeddedRecord.attributes();\n        data.id = embeddedRecord.id;\n\n        if (relationship.options.deepEmbedded) {\n          relationship.options.deepEmbedded.forEach(function (deepKey) {\n            if (embeddedRecord.belongsTo(deepKey)) {\n              data[deepKey] = embeddedRecord.belongsTo(deepKey).serialize();\n            }\n          });\n        }\n\n        json[key] = data;\n      } else {\n        this._super(record, json, relationship);\n      }\n    },\n    serializeHasMany: function (record, json, relationship) {\n      const key = relationship.key;\n      const hasManyRecords = record.hasMany(key);\n\n      if (hasManyRecords && this.attrs[key] && this.attrs[key].embedded === \"save\") {\n        json[key] = [];\n        hasManyRecords.forEach(function (item) {\n          const data = item.serialize();\n          data.id = item.id;\n          json[key].push(data);\n        });\n      } else {\n        this._super(record, json, relationship);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/custom-field-definitions/edit/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    UNIT_OPTIONS: Ember.A(['s', 'm', 'h', 'd']),\n    transportTypesEditController: Ember.inject.controller('transportTypes/edit'),\n    automaticGenerateDocumentActive: Ember.computed(function () {\n      return this.get('sessionAccount').getSettingValue('AUTOMATIC_GENERATE_DOCUMENT');\n    }),\n    accessToDiscrepancyReportSection: Ember.computed('model.id', function () {\n      return this.get('model.transportType.hasDiscrepancyReportEnabled');\n    }),\n    accessToInspectionPanelSection: Ember.computed('model.id', function () {\n      return this.get('model.transportType.randomTransportInspection');\n    }),\n    customFieldSplitValue: Ember.computed(function () {\n      return this.get('sessionAccount').getSettingValue('CUSTOM_FIELD_SPLIT_VALUE');\n    }),\n    availableOptions: Ember.computed('model.transportType.workflow.sortedTasks', function () {\n      return this.get('model.transportType.workflow.sortedTasks');\n    }),\n    showTaskHint: Ember.computed('model.task', function () {\n      return this.get('model.task');\n    }),\n    actions: {\n      save() {\n        const self = this;\n\n        if (!this.get('model.showDependencySection')) {\n          this.get('model').setProperties({\n            visibilityDependsOnDefinition: null,\n            visibilityDependsOnOption: null\n          });\n        }\n\n        if (!this.get('model.requiredInDelayedTransport')) {\n          this.get('model').setProperties({\n            delayedTask: null,\n            timeIntervalValue: null,\n            timeIntervalUnit: null\n          });\n        }\n\n        this.get('model').validate();\n\n        if (this.get('model.options')) {\n          this.get('model.options').forEach(opt => {\n            opt.validate();\n          });\n        }\n\n        if (this.get('model.hasErrors')) {\n          console.debug('The model contains errors. Aborting.');\n          $('html, body').animate({\n            scrollTop: 0\n          }, 'slow');\n          return;\n        }\n\n        const options = this.get('model.options');\n        self.get('model').save().then(fieldDefinition => {\n          self.setProperties({\n            success: true,\n            errors: []\n          });\n          const optionsCopy = options.slice(0);\n          optionsCopy.forEach(opt => {\n            if (opt && !opt.get('id')) {\n              self.get('model.options').removeObject(opt);\n              opt.unloadRecord();\n            }\n          });\n          console.debug(`Definition ${fieldDefinition.get('id')} has been saved successfully.`);\n          const msg = fieldDefinition.get('visibleOnTimeWindow') ? self.get('intl').t('custom-field-definition.saveSuccessMessageForTimeWindow') : self.get('intl').t('custom-field-definition.saveSuccessMessage');\n          self.set('successMessage', msg);\n          $('html, body').animate({\n            scrollTop: 0\n          }, 'slow');\n        }).catch(response => {\n          self.set('errors', response.errors);\n          $('html, body').animate({\n            scrollTop: 0\n          }, 'slow');\n        });\n      },\n\n      delete(cfd) {\n        const self = this;\n        const transportTypeId = cfd.get('transportType.id');\n        cfd.destroyRecord().then(() => {\n          self.setProperties({\n            success: true,\n            errors: []\n          });\n          const msg = self.get('intl').t('custom-field-definition.deleteSuccessMessage');\n          self.get('transportTypesEditController').set('successMessage', msg);\n          self.transitionToRoute('transport-types.edit', transportTypeId);\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n\n      cancel() {\n        this.get('model').rollback();\n        window.history.back();\n      },\n\n      setSide(side) {\n        this.set('model.side', side);\n      },\n\n      showDecimalFormatHint() {\n        this.send('showModal', 'custom-field-definitions.modals.decimal-format-hint');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/custom-field-definitions/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: Ember.A(['ROLE_CREATE_CUSTOM_FIELD_DEFINITIONS']),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      return this.store.findRecord('custom-field-definition', params.id);\n    },\n    actions: {\n      willTransition() {\n        // eslint-disable-next-line ember/no-controller-access-in-routes\n        this.get('controller').setProperties({\n          successMessage: null,\n          errors: null\n        });\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/custom-field-definitions/edit/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"rMp9mIyL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"timeIntervalUnit\\\",\\\"task\\\",\\\"task\\\",\\\"type\\\",\\\"error\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-tight\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[23,[\\\"model\\\",\\\"transportType\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\" ::\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,[\\\"model\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.create\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,5,[]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal padding-top\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"type\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.typeField\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8 form-control-static\\\"],[11,\\\"data-field-name\\\",\\\"field-type\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"custom-field-definition.type.\\\",[23,[\\\"model\\\",\\\"type\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"model\\\",\\\"type\\\"]],[23,[\\\"model\\\",\\\"availableFieldTypes\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"type\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"custom-field-definition.type.\\\",[22,4,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"type\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.name\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"definition-name\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"englishName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.englishName\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"definition-english-name\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"englishName\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"englishName\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"idx\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.order\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"order\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"idx\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"idx\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"isNumberType\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"minValue\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.minValue\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"minValue\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"minValue\\\"]],\\\"0.0000\\\"]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"minValue\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"maxValue\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.maxValue\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"maxValue\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"maxValue\\\"]],\\\"0.0000\\\"]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"maxValue\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"numberDecimalFormat\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"fa fa-info-circle text-info\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"showDecimalFormatHint\\\"]],[10],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.numberDecimalFormat.label\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"numberDecimalFormat\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"numberDecimalFormat\\\"]],\\\"#0.000\\\"]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"numberDecimalFormat\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"isTextAreaType\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"rows-number\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"textAreaRowsNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.textAreaRowsNumber\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"order\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"min\\\",\\\"value\\\"],[\\\"number\\\",\\\"form-control\\\",1,[23,[\\\"model\\\",\\\"textAreaRowsNumber\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"textAreaRowsNumber\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"obligatory\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.obligatory\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"obligatory\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"obligatory\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"obligatory\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"showTaskHint\\\"]],\\\"no-vertical-margin\\\"],null],\\\" \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"task\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.task\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8 form-control-static\\\"],[11,\\\"data-field-name\\\",\\\"task\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"allowClear\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"disabled\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,true,[23,[\\\"model\\\",\\\"task\\\"]],[23,[\\\"availableOptions\\\"]],false,[27,\\\"not\\\",[[23,[\\\"model\\\",\\\"obligatory\\\"]]],null],[27,\\\"t\\\",[\\\"custom-field-definition.noTaskSelected\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"task\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,3,[\\\"checkpointNameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"task\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showTaskHint\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group text-right\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-12 hint\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.taskHint\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"requiredInDelayedTransport\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.requiredInDelayedTransport\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"obligatory\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"requiredInDelayedTransport\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"requiredInDelayedTransport\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"requiredInDelayedTransport\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"showTaskHint\\\"]],\\\"no-vertical-margin\\\"],null],\\\" \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"task\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.requiredTaskInDelayedTransport\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8 form-control-static\\\"],[11,\\\"data-field-name\\\",\\\"task\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"allowClear\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,true,[23,[\\\"model\\\",\\\"delayedTask\\\"]],[23,[\\\"availableOptions\\\"]],false,[27,\\\"t\\\",[\\\"custom-field-definition.noTaskSelected\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"delayedTask\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,2,[\\\"checkpointNameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"task\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"requiredInDelayedTransport\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.amountOfDelayedTimeForTaskToBeRequired\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-2 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"timeIntervalValue\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"required\\\",\\\"min\\\",\\\"class\\\",\\\"value\\\"],[\\\"number\\\",\\\"required\\\",0,\\\"form-control\\\",[23,[\\\"model\\\",\\\"timeIntervalValue\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"timeIntervalValue\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-2 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"timeIntervalUnit\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"model\\\",\\\"timeIntervalUnit\\\"]],[23,[\\\"UNIT_OPTIONS\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"timeIntervalUnit\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"timeIntervalUnit\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"visibleDuringTransportCreation\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.visibleDuringTransportCreation\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"visible-during-transport-creation\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"visibleDuringTransportCreation\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"visibleDuringTransportCreation\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"visibleInAdviceSection\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.visibleInAdviceSection\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"visible-in-advice-section\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"visibleInAdviceSection\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"visibleInAdviceSection\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"accessToDiscrepancyReportSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"visibleInDiscrepancyReportSection\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.visibleInDiscrepancyReportSection\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"visible-in-discrepancy-report-section\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"visibleInDiscrepancyReportSection\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"visibleInDiscrepancyReportSection\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"accessToInspectionPanelSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"visibleInInspectionPanelSection\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.visibleInInspectionPanelSection\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"visible-in-inspection-panel-section\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"visibleInInspectionPanelSection\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"visibleInInspectionPanelSection\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"visibleInWeightSection\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.visibleInWeightSection\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"visible-in-weight-section\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"visibleInWeightSection\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"visibleInWeightSection\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"visibleOnTimeWindow\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.visibleOnTimeWindow\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"visible-on-time-window\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"visibleOnTimeWindow\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"visibleOnTimeWindow\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.visibleInTransportWeightReceipt\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"visible-on-time-window\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"visibleInTransportWeightReceipt\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"filterInArchive\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.filterInArchive\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"filter-in-archive\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"filterInArchive\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"filterInArchive\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"includedInPriceList\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.includedInPriceList\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"filter-in-archive\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"includedInPriceList\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"includedInPriceList\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"isTextType\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"autocompleteEnabled\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.autocompleteEnabled\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"autocomplete-enabled\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"autocompleteEnabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"autocompleteEnabled\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"visibleInDelivery\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.visibleInDelivery\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"autocomplete-enabled\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"visibleInDelivery\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"visibleInDelivery\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"resetsTransportFromRoute\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.resetsTransportFromRoute\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"resets_transport_from_route\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"resetsTransportFromRoute\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"resetsTransportFromRoute\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"automaticGenerateDocumentActive\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"visibleInDeliveryDocument\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.visibleInDeliveryDocument\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"visible-in-delivery-document\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"visibleInDeliveryDocument\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"visibleInDeliveryDocument\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.deliveryAlias\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"definition-delivery-alias\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"deliveryAlias\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"deliveryAlias\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"alias\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.alias\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"definition-alias\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"alias\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"alias\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"side\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.side\\\"],[[\\\"number\\\"],[[23,[\\\"customFieldSplitValue\\\"]]]]],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-toggle\\\",\\\"buttons\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"side\\\"]],\\\"LEFT\\\"],null],\\\"active\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setSide\\\",\\\"LEFT\\\"],null]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"input\\\"],[11,\\\"data-button-name\\\",\\\"side-left\\\"],[11,\\\"name\\\",\\\"options\\\"],[11,\\\"id\\\",\\\"option1\\\"],[11,\\\"autocomplete\\\",\\\"off\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[10],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.sideLeft\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"side\\\"]],\\\"RIGHT\\\"],null],\\\"active\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setSide\\\",\\\"RIGHT\\\"],null]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"input\\\"],[11,\\\"data-button-name\\\",\\\"side-right\\\"],[11,\\\"name\\\",\\\"options\\\"],[11,\\\"id\\\",\\\"option2\\\"],[11,\\\"autocomplete\\\",\\\"off\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[10],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.sideRight\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"side\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"type\\\"]],\\\"select\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"custom-field-options-table\\\",null,[[\\\"model\\\",\\\"addOption\\\",\\\"removeOption\\\"],[[23,[\\\"model\\\"]],[23,[\\\"addOption\\\"]],[23,[\\\"removeOption\\\"]]]]],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"custom-field-default-option\\\",null,[[\\\"model\\\"],[[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[1,[27,\\\"custom-field-dependency\\\",null,[[\\\"model\\\"],[[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"custom-field-definition-automatic-value\\\",null,[[\\\"model\\\"],[[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-danger\\\",[27,\\\"t\\\",[\\\"custom-field-definition.delete\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\",[23,[\\\"model\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"success\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"],[[\\\"on\\\",\\\"target\\\"],[\\\"submit\\\",[23,[\\\"view\\\"]]]]],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/custom-field-definitions/edit/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/custom-field-definitions/index/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({});\n\n  _exports.default = _default;\n});","define(\"apollo/pods/custom-field-definitions/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"NxfKnHWL\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/custom-field-definitions/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/custom-field-definitions/modals/decimal-format-hint/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    title: Ember.computed('', function () {\n      return this.get('intl').t(\"custom-field-definition.numberDecimalFormat.label\");\n    }),\n    actions: {\n      close: function () {\n        this.send('hideModal');\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/custom-field-definitions/modals/decimal-format-hint/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"BxRJSkYA\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"allowDraggable\\\",\\\"title\\\",\\\"cancel\\\"],[false,[23,[\\\"title\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"close\\\"],null]]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"logs-div \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"scrollable-modal-section\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\"],[11,\\\"id\\\",\\\"decimal-format-hint-table\\\"],[11,\\\"class\\\",\\\"table table-hover table-striped\\\"],[11,\\\"aria-multiselectable\\\",\\\"true\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.numberDecimalFormat.symbol\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.numberDecimalFormat.meaning\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    0\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.numberDecimalFormat.zero\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    #\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.numberDecimalFormat.hash\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    .\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.numberDecimalFormat.dot\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    ,\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.numberDecimalFormat.comma\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    -\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.numberDecimalFormat.minus\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"CLOSE\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.close\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/custom-field-definitions/modals/decimal-format-hint/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/custom-field-option/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend(_modelValidator.default, {\n    changeTracker: Object.freeze({\n      auto: true\n    }),\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    languageService: Ember.inject.service('language-service'),\n    definition: _emberData.default.belongsTo('customFieldDefinition', {\n      async: true,\n      inverse: 'options'\n    }),\n    relatedDefinition: _emberData.default.belongsTo('customFieldDefinition', {\n      async: true,\n      inverse: null\n    }),\n    relatedOptions: _emberData.default.hasMany('customFieldOption'),\n    name: _emberData.default.attr('string'),\n    englishName: _emberData.default.attr('string'),\n    alias: _emberData.default.attr('string'),\n    transportPanel: _emberData.default.attr('string'),\n    enabled: _emberData.default.attr('boolean', {\n      defaultValue() {\n        return true;\n      }\n\n    }),\n    validations: {\n      name: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      englishName: {\n        presence: {\n          message: 'blank'\n        }\n      }\n    },\n    nameInAppropriateLanguage: Ember.computed('name', 'englishName', function () {\n      const propertyName = this.get('languageService').findProperLanguageVersion('name', 'englishName');\n      return this.get(propertyName);\n    }),\n    numberOfErrors: Ember.computed('errors.length', function () {\n      return this.get('errors.length');\n    }),\n    allowsDiscrepancyReport: Ember.computed('transportPanel', function () {\n      return this.get('transportPanel') === 'DISCREPANCY_REPORT';\n    }),\n    allowsInspectionPanel: Ember.computed('transportPanel', function () {\n      return this.get('transportPanel') === 'INSPECTION';\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/custom-field-option/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, {\n    primaryKey: 'id',\n    attrs: {\n      relatedDefinition: {\n        serialize: 'id',\n        deserialize: 'id'\n      },\n      relatedOptions: {\n        serialize: 'ids',\n        deserialize: 'ids'\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/custom-field-value/model\", [\"exports\", \"ember-data/model\", \"ember-data\", \"ember-data-copyable\", \"apollo/mixins/model-validator\"], function (_exports, _model, _emberData, _emberDataCopyable, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, _emberDataCopyable.default, {\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    changeTracker: {\n      auto: true,\n      enableIsDirty: true\n    },\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    transport: belongsTo('transport', {\n      async: true\n    }),\n    definition: belongsTo('customFieldDefinition'),\n    option: belongsTo('customFieldOption'),\n    createdFromRoute: attr('boolean', {\n      defaultValue: function () {\n        return false;\n      }\n    }),\n    value: attr('string'),\n    lastUpdated: attr('date'),\n    validations: {\n      option: {\n        custom: [{\n          validation: function (key, value, model) {\n            // Validation is correct if definition is visibleInAdviceSection and transport not have advice,\n            if (model.get('definition.visibleInAdviceSection') && model.get('transport.advice.content') === null) {\n              return true;\n            } // This field is not visible when adding the advice, so we can not require it to be filled.\n\n\n            if (model.get('transport.isDuringAddingOfAdvice') && !model.get('definition.visibleInAdviceSection')) {\n              return true;\n            } // jeżeli pole nie jest widoczne - bo w polu zależnym została wybrana opcja\n            // powodująca jego ukrycie - nie przeprowadzamy walidacji\n\n\n            if (!model.get('isVisibleBasedOnDefinition')) {\n              return true;\n            } // Validation is correct if value is set,\n            // definition is not of a select type (in which case the 'value' is used),\n            // or if the field is not obligatory.\n\n\n            if (value && value.get('id') || model.get('definition.type') !== 'select' || !model.get('definition.obligatory')) {\n              return true;\n            }\n\n            if (model.get('definition.task.id')) {\n              const customFieldCheckpoints = model.get('transport.checkpoints').filterBy('task.id', model.get('definition.task.id'));\n              const customFieldCheckpoint = customFieldCheckpoints.sortBy('idx:desc').get('firstObject');\n              const currentCheckpoint = model.get('transport.firstUnconfirmedCheckpoint');\n\n              if (!customFieldCheckpoint) {\n                return true;\n              }\n\n              const currentCheckpointBlockade = currentCheckpoint && currentCheckpoint.get('idx') === customFieldCheckpoint.get('idx');\n\n              if (currentCheckpointBlockade && currentCheckpoint.get('isDuringAction')) {\n                return value && value.get('id');\n              }\n\n              return !currentCheckpoint || currentCheckpoint.get('idx') <= customFieldCheckpoint.get('idx');\n            } // Empty obligatory field should not validate if it's visible during transport creation\n            // or the transport is being updated.\n\n\n            return !(model.get('transport.id') || model.get('definition.visibleDuringTransportCreation'));\n          },\n          message: 'blank'\n        }]\n      },\n      value: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('definition.requiredInDelayedTransport')) {\n              const currentCheckpoint = model.get('transport.firstUnconfirmedCheckpoint');\n\n              if (currentCheckpoint.get('isCustomFieldRequiredInDelayedCheckpoint') === false) {\n                return true;\n              }\n\n              if (model.get('definition.delayedTask').get('id') !== currentCheckpoint.get('task.id')) {\n                return true;\n              }\n\n              if (!value && !model.get('formattedValue')) {\n                return false;\n              }\n\n              if (model.get('definition.type') === 'select' && model.get('formattedValue')) {\n                return true;\n              }\n\n              return !!value;\n            } // Validation is correct if definition is visibleInAdviceSection and transport not have advice,\n\n\n            if (model.get('definition.visibleInAdviceSection') && model.get('transport.advice.content') === null) {\n              return true;\n            } // This field is not visible when adding the advice, so we can not require it to be filled.\n\n\n            if (model.get('transport.isDuringAddingOfAdvice') && !model.get('definition.visibleInAdviceSection')) {\n              return true;\n            } // jeżeli pole nie jest widoczne - bo w polu zależnym została wybrana opcja\n            // powodująca jego ukrycie - nie przeprowadzamy walidacji\n\n\n            if (!model.get('isVisibleBasedOnDefinition')) {\n              return true;\n            } // Validation is correct if value is set,\n            // definition is of a select type (in which case the 'value' is not used at all),\n            // or if the field is not obligatory.\n\n\n            if (value || model.get('definition.type') === 'select' || !model.get('definition.obligatory')) {\n              return true;\n            }\n\n            if (model.get('definition.task.id')) {\n              const customFieldCheckpoints = model.get('transport.checkpoints').filterBy('task.id', model.get('definition.task.id'));\n              const customFieldCheckpoint = customFieldCheckpoints.sortBy('idx:desc').get('firstObject');\n              const currentCheckpoint = model.get('transport.firstUnconfirmedCheckpoint');\n\n              if (!customFieldCheckpoint) {\n                return true;\n              }\n\n              const currentCheckpointBlockade = currentCheckpoint && currentCheckpoint.get('idx') === customFieldCheckpoint.get('idx');\n\n              if (currentCheckpointBlockade && currentCheckpoint.get('isDuringAction')) {\n                return !!value;\n              }\n\n              return !currentCheckpoint || currentCheckpoint.get('idx') <= customFieldCheckpoint.get('idx');\n            } // Empty obligatory field should not validate if it's visible during transport creation\n            // or the transport is being updated.\n\n\n            return !(model.get('transport.id') || model.get('definition.visibleDuringTransportCreation'));\n          },\n          message: 'blank'\n        }, {\n          validation: function (key, value, model) {\n            // walidacja dla pól numerycznych\n            if (!model.get('definition.isNumberType') || !value) {\n              return true;\n            }\n\n            return /^(?:-(?:[1-9](?:\\d{0,2}(?:,\\d{3})+|\\d*))|(?:0|(?:[1-9](?:\\d{0,2}(?:,\\d{3})+|\\d*))))(?:([.]|[,])\\d+|)$/.test(value);\n          },\n          message: 'notProperValueType'\n        }, {\n          validation: function (key, value, model) {\n            // walidacja dla pól numerycznych\n            if (!model.get('definition.isNumberType') || !value) {\n              return true;\n            }\n\n            const minValue = model.get('definition.minValue');\n\n            if (minValue) {\n              if (Number(value) < minValue) {\n                return false;\n              }\n            }\n\n            return true;\n          },\n          message: function (key, value, model) {\n            const minValue = model.get('definition.minValue');\n            return this.get('intl').t('custom-field-value.errors.minValue.value', {\n              minValue\n            });\n          }\n        }, {\n          validation: function (key, value, model) {\n            // walidacja dla pól numerycznych\n            if (!model.get('definition.isNumberType') || !value) {\n              return true;\n            }\n\n            const maxValue = model.get('definition.maxValue');\n\n            if (maxValue) {\n              if (Number(value) > maxValue) {\n                return false;\n              }\n            }\n\n            return true;\n          },\n          message: function (key, value, model) {\n            const maxValue = model.get('definition.maxValue');\n            return this.get('intl').t('custom-field-value.errors.maxValue.value', {\n              maxValue\n            });\n          }\n        }]\n      }\n    },\n\n    /*\n        Fired when the record is ready to be interacted with, that is either loaded from the server or created locally.\n         Hook ustawia domyślną wartość pola CustomField w momencie gdy:\n        - pole jest typu 'SELECT'\n        - pole jest niewypełnione (nie przyszła jego wartość z backendu)\n        - definicja pola posiada przypisaną wartość domyślną\n    */\n    ready() {\n      const isSelectType = this.get('definition.isSelectType');\n      const isEmpty = !this.get('id');\n      const defaultOption = this.get('definition.defaultOption');\n\n      if (isSelectType && isEmpty && defaultOption) {\n        this.set('option', defaultOption);\n      }\n    },\n\n    numberOfErrors: Ember.computed('errors.length', function () {\n      return this.get('errors.length');\n    }),\n    visibleInOfferForm: Ember.computed('definition.visibleInOfferForm', function () {\n      return this.get('definition.visibleInOfferForm');\n    }),\n    editionDisabled: Ember.computed('createdFromRoute', 'transport.{id,activeAuction,transportType.authorityRestrictions.@each.authorityRange}', 'definition', function () {\n      if (this.get('createdFromRoute')) {\n        if (!this.get('transport.id')) {\n          return true;\n        }\n\n        return !this.get('transport.content').actionCanBePerformed('ROLE_UPDATE_CFS_IN_TRANSPORT_FROM_ROUTE');\n      }\n\n      return !this.actionCanBePerformed('UPDATE_CUSTOM_FIELD');\n    }),\n    shouldDataBeHidden: Ember.computed('transport.{id,firstUnconfirmedCheckpoint,transportType.authorityRestrictions.@each.authorityRange}', function () {\n      if (!this.get('transport.id')) {\n        return false;\n      }\n\n      return this.actionCanBePerformed('DISABLE_DATA_FIELDS');\n    }),\n    actionCanBePerformed: function (actionType) {\n      const positiveAuthorityRestrictions = this.get('transport.transportType.content').findPositiveAuthorityRestrictionsByActionNameAndCustomFieldDefinition(actionType, this.get('definition.id'));\n\n      if (positiveAuthorityRestrictions.get('length') === 0) {\n        return false;\n      }\n\n      return positiveAuthorityRestrictions.every(ar => ar.conditionIsFulfilled(this.get('transport')));\n    },\n    formattedValue: Ember.computed('value', 'option', 'definition.type', function () {\n      const value = this.get('value');\n\n      if (this.get('definition.isDateType')) {\n        return value ? moment(value).format('DD.MM.YYYY') : null;\n      } else if (this.get('definition.isSelectType')) {\n        return this.get('option.nameInAppropriateLanguage');\n      } else {\n        return value;\n      }\n    }),\n    isVisibleBasedOnAuthorityRestrictions: Ember.computed('transport.{id,transportType.authorityRestrictions.@each.authorityRange}', 'definition', function () {\n      return this.actionCanBePerformed('ACCESS_CUSTOM_FIELD');\n    }),\n    isVisibleBasedOnDefinition: Ember.computed('definition.{visibilityDependsOnDefinition.id,visibilityDependsOnOption.id}', 'transport.customFields.@each.option', function () {\n      if (!this.get('definition.visibilityDependsOnDefinition.id')) {\n        return true;\n      }\n\n      const dependentDefinitionId = this.get('definition.visibilityDependsOnDefinition.id');\n      const dependentOptionId = this.get('definition.visibilityDependsOnOption.id');\n      const selectedValueInDependentDefinition = this.get('transport.customFields').find(value => {\n        return value.get('definition.id') === dependentDefinitionId;\n      });\n      return selectedValueInDependentDefinition && selectedValueInDependentDefinition.get('option.id') && (!dependentOptionId || selectedValueInDependentDefinition.get('option.id') === dependentOptionId);\n    }),\n    isFilled: Ember.computed('value', 'option', 'definition.type', function () {\n      return this.get('value') || this.get('option.id');\n    }),\n    logString: Ember.computed('id', 'value', 'option.value', 'definition.name', function () {\n      const value = this.get('value') || this.get('option.value');\n      return `${this.get('definition.name')} -- ${value} (#${this.get('id')})`;\n    }),\n    isAssociatedWithPanel: Ember.computed('option', 'definition.isSelectType', 'option.transportPanel', function () {\n      return this.get('option') && this.get('definition.isSelectType') && this.get('option.transportPanel');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/default-transports/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n  /**\n   * Domyślna ścieżka do tabeli transportów - po wybraniu adresu /transports/,\n   * użytkownik zostanie przeniesiony do widoku zapmiętanego w localStorage, jeśli takiego nie ma\n   * to przenosimy użytkownika do widoku tabeli pierwszego z dostępnych typów,\n   * lub do widoku wszystkich typów - w zależności od ustawień.\n   */\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_TRANSPORT_TABLE'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n\n      const shouldDisplayAllTypes = this.get('sessionAccount').getSettingValue('SHOULD_RENDER_ALL_TRANSPORT_TYPES') === 'true' || this.get('sessionAccount.currentUser.roleGroup.isGuard'); // Po przejściu do zakładki `transporty` sprawdzamy czy uzytkownik ma zapisane w localStorage wartość ostatnio przeglądanego typu transportu\n      // i sprawdzamy czy ma dostęp do tego typu transportu, jesli tak to po przejsciu do tej zakładki wyświetlamy transport z zapamiętanego typu transportu\n\n      const transportTypes = this.get('store').peekAll('transportType');\n      const transportTypeFromLocalStorage = localStorage.getItem('LastVisitedTransportType');\n      const isTransportTypeFromLocalStorageInAvalibleTransportTypes = transportTypes.filterBy('canBeSeenByRoleGroup').any(tt => tt.alias === transportTypeFromLocalStorage);\n\n      if (shouldDisplayAllTypes) {\n        this.transitionTo('transport.index', transportTypeFromLocalStorage);\n      } else if (isTransportTypeFromLocalStorageInAvalibleTransportTypes || transportTypeFromLocalStorage === 'ALL') {\n        this.transitionTo('transports.index', transportTypeFromLocalStorage);\n      } else {\n        const userTransportTypes = this.get('sessionAccount.currentUser.transportTypes');\n        this.transitionTo('transports.index', userTransportTypes.get('firstObject.alias'));\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/delivery-custom-field-value/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model,\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = Model.extend({\n    definition: belongsTo('customFieldDefinition', {\n      async: true\n    }),\n    value: attr('string'),\n    option: belongsTo('customFieldOption', {\n      async: true\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/delivery-packaging/model\", [\"exports\", \"apollo/pods/ldm-packaging/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _model.LdmPackaging.extend({});\n\n  _exports.default = _default;\n});","define(\"apollo/pods/delivery-setting/adapter\", [\"exports\", \"apollo/adapters/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _application.default.extend({\n    urlForQuery(query) {\n      if (query.index) {\n        return `${this.urlPrefix()}/delivery-settings/index`;\n      }\n\n      return this._super(...arguments);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/delivery-setting/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    transportType: belongsTo('transportType', {\n      async: true\n    }),\n    weightThresholdUpper: attr('number'),\n    weightThresholdLower: attr('number'),\n    weightAlertColorUpper: attr('string'),\n    weightAlertColorLower: attr('string'),\n    requireAtLeastOnePackaging: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    autoGenerateDeliveryNumber: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    requireNetWeight: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    requireGrossWeight: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    requireFreightCost: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    requireStackingFactor: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    showSimplePackagingSection: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    availableStackingFactors: attr(),\n    checkCompatibilityOfLoadingCity: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    sendIfsMessageAfterTimeWindowAction: attr('boolean'),\n    copyContactDetailsForTransportation: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    validations: {\n      requireAtLeastOnePackaging: {\n        presence: true\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/delivery-setting/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, {\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    attrs: {\n      availableStackingFactors: {\n        serialize: false,\n        deserialize: 'ids'\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/delivery/modals/edit-invoice/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    store: Ember.inject.service(),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    errors: Ember.A([]),\n    intl: Ember.inject.service(),\n    currencies: Ember.computed('', function () {\n      return this.get('store').peekAll('currency');\n    }),\n    delivery: Ember.computed('model', function () {\n      return this.get('model');\n    }),\n    actions: {\n      editInvoice: async function () {\n        const delivery = this.get('delivery');\n        const path = this.get('apolloApiService').APOLLO_API.DELIVERY.UPDATE_INVOICE_DATA;\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, {\n            id: delivery.get('id')\n          }, {\n            body: JSON.stringify(delivery)\n          });\n\n          if (response.ok) {\n            delivery.reload();\n            this.send('hideModal');\n          } else {\n            const error = await response.json();\n            this.set('errors', error.errors);\n          }\n        } catch (error) {\n          this.set('errors', [this.get('intl').t('common.defaultError')]);\n          console.error(error);\n        }\n      },\n      cancel: function () {\n        this.get('delivery').rollbackAttributes();\n        this.send('hideModal');\n      },\n      close: function () {\n        this.send('hideModal');\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/delivery/modals/edit-invoice/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"TzUXZhzs\",\n    \"block\": \"{\\\"symbols\\\":[\\\"c\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"showCancelButton\\\",\\\"cancel\\\"],[[27,\\\"t\\\",[\\\"delivery.editInvoiceData\\\"],null],true,[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label text-right\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transaction.price\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-7 no-padding\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-7 no-left-padding \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"freightCost\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"PRICE\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"pattern\\\",\\\"min\\\",\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"number\\\",\\\"5\\\",\\\"^[0-9]+\\\\\\\\.[0-9][0-9]$\\\",\\\"0\\\",\\\"form-control\\\",[23,[\\\"model\\\",\\\"freightCost\\\"]],\\\"0.00\\\"]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"freightCost\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-5 no-padding pull-right\\\"],[11,\\\"data-field-name\\\",\\\"CURRENCY\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"freightCostCurrency\\\"]]],null],[23,[\\\"currencies\\\"]],true,\\\"symbol\\\",[27,\\\"t\\\",[\\\"common.currency\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"freightCostCurrency\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[\\\"symbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[12,\\\"data-loading-text\\\",[28,[[27,\\\"t\\\",[\\\"common.pleaseWait\\\"],null]]]],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"editInvoice\\\"]],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/delivery/modals/edit-invoice/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/delivery/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\", \"apollo/models/custom-field-pair\", \"apollo/utils/validators/step-dates-validator\"], function (_exports, _emberData, _model, _modelValidator, _customFieldPair, _stepDatesValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    hasMany,\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    rounding: Ember.inject.service('rounding-service'),\n    deliveryNumber: attr('string'),\n    netWeight: attr('number'),\n    grossWeight: attr('number'),\n    incoterms: attr('string'),\n    parentDeliveryNumber: attr('string'),\n    description: attr('string'),\n    documentType: attr('string'),\n    archived: attr('boolean'),\n    modeOfTransport: attr('string'),\n    freightCost: attr('number'),\n    loadStep: belongsTo('step', {\n      async: true,\n      deepEmbedded: ['warehouse', 'address']\n    }),\n    unloadStep: belongsTo('step', {\n      async: true,\n      deepEmbedded: ['warehouse', 'address']\n    }),\n    freightCostCurrency: belongsTo('currency', {\n      async: true\n    }),\n    invoiceNumber: attr('string'),\n    deliveryCustomFieldValues: hasMany('deliveryCustomFieldValue', {\n      async: false\n    }),\n    packaging: hasMany('deliveryPackaging', {\n      async: true,\n      deepEmbedded: ['packageType']\n    }),\n    realLoadDate: attr('date'),\n    realUnloadDate: attr('date'),\n    unloadContactPersonDetails: attr('string'),\n    isFromSap: attr('boolean'),\n    transportType: belongsTo('transportType', {\n      async: true\n    }),\n    deliverySetting: belongsTo('delivery-setting', {\n      async: true\n    }),\n    color: attr('string'),\n    requireFreightCostDuringTransaction: attr('boolean', {\n      defaultValue: function () {\n        return false;\n      }\n    }),\n    validations: {\n      deliveryNumber: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      incoterms: {\n        presence: {\n          message: 'blankSelect'\n        }\n      },\n      packaging: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('deliverySetting.requireAtLeastOnePackaging')) {\n              return model.get('packaging.length') > 0;\n            }\n\n            return true;\n          },\n          message: 'minimumOnePackage'\n        }, {\n          validation: function (key, value, model) {\n            if (model.get('deliverySetting.showSimplePackagingSection')) {\n              return model.get('packaging').filter(p => p.get('required')).every(p => p.validate({\n                only: ['quantity', 'packageType']\n              }));\n            }\n\n            if (model.get('packaging.length') === 0) {\n              return true;\n            }\n\n            if (model.get('deliverySetting.requireStackingFactor')) {\n              model.get('packaging').forEach(p => p.validate());\n            } else {\n              model.get('packaging').forEach(p => p.validate({\n                except: ['stackingFactor']\n              }));\n            }\n\n            return model.get('packaging').every(p => p.get('errors.length') === 0);\n          },\n          message: ''\n        }]\n      },\n      grossWeight: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('deliverySetting.requireGrossWeight')) {\n              return Number(value) > 0;\n            }\n\n            return true;\n          },\n          message: 'positiveNumber'\n        }]\n      },\n      netWeight: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('deliverySetting.requireNetWeight')) {\n              return Number(value) > 0;\n            }\n\n            return true;\n          },\n          message: 'positiveNumber'\n        }]\n      },\n      loadStep: {\n        custom: [{\n          validation: (key, value, model) => {\n            const loadStep = model.get('loadStep.content');\n            const unloadStep = model.get('unloadStep.content');\n            return loadStep.get('orderInTransport') < unloadStep.get('orderInTransport');\n          },\n          message: 'orderInTransport'\n        }, {\n          validation: function (key, value, model) {\n            if (!model.get('loadStep.isInWarehouse')) {\n              if (model.get('loadStep.address.id')) {\n                return true;\n              } else {\n                return !!model.get('loadStep.address.content') && model.get('loadStep.address.content').validate();\n              }\n            } else {\n              return model.get('loadStep.warehouse.id');\n            }\n          },\n          message: 'blankSelect'\n        }]\n      },\n      loadStepArrivalDate: {\n        custom: [{\n          validation: (key, value, model) => {\n            return _stepDatesValidator.default.arrivalDateBlank(model.get('loadStep'), model.get('transportType'), model.get('loadStep.arrivalDate'));\n          },\n          message: 'blankSelect'\n        }, {\n          validation: (key, value, model) => {\n            return _stepDatesValidator.default.arrivalDateInPast(model.get('loadStep'), model.get('transportType'), model.get('loadStep.arrivalDate'));\n          },\n          message: 'isInPast'\n        }]\n      },\n      loadStepMinAdviceDate: {\n        custom: [{\n          validation: (key, value, model) => {\n            return _stepDatesValidator.default.minAdviceDateBlank(model.get('loadStep'), model.get('transportType'), model.get('loadStep.minAdviceDate'));\n          },\n          message: 'blankSelect'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.minAdviceDateAfterWindowStart(model.get('loadStep'), model.get('loadStep.minAdviceDate'));\n          },\n          message: 'afterWindowStart'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.minAdviceDateOutsideOfInterval(model.get('loadStep'), model.get('loadStep.minAdviceDate'));\n          },\n          message: 'outsideOfInterval'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.minAdviceDateWorkingHours(model.get('loadStep'), model.get('loadStep.minAdviceDate'));\n          },\n          message: 'outsideWarehouseWorkHours'\n        }]\n      },\n      loadStepMaxAdviceDate: {\n        custom: [{\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.maxAdviceDateBlank(model.get('loadStep'), model.get('transportType'), model.get('loadStep.maxAdviceDate'));\n          },\n          message: 'blankSelect'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.maxAdviceDateEarly(model.get('loadStep'), model.get('loadStep.maxAdviceDate'));\n          },\n          message: 'earlierThanMinAdviceDate'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.maxAdviceDateInPast(model.get('loadStep'), model.get('transportType'), model.get('loadStep.maxAdviceDate'));\n          },\n          message: 'inThePast'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.maxAdviceDateWorkHours(model.get('loadStep'), model.get('loadStep.maxAdviceDate'));\n          },\n          message: 'outsideWarehouseWorkHours'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.maxAdviceDateEarly(model.get('loadStep'), model.get('loadStep.maxAdviceDate'));\n          },\n          message: 'beforeWindowStop'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.maxAdviceDateOutsideInterval(model.get('loadStep'), model.get('loadStep.maxAdviceDate'));\n          },\n          message: 'outsideOfInterval'\n        }]\n      },\n      unloadStep: {\n        custom: [{\n          validation: (key, value, model) => {\n            const loadStep = model.get('loadStep.content');\n            const unloadStep = model.get('unloadStep.content');\n            return loadStep.get('orderInTransport') < unloadStep.get('orderInTransport');\n          },\n          message: 'orderInTransport'\n        }, {\n          validation: function (key, value, model) {\n            if (!model.get('unloadStep.isInWarehouse')) {\n              if (model.get('unloadStep.address.id')) {\n                return true;\n              } else {\n                return !!model.get('unloadStep.address.content') && model.get('unloadStep.address.content').validate();\n              }\n            } else {\n              return model.get('unloadStep.warehouse.id');\n            }\n          },\n          message: 'blankSelect'\n        }]\n      },\n      unloadStepArrivalDate: {\n        custom: [{\n          validation: (key, value, model) => {\n            return _stepDatesValidator.default.arrivalDateBlank(model.get('unloadStep'), model.get('transportType'), model.get('unloadStep.arrivalDate'));\n          },\n          message: 'blankSelect'\n        }, {\n          validation: (key, value, model) => {\n            return _stepDatesValidator.default.arrivalDateInPast(model.get('unloadStep'), model.get('transportType'), model.get('unloadStep.arrivalDate'));\n          },\n          message: 'isInPast'\n        }]\n      },\n      unloadStepMinAdviceDate: {\n        custom: [{\n          validation: (key, value, model) => {\n            return _stepDatesValidator.default.minAdviceDateBlank(model.get('unloadStep'), model.get('transportType'), model.get('unloadStep.minAdviceDate'));\n          },\n          message: 'blankSelect'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.minAdviceDateAfterWindowStart(model.get('unloadStep'), model.get('unloadStep.minAdviceDate'));\n          },\n          message: 'afterWindowStart'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.minAdviceDateOutsideOfInterval(model.get('unloadStep'), model.get('unloadStep.minAdviceDate'));\n          },\n          message: 'outsideOfInterval'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.minAdviceDateWorkingHours(model.get('unloadStep'), model.get('unloadStep.minAdviceDate'));\n          },\n          message: 'outsideWarehouseWorkHours'\n        }]\n      },\n      unloadStepMaxAdviceDate: {\n        custom: [{\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.maxAdviceDateBlank(model.get('unloadStep'), model.get('transportType'), model.get('unloadStep.maxAdviceDate'));\n          },\n          message: 'blankSelect'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.maxAdviceDateEarly(model.get('unloadStep'), model.get('unloadStep.maxAdviceDate'));\n          },\n          message: 'earlierThanMinAdviceDate'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.maxAdviceDateInPast(model.get('unloadStep'), model.get('transportType'), model.get('unloadStep.maxAdviceDate'));\n          },\n          message: 'inThePast'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.maxAdviceDateWorkHours(model.get('unloadStep'), model.get('unloadStep.maxAdviceDate'));\n          },\n          message: 'outsideWarehouseWorkHours'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.maxAdviceDateEarly(model.get('unloadStep'), model.get('unloadStep.maxAdviceDate'));\n          },\n          message: 'beforeWindowStop'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.maxAdviceDateOutsideInterval(model.get('unloadStep'), model.get('unloadStep.maxAdviceDate'));\n          },\n          message: 'outsideOfInterval'\n        }]\n      },\n      freightCost: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('deliverySetting.requireFreightCost') || model.get('requireFreightCostDuringTransaction')) {\n              return /^\\d+$/.test(value);\n            }\n\n            return true;\n          },\n          message: 'blank'\n        }]\n      },\n      freightCostCurrency: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('deliverySetting.requireFreightCost')) {\n              return !!value;\n            }\n\n            return true;\n          },\n          message: 'blankSelect'\n        }]\n      }\n    },\n    customFieldPairs: Ember.computed('deliveryCustomFieldValues', function () {\n      const dcfv = this.get('deliveryCustomFieldValues');\n      return dcfv.map(cf => {\n        const definition = cf.get('definition'); // cfy wyświetlamy z pomocą komponentu `custom-field-value-formatted`, który jako value\n        // oczekuje całego customfielda, zeby zmapować wartość za pomocą value lub option\n\n        const value = cf;\n        return _customFieldPair.default.create({\n          definition,\n          value\n        });\n      });\n    }),\n    validateStep: function (step) {\n      const warehouseValid = !!step.get('warehouse.id');\n      const addressValid = !!step.get('address.id') || step.get('address.content') && step.get('address.content').validate();\n      return warehouseValid || addressValid;\n    },\n    enabledPackaging: Ember.computed('packaging.@each.enabled', function () {\n      return this.get('packaging').filterBy('enabled');\n    }),\n    enabledPackagingWeight: Ember.computed('enabledPackaging.{@each.weight,@each.quantity}', function () {\n      const pckgs = this.get('enabledPackaging');\n      let count = 0;\n      pckgs.forEach(it => {\n        count += Number(it.weight) * Number(it.quantity);\n      });\n\n      if (count === 0) {\n        return '-';\n      } else {\n        return this.rounding.roundToTwoDecimals(count);\n      }\n    }),\n    enabledPackagingQuantity: Ember.computed('enabledPackaging.@each.quantity', function () {\n      const pckgs = this.get('enabledPackaging');\n      let count = 0;\n      pckgs.forEach(it => {\n        count += Number(it.quantity);\n      });\n\n      if (count === 0) {\n        return '-';\n      } else {\n        return this.rounding.roundToTwoDecimals(count);\n      }\n    }),\n    enabledPackagingLdm: Ember.computed('enabledPackaging.@each.ldm', function () {\n      const pckgs = this.get('enabledPackaging');\n      let count = 0;\n      pckgs.forEach(it => {\n        count += Number(it.ldm);\n      });\n\n      if (count === 0) {\n        return '-';\n      } else {\n        return this.rounding.roundToTwoDecimals(count);\n      }\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/delivery/serializer\", [\"exports\", \"ember-data\", \"apollo/mixins/serializer-mixin\"], function (_exports, _emberData, _serializerMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, _serializerMixin.default, {\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    attrs: {\n      packaging: {\n        serialize: 'records'\n      },\n      deliveryCustomFieldValues: {\n        serialize: 'records',\n        deserialize: 'records'\n      },\n      loadStep: {\n        serialize: 'records'\n      },\n      unloadStep: {\n        serialize: 'records'\n      },\n      deliverySetting: {\n        serialize: false,\n        deserialize: 'records'\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/dialogs/message-popup-dialog/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"DcDJCbKd\",\n    \"block\": \"{\\\"symbols\\\":[\\\"e\\\"],\\\"statements\\\":[[4,\\\"popup-dialog\\\",null,[[\\\"title\\\",\\\"close\\\"],[[23,[\\\"title\\\"]],\\\"removePopupDialog\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container-fluid\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[22,1,[\\\"detail\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[21,\\\"model\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/dialogs/message-popup-dialog/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/dialogs/window-details-dialog/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    deliveries: Ember.computed('model.transport.deliveries', function () {\n      return this.get('model.transport').get('deliveries');\n    }),\n    uniqDeliveriesIncoterms: Ember.computed('deliveries', function () {\n      const deliveries = this.get('deliveries');\n      return deliveries.map(d => {\n        return d.incoterms;\n      }).uniq();\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/dialogs/window-details-dialog/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"UkNIMU2l\",\n    \"block\": \"{\\\"symbols\\\":[\\\"delivery\\\",\\\"delivery\\\",\\\"incoterms\\\",\\\"delivery\\\",\\\"s\\\",\\\"cfp\\\",\\\"s\\\",\\\"relatedTransport\\\"],\\\"statements\\\":[[4,\\\"popup-message\\\",null,[[\\\"title\\\",\\\"close\\\",\\\"position\\\"],[[23,[\\\"title\\\"]],\\\"removePopupMessage\\\",[23,[\\\"model\\\",\\\"position\\\"]]]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container-fluid\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"window\\\",\\\"transport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"h4\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[23,[\\\"model\\\",\\\"transport\\\",\\\"title\\\"]],false],[0,\\\"\\\\n\\\\n                #\\\"],[1,[23,[\\\"model\\\",\\\"transport\\\",\\\"internalIndex\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"transport\\\",\\\"transportSupervisor\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"small\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"transport.transportSupervisor.label\\\"],null],false],[0,\\\"\\\\n                            : \\\"],[1,[23,[\\\"model\\\",\\\"window\\\",\\\"transport\\\",\\\"transportSupervisor\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-hover table-condensed table-vertical\\\"],[11,\\\"style\\\",\\\"table-layout:fixed;\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"colgroup\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"col\\\"],[11,\\\"span\\\",\\\"1\\\"],[11,\\\"style\\\",\\\"width:35%;\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"columns.STATUS\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"popup-transport-status\\\"],[9],[1,[23,[\\\"model\\\",\\\"transport\\\",\\\"stageName\\\"]],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"time-window.start\\\"],null],false],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"popup-transport-window-start\\\"],[9],[1,[27,\\\"my-format-date\\\",[[23,[\\\"model\\\",\\\"window\\\",\\\"start\\\"]],\\\"custom\\\"],[[\\\"hour\\\",\\\"minute\\\",\\\"timeZoneName\\\"],[\\\"2-digit\\\",\\\"2-digit\\\",\\\"short\\\"]]],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"transport\\\",\\\"carrierCompany\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.carrier.label\\\"],null],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"popup-transport-carrier\\\"],[9],[1,[23,[\\\"model\\\",\\\"transport\\\",\\\"carrierCompany\\\",\\\"shortName\\\"]],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"transport\\\",\\\"erpIdentifier\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"time-window.details.erpIdentifier\\\"],null],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"popup-transport-erp-identifier\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"transport\\\",\\\"isCombinedTransport\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"transport\\\",\\\"allCombinedTransports\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"popup-transport-related-transport-erp-identifier\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[22,8,[\\\"erpIdentifier\\\"]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[23,[\\\"model\\\",\\\"transport\\\",\\\"erpIdentifier\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"transport\\\",\\\"showClientInWindowDetailsDialog\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.client\\\"],null],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"popup-transport-client\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"transport\\\",\\\"sortedSteps\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[9],[1,[22,7,[\\\"company\\\",\\\"shortName\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"transport\\\",\\\"customFieldPairs\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,6,[\\\"definition\\\",\\\"name\\\"]],\\\"Incoterms\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"div\\\"],[9],[1,[22,6,[\\\"value\\\",\\\"value\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[6]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"transport\\\",\\\"hasAnyWzNumbers\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.wzDocument\\\"],null],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"popup-transport-wz-document\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"transport\\\",\\\"unloadSteps\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[22,5,[\\\"documentIdentifier\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"window\\\",\\\"transport\\\",\\\"advice\\\",\\\"carRegistrationNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"time-window.details.carRegistrationNumber\\\"],null],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"popup-transport-car-registration\\\"],[9],[1,[23,[\\\"model\\\",\\\"window\\\",\\\"transport\\\",\\\"advice\\\",\\\"carRegistrationNumber\\\"]],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"window\\\",\\\"transport\\\",\\\"advice\\\",\\\"trailerRegistrationNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"time-window.details.trailerRegistrationNumber\\\"],null],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"popup-transport-trailer-registration\\\"],[9],[1,[23,[\\\"model\\\",\\\"window\\\",\\\"transport\\\",\\\"advice\\\",\\\"trailerRegistrationNumber\\\"]],false],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"transportTypeScheduleSettings\\\",\\\"displayDeliveryNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"time-window.details.deliveryNumbers\\\"],null],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"popup-transport-delivery-number\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"transport\\\",\\\"deliveries\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[9],[1,[22,4,[\\\"deliveryNumber\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"transportTypeScheduleSettings\\\",\\\"displayDeliveryIncoterms\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"time-window.details.deliveryIncoterms\\\"],null],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"popup-transport-delivery-incoterms\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"uniqDeliveriesIncoterms\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[9],[1,[22,3,[]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"transportTypeScheduleSettings\\\",\\\"displayDeliveryUnloadAddress\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"time-window.details.deliveryUnloadAddress\\\"],null],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"popup-transport-delivery-unload-address\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"transport\\\",\\\"deliveries\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"font-12\\\"],[9],[1,[27,\\\"trim-long-text\\\",null,[[\\\"text\\\",\\\"maxLength\\\",\\\"elipsis\\\"],[[22,2,[\\\"unloadStep\\\",\\\"address\\\",\\\"recipient\\\"]],20,\\\"...\\\"]]],false],[10],[0,\\\"\\\\n                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"font-10\\\"],[9],[0,\\\"\\\\n                                    (\\\"],[1,[22,2,[\\\"unloadStep\\\",\\\"address\\\",\\\"country\\\",\\\"ibanSymbol\\\"]],false],[0,\\\"\\\\n                                    ,\\\"],[1,[22,2,[\\\"unloadStep\\\",\\\"address\\\",\\\"postal\\\"]],false],[0,\\\", \\\"],[1,[22,2,[\\\"unloadStep\\\",\\\"address\\\",\\\"city\\\"]],false],[0,\\\")\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"transportTypeScheduleSettings\\\",\\\"displayDeliveryUnloadDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"time-window.details.deliveryUnloadDate\\\"],null],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"popup-transport-delivery-unload-date\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"transport\\\",\\\"deliveries\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[9],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"unloadStep\\\",\\\"arrivalDate\\\"]],\\\"defaultDateTime\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"common.loadingData\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/dialogs/window-details-dialog/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/discrepancy-report/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend({\n    transport: _emberData.default.belongsTo('transport', {\n      async: true\n    }),\n    sequence: _emberData.default.attr('string'),\n    documentVersion: _emberData.default.attr('number'),\n    canBeGenerateAgain: _emberData.default.attr('boolean')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/document-type/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend({\n    groupName: _emberData.default.attr('string'),\n    name: _emberData.default.attr('string'),\n    translationKey: _emberData.default.attr('string'),\n    ibanRestriction: _emberData.default.attr('string'),\n    showNumber: _emberData.default.attr('boolean'),\n    showExpirationDateFrom: _emberData.default.attr('boolean'),\n    showExpirationDateTo: _emberData.default.attr('boolean'),\n    showAmount: _emberData.default.attr('boolean'),\n    showScope: _emberData.default.attr('boolean'),\n    canBeRejected: _emberData.default.attr('boolean'),\n    invalidDocumentBlocksAdvice: _emberData.default.attr('boolean'),\n    isRequiredForModeOfTransportation: _emberData.default.attr('boolean')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/document-validation/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend({\n    contractorsGroup: _emberData.default.belongsTo('contractors-group', {\n      async: true\n    }),\n    documentType: _emberData.default.belongsTo('document-type', {\n      async: true\n    }),\n    obligatory: _emberData.default.attr('boolean')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/document/model\", [\"exports\", \"ember-data\", \"apollo/pods/section/model\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    documentType: _emberData.default.belongsTo('documentType', {\n      async: true\n    }),\n    currency: _emberData.default.belongsTo('currency', {\n      async: true\n    }),\n    partnership: _emberData.default.belongsTo('partnership', {\n      async: true\n    }),\n    truck: _emberData.default.belongsTo('truck', {\n      async: true\n    }),\n    number: _emberData.default.attr('string'),\n    amount: _emberData.default.attr('number'),\n    scopeOfInsurance: _emberData.default.attr('string'),\n    expirationDateFrom: _emberData.default.attr('date'),\n    expirationDate: _emberData.default.attr('date'),\n    files: _emberData.default.hasMany('file', {\n      async: true\n    }),\n    validations: {\n      number: {\n        custom: {\n          validation: function (key, value, model) {\n            if (!model.get('documentType.showNumber')) {\n              return true;\n            }\n\n            return !!value;\n          },\n          message: 'blank'\n        }\n      },\n      expirationDate: {\n        custom: {\n          validation: function (key, value, model) {\n            if (!model.get('documentType.showExpirationDateTo')) {\n              return true;\n            }\n\n            return value && value >= moment().startOf('day').toDate();\n          },\n          message: 'isInPast'\n        }\n      },\n      expirationDateFrom: {\n        custom: {\n          validation: function (key, value, model) {\n            if (!model.get('documentType.showExpirationDateFrom')) {\n              return true;\n            }\n\n            if (!model.get('isInsurance') || !model.get('expirationDate')) {\n              return true;\n            }\n\n            return value && value < model.get('expirationDate');\n          },\n          message: 'afterExpirationDate'\n        }\n      },\n      currency: {\n        custom: {\n          validation: function (key, value, model) {\n            return value && value.get('id') || !model.get('isInsurance');\n          },\n          message: 'blankSelect'\n        }\n      },\n      amount: {\n        custom: {\n          validation: function (key, value, model) {\n            return value || !model.get('isInsurance');\n          },\n          message: 'blank'\n        }\n      },\n      scopeOfInsurance: {\n        custom: {\n          validation: function (key, value, model) {\n            return value || !model.get('isInsurance');\n          },\n          message: 'blank'\n        }\n      }\n    },\n    typeName: Ember.computed('documentType.name', function () {\n      return this.get('documentType.name');\n    }),\n    groupName: Ember.computed('documentType.groupName', function () {\n      return this.get('documentType.groupName');\n    }),\n    isLicence: Ember.computed('groupName', function () {\n      return this.get('groupName') === 'LICENCE';\n    }),\n    isInsurance: Ember.computed('groupName', function () {\n      return this.get('groupName') === 'INSURANCE';\n    }),\n    isDomestic: Ember.computed('documentType.id', function () {\n      return this.get('documentType.ibanRestriction') === 'PL';\n    }),\n    howManyDaysBeforeDocumentExpirationDateCarrierShouldBeBlocked: Ember.computed(function () {\n      return this.get('sessionAccount').getSettingValue('HOW_MANY_DAYS_BEFORE_DOCUMENT_EXPIRATION_DATE_CARRIER_SHOULD_BE_BLOCKED') || 0;\n    }),\n    calculatedExpirationDate: Ember.computed('expirationDate', function () {\n      const shift = this.get('howManyDaysBeforeDocumentExpirationDateCarrierShouldBeBlocked');\n      return moment(this.get('expirationDate')).add(-shift, 'days').format('DD.MM.YYYY');\n    }),\n\n    checkIfDocumentIsExpiring(setting) {\n      const now = moment();\n      const redWarningDate = moment(this.get('calculatedExpirationDate'), 'DD.MM.YYYY');\n      const yellowWarningInterval = this.get('sessionAccount').getSettingValue(setting);\n      const yellowWarningDate = moment(redWarningDate).add(-yellowWarningInterval, 'days');\n\n      if (now.isAfter(redWarningDate)) {\n        return 'red-warning';\n      } else if (now.isAfter(yellowWarningDate)) {\n        return 'yellow-warning';\n      } else {\n        return '';\n      }\n    },\n\n    certificateWarningClass: Ember.computed('calculatedExpirationDate', function () {\n      return this.checkIfDocumentIsExpiring('HOW_MANY_DAYS_BEFORE_CERTIFICATE_EXPIRATION_SHOULD_MAIL_BE_SENT');\n    }),\n    mappingWarningClass: Ember.computed('calculatedExpirationDate', function () {\n      return this.checkIfDocumentIsExpiring('HOW_MANY_DAYS_BEFORE_MAPPING_EXPIRATION_SHOULD_MAIL_BE_SENT');\n    }),\n    blocksAdviceWhenInvalid: Ember.computed('documentType.invalidDocumentBlocksAdvice', function () {\n      return this.get('documentType.invalidDocumentBlocksAdvice');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/documents/modals/document-form-modal/controller\", [\"exports\", \"apollo/mixins/section-mixin\"], function (_exports, _sectionMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_sectionMixin.default, {\n    intl: Ember.inject.service(),\n    errors: [],\n    documentType: Ember.computed('model.documentType', function () {\n      return this.get('model.documentType');\n    }),\n    document: Ember.computed('model.document', function () {\n      return this.get('model.document');\n    }),\n    title: Ember.computed('documentType.id', function () {\n      return this.get('intl').t(`documentType.${this.get('documentType.translationKey')}.name`);\n    }),\n    actions: {\n      cancel() {\n        if (!this.get('document.id')) {\n          this.get('document').unloadRecord();\n        } else {\n          this.get('document').rollback();\n        }\n\n        this.set('errors', []);\n        this.send('hideModal');\n      },\n\n      save() {\n        const self = this;\n        this.set('savingInProgress', true);\n\n        if (!this.get('document').validate()) {\n          console.debug(`Document did not pass validation.`);\n          this.get('document').get('errors').forEach(error => console.log(error));\n          self.set('savingInProgress', false);\n          return;\n        }\n\n        this.get('document').save().then(savedDocument => {\n          console.log(`Document ${savedDocument.get('id')} has been saved.`);\n          self.setProperties({\n            savingInProgress: false,\n            errors: []\n          });\n          self.send('refreshSection', savedDocument);\n          self.send('hideModal');\n        }).catch(response => {\n          self.setProperties({\n            savingInProgress: false,\n            errors: response.errors\n          });\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/documents/modals/document-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\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"eGCVAJ86\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"classNames\\\"],[[23,[\\\"title\\\"]],\\\"document-modal\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"sections/document-section/document-form\\\",null,[[\\\"documentType\\\",\\\"document\\\",\\\"modal\\\"],[[23,[\\\"model\\\",\\\"documentType\\\"]],[23,[\\\"model\\\",\\\"document\\\"]],true]]],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons margin-top col-xs-12\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"savingInProgress\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"common.pleaseWait\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/documents/modals/document-form-modal/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/documents/modals/document-list-modal/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    documents: Ember.computed('model.documents', function () {\n      return this.get('model.documents');\n    }),\n    title: Ember.computed('document.id', 'model.documentType.name', 'model.groupName', function () {\n      const typeName = this.get('model.documentType.name') || this.get('model.groupName');\n      const typeLabel = this.get('intl').t(`sectionType.${typeName}`);\n      return `${typeLabel} - Archiwum`;\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/documents/modals/document-list-modal/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"df3PlwY5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"document\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"subtitle\\\",\\\"classNames\\\"],[[23,[\\\"title\\\"]],[23,[\\\"subtitle\\\"]],\\\"document-modal\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"documents\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"documents-applies/document-form\\\",null,[[\\\"document\\\",\\\"documentTypes\\\"],[[22,1,[]],[23,[\\\"model\\\",\\\"documentTypes\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.close\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/documents/modals/document-list-modal/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/documents/modals/document-modal/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    document: Ember.computed('model.document', function () {\n      return this.get('model.document');\n    }),\n    modal: true,\n    title: Ember.computed('document.id', 'document.typeName', function () {\n      const typeLabel = this.get('intl').t(`sectionType.${this.get('document.typeName')}`);\n\n      if (this.get('document.id')) {\n        return typeLabel;\n      } else {\n        return this.get('intl').t(`document.${this.get('document.groupName')}.new`, {\n          typeLabel: typeLabel\n        });\n      }\n    }),\n    subtitle: Ember.computed('document.id', 'document.number', function () {\n      return this.get('document.id') ? this.get('document.number') : null;\n    }),\n    actions: {\n      cancel() {\n        if (!this.get('document.id')) {\n          this.get('document').unloadRecord();\n        } else {\n          this.get('document').rollback();\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/documents/modals/document-modal/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"XHDgwkKn\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"subtitle\\\",\\\"classNames\\\",\\\"cancel\\\"],[[23,[\\\"title\\\"]],[23,[\\\"subtitle\\\"]],\\\"document-modal\\\",[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"documents-applies/document-form\\\",null,[[\\\"document\\\",\\\"documentTypes\\\",\\\"modal\\\"],[[23,[\\\"document\\\"]],[23,[\\\"model\\\",\\\"documentTypes\\\"]],[23,[\\\"modal\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/documents/modals/document-modal/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/driver/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend(_modelValidator.default, {\n    DOCUMENT_TYPES: {\n      PASSPORT: 'PASSPORT',\n      ID_CARD: 'ID_CARD'\n    },\n    owner: _emberData.default.belongsTo('company', {\n      async: true\n    }),\n    country: _emberData.default.belongsTo('country', {\n      async: true\n    }),\n    name: _emberData.default.attr('string'),\n    documentNumber: _emberData.default.attr('string'),\n    documentType: _emberData.default.attr('string'),\n    phoneNumber: _emberData.default.attr('string'),\n    phoneNumberPrefix: _emberData.default.attr('string'),\n    lastUpdated: _emberData.default.attr('date'),\n    enabled: _emberData.default.attr('boolean'),\n    validations: {\n      name: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      phoneNumber: {\n        presence: {\n          message: 'blank'\n        },\n        custom: [{\n          validation: function (key, value) {\n            if (!value) {\n              return true;\n            }\n\n            return /^[0-9]+$/.test(value) && value.length >= 9;\n          },\n          message: 'regex'\n        }]\n      },\n      phoneNumberPrefix: {\n        presence: {\n          message: 'blank'\n        },\n        custom: [{\n          validation: function (key, value) {\n            if (!value) {\n              return true;\n            }\n\n            return value.length <= 3;\n          },\n          message: 'blank'\n        }]\n      },\n      documentNumber: {\n        presence: {\n          message: 'blank'\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/drivers/index/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    queryParams: {\n      page: {\n        refreshModel: true\n      },\n      max: {\n        refreshModel: true\n      }\n    },\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_COMPANIES_TAB', 'ROLE_OWN_COMPANY_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const companyId = params.companyId;\n      params.max = params.max || 10;\n      params.page = params.page || 1;\n      return new Promise(resolve => {\n        this.store.query('driver', params).then(response => {\n          resolve(Ember.RSVP.hash({\n            drivers: response,\n            company: this.store.findRecord('company', companyId)\n          }));\n        }, () => {\n          this.transitionTo('forbidden');\n        });\n      });\n    },\n    actions: {\n      refreshModel() {\n        this.refresh();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/drivers/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"qPwpvkbc\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"company-nav-header\\\",null,[[\\\"company\\\"],[[23,[\\\"model\\\",\\\"company\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"drivers/drivers-list\\\",null,[[\\\"company\\\",\\\"drivers\\\"],[[23,[\\\"model\\\",\\\"company\\\"]],[23,[\\\"model\\\",\\\"drivers\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/drivers/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/email-advice/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend(_modelValidator.default, {\n    changeTracker: {\n      auto: true\n    },\n    intl: Ember.inject.service(),\n    email: _emberData.default.attr('string'),\n    mobilePhonePrefix: _emberData.default.attr('string'),\n    mobilePhoneNumber: _emberData.default.attr('string'),\n    transport: _emberData.default.belongsTo('transport', {\n      async: true\n    }),\n    rodoAccepted: _emberData.default.attr('boolean'),\n    sent: _emberData.default.attr('boolean'),\n    sender: _emberData.default.attr('string'),\n    type: _emberData.default.attr('string'),\n    expired: _emberData.default.attr('boolean'),\n    dateCreated: _emberData.default.attr('date'),\n    validations: {\n      rodoAccepted: {\n        custom: [{\n          validation: function (key, value) {\n            return value;\n          },\n          message: function (key, value, self) {\n            return this.get('intl').t('advice.errors.termsOfConditionsAccepted.notSelected');\n          }\n        }]\n      },\n      email: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      mobilePhoneNumber: {\n        presence: {\n          message: 'blank'\n        },\n        custom: [{\n          validation: function (key, value) {\n            if (!value) {\n              return true;\n            }\n\n            return /^[0-9]+$/.test(value) && value.length >= 9;\n          },\n          message: 'regex'\n        }]\n      },\n      mobilePhonePrefix: {\n        presence: {\n          message: 'blank'\n        },\n        custom: [{\n          validation: function (key, value) {\n            if (!value) {\n              return true;\n            }\n\n            return value.length <= 3;\n          },\n          message: 'blank'\n        }]\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/file-set/model\", [\"exports\", \"ember-data\", \"ember-data/model\"], function (_exports, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    belongsTo,\n    hasMany\n  } = _emberData.default;\n\n  var _default = _model.default.extend({\n    files: hasMany('file', {\n      async: true\n    }),\n    creator: belongsTo('user'),\n    dateCreated: attr('date'),\n    state: attr('string')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/file-sets/status/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    buttonTimeout: false,\n    isDownloadDisabled: Ember.computed('model.state', function () {\n      return !(this.get('model.state') === 'READY_TO_DOWNLOAD');\n    }),\n    currentStateInfo: Ember.computed('model.state', function () {\n      if (this.get('model.state') === 'ERROR') {\n        return this.get('intl').t('fileSet.stateDesc.ERROR');\n      } else if (this.get('model.state') === 'READY_TO_DOWNLOAD') {\n        return this.get('intl').t('fileSet.stateDesc.READY_TO_DOWNLOAD');\n      } else if (this.get('model.state') === 'PROCESSING') {\n        return this.get('intl').t('fileSet.stateDesc.PROCESSING');\n      } else {\n        return this.get('intl').t('fileSet.stateDesc.NEW');\n      }\n    }),\n    actions: {\n      async download(fileSetId) {\n        const BUTTON_DISABLED_TIMEOUT_MS = 1000;\n        this.toggleProperty('buttonTimeout');\n        const path = this.get('apolloApiService').APOLLO_API.FILE_SET.DOWNLOAD;\n        const response = await this.get('apolloApiService').callApolloApi(path, {\n          id: fileSetId\n        });\n\n        if (!response.ok) {\n          this.toggleProperty('buttonTimeout');\n          return;\n        }\n\n        const fileContent = await response.blob();\n        const link = document.createElement('a');\n        const url = URL.createObjectURL(fileContent);\n        link.href = url;\n        link.download = `${fileSetId}.zip`;\n        link.click();\n        URL.revokeObjectURL(url);\n        Ember.run.later(this, function () {\n          this.toggleProperty('buttonTimeout');\n        }, BUTTON_DISABLED_TIMEOUT_MS);\n      },\n\n      returnToFilesTab() {\n        this.transitionToRoute('files.index');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/file-sets/status/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    store: Ember.inject.service(),\n    model: function (params) {\n      return this.store.findRecord('file-set', params.id);\n    },\n    afterModel: function (model) {\n      // Prosty mechanizm przeładowania modelu. Job przetwarzający pliki uruchamia się po kilku sekundach,\n      // więc status przetwarzanych plików powinien zmienić się po krótkim opóźnieniu.\n      const REFRESH_MODEL_TIMEOUT_MS = 5000;\n      const currentState = model.get('state');\n\n      if (currentState === 'NEW' || currentState === 'PROCESSING') {\n        Ember.run.later(this, function () {\n          this.refresh();\n        }, REFRESH_MODEL_TIMEOUT_MS);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/file-sets/status/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"2oO+OCGp\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h2\\\"],[9],[1,[27,\\\"t\\\",[\\\"fileSet.status.label\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"model\\\",\\\"id\\\"]],false],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-12\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"status-info\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[9],[0,\\\"Status: \\\"],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"fileSet.state.\\\",[23,[\\\"model\\\",\\\"state\\\"]]],null]],null],false],[10],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[9],[0,\\\"Data utworzenia: \\\"],[7,\\\"strong\\\"],[9],[1,[27,\\\"my-format-date\\\",[[23,[\\\"model\\\",\\\"dateCreated\\\"]],\\\"defaultDateTime\\\"],null],false],[10],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-12\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"text-info\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"info-circle\\\"],null],false],[0,\\\" \\\"],[1,[21,\\\"currentStateInfo\\\"],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row padding-top\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-12\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[12,\\\"disabled\\\",[27,\\\"or\\\",[[23,[\\\"isDownloadDisabled\\\"]],[23,[\\\"buttonTimeout\\\"]]],null]],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"buttonTimeout\\\"]],[27,\\\"not\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"state\\\"]],\\\"READY_TO_DOWNLOAD\\\"],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"fileSet.status.download\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"download\\\",[23,[\\\"model\\\",\\\"id\\\"]]]],[10],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default margin-left-small\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"returnToFilesTab\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/file-sets/status/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/file/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/config/environment\"], function (_exports, _emberData, _model, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = _model.default.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    transport: belongsTo('transport', {\n      async: true\n    }),\n    name: attr(),\n    canBeDeleted: attr('boolean'),\n    type: attr(),\n    warehouse: belongsTo('warehouse', {\n      async: true\n    }),\n    creator: attr('string'),\n    date: attr('date'),\n    refLink: Ember.computed(function () {\n      return _environment.default.serverURL + '/files/' + this.id + '/download?token=' + this.get('sessionAccount').get('token');\n    }),\n    showDeleteIcon: Ember.computed('canBeDeleted', function () {\n      const transport = this.store.peekRecord('transport', this.transport.get('id'));\n      return transport.actionCanBePerformed('DELETE_DOCUMENTS') && this.get('canBeDeleted');\n    }),\n    canBeDownloaded: Ember.computed(function () {\n      const fileType = this.type ? this.type : '';\n\n      if (fileType.includes('TYPE_ENTRANCE_PASS_DOCUMENT')) {\n        return this.get('sessionAccount').hasRole('ROLE_CAN_DOWNLOAD_ENTRY_PASS');\n      } else return true;\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/files/index/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    queryParams: Ember.A(['page', 'max']),\n    intl: Ember.inject.service(),\n    buttonDisabled: false,\n    actions: {\n      saveFileSet(files) {\n        const self = this;\n        const BUTTON_DISABLE_TIMEOUT_MS = 500;\n        this.toggleProperty('buttonDisabled');\n        this.get('model.fileSet').set('files', files);\n        this.get('model.fileSet').save().then(fileSet => {\n          this.transitionToRoute('file-sets.status', fileSet.get('id'));\n        }).catch(err => {\n          if (err.errors[0].status === '429') {\n            // TODO: Lepsza obsługa tej odpowiedzi (może jakiś globalny handler)\n            self.set('errors', [self.get('intl').t('common.rateLimited')]);\n          }\n        }).finally(() => {\n          Ember.run.later(this, function () {\n            this.toggleProperty('buttonDisabled');\n          }, BUTTON_DISABLE_TIMEOUT_MS);\n        });\n      },\n\n      onFilterChange: function (filteredData) {\n        this.set('model.files', filteredData);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/files/index/route\", [\"exports\", \"apollo/mixins/menu-mixin\"], function (_exports, _menuMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_menuMixin.default, {\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service(),\n\n    async model() {\n      return {\n        files: await this.store.query('file', {}),\n        fileSet: this.store.createRecord('file-set', {\n          creator: this.get('sessionAccount.currentUser')\n        })\n      };\n    },\n\n    activate() {\n      this.activateCurrentTab('FILES_TAB');\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/files/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"W/jn8B/e\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"files-server-table\\\",null,[[\\\"files\\\",\\\"page\\\",\\\"max\\\",\\\"saveFiles\\\",\\\"buttonDisabled\\\"],[[23,[\\\"model\\\",\\\"files\\\"]],[23,[\\\"page\\\"]],[23,[\\\"max\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"saveFileSet\\\"],null],[23,[\\\"buttonDisabled\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/files/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/forbidden/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    redirectToWrongUrlPage: function () {\n      this.transitionTo('forbidden');\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/forbidden/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"fZKQcCTO\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"centered-section\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"wrongUrl\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/forbidden/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/gate/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    belongsTo\n  } = _emberData.default;\n  const GateTypes = Object.freeze({\n    ENTRY_GATE: 'ENTRY_GATE',\n    EXIT_GATE: 'ENTRY_GATE'\n  });\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    intl: Ember.inject.service(),\n    name: attr('string'),\n    artrIdentifier: attr('string'),\n    gateType: attr('string', {\n      defaultValue() {\n        return GateTypes.ENTRY_GATE;\n      }\n\n    }),\n    principalCompany: belongsTo('company'),\n    gateTypes: Ember.computed('', function () {\n      return Object.keys(GateTypes);\n    }),\n    gateTypeTranslation: Ember.computed('gateType', function () {\n      const gateType = this.get('gateType');\n      return gateType ? this.get('intl').t(`gates.gateTypes.${gateType}`) : this.get('intl').t('gates.gateTypes.UNKNOWN');\n    }),\n    isEntryGate: Ember.computed('gateType', function () {\n      return this.get('gateType') === GateTypes.ENTRY_GATE;\n    }),\n    isExitGate: Ember.computed('gateType', function () {\n      return this.get('gateType') === GateTypes.EXIT_GATE;\n    }),\n    validations: {\n      name: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      gateType: {\n        custom: {\n          validation: function (key, value) {\n            return value && value in GateTypes;\n          },\n          message: 'blank'\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/gates/create/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    gate: Ember.computed('model', function () {\n      return this.get('model');\n    }),\n    actions: {\n      save: function () {\n        const self = this;\n        const gate = this.get('gate');\n\n        if (!gate.validate()) {\n          return;\n        }\n\n        gate.save().then(() => {\n          self.setProperties({\n            errors: []\n          });\n          this.transitionToRoute('settings.index');\n        }).catch(response => {\n          console.log(`Błąd przy zapisywaniu bramy: ${response.errors}`);\n          self.set('errors', response.errors);\n        });\n      },\n      delete: function () {\n        const self = this;\n        self.get('gate').destroyRecord().then(() => {\n          self.setProperties({\n            errors: []\n          });\n          this.transitionToRoute('settings.index');\n        }).catch(response => {\n          console.log(`Błąd przy usuwaniu bramy: ${response.errors}`);\n          self.set('errors', response.errors);\n        });\n      },\n      cancel: function () {\n        this.get('gate').unloadRecord();\n        this.transitionToRoute('settings.index');\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/gates/create/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    store: Ember.inject.service(),\n\n    model() {\n      const principalCompanyId = localStorage.getItem('principalId');\n      const principalCompany = this.get('store').peekRecord('company', principalCompanyId);\n      return this.get('store').createRecord('gate', {\n        principalCompany\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/gates/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"loYTM+9q\",\n    \"block\": \"{\\\"symbols\\\":[\\\"gate\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-narrow\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"gates.label\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"gate\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"gate\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.name\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"name\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"gate\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"gate\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"gate\\\",\\\"errors\\\",\\\"artrIdentifier\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"gates.artrIdentifier\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"artr-identifier\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"gate\\\",\\\"artrIdentifier\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"gate\\\"]],\\\"artrIdentifier\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"gate\\\",\\\"errors\\\",\\\"gateType\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"gates.gateTypes.label\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"gate-type\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"gate\\\",\\\"gateType\\\"]]],null],[23,[\\\"gate\\\",\\\"gateTypes\\\"]],true,[27,\\\"t\\\",[\\\"gates.gateTypes.label\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"gate\\\",\\\"gateType\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"warehouseLocation\\\",\\\"gate\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 form-buttons\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"gate\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"assortmentGroup.confirmDeletion\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\"],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"ban\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"success\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"settings.backToSettings\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/gates/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/gates/edit/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    store: Ember.inject.service(),\n    model: function (params) {\n      return this.store.findRecord('gate', params.id);\n    },\n    renderTemplate: function () {\n      this.render('gates.create');\n    },\n    setupController: function (controller, model) {\n      // eslint-disable-next-line ember/no-controller-access-in-routes\n      this.controllerFor('gates.create').setProperties({\n        model\n      });\n    },\n    actions: {\n      willTransition: function () {\n        this.get('controller').setProperties({\n          success: false,\n          errors: []\n        });\n        this.get('currentModel').unloadRecord();\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/groups-settings/index/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    actions: {\n      save: function () {\n        const self = this;\n        const principalContractorGroupType = this.get('model.principalContractorGroupTypes');\n        principalContractorGroupType.forEach(pcgt => {\n          pcgt.save().then(() => {\n            self.set('successMessage', this.get('intl').t('common.saveSuccessMessage'));\n            self.set('errors', []);\n            scrollTo({\n              top: 0,\n              behavior: 'smooth'\n            });\n          }).catch(error => {\n            console.error(error);\n          });\n        });\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/groups-settings/index/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_MANAGE_APPLIES_SETTINGS'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      return Ember.RSVP.hash({\n        principalContractorGroupTypes: this.store.findAll('principal-contractors-group-type')\n      });\n    },\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          errors: null,\n          successMessage: null\n        });\n      },\n\n      refreshModel() {\n        this.refresh();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/groups-settings/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"J5HmnH7L\",\n    \"block\": \"{\\\"symbols\\\":[\\\"pcgt\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"margin-bottom-big\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"groupTypeSettings.label\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"principalContractorGroupTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"contractorsGroupType\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"groupTypeSettings.description.visible\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"visible\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"groupTypeSettings.labels.visible\\\"],null],false],[0,\\\":\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[22,1,[\\\"visible\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"groupTypeSettings.description.requiresContractorsGroup\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-contractor-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"groupTypeSettings.labels.requiresContractorsGroup\\\"],null],false],[0,\\\":\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[22,1,[\\\"contractorsGroupType\\\",\\\"requiresContractorsGroup\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"groupTypeSettings.description.canSelectOnlyOneContractorsGroup\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"select-only-one-contractor-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"groupTypeSettings.labels.canSelectOnlyOneContractorsGroup\\\"],null],false],[0,\\\":\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[22,1,[\\\"contractorsGroupType\\\",\\\"canSelectOnlyOneContractorsGroup\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\" row\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"groupTypeSettings.description.partnershipTypesWithAccess\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"partnership-types-with-access\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"groupTypeSettings.labels.partnershipTypesWithAccess\\\"],null],false],[0,\\\":\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[22,1,[\\\"contractorsGroupType\\\",\\\"partnershipTypesWithAccess\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/groups-settings/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/index-quantity-type/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model,\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = Model.extend(_modelValidator.default, {\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    languageService: Ember.inject.service('language-service'),\n    transportType: belongsTo('transportType', {\n      async: true\n    }),\n    name: attr('string'),\n    nameEn: attr('string'),\n    idx: attr('number'),\n    alias: attr('string'),\n    obligatory: attr('boolean'),\n    conditionallyObligatory: attr('boolean'),\n    requiresUnit: attr('boolean'),\n    enabledForIncompleteLoading: attr('boolean'),\n    editableViaSchedule: attr('boolean'),\n    nameInAppropriateLanguage: Ember.computed('name', 'nameEn', function () {\n      const propertyName = this.get('languageService').findProperLanguageVersion('name', 'nameEn');\n      return this.get(propertyName);\n    }).readOnly(),\n    validations: {\n      name: {\n        presence: {\n          message: 'blank'\n        },\n        custom: [{\n          validation: function (key, value) {\n            if (!value) {\n              return true;\n            }\n\n            return value.length < 50;\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('indexQuantityTypes.errors.name.maxLength');\n          }\n        }]\n      },\n      nameEn: {\n        presence: {\n          message: 'blank'\n        },\n        custom: [{\n          validation: function (key, value) {\n            if (!value) {\n              return true;\n            }\n\n            return value.length < 50;\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('indexQuantityTypes.errors.nameEn.maxLength');\n          }\n        }]\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/index-quantity/model\", [\"exports\", \"ember-data\", \"ember-data-copyable\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _emberDataCopyable, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n\n  var _default = _emberData.default.Model.extend(_modelValidator.default, _emberDataCopyable.default, {\n    intl: service(),\n    index: _emberData.default.belongsTo('index', {\n      async: false\n    }),\n    indexQuantityType: _emberData.default.belongsTo('indexQuantityType', {\n      async: false\n    }),\n    quantity: _emberData.default.attr('number'),\n    unit: _emberData.default.attr('string'),\n    validations: {\n      quantity: {\n        numericality: {\n          allowBlank: true,\n          greaterThanOrEqualTo: 0,\n          message: 'invalidNumber'\n        },\n        custom: [{\n          validation: function (key, value, model) {\n            return !!value || !model.get('indexQuantityType.obligatory') || model.get('incompleteLoadingRulesNotMet');\n          },\n          message: 'obligatory'\n        }, {\n          validation: function (key, value, model) {\n            if (!!value || !model.get('indexQuantityType.conditionallyObligatory')) {\n              return true;\n            } // Jeśli typ transportu ma jakieś typy indeksów z opcją `conditionallyObligatory`,\n            // to chociaż jedna taka wielkość musi zostać uzupełniona.\n\n\n            const transportType = model.get('index.transport.transportType');\n            const conditionallyObligatoryIndexQuantityTypes = transportType.get('conditionallyObligatoryIndexQuantityTypes');\n\n            if (!conditionallyObligatoryIndexQuantityTypes.get('length')) {\n              return true;\n            }\n\n            return !!model.get('index.quantities').filterBy('indexQuantityType.conditionallyObligatory').filterBy('quantity').get('length');\n          },\n          message: function (key, value, self) {\n            const transportType = self.get('index.transport.transportType');\n            const conditionallyObligatoryIndexQuantityTypes = transportType.get('conditionallyObligatoryIndexQuantityTypes');\n            const names = conditionallyObligatoryIndexQuantityTypes.getEach('nameInAppropriateLanguage').join(', ');\n            return self.get('intl').t('index-quantity.errors.quantity.conditionallyObligatory', {\n              names: names\n            }).toString();\n          }\n        }]\n      },\n      unit: {\n        custom: [{\n          validation: function (key, value, model) {\n            return !!value || !model.get('indexQuantityType.requiresUnit');\n          },\n          message: 'blankSelect'\n        }]\n      }\n    },\n    numberOfErrors: Ember.computed('errors.length', function () {\n      return this.get('errors.length');\n    }).readOnly(),\n    incompleteLoadingRulesNotMet: Ember.computed('indexQuantityType.enabledForIncompleteLoading', 'index.transport.incompleteLoading', function () {\n      return this.get('indexQuantityType.enabledForIncompleteLoading') && !this.get('index.transport.incompleteLoading');\n    }),\n    customSerialize: function () {\n      return Object.assign(this.serialize(), {\n        id: this.get('id')\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/index-setting/model\", [\"exports\", \"ember-data\", \"ember-data/model\"], function (_exports, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend({\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    transportType: belongsTo('transportType', {\n      async: true\n    }),\n    translationKey: attr('string', {\n      // Dodałem to chwilowo w celu umożliwienia testów w A-15016 ten cały atrybut zostanie usunięty\n      defaultValue() {\n        return 'INDEX';\n      }\n\n    }),\n    showGlobalNumber: attr('boolean'),\n    showLocalNumber: attr('boolean'),\n    showName: attr('boolean'),\n    showDocumentNumber: attr('boolean'),\n    showTransportNumber: attr('boolean'),\n    showQuantity: attr('boolean'),\n    showNotes: attr('boolean'),\n    hasProductsEnabled: attr('boolean'),\n    hasProductsShortNameEnabled: attr('boolean'),\n    showIncompleteLoading: attr('boolean'),\n    showPasteFromExcel: attr('boolean'),\n    requiresGlobalNumber: attr('boolean'),\n    requiresName: attr('boolean'),\n    notesPlaceholder: Ember.computed('', function () {\n      return this.getTranslation('notes');\n    }),\n    disableConfirmation: Ember.computed('', function () {\n      return this.getTranslation('disableConfirm');\n    }),\n    sectionLabel: Ember.computed('', function () {\n      return this.getTranslation('sectionLabel');\n    }),\n\n    getTranslation(propertyName) {\n      const transportType = this.get('transportType');\n      const indexSetting = this.get('sessionAccount').getIndexSetting(transportType.get('id'));\n\n      if (!indexSetting) {\n        return this.get('intl').t(`index.INDEX.${propertyName}`);\n      }\n\n      const key = indexSetting.get('translationKey');\n      return this.get('intl').t(`index.${key}.${propertyName}`);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/index/model\", [\"exports\", \"ember-data\", \"ember-data-copyable\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _emberDataCopyable, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend(_modelValidator.default, _emberDataCopyable.default, {\n    changeTracker: {\n      auto: true\n    },\n    intl: Ember.inject.service(),\n    product: _emberData.default.belongsTo('product', {\n      async: true\n    }),\n    transport: _emberData.default.belongsTo('transport', {\n      async: false\n    }),\n    quantities: _emberData.default.hasMany('indexQuantity', {\n      async: true\n    }),\n    globalNumber: _emberData.default.attr('string'),\n    localNumber: _emberData.default.attr('string'),\n    name: _emberData.default.attr('string'),\n    shortName: _emberData.default.attr('string'),\n    documentNumber: _emberData.default.attr('string'),\n    transportNumber: _emberData.default.attr('string'),\n    notes: _emberData.default.attr('string'),\n    step: _emberData.default.belongsTo('step', {\n      async: true\n    }),\n    enabled: _emberData.default.attr('boolean'),\n    validations: {\n      product: {\n        custom: [{\n          validation: function (key, value, model) {\n            return !!value || !model.get('indexSetting.hasProductsEnabled');\n          },\n          message: 'blank'\n        }]\n      },\n      globalNumber: {\n        custom: [{\n          validation: function (key, value, model) {\n            return !!value || !model.get('indexSetting.requiresGlobalNumber');\n          },\n          message: 'blank'\n        }]\n      },\n      localNumber: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('indexSetting.showLocalNumber')) {\n              return true;\n            }\n\n            return !!value || model.get('indexSetting.hasProductsEnabled');\n          },\n          message: 'blank'\n        }]\n      },\n      name: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('indexSetting.hasProductsEnabled')) {\n              return true;\n            }\n\n            return !!value || !model.get('indexSetting.requiresName');\n          },\n          message: 'blank'\n        }]\n      },\n      step: {\n        custom: [{\n          validation: function (key, value, model) {\n            return !!value.content;\n          },\n          message: 'blank'\n        }]\n      }\n    },\n    transportType: Ember.computed('transport.transportType', function () {\n      return this.get('transport.transportType');\n    }).readOnly(),\n    ordinalNumber: Ember.computed('idx', function () {\n      return this.get('idx') + 1;\n    }).readOnly(),\n    proxiedQuantities: Ember.computed('transportType.indexQuantityTypes.@each', 'quantities.@each.indexQuantityType', function () {\n      const quantities = this.get('quantities');\n      return this.get('transportType.indexQuantityTypes').map(qt => {\n        return Ember.ObjectProxy.create({\n          content: qt,\n          indexQuantity: quantities.filterBy('indexQuantityType.id', qt.get('id')).get('firstObject')\n        });\n      });\n    }).readOnly(),\n    hasErrors: Ember.computed('errors.length', 'quantities.@each.numberOfErrors', function () {\n      return this.get('errors.length') || this.get('quantities').filterBy('numberOfErrors').get('length');\n    }).readOnly(),\n    sortValue: Ember.computed('id', function () {\n      return this.get('id') || Number.MAX_SAFE_INTEGER.toString();\n    }),\n    hasChanges: Ember.computed('hasDirtyAttributes', 'quantities.@each.hasDirtyAttributes', function () {\n      return this.get('hasDirtyAttributes') || this.get('quantities').filterBy('hasDirtyAttributes').get('length') > 0;\n    }),\n    label: Ember.computed('shortName', 'name', function () {\n      return this.get('shortName') || this.get('name') || this.get('globalNumber');\n    }),\n    indexSetting: Ember.computed('transport.transportType.indexSetting', function () {\n      return this.get('transport.transportType.indexSetting');\n    }),\n    handleGlobalNumber: Ember.computed('product', {\n      get(key) {\n        const product = this.get('product');\n        return product.get('index') ? product.get('index') : this.get('globalNumber');\n      },\n\n      set(key, value) {\n        return this.set('globalNumber', value);\n      }\n\n    }),\n    getProductUnit: Ember.computed('product.unit', function () {\n      const unit = this.get('product.unit');\n      return unit ? this.get('intl').t(`unit.${unit}`) : \"\";\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/indexes/modals/index-form/controller\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    modalTitle: Ember.computed('', function () {\n      const transportType = this.get('transport.transportType');\n      const indexSetting = this.get('sessionAccount').getIndexSetting(transportType.get('id'));\n\n      if (!indexSetting) {\n        return this.get('intl').t('index.INDEX.add');\n      }\n\n      const key = indexSetting.get('translationKey');\n      return this.get('intl').t(`index.${key}.add`);\n    }),\n    units: Ember.computed('', function () {\n      return ['KG', 'LITERS', 'PIECES'];\n    }),\n    saveInitialProperties: Ember.observer('model.modelOpenTime', function () {\n      const initialProperties = {\n        model: this.get('model').toJSON()\n      };\n      this.get('model.quantities').forEach(q => {\n        initialProperties[q.get('indexQuantityType.nameEn')] = q.toJSON();\n      });\n      this.set('initialProperties', initialProperties);\n    }),\n    transport: Ember.computed('model.transport', function () {\n      return this.get('model.transport');\n    }),\n    indexSetting: Ember.computed('model.transport.transportType.indexSetting', function () {\n      return this.get('model.transport.transportType.indexSetting');\n    }),\n    productSetting: Ember.computed('model.transport.principalCompany.productSetting', function () {\n      return this.get('model.transport.principalCompany.productSetting');\n    }),\n    isEditionDisabled: Ember.computed('transport.disabled', function () {\n      if (!this.get('transport')) {\n        return true;\n      }\n\n      return !this.get('transport').actionCanBePerformed('EDIT_INDEX');\n    }),\n    isDeletionAllowed: Ember.computed('model.id', 'transport.transportType', function () {\n      if (!this.get('model.id') || !this.get('transport')) {\n        return false;\n      }\n\n      return this.get('transport').actionCanBePerformed('DELETE_INDEX');\n    }),\n    actions: {\n      setProductData(productData) {\n        const self = this;\n        this.get('store').findRecord('product', productData.id).then(product => {\n          self.get('model').setProperties({\n            product: product\n          });\n          self.get('model.quantities').filterBy('indexQuantityType.requiresUnit').forEach(q => q.set('unit', product.get('unit')));\n        });\n      },\n\n      removeProduct() {\n        this.get('model').setProperties({\n          product: null\n        });\n      },\n\n      save() {\n        this.get('model').validate();\n        this.get('model.quantities').forEach(q => q.validate());\n\n        if (this.get('model.hasErrors')) {\n          return;\n        }\n\n        this.get('model').set('enabled', true);\n        (0, _jquery.default)(\"#sub-modal\").data(\"skip-cancel-action\", true);\n        this.send('hideModal', 'sub-modal');\n      },\n\n      setStep(model, step) {\n        model.set('step', step);\n      },\n\n      disable() {\n        if (this.get('model').get('id')) {\n          this.get('model').set('enabled', false);\n        } else {\n          const transport = this.get('model').get('transport');\n          transport.get('indexes').removeObject(this.get('model'));\n          this.get('model').unloadRecord();\n        }\n\n        this.send('hideModal', 'sub-modal');\n      },\n\n      /**\n       * Obsługa anulowania / zamknięcia formularza indeksu.\n       *\n       * Musimy rozważyć trzy przypadki.\n       *\n       * 1. Indeks jest niezapisany ani w bazie, ani w ember-data --> zupełnie usuwamy jego model; taka sytuacja wystąpi,\n       * jeśli dodajemy nowy indeks, ale nie zapiszemy go i klikniemy \"Anuluj\".\n       *\n       * 2. Indeks jest zapisany, wprowadzamy zmiany w jego formularzu (po kliknięciu ołówka) a następnie\n       * wybieramy \"Anuluj\" --> usuwamy wprowadzone zmiany, ale poza tym indeks pozostaje przypisany do transportu.\n       *\n       * 3. Indeks jest niezapisany w bazie, ale jest już dodany do transportu --> taka sytuacja wystąpi,\n       * gdy dodajemy nowy indeks i uda się go zapisać (indeks pojawi się w tabelce), następnie otworzymy\n       * formularz ze szczegółami (po kliknięciu ołówka) oraz wybierzemy \"Anuluj\" --> zamykamy wtedy formularz, ale nie usuwamy indeksu\n       */\n      cancel() {\n        console.debug(`Zamykamy okienko edycji indeksów...`); // To, że indeks został poprawnie dodany do transportu (pojawił się na liście indeksów) możemy\n        // poznać sprawdzając flagę `enabled` .\n        //\n        // Nie możemy użyć tu `this.get('model').rollbackAttributes()`, ponieważ możliwa jest taka sytuacja:\n        //  - użytkownik dodaje nowy indeks;\n        //  - użytkownik otwiera formularz edycji indeksu (ikona ołówka) oraz klika \"Anuluj\"\n        //\n        // Efekt jest taki, że `rollbackAttributes` uzna, że powinien zupełnie usunąć indeks, a nie powinniśmy tego\n        // robić w tej sytuacji (użytkownik spodziewa się tylko zamknięcia formularza).\n        //\n        // Stąd tak naprawdę te skomplikowane operacje z `initialProperties` itp (gałąź `else`).\n\n        if (this.get('model') && !this.get('model.id') && !this.get('model.enabled')) {\n          // 1. Indeks jest niezapisany ani w bazie, ani w ember-data\n          this.get('transport.indexes').removeObject(this.get('model'));\n          this.get('model').unloadRecord();\n        } else if (this.get('model.id')) {\n          // Indeks jest zapisany, wprowadzamy zmiany w jego formularzu (po kliknięciu ołówka) a następnie wybieramy \"Anuluj\"\n          this.get('model').rollback();\n          this.get('model.quantities').forEach(q => q.rollback());\n        } else {\n          // Indeks jest niezapisany w bazie, ale jest już dodany do transportu\n          const self = this;\n          const initialProperties = this.get('initialProperties');\n          const initialModelProperties = initialProperties['model'];\n          const excluded = ['transport', 'enabled'];\n          const belongsToKeys = ['step', 'product'];\n          Object.keys(initialModelProperties).filter(key => !excluded.includes(key)).forEach(key => {\n            const value = initialModelProperties[key];\n\n            if (belongsToKeys.includes(key)) {\n              if (value) {\n                this.get('model').set(key, self.get('store').peekRecord(key, value));\n              }\n            } else {\n              this.get('model').set(key, initialModelProperties[key]);\n            }\n          });\n          this.get('model.quantities').forEach(q => {\n            const initialQuantityProperties = initialProperties[q.get('indexQuantityType.nameEn')];\n            Object.keys(initialQuantityProperties).filter(key => key !== 'index' && key !== 'indexQuantityType').forEach(key => {\n              q.set(key, initialQuantityProperties[key]);\n            });\n          });\n        }\n      },\n\n      close() {\n        this.send('hideModal', 'sub-modal');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/indexes/modals/index-form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"DhQDpxQm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"q\\\",\\\"unit\\\",\\\"result\\\",\\\"result\\\",\\\"result\\\",\\\"step\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"outletName\\\",\\\"cancel\\\"],[[23,[\\\"modalTitle\\\"]],\\\"sub-modal\\\",[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"data-form-name\\\",\\\"add-index-form\\\"],[11,\\\"class\\\",\\\"form-horizontal section\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"hasVisibleSteps\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"index.company\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"index-contractor\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"company\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"contractors\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"step\\\"]]],null],[23,[\\\"transport\\\",\\\"contractorSteps\\\"]],true,\\\"indexSearchField\\\",[27,\\\"t\\\",[\\\"index.selectCompany\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setStep\\\",[23,[\\\"model\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,6,[\\\"indexSearchField\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"index.selectCompanyHint\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"step\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"indexSetting\\\",\\\"hasProductsEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"product.index\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"product-index\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"globalNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"product-auto-complete\\\",null,[[\\\"field\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"clearSelection\\\"],[\\\"index\\\",[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"product\\\",\\\"index\\\"]]],null],[27,\\\"t\\\",[\\\"product.index.autoCompletePlaceholder\\\"],null],\\\"setProductData\\\",\\\"removeProduct\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,5,[\\\"index\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,5,[\\\"name\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"product\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"product\\\",\\\"name\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"product-name\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"product-auto-complete\\\",null,[[\\\"field\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"clearSelection\\\"],[\\\"name\\\",[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"product\\\",\\\"name\\\"]]],null],[23,[\\\"productSetting\\\",\\\"nameAutoCompletePlaceholder\\\"]],\\\"setProductData\\\",\\\"removeProduct\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,4,[\\\"name\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,4,[\\\"index\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"product\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"indexSetting\\\",\\\"hasProductsShortNameEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"product.shortName\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"product-short-name\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"shortName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"product-auto-complete\\\",null,[[\\\"field\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"clearSelection\\\"],[\\\"shortName\\\",[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"product\\\",\\\"shortName\\\"]]],null],[27,\\\"t\\\",[\\\"product.shortName.autoCompletePlaceholder\\\"],null],\\\"setProductData\\\",\\\"removeProduct\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,3,[\\\"shortName\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,3,[\\\"index\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"product\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"indexSetting\\\",\\\"showGlobalNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"index\\\",\\\"globalNumber\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"global-number\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"globalNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"handleGlobalNumber\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"globalNumber\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"indexSetting\\\",\\\"showLocalNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"index\\\",\\\"localNumber\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"local-number\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"localNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"localNumber\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"localNumber\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"indexSetting\\\",\\\"showName\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"index\\\",\\\"name\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"index-name\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"name\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"indexSetting\\\",\\\"showDocumentNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"index.documentNumber.abbr\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"document-number\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"documentNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"documentNumber\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"documentNumber\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"indexSetting\\\",\\\"showTransportNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"index.transportNumber\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"transport-number\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"transportNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"transportNumber\\\"]],[23,[\\\"isEditionDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"transportNumber\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"quantities\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"indexSetting\\\",\\\"showQuantity\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"indexQuantityType\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"quantity-of-\\\",[22,1,[\\\"indexQuantityType\\\",\\\"nameEn\\\"]]]]],[12,\\\"class\\\",[28,[\\\"col-md-5 col-xs-12 \\\",[27,\\\"if\\\",[[22,1,[\\\"errors\\\",\\\"quantity\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"pattern\\\",\\\"min\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"number\\\",\\\"1\\\",\\\"^[0-9]+\\\\\\\\.[0-9][0-9]$\\\",\\\"0\\\",\\\"form-control\\\",[27,\\\"or\\\",[[23,[\\\"isEditionDisabled\\\"]],[22,1,[\\\"incompleteLoadingRulesNotMet\\\"]]],null],[22,1,[\\\"quantity\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"incompleteLoadingRulesNotMet\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"help-block small\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"index-quantity.incompleteLoadingRulesNotMet\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,1,[]],\\\"quantity\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"indexQuantityType\\\",\\\"requiresUnit\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"indexSetting\\\",\\\"hasProductsEnabled\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"product\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"unit-product\\\"],[11,\\\"class\\\",\\\"col-md-3 col-xs-12\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"model\\\",\\\"getProductUnit\\\"]],true]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"data-field-name\\\",[28,[\\\"unit-\\\",[22,1,[\\\"unit\\\"]]]]],[12,\\\"class\\\",[28,[\\\"col-md-3 col-xs-12 \\\",[27,\\\"if\\\",[[22,1,[\\\"errors\\\",\\\"unit\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"select\\\"],[11,\\\"name\\\",\\\"unit\\\"],[11,\\\"id\\\",\\\"unit-select\\\"],[11,\\\"class\\\",\\\"form-control\\\"],[12,\\\"onchange\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[22,1,[\\\"unit\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"unit.label\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                                \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"unit.placeholder\\\"],null],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"units\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"option\\\"],[12,\\\"value\\\",[28,[[22,2,[]]]]],[12,\\\"selected\\\",[27,\\\"eq\\\",[[22,1,[\\\"unit\\\"]],[22,2,[]]],null]],[9],[0,\\\"\\\\n                                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"unit.\\\",[22,2,[]]],null]],null],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,1,[]],\\\"unit\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"indexSetting\\\",\\\"showNotes\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section form-horizontal\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[11,\\\"data-field-name\\\",\\\"index-notes\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"type\\\",\\\"placeholder\\\",\\\"class\\\",\\\"disabled\\\",\\\"rows\\\",\\\"value\\\"],[\\\"textarea\\\",[23,[\\\"indexSetting\\\",\\\"notesPlaceholder\\\"]],\\\"form-control vertical-resizable-only\\\",[23,[\\\"isEditionDisabled\\\"]],\\\"3\\\",[23,[\\\"model\\\",\\\"notes\\\"]]]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"notes\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"isEditionDisabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"save-index-button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.ok\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isDeletionAllowed\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"dataButtonName\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",\\\"delete-index-button\\\",[23,[\\\"indexSetting\\\",\\\"disableConfirmation\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"disable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"ban\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.disable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"cancel-index-button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isEditionDisabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.close\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/indexes/modals/index-form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/indexes/modals/indexes-details/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    intl: service(),\n    apolloApiService: service('api.apollo-api-service'),\n    successMessage: null,\n    errors: [],\n    transport: Ember.computed('model', function () {\n      return this.get('model');\n    }),\n    indexSetting: Ember.computed('transport.transportType.indexSetting', function () {\n      return this.get('transport.transportType.indexSetting');\n    }),\n    modalTitle: Ember.computed('indexSetting', function () {\n      return this.get('indexSetting').getTranslation('sectionLabel');\n    }),\n    columns: Ember.computed('', function () {\n      return ['index', 'quantities'];\n    }),\n    canSaveIndexes: Ember.computed(function () {\n      if (!this.get('transport.content')) {\n        return false;\n      }\n\n      return this.get('transport.content').actionCanBePerformed('EDIT_INDEX');\n    }),\n    actions: {\n      cancel() {\n        this.set('errors', []);\n        this.set('successMessage', null);\n        const transportModel = this.get('transport');\n\n        if (transportModel.get('indexes.length')) {\n          transportModel.get('indexes').forEach(index => {\n            if (index) {\n              index.rollback();\n              index.get('quantities').forEach(q => q.rollback());\n            }\n          });\n        }\n      },\n\n      async save() {\n        const quantities = [];\n        this.get('transport.enabledIndexes').forEach(i => {\n          i.get('quantities').filter(q => q.get('indexQuantityType.editableViaSchedule')).forEach(q => {\n            quantities.push(q);\n          });\n        });\n\n        if (quantities.some(q => !q.validate())) {\n          console.debug('Błędy podczas walidacji indeksów!');\n          return;\n        }\n\n        const jsonBody = JSON.stringify(quantities.map(q => q.customSerialize()));\n        const transportId = this.get('transport.id');\n        const path = this.get('apolloApiService').APOLLO_API.INDEX_QUANTITIES.SAVE; // TODO Skorzystać z ember-data\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, null, {\n            body: jsonBody\n          }, {\n            transportId\n          });\n\n          if (response.ok) {\n            this.set('successMessage', this.get('intl').t('common.saveSuccessMessage'));\n          } else {\n            const error = await response.json();\n            this.set('errors', error.errors);\n          }\n        } catch (error) {\n          this.set('errors', [this.get('intl').t('common.defaultError')]);\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/indexes/modals/indexes-details/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"XhNvEfvM\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"cancel\\\"],[[23,[\\\"modalTitle\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"data-form-name\\\",\\\"indexes-details\\\"],[11,\\\"class\\\",\\\"form-horizontal section\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"transport/indexes-section\\\",null,[[\\\"transport\\\",\\\"asPlainTemplate\\\",\\\"showExpanded\\\",\\\"hideAddIndexesSection\\\",\\\"columns\\\",\\\"viaSchedule\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"asPlainTemplate\\\"]],[23,[\\\"showExpandedIndexSection\\\"]],true,[23,[\\\"columns\\\"]],true]]],false],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canSaveIndexes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"save-indexes-button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"cancel-indexes-button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.close\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/indexes/modals/indexes-details/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/invitation-ramp/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend({\n    invitation: _emberData.default.belongsTo('invitation'),\n    ramp: _emberData.default.belongsTo('ramp')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/invitation/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  //noinspection NpmUsedModulesInstalled\n  var _default = _emberData.default.Model.extend(_modelValidator.default, {\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    ramps: _emberData.default.hasMany('ramp'),\n    queues: _emberData.default.hasMany('queues'),\n    partnershipType: _emberData.default.belongsTo('partnershipType', {\n      async: true\n    }),\n    company: _emberData.default.belongsTo('company', {\n      async: true,\n      inverse: null\n    }),\n    creator: _emberData.default.belongsTo('user', {\n      async: true\n    }),\n    registeredAccount: _emberData.default.belongsTo('user', {\n      async: true,\n      inverse: 'invitation'\n    }),\n    personWhoAccepted: _emberData.default.belongsTo('user', {\n      async: true\n    }),\n    personWhoRejected: _emberData.default.belongsTo('user', {\n      async: true\n    }),\n    roleGroup: _emberData.default.belongsTo('roleGroup', {\n      async: true\n    }),\n    userGroup: _emberData.default.belongsTo('userGroup', {\n      async: true\n    }),\n    origin: _emberData.default.attr('string'),\n    email: _emberData.default.attr('string'),\n    enabled: _emberData.default.attr('boolean'),\n    taxIdNumber: _emberData.default.attr('string'),\n    country: _emberData.default.belongsTo('country'),\n    expirationDate: _emberData.default.attr('date'),\n    dateAccepted: _emberData.default.attr('date'),\n    dateRejected: _emberData.default.attr('date'),\n    dateCreated: _emberData.default.attr('date'),\n    lastUpdated: _emberData.default.attr('date'),\n    customMessage: _emberData.default.attr('string'),\n    availableLanguages: _emberData.default.attr(),\n    status: Ember.computed('isAccepted', 'isRejected', 'hasExpired', function () {\n      if (this.get('isAccepted')) {\n        return this.get('acceptedStatus');\n      } else if (this.get('isRejected')) {\n        return this.get('rejectedStatus');\n      } else if (this.get('hasExpired')) {\n        return this.get('expiredStatus');\n      } else {\n        return this.get('waitingStatus');\n      }\n    }),\n    waitingStatus: Ember.computed('', function () {\n      return Ember.Object.create({\n        name: this.get('intl').t('common.waiting'),\n        idx: 1,\n        icon: 'hourglass-start',\n        class: ''\n      });\n    }).readOnly(),\n    expiredStatus: Ember.computed('expirationDate', function () {\n      return Ember.Object.create({\n        name: this.get('intl').t('invitation.hasExpired'),\n        idx: 2,\n        icon: 'clock',\n        class: 'errors'\n      });\n    }).readOnly(),\n    acceptedStatus: Ember.computed('dateAccepted', function () {\n      return Ember.Object.create({\n        name: this.get('intl').t('common.accepted'),\n        idx: 3,\n        icon: 'check-circle',\n        class: 'success'\n      });\n    }).readOnly(),\n    rejectedStatus: Ember.computed('dateRejected', function () {\n      return Ember.Object.create({\n        name: this.get('intl').t('common.rejected'),\n        idx: 4,\n        icon: 'fa-frown',\n        class: 'errors'\n      });\n    }).readOnly(),\n    isAccepted: Ember.computed('dateAccepted', function () {\n      return !!this.get('dateAccepted');\n    }).readOnly(),\n    isRejected: Ember.computed('dateRejected', function () {\n      return !!this.get('dateRejected');\n    }).readOnly(),\n    hasExpired: Ember.computed('expirationDate', function () {\n      return moment(this.get('expirationDate')) < moment();\n    }).readOnly(),\n    isHandled: Ember.computed('dateAccepted', 'dateRejected', function () {\n      return !!this.get('dateAccepted') || !!this.get('dateRejected');\n    }).readOnly(),\n    isToJoinCompany: Ember.computed('partnershipType.id', function () {\n      return !this.get('partnershipType.id');\n    }).readOnly(),\n    type: Ember.computed('partnershipType.name', function () {\n      return this.get('isToJoinCompany') ? 'JOIN_COMPANY' : this.get('partnershipType').get('name');\n    }).readOnly(),\n    typeTranslationKey: Ember.computed('partnershipType.translationLabel', function () {\n      return this.get('isToJoinCompany') ? 'JOIN_COMPANY' : this.get('partnershipType.translationLabel');\n    }).readOnly(),\n    validations: {\n      email: {\n        custom: [{\n          validation: function (key, value) {\n            return value;\n          },\n          message: 'blank'\n        }, {\n          validation: function (key, value, model) {\n            const domain = value ? value.replace(/.*@/, \"\") : \"\";\n            const allowedDomains = model.get('allowedDomains');\n            return !allowedDomains || allowedDomains.length === 0 || allowedDomains.map(ad => ad.get('domain')).includes(domain);\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('company.allowedDomains.emailNotMatch', {\n              allowedDomains: model.get('allowedDomains').map(ad => ad.get('domain')).join(\", \")\n            });\n          }\n        }]\n      },\n      roleGroup: {\n        custom: [{\n          validation: function (key, value) {\n            return value.content;\n          },\n          message: 'blankSelect'\n        }]\n      },\n      taxIdNumber: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('taxIdShouldBeVisible')) {\n              return true;\n            }\n\n            return !!value;\n          },\n          message: 'blankSelect'\n        }]\n      },\n      country: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('taxIdShouldBeVisible')) {\n              return true;\n            }\n\n            return value && value.get('id');\n          }\n        }]\n      }\n    },\n    properPartnershipTypeId: Ember.computed('partnershipType.id', 'currentUserPartnershipTypeId', function () {\n      return this.get('partnershipType.id') === undefined ? this.get('currentUserPartnershipTypeId') : // zaproszenie do własnej firmy\n      this.get('partnershipType.id');\n    }),\n    currentUserPartnershipTypeId: Ember.computed('sessionAccount.currentUser.company.partnershipWithPrincipal.partnershipType.id', function () {\n      return this.get('sessionAccount.currentUser.company.partnershipWithPrincipal.partnershipType.id');\n    }),\n    taxIdShouldBeVisible: Ember.computed('isToJoinCompany', function () {\n      return !this.get('isToJoinCompany');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/invitations/create/controller\", [\"exports\", \"apollo/mixins/ramps-access-mixin\", \"apollo/mixins/queues-access-mixin\"], function (_exports, _rampsAccessMixin, _queuesAccessMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_rampsAccessMixin.default, _queuesAccessMixin.default, {\n    SHOW_ALL_WAREHOUSES: true,\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    gusService: Ember.inject.service('gus-service'),\n    errors: Ember.A([]),\n    countries: Ember.computed('', function () {\n      return this.get('store').peekAll('country');\n    }),\n    availablePartnershipTypes: Ember.computed('model.{partnershipTypes.[],invitation.currentUserPartnershipTypeId}', function () {\n      if (!this.get('model.partnershipTypes')) {\n        return [];\n      }\n\n      const invitationRestriction = this.get('model.roleGroupInvRestriction');\n      const availablePartnershipTypes = invitationRestriction ? invitationRestriction.getEach('invitedRoleGroup.partnershipType.id') : [];\n      const currentUserPartnershipTypeId = this.get('model.invitation.currentUserPartnershipTypeId'); // drugi warunek - przewoźnik nie może zaprosić nowego przewoźnika, dostawca nie może zaprosić nowego dostawcy\n\n      return this.get('model.partnershipTypes').filter(pt => availablePartnershipTypes.includes(pt.get('id')) && currentUserPartnershipTypeId !== pt.get('id'));\n    }),\n    availableRoleGroup: Ember.computed('model.invitation.partnershipType', 'properPartnershipTypeId', function () {\n      const invitationRestriction = this.get('model.roleGroupInvRestriction');\n\n      if (!invitationRestriction) {\n        return [];\n      }\n\n      const properPartnershipTypeId = this.get('model.invitation.properPartnershipTypeId');\n      return invitationRestriction.filter(ir => ir.get('invitedRoleGroup.partnershipType.id') === properPartnershipTypeId).map(ir => ir.get('invitedRoleGroup'));\n    }),\n    selectedRoleGroup: Ember.computed('model.invitation.roleGroup', function () {\n      if (this.get('availableRoleGroup.length') === 1) {\n        this.get('model.invitation').set('roleGroup', this.get('availableRoleGroup.firstObject'));\n      }\n\n      return this.get('model.invitation.roleGroup');\n    }),\n    // eslint-disable-next-line ember/no-observers\n    roleGroupsChanged: Ember.observer('roleGroups.@each', 'model.invitation.partnershipType.name', function () {\n      if (!this.get('model.invitation')) {\n        return;\n      }\n\n      if (this.get('roleGroups.length') === 1) {\n        this.get('model.invitation').set('roleGroup', this.get('roleGroups.firstObject'));\n      } else {\n        this.get('model.invitation').set('roleGroup', null);\n      }\n    }),\n    showUserGroupSection: Ember.computed('invitedCompany', function () {\n      return !this.get('invitedCompany.isPrincipal') && this.get('invitedCompany.customUserGroupsExists');\n    }),\n    ownCompanyInvitation: Ember.computed('', function () {\n      return this.get('sessionAccount.currentUser.roleGroup.ownCompanyInvitation');\n    }),\n    // eslint-disable-next-line ember/no-observers\n    invitedCompanyObserver: Ember.on('init', Ember.observer('model.invitation.company', 'model.invitation.partnershipType', 'availablePartnershipTypes.@each', function () {\n      if (this.get('model.invitation.company.id')) {\n        // zaproszenie do istniejącej firmy\n        this.set('invitedCompany', this.get('model.invitation.company'));\n      } else if (!this.get('model.invitation.partnershipType.id')) {\n        // zaproszenie do własnej firmy\n        this.set('invitedCompany', this.get('sessionAccount.currentUser.company'));\n      } else {\n        // zaproszenie nowej firmy\n        this.set('invitedCompany', null);\n      }\n    })),\n    // eslint-disable-next-line ember/no-observers\n    allowedDomainsObserver: Ember.observer('invitedCompany.id', 'model.invitation', function () {\n      if (!this.get('model.invitation')) {\n        return;\n      }\n\n      const companyId = this.get('invitedCompany.id');\n\n      if (!companyId) {\n        this.set('model.invitation.allowedDomains', null);\n        return;\n      }\n\n      this.set('model.invitation.allowedDomains', this.get('store').query('companyEmailDomain', {\n        companyId\n      }));\n    }),\n    canChooseUserGroup: Ember.computed('invitedCompany', 'sessionAccount.currentUser.userGroup.{id,mainGroup}', function () {\n      return this.get('invitedCompany.id') && (!this.get('sessionAccount.currentUser.userGroup') || this.get('sessionAccount.currentUser.userGroup.mainGroup'));\n    }),\n    userGroupOfCurrentUser: Ember.computed(function () {\n      if (this.get('sessionAccount.currentUser.userGroup.id')) {\n        return this.get('store').peekRecord('userGroup', this.get('sessionAccount.currentUser.userGroup.id'));\n      } else {\n        return null;\n      }\n    }),\n    mustInviteToOwnGroup: Ember.computed('userGroupOfCurrentUser', function () {\n      return this.get('userGroupOfCurrentUser') && !this.get('userGroupOfCurrentUser.canSeeOtherGroupsTransports') && this.get('sessionAccount.currentUser.company.id') === this.get('invitedCompany.id');\n    }),\n    showQueuesSection: Ember.computed('selectedRoleGroup', function () {\n      let show = false;\n\n      if (this.get('selectedRoleGroup.id')) {\n        // Zalogowany użytkownik powinien mieć rolę 'ROLE_ACCESS_QUEUES_ACCESSIBILITY'\n        const authority = this.get('sessionAccount.currentUser.roles').find(role => {\n          return role.get('name') === 'ROLE_ACCESS_QUEUES_ACCESSIBILITY';\n        }); // Mając model 'authority' wyciągnięty z bieżącego użytkownika możemy sprawdzić\n        // czy wybrana rola też ma przypisane takie 'authority' bez wykonywania zapytania na backend\n\n        if (authority) {\n          show = Boolean(this.get('selectedRoleGroup.authoritiesIds').find(id => {\n            return id === authority.get('id');\n          }));\n        }\n\n        this.get('proxiedSquares').forEach(square => {\n          square.set('checked', show);\n          square.get('proxiedQueues').forEach(r => r.set('checked', show));\n        });\n      }\n\n      return show;\n    }),\n    // eslint-disable-next-line ember/no-observers\n    setProxiedRamps: Ember.observer('proxiedRamps.length', 'model', function () {\n      Ember.run.once(this, 'checkRamps');\n    }),\n\n    checkRamps() {\n      const proxiedRamps = this.get('proxiedRamps');\n      const companyRampsIds = this.get('model.defaultCompanyRamps') ? this.get('model.defaultCompanyRamps').getEach('id').uniq() : null;\n      proxiedRamps.forEach(r => r.set('checked', companyRampsIds ? companyRampsIds.includes(r.get('id')) : true));\n    },\n\n    allRampsChecked: Ember.computed('proxiedRamps.length', 'checkedRamps.length', function () {\n      return this.get('proxiedRamps.length') === this.get('checkedRamps.length');\n    }),\n    actions: {\n      toggleAllRamps: function () {\n        const shouldBeChecked = !this.get('allRampsChecked');\n        this.get('proxiedWarehouses').forEach(w => {\n          w.set('checked', shouldBeChecked);\n          w.get('proxiedRamps').forEach(r => r.set('checked', shouldBeChecked));\n        });\n      },\n\n      selectPartnershipType(id) {\n        const type = id ? this.store.peekRecord('partnershipType', id) : null;\n        this.get('model.invitation').set('partnershipType', type);\n      },\n\n      setRoleGroup(model, roleGroup) {\n        model.set('roleGroup', roleGroup);\n      },\n\n      changeCountry(country) {\n        this.set('model.invitation.country', country);\n        this.send('verifyNip');\n      },\n\n      verifyNip: function () {\n        const self = this;\n        this.set('gusHasProblem', false);\n        const ibanSymbol = this.get('model.invitation.country.ibanSymbol');\n        const nip = this.get('model.invitation.taxIdNumber');\n        this.get('gusService').verifyNip(ibanSymbol, nip).then(response => {\n          const existingCompanyName = response ? response.existingCompanyName : null;\n          const gusCompanyName = response ? response.gusCompanyName : null;\n          console.log(`Odpowiedź z GUS: ${response}`);\n          self.set('verifiedCompanyName', existingCompanyName != null ? existingCompanyName : gusCompanyName);\n        }).catch(error => {\n          console.error(`Problem z połączeniem z GUS: ${error}`);\n          self.set('verifiedCompanyName', null);\n          self.set('gusHasProblem', true);\n        });\n      },\n\n      sendAnInvitation() {\n        const self = this;\n        this.set('invitationSuccess', null);\n\n        if (this.get('mustInviteToOwnGroup')) {\n          console.debug(`Użytkownik ma przypisaną grupę i do niej zaprasza - nie może jej zmienić, więc przypisujemy ją ręcznie na ${this.get('userGroupOfCurrentUser.name')}.`);\n          this.set('model.invitation.userGroup', this.get('userGroupOfCurrentUser'));\n        }\n\n        const invitation = this.get('model.invitation');\n        const checkedRamps = this.get('checkedRamps');\n        invitation.get('ramps').clear();\n        checkedRamps.forEach(function (ramp) {\n          invitation.get('ramps').pushObject(ramp);\n        });\n        const checkedQueues = this.get('checkedQueues');\n        invitation.get('queues').clear();\n        checkedQueues.forEach(function (queue) {\n          invitation.get('queues').pushObject(queue);\n        });\n\n        if (!invitation.validate()) {\n          return;\n        }\n\n        invitation.save().then(savedInvitation => {\n          const msg = savedInvitation.get('customMessage') || '';\n          self.set('invitationSuccess', msg.split('|'));\n\n          if (savedInvitation.get('company.id')) {\n            savedInvitation.get('company').get('partnerships').then(partnerships => {\n              partnerships.forEach(p => {\n                p.reload();\n              });\n            });\n          }\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n\n      cancel() {\n        const companyId = this.get('model.invitation').get('company.id');\n        this.get('model.invitation').rollbackAttributes();\n        this.get('model.invitation').unloadRecord();\n\n        if (companyId) {\n          if (this.get('sessionAccount').hasRole('ROLE_COMPANIES_TAB')) {\n            this.transitionToRoute('companies');\n          } else {\n            this.transitionToRoute('companies.show', companyId);\n          }\n        } else {\n          this.transitionToRoute('invitations');\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/invitations/create/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    access: Ember.A(['ROLE_INVITATIONS_TAB']),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      const self = this;\n      const origin = window.location.origin + '#';\n      const invitationModel = this.store.createRecord('invitation', {\n        enabled: true,\n        origin\n      }); // Usuwamy typ Operator z listy typów partnerstw do wyboru przy zaproszeniu- A-9610\n\n      let partnershipTypes = this.store.peekAll('partnershipType').filter(pt => pt.name !== 'OPERATOR');\n      const principalCompanyId = localStorage.getItem('principalId');\n      const roleGroups = this.store.peekRecord('company', principalCompanyId).get('roleGroups');\n      const userRoleGroup = this.get('sessionAccount').get('currentUser.roleGroup');\n      const roleGroupInvRestriction = this.store.query('role-group-invitation-restriction', {\n        roleGroup: userRoleGroup.get('id')\n      });\n      const roleAccessQueuesAccessibility = this.get('sessionAccount').hasRole('ROLE_ACCESS_QUEUES_ACCESSIBILITY');\n      const squares = roleAccessQueuesAccessibility ? this.get('store').findAll('square') : null;\n      const queues = roleAccessQueuesAccessibility ? this.get('store').findAll('queue') : null;\n      const companyId = this.get('sessionAccount.currentUser.company.id');\n\n      if (!this.get('sessionAccount.isSuperUser')) {\n        partnershipTypes = partnershipTypes.filter(pt => pt.name !== 'COURIER');\n      }\n\n      return new Promise(function (resolve) {\n        self.store.query('company-ramp', {\n          companyId\n        }).then(companyRamps => {\n          const hasCompanyRamps = !!companyRamps.get('length');\n          const defaultCompanyRamps = hasCompanyRamps ? self.get('store').query('ramp', {\n            rampIds: companyRamps.getEach('ramp.id')\n          }) : null;\n          const defaultCompanyWarehouses = hasCompanyRamps ? self.get('store').query('warehouse', {\n            warehouseIds: companyRamps.getEach('warehouse.id')\n          }) : null;\n          resolve(Ember.RSVP.hash({\n            invitation: invitationModel,\n            partnershipTypes,\n            roleGroups,\n            roleGroupInvRestriction,\n            squares,\n            queues,\n            defaultCompanyRamps,\n            defaultCompanyWarehouses\n          }));\n        });\n      });\n    },\n    actions: {\n      willTransition: function () {\n        // eslint-disable-next-line ember/no-controller-access-in-routes\n        this.get('controller').setProperties({\n          errors: null,\n          invitationSuccess: null,\n          gusHasProblem: false,\n          verifiedCompanyName: null\n        });\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/invitations/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"UL7DG46N\",\n    \"block\": \"{\\\"symbols\\\":[\\\"is\\\",\\\"country\\\",\\\"ug\\\",\\\"rg\\\",\\\"type\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-narrow\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"invitation.sendTo\\\"],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"company\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"invitation.toJoinExistingCompany\\\"],[[\\\"companyName\\\"],[[23,[\\\"model\\\",\\\"invitation\\\",\\\"company\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal padding-top-big\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"model\\\",\\\"roleGroupInvRestriction\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"invitations.cannotInviteAnyRoleGroup\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"invitation-type-select\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"invitation.invite\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"invitation\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"company\\\",\\\"partnershipType\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\",\\\"disabled\\\"],[[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"invitation.for.\\\",[23,[\\\"model\\\",\\\"invitation\\\",\\\"company\\\",\\\"partnershipType\\\",\\\"translationLabel\\\"]]],null]],[[\\\"default\\\"],[[27,\\\"concat\\\",[\\\"invitation.for.\\\",[23,[\\\"model\\\",\\\"invitation\\\",\\\"company\\\",\\\"partnershipType\\\",\\\"name\\\"]]],null]]]],\\\"text\\\",\\\"form-control\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"ownCompanyInvitation\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"invitation.for.JOIN_COMPANY\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"select\\\"],[11,\\\"id\\\",\\\"invitation-type-select\\\"],[11,\\\"class\\\",\\\"form-control\\\"],[12,\\\"onchange\\\",[27,\\\"action\\\",[[22,0,[]],\\\"selectPartnershipType\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"option\\\"],[11,\\\"data-option-name\\\",\\\"JOIN_COMPANY\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"invitation.for.JOIN_COMPANY\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"availablePartnershipTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"option\\\"],[12,\\\"value\\\",[22,5,[\\\"id\\\"]]],[12,\\\"selected\\\",[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"partnershipType\\\",\\\"id\\\"]],[22,5,[\\\"id\\\"]]],null]],[12,\\\"data-option-name\\\",[22,5,[\\\"name\\\"]]],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"invitation.for.\\\",[22,5,[\\\"translationLabel\\\"]]],null]],[[\\\"default\\\"],[[27,\\\"concat\\\",[\\\"invitation.for.\\\",[22,5,[\\\"name\\\"]]],null]]]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"errors\\\",\\\"roleGroup\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"roleGroup\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"invitation-role-group-select\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"roleGroup.label\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"searchField\\\",\\\"noMatchesMessage\\\",\\\"onchange\\\"],[\\\"invitation-role-group-select\\\",\\\"form-control\\\",[23,[\\\"selectedRoleGroup\\\"]],[23,[\\\"availableRoleGroup\\\"]],true,[27,\\\"t\\\",[\\\"roleGroup.placeholder\\\"],null],\\\"nameInAppropriateLanguage\\\",[27,\\\"t\\\",[\\\"invitations.noRoleGroupsFound\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setRoleGroup\\\",[23,[\\\"model\\\",\\\"invitation\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"span\\\"],[12,\\\"data-option-name\\\",[22,4,[\\\"name\\\"]]],[9],[1,[22,4,[\\\"nameInAppropriateLanguage\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"invitation\\\"]],\\\"roleGroup\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showUserGroupSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"errors\\\",\\\"userGroup\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"roleGroup\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"invitation-role-group-select\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"user.contractorGroupName\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canChooseUserGroup\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"allowClear\\\",\\\"onchange\\\"],[\\\"invitation-user-group-select\\\",\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"userGroup\\\"]]],null],[23,[\\\"invitedCompany\\\",\\\"userGroups\\\"]],true,true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"userGroup\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"span\\\"],[12,\\\"data-option-name\\\",[22,3,[\\\"name\\\"]]],[9],[1,[22,3,[\\\"name\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"invitation\\\"]],\\\"userGroup\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10 form-control-static\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[23,[\\\"userGroupOfCurrentUser\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"taxIdShouldBeVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"errors\\\",\\\"country\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"country-select\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"company.country\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"country\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"country-select\\\",\\\"form-control\\\",[23,[\\\"model\\\",\\\"invitation\\\",\\\"country\\\"]],[23,[\\\"countries\\\"]],\\\"ibanSymbol\\\",[27,\\\"t\\\",[\\\"company.selectCountry\\\"],null],[23,[\\\"model\\\",\\\"invitation\\\",\\\"company\\\",\\\"id\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"changeCountry\\\"],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,2,[\\\"ibanSymbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"invitation\\\"]],\\\"country\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"errors\\\",\\\"taxIdNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"tax-id-field\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"company.taxIdNumber\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"taxIdNumber\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input-group\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon mw-50px\\\"],[9],[1,[23,[\\\"model\\\",\\\"invitation\\\",\\\"country\\\",\\\"ibanSymbol\\\"]],false],[10],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"focus-out\\\",\\\"placeholder\\\",\\\"class\\\"],[\\\"tax-id-field-short-name-field\\\",[23,[\\\"model\\\",\\\"invitation\\\",\\\"taxIdNumber\\\"]],[27,\\\"or\\\",[[27,\\\"not\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"country\\\",\\\"id\\\"]]],null],[23,[\\\"model\\\",\\\"invitation\\\",\\\"company\\\",\\\"id\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"verifyNip\\\"],null],[27,\\\"t\\\",[\\\"company.taxIdNumber\\\"],null],\\\"form-control\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"country\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"company.chooseCountryHint\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"verifiedCompanyName\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"company.name\\\"],null],false],[0,\\\": \\\"],[1,[21,\\\"verifiedCompanyName\\\"],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"gusHasProblem\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-warning margin-top\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"company.gusHasProblem\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"invitation\\\"]],\\\"taxIdNumber\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"errors\\\",\\\"email\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"invitation-email-input\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"user.email\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"email\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"id\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\",\\\"required\\\"],[[23,[\\\"model\\\",\\\"invitation\\\",\\\"email\\\"]],\\\"invitation-email-input\\\",\\\"email\\\",\\\"form-control\\\",[27,\\\"t\\\",[\\\"user.email\\\"],null],\\\"required\\\"]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"invitation\\\"]],\\\"email\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"proxiedWarehouses\\\",\\\"length\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"user.availableRamps\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10 form-control-static\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"input\\\"],[12,\\\"checked\\\",[21,\\\"allRampsChecked\\\"]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"toggleAllRamps\\\"],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.selectDeselectAll\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"ramps-checkboxes\\\",null,[[\\\"proxiedWarehouses\\\",\\\"canNotEditRamps\\\",\\\"changeAction\\\"],[[23,[\\\"proxiedWarehouses\\\"]],[23,[\\\"canNotEditRamps\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"toggleWarehouse\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showQueuesSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"square-section\\\",null,[[\\\"squares\\\"],[[23,[\\\"proxiedSquares\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"invitationSuccess\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group padding-top-big\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-control-static col-sm-12 \\\",[27,\\\"if\\\",[[23,[\\\"invitationSuccess\\\"]],\\\"success\\\",\\\"errors\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"fa-icon\\\",[\\\"check-circle\\\"],[[\\\"size\\\"],[\\\"lg\\\"]]],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"invitation.sent\\\"],[[\\\"email\\\"],[[23,[\\\"model\\\",\\\"invitation\\\",\\\"email\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"invitationSuccess\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[9],[1,[22,1,[]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group text-right padding-top-big\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-12\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"invitationSuccess\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"send\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.send\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"sendAnInvitation\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"invitationSuccess\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/invitations/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/invitations/handle/controller\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    loginController: Ember.inject.controller('auth/login'),\n    intl: Ember.inject.service(),\n    ajaxService: Ember.inject.service('ajax-service'),\n    statuteAccepted: false,\n    statute: Ember.computed('model.statutes.firstObject', function () {\n      return this.get('model.statutes').get('firstObject');\n    }),\n    showRegistrationForm: Ember.computed('model.invitation.company.id', 'model.invitation.isToJoinCompany', function () {\n      return this.get('model.invitation.company.id') || this.get('model.invitation.isToJoinCompany');\n    }),\n    showExistingCompanyForm: Ember.computed('', function () {\n      return false;\n    }),\n    showInvalidTaxIdNumberForm: Ember.computed('', function () {\n      return false;\n    }),\n    invalidTaxIdForm: Ember.computed('showInvalidTaxIdNumberForm', 'showExistingCompanyForm', function () {\n      return this.get('showExistingCompanyForm') || this.get('showInvalidTaxIdNumberForm');\n    }),\n    message: Ember.computed('model.company.taxIdNumber', function () {\n      return Ember.Object.create({\n        email: '',\n        phoneNumber: '',\n        content: '',\n        taxIdNumber: this.get('model.company.taxIdNumber'),\n        invitationId: this.get('model.invitation.id'),\n        isValidTaxIdNumber: true\n      });\n    }),\n    actions: {\n      join: function () {\n        const self = this;\n        const user = this.get('model.user');\n        const company = this.get('model.company');\n        const data = user.serialize();\n        data.company = company.serialize();\n        const invitationId = this.get('model.invitation.id'); // TODO :: apollo-api-service\n\n        Ember.$.ajax({\n          url: _environment.default.serverURL + `/invitations/${invitationId}/join`,\n          type: 'POST',\n          data: JSON.stringify(data),\n          contentType: 'application/json'\n        }).then(jsonResponse => {\n          if (jsonResponse.errors) {\n            self.set('errors', jsonResponse.errors);\n            $('html, body').animate({\n              scrollTop: 0\n            }, 'slow');\n            return;\n          }\n\n          self.setProperties({\n            inProgress: false,\n            errors: []\n          });\n          const msg = this.get('model.invitation.company.isLdapCompany') ? self.get('intl').t('invitation.registrationCompleteLdap', {\n            username: jsonResponse.user.username\n          }) : self.get('intl').t('invitation.registrationComplete', {\n            username: jsonResponse.user.username\n          });\n          self.get('loginController').set('message', msg);\n          self.get('store').peekAll('partnership').forEach(p => {\n            p.unloadRecord();\n          });\n          self.transitionToRoute('auth.login');\n        }, response => {\n          self.set('errors', response.errors);\n        });\n      },\n\n      approveAllPoints() {\n        this.set('statuteAccepted', true);\n      },\n\n      unApproveSomePoints() {\n        this.set('statuteAccepted', false);\n      },\n\n      validateTaxIdNumber: function () {\n        const self = this;\n        const company = this.get('model.company');\n        const invitation = this.get('model.invitation');\n        const data = company.serialize();\n        data.id = invitation.get('company.id');\n        data.invitationTaxIdNumber = invitation.get('taxIdNumber'); // TODO :: apollo-api-service\n\n        Ember.$.ajax({\n          url: _environment.default.serverURL + '/invitations/validateTaxIdNumber',\n          type: 'POST',\n          data: JSON.stringify(data),\n          contentType: 'application/json'\n        }).then(jsonResponse => {\n          if (jsonResponse.errors) {\n            self.set('errors', jsonResponse.errors);\n            return;\n          }\n\n          if (jsonResponse.companyExist) {\n            self.set('showExistingCompanyForm', true);\n            return;\n          }\n\n          if (jsonResponse.invalidTaxIdNumber) {\n            self.set('showInvalidTaxIdNumberForm', true);\n            self.set('message.isValidTaxIdNumber', false);\n            return;\n          }\n\n          self.setProperties({\n            inProgress: false,\n            errors: [],\n            showRegistrationForm: true\n          });\n        }, response => {\n          self.set('errors', response.errors);\n        });\n      },\n      sendMessage: function () {\n        const self = this;\n        const data = self.get('message'); // TODO :: apollo-api-service\n\n        Ember.$.ajax({\n          url: _environment.default.serverURL + '/invitations/sendMessage',\n          type: 'POST',\n          data: JSON.stringify(data),\n          contentType: 'application/json'\n        }).then(() => {\n          self.set('showExistingCompanyForm', false);\n          self.set('showInvalidTaxIdNumberForm', false);\n          self.transitionToRoute('auth.login');\n        }, response => {\n          self.set('errors', JSON.parse(response.responseText).errors);\n        });\n      },\n\n      rejectStatute() {\n        const self = this;\n        const token = this.get('model.token'); // TODO: Rozwikłać i użyć apolloApiService\n\n        self.get('ajaxService').send(`/rejectStatute?token=${token}`);\n        self.transitionToRoute('auth.login');\n        self.get('store').peekAll('partnership').forEach(p => {\n          p.unloadRecord();\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/invitations/handle/route\", [\"exports\", \"ember-simple-auth/mixins/unauthenticated-route-mixin\"], function (_exports, _unauthenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n\n  var _default = Ember.Route.extend(_unauthenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    queryParams: {\n      token: {\n        refreshModel: true\n      }\n    },\n    beforeModel: function () {\n      if (this.get('session.isAuthenticated')) {\n        const invitationId = this.get('sessionAccount.currentUser.invitation.id');\n        this.transitionTo('invitations.show', invitationId);\n      }\n    },\n    model: function (params) {\n      let invitation = this.store.queryRecord(\"invitation\", {\n        token: params.token\n      });\n      let countries = this.store.findAll('country');\n      let company = this.store.createRecord(\"company\", {\n        enabled: true,\n        pricingPlan: 'BASIC'\n      });\n      let user = this.store.createRecord(\"user\", {\n        invitation: invitation\n      });\n      return Ember.RSVP.hash({\n        token: params.token,\n        invitation: invitation,\n        countries: countries,\n        user: user,\n        company: company\n      });\n    },\n    setupController: function (controller, model) {\n      model.company.set('country', model.invitation.get('country'));\n      model.company.set('taxIdIsoNumber', model.invitation.get('country.ibanSymbol'));\n    },\n    renderTemplate: function (controller, model) {\n      this.render('invitations/handle', {\n        into: 'application',\n        outlet: 'unauthenticated',\n        controller: controller,\n        model: model\n      });\n    },\n    actions: {\n      error: function (reason) {\n        if (reason.status === 404) {\n          return true;\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/invitations/handle/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"CZc+mppo\",\n    \"block\": \"{\\\"symbols\\\":[\\\"country\\\",\\\"error\\\"],\\\"statements\\\":[[4,\\\"unless\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center errors dark-background\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"invitation.notFound\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"serviceNotWorking.signature\\\"],null],false],[0,\\\"\\\\n            \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-envelope\\\"],[9],[10],[0,\\\"\\\\n            \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[27,\\\"concat\\\",[\\\"mailto:\\\",[27,\\\"t\\\",[\\\"logintegraEmail\\\"],null]],null]],[9],[1,[27,\\\"t\\\",[\\\"logintegraEmail\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-mobile\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"logintegraPhone\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"isHandled\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center dark-background\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"invitation.alreadyAccepted\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"auth.login\\\"],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"auth.login\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"text-center dark-background invitation-header\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"invitation.createdBy\\\"],[[\\\"personName\\\"],[[23,[\\\"model\\\",\\\"invitation\\\",\\\"creator\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[7,\\\"img\\\"],[11,\\\"class\\\",\\\"logintegra-logo-invitation\\\"],[11,\\\"src\\\",\\\"/assets/images/logintegra-logo-new.png\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"invitation.toCompanyWithRole\\\"],[[\\\"companyName\\\",\\\"roleName\\\"],[[23,[\\\"model\\\",\\\"invitation\\\",\\\"creator\\\",\\\"company\\\",\\\"name\\\"]],[23,[\\\"model\\\",\\\"invitation\\\",\\\"roleGroup\\\",\\\"nameInAppropriateLanguage\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"company\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"invitation.ofCompany\\\"],[[\\\"companyName\\\"],[[23,[\\\"model\\\",\\\"invitation\\\",\\\"company\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger dark-background\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,2,[]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"centered container dark-background\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"eq\\\",[[23,[\\\"showRegistrationForm\\\"]],false],null],[27,\\\"eq\\\",[[23,[\\\"invalidTaxIdForm\\\"]],false],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"country-select\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"company.country\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"country-select\\\",\\\"form-control\\\",[23,[\\\"model\\\",\\\"company\\\",\\\"country\\\"]],[23,[\\\"model\\\",\\\"countries\\\"]],\\\"ibanSymbol\\\",[27,\\\"t\\\",[\\\"company.selectCountry\\\"],null],true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"company\\\",\\\"country\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[\\\"ibanSymbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"tax-id-field\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"company.taxIdNumber\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon mw-50px\\\"],[9],[1,[23,[\\\"model\\\",\\\"company\\\",\\\"country\\\",\\\"ibanSymbol\\\"]],false],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"placeholder\\\",\\\"class\\\"],[\\\"tax-id-field-short-name-field\\\",[23,[\\\"model\\\",\\\"company\\\",\\\"taxIdNumber\\\"]],[27,\\\"not\\\",[[23,[\\\"model\\\",\\\"company\\\",\\\"country\\\",\\\"id\\\"]]],null],[27,\\\"t\\\",[\\\"company.taxIdNumber\\\"],null],\\\"form-control\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"model\\\",\\\"company\\\",\\\"country\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"company.chooseCountryHint\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showRegistrationForm\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"companies/registration-form\\\",null,[[\\\"model\\\"],[[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[21,\\\"users/rodo-information\\\"],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"invalidTaxIdForm\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"tax-id-field\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showInvalidTaxIdNumberForm\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"invitation.invalidTaxIdNumber.info\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"invitation.taxIdNumberExist.info\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"tax-id-field\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"user.email\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\"],[\\\"email-field\\\",[23,[\\\"message\\\",\\\"email\\\"]],[27,\\\"t\\\",[\\\"user.email\\\"],null],\\\"form-control\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"tax-id-field\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"user.mobilePhoneNumber\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\"],[\\\"phone-number-field\\\",[23,[\\\"message\\\",\\\"phoneNumber\\\"]],[27,\\\"t\\\",[\\\"user.mobilePhoneNumber\\\"],null],\\\"form-control\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"tax-id-field\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.message\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"class\\\",\\\"placeholder\\\",\\\"rows\\\"],[\\\"textarea\\\",[23,[\\\"message\\\",\\\"content\\\"]],\\\"form-control\\\",[27,\\\"t\\\",[\\\"common.message\\\"],null],\\\"6\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"invalidTaxIdForm\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.send\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"sendMessage\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showRegistrationForm\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"statuteAccepted\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.register\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"join\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"disabled\\\",\\\"disabled\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.register\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.further\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"validateTaxIdNumber\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-danger\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"statute.reject.buttonForInvitations\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"rejectStatute\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/invitations/handle/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/invitations/index/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    receivedInvitations: Ember.computed('model.invitations.@each', function () {\n      const currentUserId = this.get('sessionAccount').get('currentUser.id');\n      const currentUserEmail = this.get('sessionAccount.currentUser.email');\n      return this.get('model.invitations').filter(function (item) {\n        return item.get(\"creator.id\") !== currentUserId && item.get('email') === currentUserEmail;\n      });\n    }),\n    sentInvitations: Ember.computed('model.invitations.@each', function () {\n      const currentUserId = this.get('sessionAccount').get('currentUser.id');\n      return this.get('model.invitations').filter(function (item) {\n        return item.get(\"creator.id\") === currentUserId;\n      }).sortBy('status.idx');\n    }),\n    actions: {\n      getInvitations(type) {\n        this.send('refreshModel', type);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/invitations/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"apollo/mixins/menu-mixin\"], function (_exports, _authenticatedRouteMixin, _menuMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _menuMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_INVITATIONS_TAB'],\n    selectedType: 'WAITING',\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      const self = this;\n      return Ember.RSVP.hash({\n        selectedType: self.get('selectedType'),\n        invitations: self.store.query('invitation', {\n          type: self.get('selectedType')\n        })\n      });\n    },\n\n    activate() {\n      this.activateCurrentTab('INVITATIONS_TAB');\n    },\n\n    actions: {\n      refreshModel(type) {\n        this.set('selectedType', type);\n        this.refresh();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/invitations/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"FcLzf2An\",\n    \"block\": \"{\\\"symbols\\\":[\\\"invitation\\\",\\\"invitation\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-narrow\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h1\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"invitations.label\\\"],null],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"invitations.create\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"invitation.invite\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"data-button-name\\\",\\\"invitation-waiting-tab\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info margin-right-small \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"selectedType\\\"]],\\\"WAITING\\\"],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"invitations.types.WAITING\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"getInvitations\\\",\\\"WAITING\\\"]],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"data-button-name\\\",\\\"invitation-accepted-tab\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info margin-right-small \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"selectedType\\\"]],\\\"ACCEPTED\\\"],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"invitations.types.ACCEPTED\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"getInvitations\\\",\\\"ACCEPTED\\\"]],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"data-button-name\\\",\\\"invitation-expired-tab\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info margin-right-small \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"selectedType\\\"]],\\\"EXPIRED\\\"],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"invitations.types.EXPIRED\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"getInvitations\\\",\\\"EXPIRED\\\"]],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"data-button-name\\\",\\\"invitation-rejected-tab\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-info margin-right-small \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"selectedType\\\"]],\\\"REJECTED\\\"],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"invitations.types.REJECTED\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"getInvitations\\\",\\\"REJECTED\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"invitations.received\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"receivedInvitations\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"invitation-section\\\",null,[[\\\"invitation\\\",\\\"received\\\"],[[22,2,[]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"invitations.emptyReceived\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"invitations.sent\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"sentInvitations\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"invitation-section\\\",null,[[\\\"invitation\\\"],[[22,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"invitations.emptySent\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/invitations/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/invitations/review/controller\", [\"exports\", \"apollo/mixins/invitations-mixin\"], function (_exports, _invitationsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_invitationsMixin.default, {});\n\n  _exports.default = _default;\n});","define(\"apollo/pods/invitations/review/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    queryParams: {\n      token: {\n        refreshModel: true\n      }\n    },\n    model: function (params) {\n      return this.store.queryRecord(\"invitation\", {\n        token: params.token\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/invitations/review/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Dh1UoDQU\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"isHandled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"invitation.alreadyHandled\\\"],null],false],[0,\\\", \\\"],[1,[27,\\\"t\\\",[\\\"common.check\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"invitations.show\\\",[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"common.details\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"unless\\\",[[23,[\\\"model\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"invitation.acceptedByAnotherPerson\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"invitation.toPartnership\\\"],[[\\\"personName\\\",\\\"companyName\\\",\\\"roleName\\\"],[[23,[\\\"model\\\",\\\"creator\\\",\\\"name\\\"]],[23,[\\\"model\\\",\\\"creator\\\",\\\"company\\\",\\\"name\\\"]],[23,[\\\"model\\\",\\\"roleGroup\\\",\\\"nameInAppropriateLanguage\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.accept\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"accept\\\",[23,[\\\"model\\\",\\\"id\\\"]]]],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.reject\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"reject\\\",[23,[\\\"model\\\",\\\"id\\\"]]]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/invitations/review/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/invitations/show/controller\", [\"exports\", \"apollo/mixins/invitations-mixin\"], function (_exports, _invitationsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_invitationsMixin.default, {\n    invitationWarehousesRampMap: Ember.computed('model.invitationRamps.@each', function () {\n      let warehousesRamp = {};\n      this.get('model.invitationRamps').map(x => {\n        if (warehousesRamp.hasOwnProperty(x.get('ramp.warehouse.name'))) {\n          warehousesRamp[x.get('ramp.warehouse.name')].push(x.get('ramp.name'));\n        } else {\n          warehousesRamp[x.get('ramp.warehouse.name')] = [];\n          warehousesRamp[x.get('ramp.warehouse.name')].push(x.get('ramp.name'));\n        }\n      });\n      return warehousesRamp;\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/invitations/show/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    model: function (params) {\n      const invitation = this.store.findRecord('invitation', params.id, {\n        reload: true\n      });\n      const invitationRamps = this.store.query('invitation-ramp', {\n        invitationId: params.id\n      });\n      return Ember.RSVP.hash({\n        invitation: invitation,\n        invitationRamps: invitationRamps\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/invitations/show/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"p0Cgs8V/\",\n    \"block\": \"{\\\"symbols\\\":[\\\"ramps\\\",\\\"warehouse\\\",\\\"ramp\\\",\\\"index\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-narrow\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"creator\\\",\\\"id\\\"]],[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"id\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"invitation.sent\\\"],[[\\\"email\\\"],[[23,[\\\"model\\\",\\\"invitation\\\",\\\"email\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"invitation.label\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.from\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"model\\\",\\\"invitation\\\",\\\"creator\\\",\\\"name\\\"]],false],[0,\\\".\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-2 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.type\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-10 form-control-static\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"invitation.type.\\\",[23,[\\\"model\\\",\\\"invitation\\\",\\\"typeTranslationKey\\\"]]],null]],[[\\\"default\\\"],[[27,\\\"concat\\\",[\\\"invitation.type.\\\",[23,[\\\"model\\\",\\\"invitation\\\",\\\"type\\\"]]],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"company\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-2 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.company\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-10 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"model\\\",\\\"invitation\\\",\\\"company\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-2 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.recipient\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-10 form-control-static\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[23,[\\\"model\\\",\\\"invitation\\\",\\\"email\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"taxIdNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-2 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"company.country\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-10 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"model\\\",\\\"invitation\\\",\\\"country\\\",\\\"ibanSymbol\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-2 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"company.taxIdNumber\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-10 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"model\\\",\\\"invitation\\\",\\\"taxIdNumber\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-2 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"invitation.creator\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-10 form-control-static\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[23,[\\\"model\\\",\\\"invitation\\\",\\\"creator\\\",\\\"name\\\"]],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.fromCompany\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"model\\\",\\\"invitation\\\",\\\"creator\\\",\\\"company\\\",\\\"shortName\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-2 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.dateCreated\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-10 form-control-static\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"dateCreated\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-2 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"invitation.expirationDate\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-10 form-control-static\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"expirationDate\\\"]],\\\"short\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"dateAccepted\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-2 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"invitation.acceptedSummary\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-10 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"dateAccepted\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"by-whom\\\",null,[[\\\"person\\\"],[[23,[\\\"model\\\",\\\"invitation\\\",\\\"personWhoAccepted\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"registeredAccount\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-2 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"invitation.registeredAccount\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-10 form-control-static\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"users.show\\\",[23,[\\\"model\\\",\\\"invitation\\\",\\\"registeredAccount\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[23,[\\\"model\\\",\\\"invitation\\\",\\\"registeredAccount\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"dateRejected\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-2 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"invitation.rejectedSummary\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-10 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"dateRejected\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"by-whom\\\",null,[[\\\"person\\\",\\\"currentUser\\\"],[[23,[\\\"model\\\",\\\"invitation\\\",\\\"personWhoRejected\\\"]],[23,[\\\"sessionAccount\\\",\\\"currentUser\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"isPrincipal\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"model\\\",\\\"invitationRamps\\\",\\\"length\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"user.availableRamps\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[27,\\\"-each-in\\\",[[23,[\\\"invitationWarehousesRampMap\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,2,[]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,1,[]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[27,\\\"if\\\",[[27,\\\"not-eq\\\",[[22,4,[]],0],null],\\\"|\\\"],null],false],[0,\\\"\\\\n                                    \\\"],[1,[22,3,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"isHandled\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"invitation\\\",\\\"email\\\"]],[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"email\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"accept-invitation-button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.accept\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"accept\\\",[23,[\\\"model\\\",\\\"invitation\\\",\\\"id\\\"]]]],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"reject-invitation-button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.reject\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"reject\\\",[23,[\\\"model\\\",\\\"invitation\\\",\\\"id\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_DELETE_INVITATION\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"delete\\\",[23,[\\\"model\\\",\\\"invitation\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"invitations\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/invitations/show/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/ldm-packaging/model\", [\"exports\", \"ember-data\", \"ember-data-copyable\", \"apollo/pods/packaging/model\"], function (_exports, _emberData, _emberDataCopyable, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.LdmPackaging = void 0;\n  const {\n    attr\n  } = _emberData.default;\n\n  const LdmPackaging = _model.BasePackagingModel.extend(_emberDataCopyable.default, {\n    rounding: Ember.inject.service('rounding-service'),\n    stackingFactor: attr('number'),\n    ldm: attr('number'),\n    roundedLdm: Ember.computed('ldm', function () {\n      return this.rounding.roundToTwoDecimals(this.get('ldm'));\n    }),\n    validations: { ..._model.BasePackagingModelValidations,\n      stackingFactor: {\n        custom: [{\n          validation: function (key, value) {\n            return !!value;\n          },\n          message: 'blankSelect'\n        }]\n      }\n    }\n  });\n\n  _exports.LdmPackaging = LdmPackaging;\n  var _default = {\n    LdmPackaging\n  };\n  _exports.default = _default;\n});","define(\"apollo/pods/main-section/model\", [\"exports\", \"ember-data\", \"apollo/pods/section/model\"], function (_exports, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _model.default.extend({\n    partnership: _emberData.default.belongsTo('partnership', {\n      async: true,\n      deepEmbedded: ['contractorCompany']\n    }),\n    krsFile: _emberData.default.belongsTo('file', {\n      async: true\n    }),\n    regonFile: _emberData.default.belongsTo('file', {\n      async: true\n    }),\n    nipFile: _emberData.default.belongsTo('file', {\n      async: true\n    }),\n    confirmToS: _emberData.default.attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    certificates: _emberData.default.attr('string'),\n    fleetDescription: _emberData.default.attr('string'),\n    validations: {\n      'company': {\n        custom: [{\n          validation: function (key, value, model) {\n            return model.get('partnership.contractorCompany.content').validate();\n          }\n        }]\n      },\n      'isToSConfirmed': {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('partnership.termsOfService.content').validate()) {\n              model.set('confirmToS', true);\n              return true;\n            } else {\n              model.set('confirmToS', false);\n              return false;\n            }\n          }\n        }]\n      },\n      partnership: {\n        custom: [{\n          validation: function (key, value, model) {\n            return model.get('partnership.content').validate({\n              only: \"representativeEmail,representativePhoneNumber,representativePhoneNumberPrefix,additionalDetails\"\n            });\n          }\n        }]\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/main-section/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, {\n    attrs: {\n      partnership: {\n        embedded: 'save'\n      }\n    },\n    serializeBelongsTo: function (record, json, relationship) {\n      var embeddedRecord, key;\n      key = relationship.key;\n      embeddedRecord = record.belongsTo(key);\n\n      if (embeddedRecord && this.attrs[key] && this.attrs[key].embedded === \"save\") {\n        var data = embeddedRecord.attributes();\n        data.id = embeddedRecord.id;\n\n        if (relationship.options.deepEmbedded) {\n          relationship.options.deepEmbedded.forEach(function (deepKey) {\n            if (embeddedRecord.belongsTo(deepKey)) {\n              data[deepKey] = embeddedRecord.belongsTo(deepKey).serialize();\n            }\n          });\n        }\n\n        json[key] = data;\n      } else {\n        this._super(record, json, relationship);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/managable-job/model\", [\"exports\", \"ember-data\", \"ember-data/model\"], function (_exports, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend({\n    jobName: attr('string'),\n    jobDescription: attr('string')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/manual-notification/model\", [\"exports\", \"ember-data/model\", \"ember-data\"], function (_exports, _model, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend({\n    transport: belongsTo('transport', {\n      async: true\n    }),\n    notification: belongsTo('notification', {\n      async: true\n    }),\n    enabled: attr('boolean')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/max-pallet/modals/create/controller\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    store: service(),\n    intl: service(),\n    title: Ember.computed(function () {\n      return this.get('intl').t('max-pallet.title');\n    }),\n    longNameDay: Ember.computed('model.longNameDay', function () {\n      return this.get('model.longNameDay');\n    }),\n    maxPallet: Ember.computed('model.maxPallet', function () {\n      return this.get('model.maxPallet');\n    }),\n    isTemplate: Ember.computed('model.maxPallet.isTemplate', function () {\n      return this.get('model.maxPallet.isTemplate');\n    }),\n    actions: {\n      save() {\n        const self = this;\n        (0, _jquery.default)(\"#main-modal\").data(\"skip-cancel-action\", true);\n\n        if (!this.get('maxPallet').validate()) {\n          return;\n        }\n\n        if (this.get('isTemplate')) {\n          this.send('hideModal');\n          return;\n        }\n\n        this.get('maxPallet').save().then(() => {\n          self.send('hideModal');\n        });\n      },\n\n      cancel() {\n        console.debug(`Zamykamy okienko ustawiania maksymalnej liczby palet...`);\n\n        if (this.get('maxPallet.id')) {\n          this.get('maxPallet').rollback();\n        } else if (this.get('isTemplate')) {\n          const oldQuantity = this.get('maxPallet.oldQuantity');\n          this.set('maxPallet.quantity', oldQuantity);\n        } else {\n          this.get('maxPallet').setProperties({\n            isTemplate: false,\n            quantity: 0\n          });\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/max-pallet/modals/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"qEfWcZPr\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"showCancelButton\\\",\\\"cancel\\\"],[[27,\\\"concat\\\",[[23,[\\\"title\\\"]],\\\" \\\",[23,[\\\"longNameDay\\\"]]],null],true,[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal section\\\"],[11,\\\"data-field-name\\\",\\\"max-pallet-quantity-modal\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"auction-finish-time-input\\\"],[11,\\\"class\\\",\\\"col-sm-5 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"max-pallet.label\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-4 \\\",[27,\\\"if\\\",[[23,[\\\"maxPallet\\\",\\\"errors\\\",\\\"quantity\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"max-pallet-quantity\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"min\\\",\\\"class\\\",\\\"value\\\"],[\\\"number\\\",\\\"1\\\",\\\"0\\\",\\\"form-control\\\",[27,\\\"mut\\\",[[23,[\\\"maxPallet\\\",\\\"quantity\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"maxPallet\\\"]],\\\"quantity\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/max-pallet/modals/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/max-pallet/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend(_modelValidator.default, {\n    changeTracker: {\n      auto: true,\n      enableIsDirty: true\n    },\n    warehouse: _emberData.default.belongsTo('warehouse'),\n    ramp: _emberData.default.belongsTo('ramp', {\n      async: true\n    }),\n    quantity: _emberData.default.attr('number'),\n    day: _emberData.default.attr('date'),\n    validations: {\n      quantity: {\n        presence: {\n          message: 'blank'\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/mixins/jqui-widget\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  // Create a new mixin for jQuery UI widgets using the Ember\n  // mixin syntax.\n  // http://stackoverflow.com/a/11385155/2224598\n  var _default = Ember.Mixin.create({\n    // When Ember creates the view's DOM element, it will call this\n    // method.\n    setup: function () {\n      var _this = this;\n\n      Ember.run.scheduleOnce('afterRender', function () {\n        var ui = {};\n\n        var widgets = _this.get('uiWidgets');\n\n        for (var i = 0; i < widgets.length; i++) {\n          var widget = widgets[i]; // Make jQuery UI options available as Ember properties\n\n          var options = _this._gatherOptions(widget); // Make sure that jQuery UI events trigger methods on this view.\n\n\n          _this._gatherEvents(options, widget); // Create a new instance of the jQuery UI widget based on its `uiType`\n          // and the current element.\n\n\n          ui[widget] = Ember.$.ui[widget](options, _this.get('element'));\n        } // Save off the instance of the jQuery UI widget as the `ui` property\n        // on this Ember view.\n\n\n        _this.set('ui', ui);\n      });\n    }.on('didInsertElement'),\n    // When Ember tears down the view's DOM element, it will call\n    // this method.\n    tearDown: function () {\n      var ui = this.get('ui');\n\n      if (ui) {\n        // Tear down any observers that were created to make jQuery UI\n        // options available as Ember properties.\n        var observers = this._observers;\n\n        for (var prop in observers) {\n          if (observers.hasOwnProperty(prop)) {\n            this.removeObserver(prop, observers[prop]);\n          }\n        }\n\n        for (var u in ui) {\n          ui[u]._destroy();\n        }\n      }\n    }.on('willDestroyElement'),\n    // Each jQuery UI widget has a series of options that can be configured.\n    // For instance, to disable a button, you call\n    // `button.options('disabled', true)` in jQuery UI. To make this compatible\n    // with Ember bindings, any time the Ember property for a\n    // given jQuery UI option changes, we update the jQuery UI widget.\n    _gatherOptions: function (widget) {\n      var options = {};\n      var uiOptionsMap = this.get('uiOptions');\n      var uiOptions = uiOptionsMap[widget]; // The view can specify a list of jQuery UI options that should be treated\n      // as Ember properties.\n\n      uiOptions.forEach(function (key) {\n        options[key] = this.get(widget + \"-\" + key); // Set up an observer on the Ember property. When it changes,\n        // call jQuery UI's `option` method to reflect the property onto\n        // the jQuery UI widget.\n\n        var observer = function () {\n          var value = this.get(widget + \"-\" + key);\n          this.get('ui')[widget].option(key, value);\n        };\n\n        this.addObserver(widget + \"-\" + key, observer); // Insert the observer in a Hash so we can remove it later.\n\n        this._observers = this._observers || {};\n        this._observers[widget + \"-\" + key] = observer;\n      }, this);\n      return options;\n    },\n    // Each jQuery UI widget has a number of custom events that they can\n    // trigger. For instance, the progressbar widget triggers a `complete`\n    // event when the progress bar finishes. Make these events behave like\n    // normal Ember events. For instance, a subclass of JQ.ProgressBar\n    // could implement the `complete` method to be notified when the jQuery\n    // UI widget triggered the event.\n    _gatherEvents: function (options, widget) {\n      var self = this;\n      var uiEventsMap = this.get('uiEvents');\n      var uiEvents = uiEventsMap[widget];\n      uiEvents.forEach(function (eventName) {\n        var callback = self.uiActions && self.uiActions[widget + '-' + eventName]; // You can register a handler for a jQuery UI event by passing\n        // it in along with the creation options. Update the options hash\n        // to include any event callbacks.\n\n        var _widget = widget;\n\n        options[eventName] = function (event, ui) {\n          if (callback) {\n            callback.call(self, event, ui);\n          }\n\n          self.sendAction(_widget + '-' + eventName, event, ui);\n        };\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/mode-of-transportation/create/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    showCurrentStatus: Ember.computed('model.truck.status', function () {\n      return this.get('model.truck').get('status');\n    }),\n    actions: {\n      transitionTo(route, id = null) {\n        if (id !== null) {\n          this.transitionToRoute(route, id);\n        } else {\n          this.transitionToRoute(route);\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/mode-of-transportation/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_CAN_ADD_MOT'],\n\n    beforeModel(transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n\n    async model() {\n      const owner = this.get('sessionAccount.currentUser.company');\n      const truck = this.get('store').createRecord('truck', {\n        owner,\n        enabled: true,\n        isModeOfTransportation: true,\n        verificationCompleted: false\n      });\n      const mainSection = this.get('store').createRecord('vehicle-main-section', {\n        truck,\n        name: 'VEHICLE_MAIN_DATA_TYPE'\n      });\n      const truckTypesArray = await this.get('store').query('truckType', {});\n      return Ember.RSVP.hash({\n        truck,\n        mainSection,\n        truckTypesArray\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/mode-of-transportation/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"b7TadTa0\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[12,\\\"data-mot-id\\\",[23,[\\\"model\\\",\\\"truck\\\",\\\"id\\\"]]],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-bottom-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"no-vertical-margin\\\"],[9],[1,[23,[\\\"model\\\",\\\"truck\\\",\\\"registrationNumber\\\"]],false],[0,\\\" (\\\"],[1,[23,[\\\"model\\\",\\\"truck\\\",\\\"owner\\\",\\\"shortName\\\"]],false],[0,\\\")\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"truck\\\",\\\"status\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"columns.STATUS\\\"],null],false],[0,\\\":\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"status\\\"],[9],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"modeOfTransportation.status.\\\",[23,[\\\"showCurrentStatus\\\"]]],null]],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"truck\\\",\\\"verificationCompleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"modeOfTransportation.verificationInfo\\\"],[[\\\"date\\\",\\\"user\\\"],[[27,\\\"my-format-date\\\",[[23,[\\\"model\\\",\\\"truck\\\",\\\"verificationDate\\\"]],\\\"defaultDateTime\\\"],null],[23,[\\\"truck\\\",\\\"whoVerified\\\",\\\"name\\\"]]]]],false],[0,\\\" (\\\"],[1,[23,[\\\"model\\\",\\\"truck\\\",\\\"whoVerified\\\",\\\"username\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"expandable-panel\\\",null,[[\\\"objectId\\\",\\\"componentName\\\",\\\"title\\\",\\\"titleClass\\\",\\\"customIconClass\\\",\\\"defaultOpen\\\"],[[23,[\\\"model\\\",\\\"truck\\\",\\\"vehicleMainSection\\\",\\\"id\\\"]],[23,[\\\"model\\\",\\\"truck\\\",\\\"vehicleMainSection\\\",\\\"name\\\"]],[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"sectionType.\\\",[23,[\\\"model\\\",\\\"truck\\\",\\\"vehicleMainSection\\\",\\\"name\\\"]]],null]],null],\\\"bold\\\",\\\"fa fa-building\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[27,\\\"trucks/main-data-section\\\",null,[[\\\"truck\\\",\\\"section\\\",\\\"truckTypesArray\\\",\\\"transitionTo\\\"],[[23,[\\\"model\\\",\\\"truck\\\"]],[23,[\\\"model\\\",\\\"truck\\\",\\\"vehicleMainSection\\\"]],[23,[\\\"model\\\",\\\"truckTypesArray\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"transitionTo\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"truck\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"sections/document-section\\\",null,[[\\\"documentType\\\",\\\"modelObject\\\"],[[23,[\\\"model\\\",\\\"sensorCalibrationCertificateSection\\\"]],[23,[\\\"model\\\",\\\"truck\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"sections/document-section\\\",null,[[\\\"documentType\\\",\\\"modelObject\\\"],[[23,[\\\"model\\\",\\\"summerMappingSection\\\"]],[23,[\\\"model\\\",\\\"truck\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"sections/document-section\\\",null,[[\\\"documentType\\\",\\\"modelObject\\\"],[[23,[\\\"model\\\",\\\"winterMappingSection\\\"]],[23,[\\\"model\\\",\\\"truck\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/mode-of-transportation/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/mode-of-transportation/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_CAN_UPDATE_VEHICLE_MAIN_DATA_SECTION'],\n\n    beforeModel(transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n\n    model: function (params) {\n      const self = this;\n      const truck = self.get('store').findRecord('truck', params.id);\n      const truckTypesArray = this.get('store').query('truckType', {});\n      const sensorCalibrationCertificateSection = self.get('store').peekAll('document-type').filter(dt => {\n        return dt.get('name') === 'SENSOR_CALIBRATION_CERTIFICATE';\n      }).get('firstObject');\n      const winterMappingSection = self.get('store').peekAll('document-type').filter(dt => {\n        return dt.get('name') === 'WINTER_MAPPING';\n      }).get('firstObject');\n      const summerMappingSection = self.get('store').peekAll('document-type').filter(dt => {\n        return dt.get('name') === 'SUMMER_MAPPING';\n      }).get('firstObject');\n      return Ember.RSVP.hash({\n        truck,\n        mainSection: truck.get('vehicleMainSection'),\n        sensorCalibrationCertificateSection,\n        winterMappingSection,\n        summerMappingSection,\n        truckTypesArray\n      });\n    },\n    renderTemplate: function () {\n      this.render('mode-of-transportation.create');\n    },\n    setupController: function (controller, model) {\n      this.controllerFor('mode-of-transportation.create').setProperties({\n        model\n      });\n    },\n    actions: {\n      willTransition: function () {\n        this.get('controller').setProperties({\n          errors: []\n        });\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/mode-of-transportation/index/controller\", [\"exports\", \"apollo/pods/themes/table-theme\"], function (_exports, _tableTheme) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    themeInstance: Ember.computed('', function () {\n      return _tableTheme.default.create({\n        container: Ember.getOwner(this)\n      });\n    }),\n    columns: Ember.computed('', function () {\n      const self = this;\n      return [{\n        propertyName: 'registrationNumber',\n        title: self.get('intl').t('truck.registrationNumber'),\n        className: 'registration-number'\n      }, {\n        propertyName: 'carrierShortName',\n        title: self.get('intl').t('columns.CARRIER'),\n        className: 'company-short-name'\n      }, {\n        propertyName: 'brand',\n        title: self.get('intl').t('modeOfTransportation.brand'),\n        className: 'brand'\n      }, {\n        propertyName: 'subcontractor',\n        title: self.get('intl').t('modeOfTransportation.subcontractor'),\n        className: 'subcontractor'\n      }, {\n        propertyName: 'serialNumberOfRecorder',\n        title: self.get('intl').t('modeOfTransportation.serialNumberOfRecorder'),\n        className: 'serial-number-of-recorder'\n      }, {\n        propertyName: 'lastSensorCalibrationCertificateDate',\n        title: self.getColumnTranslation('CERTIFICATE', 'expirationDateLabel'),\n        className: 'last-sensor-calibration-certificate',\n        componentForFilterCell: 'server-table/filters/date-filter',\n        filterFunction: this.filterFunction\n      }, {\n        propertyName: 'lastSummerMappingDate',\n        title: self.getColumnTranslation('SUMMER_MAPPING', 'name'),\n        className: 'last-summer-mapping',\n        componentForFilterCell: 'server-table/filters/date-filter',\n        filterFunction: this.filterFunction\n      }, {\n        propertyName: 'lastWinterMappingDate',\n        title: self.getColumnTranslation('WINTER_MAPPING', 'name'),\n        className: 'last-winter-mapping',\n        componentForFilterCell: 'server-table/filters/date-filter',\n        filterFunction: this.filterFunction\n      }, {\n        propertyName: 'status',\n        title: self.get('intl').t('columns.STATUS'),\n        className: 'status',\n        filterWithSelect: true,\n        predefinedFilterOptions: ['AWAITING_VERIFICATION', 'ACCEPTED', 'UPDATED', 'REJECTED', 'BLOCKED', 'DISABLED'].map(status => {\n          return {\n            value: status,\n            label: this.get('intl').t(`modeOfTransportation.status.${status}`)\n          };\n        })\n      }];\n    }),\n    filterFunction: function (cell, needed) {\n      if (!needed) {\n        return true;\n      }\n\n      if (cell === 'null') {\n        return false;\n      }\n\n      const currentDate = moment(cell).format('DD.MM.YYYY');\n      return needed === currentDate;\n    },\n\n    getColumnTranslation(translationKey, key) {\n      const fullKey = 'documentType.'.concat(translationKey, '.', key);\n      return this.get('intl').t(fullKey);\n    },\n\n    trucks: Ember.computed('model.trucks', function () {\n      return this.get('model.trucks');\n    }),\n    showEnabled: Ember.computed('', function () {\n      return true;\n    }),\n    actions: {\n      toggleShowEnabled() {\n        const self = this;\n        self.store.query('truck', {\n          companyId: self.get('sessionAccount.currentUser.company.id'),\n          isModeOfTransportation: true,\n          enabled: self.toggleProperty('showEnabled'),\n          principalCompanyId: localStorage.getItem('principalId'),\n          max: 10,\n          page: 1\n        }).then(trucks => {\n          self.set('trucks', trucks);\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/mode-of-transportation/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"apollo/mixins/menu-mixin\"], function (_exports, _authenticatedRouteMixin, _menuMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _menuMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    cookies: Ember.inject.service(),\n    access: ['ROLE_MODE_OF_TRANSPORTATION_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      const self = this;\n      const trucks = self.store.query('truck', {\n        companyId: self.get('sessionAccount.currentUser.company.id'),\n        isModeOfTransportation: true,\n        enabled: true,\n        principalCompanyId: localStorage.getItem('principalId')\n      });\n      return Ember.RSVP.hash({\n        trucks: trucks\n      });\n    },\n\n    activate() {\n      this.activateCurrentTab('MODE_OF_TRANSPORTATION_TAB');\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/mode-of-transportation/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ckHHcT2i\",\n    \"block\": \"{\\\"symbols\\\":[\\\"mt\\\",\\\"footer\\\",\\\"table\\\",\\\"body\\\",\\\"record\\\",\\\"index\\\",\\\"header\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container-fluid mode-of-transportation\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"h1 margin-bottom-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left form-inline\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"modeOfTransportation.label\\\"],[[\\\"count\\\"],[\\\"2\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"toggle-show-mot-button\\\"],[11,\\\"class\\\",\\\"btn btn-default margin-left-big\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"modeOfTransportation.showEnabled.\\\",[23,[\\\"showEnabled\\\"]]],null]],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"toggleShowEnabled\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CAN_ADD_MOT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"data-button-name\\\",\\\"create-new-mot\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"mode-of-transportation.create\\\"],[[\\\"class\\\"],[\\\"btn btn-default margin-left\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"modeOfTransportation.create\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"server-table\\\",null,[[\\\"data\\\",\\\"columns\\\",\\\"themeInstance\\\"],[[23,[\\\"trucks\\\"]],[23,[\\\"columns\\\"]],[23,[\\\"themeInstance\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big margin-bottom\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[22,1,[\\\"global-filter\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"borderless-wrapper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,1,[\\\"table\\\"]],\\\"expected `mt.table` to be a contextual component but found a string. Did you mean `(component mt.table)`? ('apollo/pods/mode-of-transportation/index/template.hbs' @ L36:C15) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,3,[\\\"header\\\"]],\\\"expected `table.header` to be a contextual component but found a string. Did you mean `(component table.header)`? ('apollo/pods/mode-of-transportation/index/template.hbs' @ L37:C19) \\\"],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,7,[\\\"row-sorting\\\"]],false],[0,\\\"\\\\n                    \\\"],[1,[22,7,[\\\"row-filtering\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,3,[\\\"body\\\"]],\\\"expected `table.body` to be a contextual component but found a string. Did you mean `(component table.body)`? ('apollo/pods/mode-of-transportation/index/template.hbs' @ L41:C19) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,4,[\\\"visibleContent\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"mode-of-transportations/table/row\\\",null,[[\\\"truck\\\"],[[22,5,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5,6]},null]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[3]},null],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,1,[\\\"footer\\\"]],\\\"expected `mt.footer` to be a contextual component but found a string. Did you mean `(component mt.footer)`? ('apollo/pods/mode-of-transportation/index/template.hbs' @ L47:C15) \\\"],null]],[[\\\"useNumericPagination\\\"],[true]],{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-1\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,2,[\\\"size-select\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[22,2,[\\\"pagination-numeric\\\"]],false],[0,\\\"\\\\n                \\\"],[1,[22,2,[\\\"pagination-simple\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/mode-of-transportation/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/no-accessible-transport-types/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({});\n\n  _exports.default = _default;\n});","define(\"apollo/pods/no-accessible-transport-types/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"fmJ4YViL\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"centered-section\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"noAccessibleTransportTypes\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/no-accessible-transport-types/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/note/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend({\n    transport: _emberData.default.belongsTo('transport', {\n      async: true,\n      embedded: 'save'\n    }),\n    creator: _emberData.default.belongsTo('user', {\n      async: true\n    }),\n    readOffBy: _emberData.default.hasMany('user', {\n      async: true\n    }),\n    note: _emberData.default.attr('string'),\n    date: _emberData.default.attr('date'),\n    dateCreated: _emberData.default.attr('date'),\n    autoGenerated: _emberData.default.attr('boolean'),\n\n    hasBeenReadBy(account) {\n      const userId = account.get('currentUser.id');\n      return this.get('readOffBy').filter(u => {\n        return u.id === userId;\n      }).length > 0;\n    },\n\n    noteParts: Ember.computed('note', function () {\n      if (!this.get('note')) {\n        return null;\n      }\n\n      return this.get('note').split('\\n');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/notification-log/model\", [\"exports\", \"ember-data/model\", \"ember-data\"], function (_exports, _model, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _model.default.extend({\n    intl: Ember.inject.service(),\n    transport: _emberData.default.belongsTo('transport', {\n      async: true\n    }),\n    subject: _emberData.default.attr('string'),\n    message: _emberData.default.attr('string'),\n    recipients: _emberData.default.attr('string'),\n    dateCreated: _emberData.default.attr('date'),\n    newValue: _emberData.default.attr('string'),\n    propertyName: _emberData.default.attr('string'),\n    className: _emberData.default.attr('string'),\n    actor: _emberData.default.attr('string'),\n    newValueFormat: Ember.computed('newValue', function () {\n      return this.get('newValue');\n    }),\n    eventLabel: Ember.computed('propertyName', function () {\n      return this.get('intl').t(`logs.${this.get('propertyName')}`);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/notification/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend(_modelValidator.default, {\n    intl: Ember.inject.service(),\n    smsNotifications: Object.freeze(['ADVICE_CREATED_SMS', 'ADVICE_UPDATED_SMS', 'CHECKPOINT_CONFIRMED_SMS', 'EMAIL_ADVICE_TRANSPORT_DELETED_SMS', 'CHECKPOINT_CONFIRMED_SMS_ASSOCIATED_WITH_USER', 'CHECKPOINT_CONFIRMED_BY_SMS']),\n    task: _emberData.default.belongsTo('task', {\n      async: true\n    }),\n    transportType: _emberData.default.belongsTo('transportType', {\n      async: true\n    }),\n    principalCompany: _emberData.default.belongsTo('company', {\n      async: true\n    }),\n    name: _emberData.default.attr('string'),\n    type: _emberData.default.attr('string'),\n    alias: _emberData.default.attr('string'),\n    active: _emberData.default.attr('boolean'),\n    messagePl: _emberData.default.attr('string'),\n    messageEn: _emberData.default.attr('string'),\n    appendTransportFiles: _emberData.default.attr('boolean'),\n    manualNotification: _emberData.default.attr('boolean'),\n    validations: {\n      name: {\n        presence: {\n          message: 'blank'\n        }\n      }\n    },\n    getNotificationType: function (notificationName) {\n      return this.get('smsNotifications').includes(notificationName) ? 'SMS' : 'EMAIL';\n    },\n    getNotificationName: Ember.computed('model', function () {\n      if (this.get('alias')) {\n        return this.get('alias');\n      }\n\n      return this.get('name');\n    }),\n    transportTypeName: Ember.computed('model', function () {\n      if (this.get('task.workflow.transportType.label')) {\n        return this.get('task.workflow.transportType.label');\n      }\n\n      return this.get('transportType.label');\n    }),\n    label: Ember.computed('getNotificationName', 'task.checkpointNameInAppropriateLanguage', 'transportTypeName', function () {\n      return this.get('intl').t(`notification.${this.get('getNotificationName')}.label`, {\n        checkpointName: this.get('task.checkpointNameInAppropriateLanguage'),\n        transportTypeName: this.get('transportTypeName')\n      });\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/notifications/create/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    notificationsIndexController: Ember.inject.controller('notifications/index'),\n    commonMessageInputType: ['TRANSPORT_ID', 'CAR_REG_NUM', 'TRAILER_REG_NUM', 'COMPANY_SHORT_NAME', 'RAMP_NUMBER', 'SQUARE_NAME', 'QUEUE_NAME', 'PLACE_NAME', 'LOCATION', 'GATE', 'TIME_WINDOW_DATES', 'RAMP_MESSAGE_PL', 'RAMP_MESSAGE_EN', 'ADDRESS_CITY'],\n    adviceUpdatedMessageInputType: ['OLD_REGISTRATION_NUMBER', 'OLD_ADVICE_DATE', 'NEW_ADVICE_DATE'],\n    messageInputType: Ember.computed.union('commonMessageInputType', 'adviceUpdatedMessageInputType'),\n    notification: Ember.computed('model.notification', function () {\n      return this.get('model.notification');\n    }),\n    notificationTypes: Ember.computed(function () {\n      return this.get('sessionAccount.notificationTypes');\n    }),\n    transportTypes: Ember.computed(function () {\n      return this.get('store').peekAll('transportType').sortBy('idx');\n    }),\n    sortTaskProperties: ['taskGroupIdentifier:asc', 'idxInGroup:asc'],\n    sortedTasks: Ember.computed.sort('tasks', 'sortTaskProperties'),\n    tasks: Ember.computed('notification.transportType', function () {\n      const transportTypeId = this.get('notification.transportType.id');\n      return this.get('store').peekAll('task').filter(t => t.get('workflow.transportType.id') === transportTypeId);\n    }),\n    actions: {\n      setNotification(notificationName) {\n        const notificationType = this.get('notification').getNotificationType(notificationName);\n        this.get('model.notification').set('name', notificationName);\n        this.get('model.notification').set('type', notificationType);\n      },\n\n      save() {\n        this.set('errors', []);\n        const notification = this.get('notification');\n\n        if (!notification.validate()) {\n          return;\n        }\n\n        notification.save().then(() => {\n          this.get('notificationsIndexController').set('successMessage', this.get('intl').t('common.saveSuccessMessage'));\n          this.transitionToRoute('notifications.index');\n        }).catch(response => {\n          this.set('errors', response.errors);\n        });\n      },\n\n      delete() {\n        this.get('notification').destroyRecord().then(() => {\n          this.get('notificationsIndexController').set('successMessage', this.get('intl').t('common.saveSuccessMessage'));\n          this.transitionToRoute('notifications.index');\n        }).catch(response => {\n          this.set('errors', response.errors);\n        });\n      },\n\n      cancel() {\n        this.transitionToRoute('notifications.index');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/notifications/create/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    access: ['ROLE_MANAGE_NOTIFICATIONS'],\n    sessionAccount: Ember.inject.service('session-account'),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      const principalCompanyId = localStorage.getItem('principalId');\n      const principalCompany = this.store.peekRecord('company', principalCompanyId);\n      const notification = this.store.createRecord('notification', {\n        active: true,\n        principalCompany: principalCompany\n      });\n      return Ember.RSVP.hash({\n        notification: notification\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/notifications/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"5W6qxIjP\",\n    \"block\": \"{\\\"symbols\\\":[\\\"inputType\\\",\\\"inputType\\\",\\\"task\\\",\\\"tt\\\",\\\"nn\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-narrow\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"notifications.new\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"notifications.singularLabel\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-8 form-control-static \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"notification\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"notification\\\",\\\"name\\\"]],[23,[\\\"notificationTypes\\\"]],true,[27,\\\"action\\\",[[22,0,[]],\\\"setNotification\\\"],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"notification.\\\",[22,5,[]],\\\".labelShort\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"notification\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"notifications.transportType\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-8 form-control-static \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"notification\\\",\\\"errors\\\",\\\"transportType\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"allowClear\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"notification\\\",\\\"transportType\\\"]],[23,[\\\"transportTypes\\\"]],true,true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"notification\\\",\\\"transportType\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,4,[\\\"label\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"notification\\\"]],\\\"transportType\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[27,\\\"or\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"notification\\\",\\\"name\\\"]],\\\"ADVICE_CREATED_SMS\\\"],null],[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"notification\\\",\\\"name\\\"]],\\\"ADVICE_UPDATED_SMS\\\"],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"notifications.task\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-8 form-control-static \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"notification\\\",\\\"errors\\\",\\\"task\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"allowClear\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"notification\\\",\\\"task\\\"]],[23,[\\\"sortedTasks\\\"]],true,true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"notification\\\",\\\"task\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,3,[\\\"checkpointNameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"notification\\\"]],\\\"task\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"notification\\\",\\\"type\\\"]],\\\"EMAIL\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"notifications.appendTransportFiles\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-8 form-control-static\\\\n                        \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"notification\\\",\\\"errors\\\",\\\"appendTransportFiles\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"class\\\"],[\\\"checkbox\\\",[23,[\\\"notification\\\",\\\"appendTransportFiles\\\"]],\\\"form-check\\\"]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"notification\\\"]],\\\"appendTransportFiles\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"notifications.manualNotification\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-8 form-control-static\\\\n                        \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"notification\\\",\\\"errors\\\",\\\"appendTransportFiles\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"class\\\"],[\\\"checkbox\\\",[23,[\\\"notification\\\",\\\"manualNotification\\\"]],\\\"form-check\\\"]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"manualNotification\\\"]],\\\"manualNotification\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"notification\\\",\\\"type\\\"]],\\\"SMS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"notifications.messagePl\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8 form-control-static\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"rows\\\",\\\"value\\\"],[\\\"textarea\\\",\\\"form-control vertical-resizable-only\\\",\\\"3\\\",[23,[\\\"notification\\\",\\\"messagePl\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"notifications.messageEn\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8 form-control-static\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"rows\\\",\\\"value\\\"],[\\\"textarea\\\",\\\"form-control vertical-resizable-only\\\",\\\"3\\\",[23,[\\\"notification\\\",\\\"messageEn\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.legend\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"notifications.legendDescription\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\"],[9],[7,\\\"b\\\"],[9],[1,[27,\\\"t\\\",[\\\"notifications.legendCommon\\\"],null],false],[0,\\\":\\\"],[10],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"ul\\\"],[11,\\\"style\\\",\\\"list-style-type: none\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"commonMessageInputType\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,2,[]],false],[0,\\\"\\\\n                                \\\"],[7,\\\"p\\\"],[11,\\\"style\\\",\\\"font-weight: normal; display: inline\\\"],[9],[0,\\\"\\\\n                                    - \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"notifications.messageInputType.\\\",[22,2,[]]],null]],null],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"notification\\\",\\\"name\\\"]],\\\"ADVICE_UPDATED_SMS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"p\\\"],[9],[7,\\\"b\\\"],[9],[1,[27,\\\"t\\\",[\\\"notifications.legendAdviceUpdated\\\"],null],false],[0,\\\":\\\"],[10],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"ul\\\"],[11,\\\"style\\\",\\\"list-style-type: none\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"adviceUpdatedMessageInputType\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n                                    \\\"],[7,\\\"p\\\"],[11,\\\"style\\\",\\\"font-weight: normal; display: inline\\\"],[9],[0,\\\"\\\\n                                        - \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"notifications.messageInputType.\\\",[22,1,[]]],null]],null],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 form-buttons\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"notification\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"notifications.sureToDelete\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\"],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/notifications/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/notifications/edit/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    access: ['ROLE_MANAGE_NOTIFICATIONS'],\n    sessionAccount: Ember.inject.service('session-account'),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      return Ember.RSVP.hash({\n        notification: this.store.findRecord('notification', params.id)\n      });\n    },\n    renderTemplate: function () {\n      this.render('notifications.create');\n    },\n    setupController: function (controller, model) {\n      this.controllerFor('notifications.create').setProperties({\n        model: model\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/notifications/index/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  // kontroler potrzebny żeby wstrzyknąć go do `notifications/create` i ustawić komunikat o sukcesie zapisu\n  var _default = Ember.Controller.extend({});\n\n  _exports.default = _default;\n});","define(\"apollo/pods/notifications/index/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    access: ['ROLE_MANAGE_NOTIFICATIONS'],\n    sessionAccount: Ember.inject.service('session-account'),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      return Ember.RSVP.hash({\n        notifications: this.store.peekAll('notification').sortBy('transportType.idx')\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/notifications/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"go4Bov8b\",\n    \"block\": \"{\\\"symbols\\\":[\\\"n\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"notifications.availableNotifications\\\"],null],false],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"notifications.create\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"notifications.add\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-responsive padding-top\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-responsive table-hover table-condensed\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"notifications.mailNotification\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"notifications.transportType\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"notifications.task\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"notifications.edit\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"notifications\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"notification.\\\",[22,1,[\\\"name\\\"]],\\\".labelShort\\\"],null]],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"if\\\",[[22,1,[\\\"transportType\\\",\\\"id\\\"]],[22,1,[\\\"transportType\\\",\\\"label\\\"]],[22,1,[\\\"task\\\",\\\"workflow\\\",\\\"transportType\\\",\\\"label\\\"]]],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,1,[\\\"task\\\",\\\"checkpointNameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"notifications.edit\\\",[22,1,[\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/notifications/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/offer/adapter\", [\"exports\", \"apollo/adapters/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _application.default.extend({\n    urlForUpdateRecord(id, modelName, snapshot) {\n      if (!snapshot.record.enabled && snapshot.record.deleted) {\n        return `${this.urlPrefix()}/offers/revoke-offer/${id}`;\n      }\n\n      return this._super(...arguments);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/offer/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n  const OFFER_TRANSIT_TIME_TYPE = Object.freeze({\n    DAYS: 'DAYS',\n    HOURS: 'HOURS'\n  });\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    auction: belongsTo('auction'),\n    company: belongsTo('company'),\n    creator: belongsTo('user'),\n    operator: belongsTo('operator'),\n    loadingPort: belongsTo('port'),\n    unloadingPort: belongsTo('port'),\n    price: attr('number'),\n    enabled: attr('boolean'),\n    valid: attr('boolean'),\n    hasWon: attr('boolean'),\n    deleted: attr('boolean'),\n    place: attr('number'),\n    description: attr('string'),\n    transitTime: attr('number'),\n    transitTimeType: attr('string'),\n    isPreferred: attr('boolean'),\n    dateCreated: attr('date'),\n    descriptionTrimValue: 23,\n    validations: {\n      unloadingPort: {\n        custom: [{\n          validation: function (key, value, model) {\n            const auctionSetting = model.get('auctionSetting');\n\n            if (!auctionSetting || !auctionSetting.get('requirePorts')) {\n              return true;\n            }\n\n            return value.get('id');\n          },\n          message: 'blank'\n        }]\n      },\n      loadingPort: {\n        custom: [{\n          validation: function (key, value, model) {\n            const auctionSetting = model.get('auctionSetting');\n\n            if (!auctionSetting || !auctionSetting.get('requirePorts')) {\n              return true;\n            }\n\n            return value.get('id');\n          },\n          message: 'blank'\n        }]\n      },\n      operator: {\n        custom: [{\n          validation: function (key, value, model) {\n            const auctionSetting = model.get('auctionSetting');\n\n            if (!auctionSetting || !auctionSetting.get('requireOperator')) {\n              return true;\n            }\n\n            return value.get('id');\n          },\n          message: 'blank'\n        }]\n      },\n      price: {\n        custom: [{\n          validation: function (key, value) {\n            return value && parseFloat(value) >= 1;\n          },\n          message: 'nonPositiveNumber'\n        }, {\n          validation: function (key, value, model) {\n            if (model.get('isAcceptedWithMinPrice')) {\n              return true;\n            }\n\n            if (!value || value < 1) {\n              return true;\n            }\n\n            const auctionSetting = model.get('auctionSetting');\n\n            if (!auctionSetting || !auctionSetting.get('requireMinOfferReductionSizeValidation')) {\n              return true;\n            }\n\n            const suggestedPrice = model.get('auction.suggestedPriceForLoggedCompany');\n\n            if (!suggestedPrice) {\n              return true;\n            }\n\n            return parseFloat(value) <= suggestedPrice;\n          },\n          message: function (key, value, self) {\n            const principalCompanyName = self.get('auction.transport.principalCompany.shortName');\n            const minReductionSize = self.get('auction.minReductionSize');\n            return self.get('intl').t('offer.errors.price.reductionNotMet', {\n              principalCompanyName,\n              minReductionSize,\n              currencySymbol: self.get('currency.symbol')\n            }).toString();\n          }\n        }, {\n          validation: function (key, value, model) {\n            const auctionSetting = model.get('auctionSetting');\n\n            if (!auctionSetting) {\n              return true;\n            }\n\n            if (!auctionSetting.get('canAcceptWithMinPrice')) {\n              return model.get('auction.minPrice') <= parseFloat(value);\n            }\n\n            return true;\n          },\n          message: 'lowerThanMinimum'\n        }]\n      },\n      transitTime: {\n        custom: [{\n          validation: function (key, value, model) {\n            const auctionSetting = model.get('auctionSetting');\n\n            if (model.get('transitTimeType') && !value) {\n              return false;\n            }\n\n            if (auctionSetting.get('requireTransitTime')) {\n              return !!value;\n            }\n\n            return true;\n          },\n          message: 'blank'\n        }]\n      },\n      transitTimeType: {\n        custom: [{\n          validation: function (key, value, model) {\n            const auctionSetting = model.get('auctionSetting');\n\n            if (model.get('transitTime') && !value) {\n              return false;\n            }\n\n            if (auctionSetting.get('requireTransitTime')) {\n              return !!value;\n            }\n\n            return true;\n          },\n          message: 'blankSelect'\n        }]\n      },\n      description: {\n        custom: [{\n          validation: function (key, value, model) {\n            const auctionSetting = model.get('auctionSetting');\n\n            if (auctionSetting.get('requireDescriptionSection')) {\n              return !!value;\n            }\n\n            return true;\n          },\n          message: 'blank'\n        }]\n      }\n    },\n    auctionSetting: Ember.computed('auction.transport.transportType.id', function () {\n      return this.get('sessionAccount').getAuctionSetting(this.get('auction.transport.transportType.id'));\n    }),\n    currency: Ember.computed('auction.currency', function () {\n      return this.get('auction.currency');\n    }),\n    formattedPrice: Ember.computed('price', 'currency.symbol', function () {\n      if (!this.get('price')) {\n        return '';\n      }\n\n      return `${this.get('price')} ${this.get('currency.symbol')}`;\n    }),\n    transitTimeTypes: Ember.computed(function () {\n      return Object.values(OFFER_TRANSIT_TIME_TYPE);\n    }),\n    displayPassToCarrierButton: Ember.computed('auction.transport.auctions.@each.offers.length', function () {\n      const self = this;\n\n      if (!this.get('enabled')) {\n        return false;\n      }\n\n      const transport = this.get('store').peekRecord('transport', this.get('auction').get('transport.id'));\n      let showButton = true;\n      const sortedAuctions = transport.get('auctions').sortBy('dateCreated').reverse();\n\n      for (let i = 0; i < sortedAuctions.length; i++) {\n        if (sortedAuctions[i].get('id') === self.get('auction.id')) {\n          break;\n        }\n\n        const offers = sortedAuctions[i].get('offers').sortBy('company');\n\n        for (let j = 0; j < offers.length; j++) {\n          if (offers[j].get('company.id') === self.get('company.id') && offers[j].get('id') !== self.get('id')) {\n            showButton = false;\n            break;\n          }\n        }\n      }\n\n      return showButton;\n    }),\n    isAcceptedWithMinPrice: Ember.computed('', {\n      get(key) {\n        return this.get('model.isAcceptedWithMinPrice') ? this.get('model.isAcceptedWithMinPrice') : false;\n      },\n\n      set(key, value) {\n        return value;\n      }\n\n    }),\n    setSoftDeleted: function () {\n      this.set('enabled', false);\n      this.set('deleted', true);\n      this.set('invalid', true);\n      return this;\n    },\n    unsetSoftDeleted: function () {\n      this.set('enabled', true);\n      this.set('deleted', false);\n      this.set('invalid', false);\n      return this;\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/offer/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend({\n    // TODO :: refactor ?\n    serializeIntoHash: function (data, type, snapshot, options) {\n      const object = this.serialize(snapshot, options);\n\n      for (const key in object) {\n        data[key] = object[key];\n      }\n\n      data.id = snapshot.record.id;\n      data.isAcceptedWithMinPrice = snapshot.record.get('isAcceptedWithMinPrice');\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/offers/modals/offer-form/controller\", [\"exports\", \"jquery\", \"apollo/config/environment\"], function (_exports, _jquery, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    operatorService: Ember.inject.service('operator-service'),\n    portService: Ember.inject.service('port-service'),\n    isSeaAuction: Ember.computed.reads('auction.transport.transportType.seaTransports'),\n    operatorLabel: Ember.computed('isSeaAuction', function () {\n      return this.operatorService.getTranslation(this.isSeaAuction);\n    }),\n    showPortsSelects: Ember.computed('auctionSetting.showPorts', function () {\n      return this.get('auctionSetting.showPorts');\n    }),\n    showOperatorSelect: Ember.computed('auctionSetting.showOperator', function () {\n      return this.get('auctionSetting.showOperator');\n    }),\n    ports: Ember.computed('isSeaAuction', function () {\n      if (this.get('isSeaAuction')) {\n        return this.portService.getSeaPorts().then(ports => ports.sortBy('country'));\n      }\n\n      return this.portService.getAirPorts().then(ports => ports.sortBy('country'));\n    }),\n    operators: Ember.computed('isSeaAuction', function () {\n      if (this.get('isSeaAuction')) {\n        return this.operatorService.getSeaOperators().then(ports => ports.sortBy('shortName'));\n      }\n\n      return this.operatorService.getAirOperators().then(ports => ports.sortBy('shortName'));\n    }),\n    offer: Ember.computed('model.offer', function () {\n      return this.get('model.offer');\n    }),\n    auction: Ember.computed('offer.auction', function () {\n      return this.get('offer.auction');\n    }),\n    transport: Ember.computed('auction.transport', function () {\n      return this.get('auction.transport');\n    }),\n    title: Ember.computed('transport.{identifier,formattedCities}', function () {\n      return `${this.get('transport.identifier')}: ${this.get('transport.formattedCities')}`;\n    }),\n    customFields: Ember.computed('model.customFields', function () {\n      return this.get('model.customFields');\n    }),\n    buyNowConfirmationMsg: Ember.computed('transport.identifier', 'offer.price', 'auction.currency.symbol', function () {\n      return this.get('intl').t('auction.buyNowConfirmation', {\n        transportIdentifier: this.get('transport.identifier'),\n        minPrice: this.get('offer.price'),\n        currencySymbol: this.get('auction.currency.symbol')\n      });\n    }),\n    auctionSetting: Ember.computed('transport.transportType.id', function () {\n      return this.get('sessionAccount').getAuctionSetting(this.get('transport.transportType.id'));\n    }),\n    showTransitTime: Ember.computed('auctionSetting', function () {\n      if (!this.get('auctionSetting')) {\n        return false;\n      }\n\n      return this.get('auctionSetting.showTransitTime');\n    }),\n    canAcceptWithMinPrice: Ember.computed('auction.minPrice', 'auctionSetting', function () {\n      const auctionSetting = this.get('auctionSetting');\n\n      if (!auctionSetting) {\n        return true;\n      }\n\n      return this.get('auction.minPrice') && auctionSetting.get('canAcceptWithMinPrice');\n    }),\n    showQuantityFieldInOfferForm: Ember.computed('transport', 'transport.activeAuction', 'auctionSetting', function () {\n      const auctionSetting = this.get('auctionSetting');\n\n      if (!auctionSetting) {\n        return false;\n      }\n\n      return this.get('transport.activeAuction') && auctionSetting.get('showQuantityFieldInOfferForm');\n    }),\n    showStepDataInOfferForm: Ember.computed('auctionSetting', function () {\n      const auctionSetting = this.get('auctionSetting');\n\n      if (!auctionSetting) {\n        return true;\n      }\n\n      return auctionSetting.get('showStepDataInOfferForm');\n    }),\n    auctionRejectConfirmationText: Ember.computed('auctionSetting', function () {\n      const auctionSetting = this.get('auctionSetting');\n\n      if (!auctionSetting) {\n        return this.get('intl').t('auction.AUCTION.reject.alert');\n      }\n\n      const key = auctionSetting.get('translationKey');\n      return this.get('intl').t(`auction.${key}.reject.alert`);\n    }),\n    showDescriptionSection: Ember.computed('auctionSetting', function () {\n      const auctionSetting = this.get('auctionSetting');\n\n      if (!auctionSetting) {\n        return true;\n      }\n\n      return auctionSetting.get('showDescriptionSection');\n    }),\n    dateToPerformAction: '',\n    actionPlanned: false,\n    loadingPortLabel: Ember.computed('isSeaAuction', function () {\n      return this.portService.getTranslation(this.isSeaAuction, 'loading');\n    }),\n    unloadingPortLabel: Ember.computed('isSeaAuction', function () {\n      return this.portService.getTranslation(this.isSeaAuction, 'unloading');\n    }),\n    executeAt: function (timeString, func) {\n      const time = moment(timeString).toDate();\n      const currentTime = new Date().getTime();\n      setTimeout(func, time - currentTime);\n      return true;\n    },\n    actions: {\n      performSaveAt(date) {\n        this.executeAt(date, () => {\n          $(\"[data-button-name='save-offer']\").click();\n          this.set('actionPlanned', false);\n        });\n        this.set('actionPlanned', true);\n      },\n\n      buyNow() {\n        const auction = this.get('auction');\n        const currentPrice = this.get('offer.price');\n        this.get('offer').setProperties({\n          oldPrice: currentPrice,\n          price: auction.get('minPrice'),\n          isAcceptedWithMinPrice: true\n        });\n        this.send('save');\n      },\n\n      save() {\n        console.debug(`Saving offer for auction ${this.get('auction.id')} of transport ${this.get('transport.id')}..`);\n\n        if (this.get('canAcceptWithMinPrice') && this.get('offer.price') <= this.get('auction.minPrice') && !confirm(this.get('buyNowConfirmationMsg'))) {\n          this.get('offer').setProperties({\n            price: this.get('offer.oldPrice'),\n            isAcceptedWithMinPrice: false\n          });\n          return;\n        }\n\n        const self = this;\n        this.set('savingInProgress', true);\n\n        if (!this.get('offer').validate()) {\n          console.debug('Offer did not pass validation.');\n          self.set('savingInProgress', false);\n          return;\n        }\n\n        this.get('offer').save().then(savedOffer => {\n          if (savedOffer.get('valid')) {\n            console.debug(`Offer successfully saved with id ${savedOffer.get('id')}!`);\n            self.set('transport.transportType.forcedPollRequestTime', new Date().getTime());\n            self.setProperties({\n              savingInProgress: false,\n              errors: []\n            });\n            self.send('hideModal');\n          } else {\n            const errorMessage = self.get('intl').t('offer.errors.price.higherThanMaximum'); // Po zapisaniu oferty z ceną wyższą niż cena maks. aukcji, musimy przygotować nowy model\n            // - by można było poprawić ofertę.\n\n            const offerModel = this.get('store').createRecord('offer', {\n              auction: savedOffer.get('auction'),\n              price: savedOffer.get('price')\n            });\n            const model = {\n              offer: offerModel,\n              customFields: self.get('customFields')\n            };\n            self.setProperties({\n              model,\n              savingInProgress: false,\n              errors: [errorMessage]\n            });\n          }\n        }).catch(response => {\n          const status = response.errors ? response.errors[0].status : undefined;\n          let errors = response.errors;\n\n          if (status === '401' || status === '403') {\n            const errorMsg = self.get('intl').t('offer.errors.auction.hasEnded');\n            alert(errorMsg);\n            errors = [];\n            self.set('transport.transportType.forcedPollRequestTime', new Date().getTime());\n            self.send('hideModal');\n          }\n\n          self.setProperties({\n            savingInProgress: false,\n            errors\n          });\n        });\n      },\n\n      reject() {\n        const self = this;\n        const token = this.get('sessionAccount').get('token');\n        const auctionSetting = this.get('auctionSetting');\n        let translationKey = 'AUCTION';\n\n        if (auctionSetting) {\n          translationKey = auctionSetting.get('translationKey');\n        } // TODO :: apollo-api-service\n\n\n        _jquery.default.ajax({\n          url: _environment.default.serverURL + '/auctions/' + this.get('auction.id') + '/reject',\n          type: 'PUT',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(respond => {\n          if (!respond.error) {\n            self.send('hideModal');\n            alert(self.get('intl').t(`auction.${translationKey}.reject.success`));\n          } else {\n            alert(self.get('intl').t(`auction.${translationKey}.reject.fail.` + respond.error));\n          }\n        });\n      },\n\n      cancel() {\n        console.debug('Zamykamy okienko ofertacji...');\n\n        if (!this.get('offer.id')) {\n          this.get('auction.offers').removeObject(this.get('offer'));\n          this.get('offer').unloadRecord();\n        }\n\n        this.set('errors', []);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/offers/modals/offer-form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"3s4ukXJB\",\n    \"block\": \"{\\\"symbols\\\":[\\\"unloadingPort\\\",\\\"loadingPort\\\",\\\"operator\\\",\\\"transitTimeType\\\",\\\"cf\\\",\\\"step\\\",\\\"error\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"subtitle\\\",\\\"cancel\\\"],[[23,[\\\"title\\\"]],[23,[\\\"subtitle\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section text-right margin-bottom\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"auction\\\",\\\"inProgress\\\",[23,[\\\"auction\\\",\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\" \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"auction\\\",\\\"plannedFinishTime\\\"]],\\\"fullTime\\\"],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"currentOfferForLoggedCompany\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-top-small\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"auction.currentOffer\\\"],null],false],[0,\\\":\\\\n\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"auction\\\",\\\"currentOfferForLoggedCompany\\\",\\\"formattedPrice\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal section\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,7,[]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"sortedSteps\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showStepDataInOfferForm\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-4 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"step.\\\",[22,6,[\\\"stepTypeName\\\"]],\\\".place\\\"],null]],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-8 form-control-static\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,6,[\\\"postal\\\"]],false],[0,\\\", \\\"],[1,[22,6,[\\\"city\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-4 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"step.\\\",[22,6,[\\\"stepTypeName\\\"]],\\\".term\\\"],null]],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-8 form-control-static\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,6,[\\\"formattedTerm\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,6,[\\\"showWeightFieldInOfferForm\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-4 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transport.weight\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-8 form-control-static no-wrap\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,6,[\\\"weight\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,6,[\\\"weight\\\"]],false],[0,\\\" kg\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"common.notSpecified\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[27,\\\"or\\\",[[22,6,[\\\"ownedByPrincipal\\\"]],[22,6,[\\\"warehouse\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showQuantityFieldInOfferForm\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-4 control-label\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"transport.quantity\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-8 form-control-static no-wrap\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,6,[\\\"quantity\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[6]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"customFields\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,5,[\\\"definition\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-8 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,5,[\\\"formattedValue\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.otherRequirements\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-8 form-control-static\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"otherRequirements\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[23,[\\\"auction\\\",\\\"otherRequirements\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.notSpecified\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showTransitTime\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group margin-top-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showTransitTime\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"offer-price-input\\\"],[11,\\\"class\\\",\\\"col-sm-4 col-xs-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"offer.transitTime\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-5 col-xs-5 \\\",[27,\\\"if\\\",[[23,[\\\"offer\\\",\\\"errors\\\",\\\"transitTime\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"pattern\\\",\\\"min\\\",\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"autofocus\\\"],[\\\"number\\\",\\\"1\\\",\\\"^[0-9]+\\\\\\\\.[0-9][0-9]$\\\",\\\"0\\\",\\\"form-control\\\",\\\"offer-transit-time\\\",[23,[\\\"offer\\\",\\\"transitTime\\\"]],\\\"autofocus\\\"]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"offer\\\"]],\\\"transitTime\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-2 col-xs-3 no-top-padding padding-left-small form-control-static \\\",[27,\\\"if\\\",[[23,[\\\"offer\\\",\\\"errors\\\",\\\"transitTimeType\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"onchange\\\"],[[27,\\\"readonly\\\",[[23,[\\\"offer\\\",\\\"transitTimeType\\\"]]],null],[23,[\\\"offer\\\",\\\"transitTimeTypes\\\"]],true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"offer\\\",\\\"transitTimeType\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"offer.transitTimeTypes.\\\",[22,4,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"offer\\\"]],\\\"transitTimeType\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"unitAmountType\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transaction.unitAmountType\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-8 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"auction\\\",\\\"unitAmountType\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showOperatorSelect\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group margin-top-big\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"offer-operator-select\\\"],[11,\\\"class\\\",\\\"col-sm-4 col-xs-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[21,\\\"operatorLabel\\\"],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-7 col-xs-8 no-top-padding form-control-static \\\",[27,\\\"if\\\",[[23,[\\\"offer\\\",\\\"errors\\\",\\\"operator\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchEnabled\\\",\\\"searchField\\\",\\\"onchange\\\"],[[27,\\\"readonly\\\",[[23,[\\\"offer\\\",\\\"operator\\\"]]],null],[23,[\\\"operators\\\"]],true,true,\\\"shortName\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"offer\\\",\\\"operator\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,3,[\\\"shortName\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"offer\\\"]],\\\"operator\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showPortsSelects\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group margin-top-big\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"offer-loading-port-select\\\"],[11,\\\"class\\\",\\\"col-sm-4 col-xs-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[21,\\\"loadingPortLabel\\\"],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-7 col-xs-8 no-top-padding form-control-static \\\",[27,\\\"if\\\",[[23,[\\\"offer\\\",\\\"errors\\\",\\\"loadingPort\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchEnabled\\\",\\\"searchField\\\",\\\"onchange\\\"],[[27,\\\"readonly\\\",[[23,[\\\"offer\\\",\\\"loadingPort\\\"]]],null],[23,[\\\"ports\\\"]],true,true,\\\"portSearchField\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"offer\\\",\\\"loadingPort\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,2,[\\\"country\\\"]],false],[0,\\\" - \\\"],[1,[22,2,[\\\"city\\\"]],false],[0,\\\" - \\\"],[1,[22,2,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"offer\\\"]],\\\"loadingPort\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group margin-top-big\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"offer-unloading-port-select\\\"],[11,\\\"class\\\",\\\"col-sm-4 col-xs-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[21,\\\"unloadingPortLabel\\\"],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-7 col-xs-8 no-top-padding form-control-static \\\",[27,\\\"if\\\",[[23,[\\\"offer\\\",\\\"errors\\\",\\\"unloadingPort\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchEnabled\\\",\\\"searchField\\\",\\\"onchange\\\"],[[27,\\\"readonly\\\",[[23,[\\\"offer\\\",\\\"unloadingPort\\\"]]],null],[23,[\\\"ports\\\"]],true,true,\\\"portSearchField\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"offer\\\",\\\"unloadingPort\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[\\\"country\\\"]],false],[0,\\\" - \\\"],[1,[22,1,[\\\"city\\\"]],false],[0,\\\" - \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"offer\\\"]],\\\"unloadingPort\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"offer-price-input\\\"],[11,\\\"class\\\",\\\"col-xs-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"offer.price\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-sm-6 col-xs-6 \\\",[27,\\\"if\\\",[[23,[\\\"offer\\\",\\\"errors\\\",\\\"price\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"pattern\\\",\\\"min\\\",\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"autofocus\\\"],[\\\"number\\\",\\\"1\\\",\\\"^[0-9]+\\\\\\\\.[0-9][0-9]$\\\",\\\"0\\\",\\\"form-control\\\",\\\"offer-price-input\\\",[23,[\\\"offer\\\",\\\"price\\\"]],\\\"autofocus\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-2 no-left-padding form-control-static\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[23,[\\\"auction\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"offer\\\",\\\"errors\\\",\\\"price\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-6 col-xs-offset-4 has-error\\\"],[11,\\\"data-field-name\\\",\\\"offer-price-error\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"offer\\\"]],\\\"price\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showDescriptionSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group margin-top-big\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"offer.description\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"offer-description\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"light-frame\\\"],null],\\\" \\\",[27,\\\"if\\\",[[23,[\\\"offer\\\",\\\"errors\\\",\\\"description\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"type\\\",\\\"placeholder\\\",\\\"class\\\",\\\"disabled\\\",\\\"rows\\\",\\\"value\\\"],[\\\"textarea\\\",[27,\\\"t\\\",[\\\"offer.description\\\"],null],\\\"form-control vertical-resizable-only\\\",false,\\\"3\\\",[23,[\\\"offer\\\",\\\"description\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"offer\\\",\\\"errors\\\",\\\"description\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"has-error\\\"],[11,\\\"data-field-name\\\",\\\"offer-description-error\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"offer\\\"]],\\\"description\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canAcceptWithMinPrice\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group margin-top-big\\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-11 col-xs-12 form-control-static text-right\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"auction.buyNowHeader\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"offer-price-input\\\"],[11,\\\"class\\\",\\\"col-xs-6 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"auction.buyNowLabel\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-3 col-xs-6 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"no-wrap\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[23,[\\\"auction\\\",\\\"minPrice\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"auction\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-3 col-sm-offset-0 col-xs-6 col-xs-offset-6\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"auction.buyNow\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"buyNow\\\"]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_DEV_TOOLS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-bottom\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"dev.performSaveAt\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\",\\\"disabled\\\"],[[23,[\\\"dateToPerformAction\\\"]],\\\"text\\\",\\\"form-control\\\",[23,[\\\"actionPlanned\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-2\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn btn-info\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"performSaveAt\\\",[23,[\\\"dateToPerformAction\\\"]]],null]],[9],[1,[27,\\\"t\\\",[\\\"dev.confirm\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"offer\\\",\\\"price\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-danger\\\",[23,[\\\"auctionRejectConfirmationText\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"reject\\\"],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"auction\\\",\\\"reject.label\\\",[23,[\\\"offer\\\",\\\"auction\\\",\\\"transport\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"savingInProgress\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"offer.savingInProgress\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save-offer\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"offer.save\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/offers/modals/offer-form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/operator/model\", [\"exports\", \"ember-data\", \"ember-data/model\"], function (_exports, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend({\n    name: attr('string'),\n    shortName: attr('string'),\n    type: attr('string')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/package-type-transport-type/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend(_modelValidator.default, {\n    validationService: Ember.inject.service('validation-service'),\n    transportType: _emberData.default.belongsTo('transportType'),\n    packageType: _emberData.default.belongsTo('packageType'),\n    multiplier: _emberData.default.attr('number'),\n    defaultValue: _emberData.default.attr('number'),\n    minValue: _emberData.default.attr('number'),\n    visibleInContractorStep: _emberData.default.attr('boolean'),\n    visibleInWarehouseStep: _emberData.default.attr('boolean'),\n    visibleInLoadPackageQuantityInTransportTable: _emberData.default.attr('boolean'),\n    visibleInUnloadPackageQuantityInTransportTable: _emberData.default.attr('boolean'),\n    required: _emberData.default.attr('boolean'),\n    referencePackage: _emberData.default.attr('boolean'),\n    usedForMaxPalletLimit: _emberData.default.attr('boolean'),\n    idx: _emberData.default.attr('number'),\n    validations: {\n      transportType: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      packageType: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      multiplier: {\n        custom: [{\n          validation: function (key, value, model) {\n            return model.get('validationService').isPositiveInteger(value);\n          },\n          message: 'positiveNumber'\n        }]\n      },\n      defaultValue: {\n        custom: [{\n          validation: function (key, value, model) {\n            return model.get('validationService').isPositiveInteger(value);\n          },\n          message: 'positiveNumber'\n        }]\n      },\n      minValue: {\n        custom: [{\n          validation: function (key, value, model) {\n            return model.get('validationService').isPositiveInteger(value);\n          },\n          message: 'positiveNumber'\n        }]\n      },\n      idx: {\n        custom: [{\n          validation: function (key, value, model) {\n            return model.get('validationService').isPositiveInteger(value);\n          },\n          message: 'positiveNumber'\n        }]\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/package-type/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend({\n    name: _emberData.default.attr('string'),\n    lowerCaseName: Ember.computed('name', function () {\n      if (!this.get('name')) {\n        return \"\";\n      }\n\n      return this.get('name').toLowerCase();\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/packaging/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.BasePackagingModel = _exports.BasePackagingModelValidations = void 0;\n  const {\n    Model,\n    attr,\n    belongsTo\n  } = _emberData.default;\n  const BasePackagingModelValidations = {\n    packageType: {\n      presence: {\n        message: 'blankSelect'\n      }\n    },\n    length: {\n      custom: [{\n        validation: function (key, value, model) {\n          if (!value) {\n            return false;\n          }\n\n          const formattedValue = Number(value.toString().replace(',', '.'));\n\n          if (formattedValue) {\n            value = formattedValue;\n            model.set(key, value);\n          }\n\n          if (value < 1 || value > 9999999) {\n            return false;\n          }\n\n          return /^[0-9]*[.|,]?[0-9]*$/.test(value);\n        },\n        message: 'positiveNumber'\n      }]\n    },\n    width: {\n      custom: [{\n        validation: function (key, value, model) {\n          if (!value) {\n            return false;\n          }\n\n          const formattedValue = Number(value.toString().replace(',', '.'));\n\n          if (formattedValue) {\n            value = formattedValue;\n            model.set(key, value);\n          }\n\n          if (value < 1 || value > 9999999) {\n            return false;\n          }\n\n          return /^[0-9]*[.|,]?[0-9]*$/.test(value);\n        },\n        message: 'positiveNumber'\n      }]\n    },\n    height: {\n      custom: [{\n        validation: function (key, value, model) {\n          if (!value) {\n            return false;\n          }\n\n          const formattedValue = Number(value.toString().replace(',', '.'));\n\n          if (formattedValue) {\n            value = formattedValue;\n            model.set(key, value);\n          }\n\n          if (value < 1 || value > 9999999) {\n            return false;\n          }\n\n          return /^[0-9]*[.|,]?[0-9]*$/.test(value);\n        },\n        message: 'positiveNumber'\n      }]\n    },\n    weight: {\n      custom: [{\n        validation: function (key, value, model) {\n          if (!value) {\n            return false;\n          }\n\n          const formattedValue = Number(value.toString().replace(',', '.'));\n\n          if (formattedValue) {\n            value = formattedValue;\n            model.set(key, value);\n          }\n\n          if (value < 0.001 || value > 999999999999) {\n            return false;\n          }\n\n          return /^[0-9]*[.|,]?[0-9]*$/.test(value);\n        },\n        message: 'positiveNumber'\n      }]\n    },\n    quantity: {\n      custom: [{\n        validation: function (key, value, model) {\n          if (!value) {\n            return false;\n          }\n\n          const formattedValue = Number(value.toString().replace(',', '.'));\n\n          if (formattedValue) {\n            value = formattedValue;\n            model.set(key, value);\n          }\n\n          if (value < 1 || value > 9999999) {\n            return false;\n          }\n\n          return /^\\d+$/.test(value);\n        },\n        message: 'positiveInteger'\n      }]\n    }\n  };\n  _exports.BasePackagingModelValidations = BasePackagingModelValidations;\n  const BasePackagingModel = Model.extend(_modelValidator.default, {\n    quantity: attr('number'),\n    packageType: belongsTo('packageType'),\n    enabled: attr('boolean'),\n    required: attr('boolean'),\n    loadStep: belongsTo('step'),\n    unloadStep: belongsTo('step'),\n    length: attr('number'),\n    width: attr('number'),\n    height: attr('number'),\n    weight: attr('number'),\n    description: attr('string'),\n    validations: { ...BasePackagingModelValidations\n    }\n  });\n  _exports.BasePackagingModel = BasePackagingModel;\n  var _default = {\n    BasePackagingModel,\n    BasePackagingModelValidations\n  };\n  _exports.default = _default;\n});","define(\"apollo/pods/parameter/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend({\n    name: _emberData.default.attr('string'),\n    value: _emberData.default.attr('string')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/partnership-contractors-group/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n\n  var _default = _emberData.default.Model.extend({\n    intl: service(),\n    partnership: _emberData.default.belongsTo('partnership', {\n      async: true\n    }),\n    contractorsGroup: _emberData.default.belongsTo('contractorsGroup', {\n      async: true\n    }),\n\n    /**\n     * Określa, czy ma być widoczna\n     */\n    enabled: _emberData.default.attr('boolean')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/partnership-type/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend({\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    name: _emberData.default.attr('string'),\n    availableRoleGroupNames: Ember.computed('name', function () {\n      switch (this.get('name')) {\n        case 'CARRIER':\n          return ['CARRIER'];\n        // sprawdzić\n\n        case 'SUPPLIER':\n          return ['SUPPLIER', 'RECEIVER', 'CLIENT', 'CISTERN', 'SUPPLIER+CISTERN', 'SUPPLIER+COURIER', 'SUPPLIER+RECEIVER', 'RECIPIENTS_OF_WASTE'];\n\n        case 'SERVICEMAN':\n          return ['SERVICEMAN'];\n\n        case 'OPERATOR':\n          return ['OPERATOR'];\n      }\n    }),\n    isCarrier: function () {\n      return this.get('name') === 'CARRIER' || this.get('name') === 'OPERATOR';\n    }.property('name'),\n    isSupplier: function () {\n      return this.get('name') === 'SUPPLIER' || this.get('name') === 'OPERATOR';\n    }.property('name'),\n    isServiceman: function () {\n      return this.get('name') === 'SERVICEMAN';\n    }.property('name'),\n    translationLabel: Ember.computed('name', function () {\n      const settingKey = this.get('sessionAccount').getSettingValue('SUPPLIER_FIELD_IN_COMPANY_DETAILS_TRANSLATION_KEY');\n      const name = this.get('name'); // Poniższy kod został dodany roboczo dla zadania A-11791, w którym przy okazji zmieniamy nazwę typu\n      // partnestwa z \"serwisant\" na \"serwis\", zmiana tego wszędzie wymaga osobnego zadania\n\n      if (name === 'SERVICEMAN') {\n        return 'SERVICE';\n      }\n\n      return settingKey ? `${name}.${settingKey}` : name;\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/partnership/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n\n  var _default = _emberData.default.Model.extend(_modelValidator.default, {\n    changeTracker: {\n      auto: true,\n      enableIsDirty: true\n    },\n    sessionAccount: service('session-account'),\n    intl: service(),\n    STATUS: {\n      NO_INVITATION: \"NO_INVITATION\",\n      WAITING: \"WAITING\",\n      REGISTRATION_IS_IN_PROGRESS: 'REGISTRATION_IS_IN_PROGRESS',\n      AWAITING_VERIFICATION: \"AWAITING_VERIFICATION\",\n      ACCEPTED: \"ACCEPTED\",\n      REJECTED: \"REJECTED\",\n      UPDATED: \"UPDATED\",\n      BLOCKED: \"BLOCKED\"\n    },\n    principalCompany: _emberData.default.belongsTo('company', {\n      async: true,\n      inverse: null\n    }),\n    contractorCompany: _emberData.default.belongsTo('company', {\n      async: true,\n      inverse: null,\n      deepEmbedded: ['headquarter']\n    }),\n    invitation: _emberData.default.belongsTo('invitation', {\n      async: true\n    }),\n    partnershipType: _emberData.default.belongsTo('partnershipType', {\n      async: true\n    }),\n    parentPartnership: _emberData.default.belongsTo('partnership', {\n      async: true,\n      inverse: null\n    }),\n    mainSection: _emberData.default.belongsTo('mainSection', {\n      async: true\n    }),\n    secondarySection: _emberData.default.belongsTo('secondarySection', {\n      async: true\n    }),\n    antiCorruptionSection: _emberData.default.belongsTo('antiCorruptionSection', {\n      async: true\n    }),\n    documents: _emberData.default.hasMany('documents', {\n      async: true\n    }),\n    partnershipContractorsGroups: _emberData.default.hasMany('partnershipContractorsGroup', {\n      async: true\n    }),\n    blockades: _emberData.default.hasMany('blockade', {\n      async: true,\n      inverse: null\n    }),\n    termsOfService: _emberData.default.belongsTo('termsOfService', {\n      async: true,\n      inverse: 'partnership'\n    }),\n    type: _emberData.default.attr('string'),\n    status: _emberData.default.attr('string'),\n    contractorNumber: _emberData.default.attr('string'),\n    contractorShortName: _emberData.default.attr('string'),\n    patron: _emberData.default.belongsTo('user', {\n      async: true,\n      inverse: null\n    }),\n    registrationCompleted: _emberData.default.attr('boolean'),\n    verificationRequestSent: _emberData.default.attr('boolean'),\n    sendRequestForVerification: _emberData.default.attr('boolean'),\n    lastUpdatedSectionDate: _emberData.default.attr('date'),\n    dateCreated: _emberData.default.attr('date'),\n    adviceVerification: _emberData.default.attr('boolean'),\n    adviceVerificationInterval: _emberData.default.attr('string'),\n    allowsPeriodicTransport: _emberData.default.attr('boolean'),\n    defaultRampAccessExists: _emberData.default.attr('boolean'),\n    representativeName: _emberData.default.attr('string'),\n    representativeEmail: _emberData.default.attr('string'),\n    representativePhoneNumber: _emberData.default.attr('string'),\n    representativePhoneNumberPrefix: _emberData.default.attr('string'),\n    additionalDetails: _emberData.default.attr('string'),\n    transportLimit: _emberData.default.attr('number'),\n    contractorCompletedTransportsCount: _emberData.default.attr('number'),\n    contractorTransportsInProgressCount: _emberData.default.attr('number'),\n    transportsCreatedCount: _emberData.default.attr('number'),\n    isTransportLimitExceeded: _emberData.default.attr('boolean'),\n    validations: {\n      principalCompany: {\n        custom: [{\n          validation: function (key, value) {\n            return value && value.get('id');\n          },\n          message: 'blank'\n        }]\n      },\n      contractorCompany: {\n        custom: [{\n          validation: function (key, value) {\n            return value && value.get('id');\n          },\n          message: 'blank'\n        }]\n      },\n      contractorShortName: {\n        custom: [{\n          validation: function (key, value) {\n            return Ember.isNone(value) || value.toString().length < 255;\n          },\n          message: 'contractorShortNameTooLong'\n        }]\n      },\n      sendRequestForVerification: {\n        custom: [{\n          validation: function (key, value, model) {\n            //Walidacja obowiązuje tylko w momencie wysłania prośby o weryfikację\n            if (!value) {\n              return true;\n            }\n\n            let validate = true;\n\n            if (!model.get('mainSection.content').validate()) {\n              validate = false;\n            }\n\n            if (model.get('contractorCompany.shouldHaveRegon') && !model.get('mainSection.regonFile.content')) {\n              validate = false;\n              model.get('errors').add('regonFile', model.get('intl').t('main-section.errors.regonFile'));\n            }\n\n            if (model.get('contractorCompany.shouldHaveKrs') && !model.get('mainSection.krsFile.content')) {\n              validate = false;\n              model.get('errors').add('krsFile', model.get('intl').t('main-section.errors.krsFile'));\n            }\n\n            if (!model.get('mainSection.nipFile.content')) {\n              validate = false;\n              model.get('errors').add('nipFile', model.get('intl').t('main-section.errors.nipFile'));\n            }\n\n            const appliesSetting = model.get('sessionAccount').getAppliesSetting();\n\n            if (appliesSetting && appliesSetting.get('createAntiCorruptionSection') && model.get('antiCorruptionSection.signedFiles.length') < 1) {\n              validate = false;\n              model.get('errors').add('antiCorruptionFiles', model.get('intl').t('anti-corruption-section.errors.signedFiles'));\n            }\n\n            if (!model.get('termsOfService.isConfirmed')) {\n              validate = false;\n              model.get('errors').add('unchecked', model.get('intl').t('terms-of-service.errors.unchecked'));\n            }\n\n            return validate;\n          },\n          message: ''\n        }]\n      },\n      adviceVerificationInterval: {\n        custom: [{\n          validation: function (key, value, model) {\n            // Walidacja pola 'adviceVerificationInterval' tylko w przypadku zaznaczonego checkbox'a 'adviceVerification'\n            if (model.get('adviceVerification')) {\n              return value && value.length >= 2 && value.toString().match(/^-?(\\d+(d|h|m|s))+$/);\n            }\n\n            return true;\n          },\n          message: 'intervalFormatError'\n        }]\n      },\n      representativeEmail: {\n        custom: [{\n          validation: function (key, value) {\n            if (!value) {\n              return true;\n            }\n\n            return /^\\S+@\\S+\\.\\S+$/.test(value);\n          },\n          message: 'email'\n        }]\n      },\n      representativePhoneNumber: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!value) {\n              return true;\n            }\n\n            if (model.get('representativePhoneNumberPrefix') === '48') {\n              return /^[0-9]+$/.test(value) && value.length >= 9;\n            }\n\n            return /^[0-9]+$/.test(value);\n          },\n          message: 'regex'\n        }]\n      },\n      representativePhoneNumberPrefix: {\n        custom: [{\n          validation: function (key, value) {\n            if (!value) {\n              return true;\n            }\n\n            return value.length <= 3;\n          },\n          message: 'blank'\n        }]\n      },\n      additionalDetails: {\n        custom: [{\n          validation: function (key, value) {\n            if (!value) {\n              return true;\n            }\n\n            return value.length <= 1000;\n          },\n          message: 'length'\n        }]\n      },\n      transportLimit: {\n        numericality: {\n          allowBlank: true,\n          greaterThanOrEqualTo: 0,\n          lessThanOrEqualTo: Number.MAX_VALUE,\n          message: 'invalidNumber'\n        }\n      }\n    },\n    isAuxiliary: Ember.computed('type', function () {\n      return this.get('type') === 'AUXILIARY';\n    }),\n    contractorsGroups: Ember.computed('partnershipContractorsGroups.@each', 'partnershipContractorsGroups.@each.enabled', function () {\n      return this.get('partnershipContractorsGroups').filterBy('enabled').getEach('contractorsGroup');\n    }),\n    contractorsGroupsIds: Ember.computed('contractorsGroups.@each.id', function () {\n      return this.get('contractorsGroups').getEach('id');\n    }),\n    contractorsGroupTypeIds: Ember.computed('contractorsGroups.@each', 'contractorsGroups.@each.groupTypeId', function () {\n      return this.get('contractorsGroups').getEach('groupTypeId');\n    }),\n    activeDocuments: Ember.computed('documents.@each.id', 'documents.@each.isActive', function () {\n      return this.get('documents').filterBy('id').filterBy('isActive');\n    }),\n    rejectedDocuments: Ember.computed('documents.@each.id', 'documents.@each.isRejected', function () {\n      return this.get('documents').filterBy('id').filterBy('isRejected');\n    }),\n    updatedDocuments: Ember.computed('activeDocuments.@each.hasBeenUpdated', function () {\n      return this.get('activeDocuments').filterBy('hasBeenUpdated');\n    }),\n    activeLicences: Ember.computed('activeDocuments.@each.isLicence', function () {\n      return this.get('activeDocuments').filterBy('isLicence');\n    }),\n    activeInsurances: Ember.computed('activeDocuments.@each.isInsurance', function () {\n      return this.get('activeDocuments').filterBy('isInsurance');\n    }),\n    archivedDocuments: Ember.computed('documents.@each.id', 'documents.@each.isActive', function () {\n      return this.get('documents').filterBy('id').filterBy('isActive', false);\n    }),\n    archivedLicences: Ember.computed('archivedDocuments.@each.isLicence', function () {\n      return this.get('archivedDocuments').filterBy('isLicence');\n    }),\n    archivedInsurances: Ember.computed('archivedDocuments.@each.isInsurance', function () {\n      return this.get('archivedDocuments').filterBy('isInsurance');\n    }),\n    hasUnapprovedLicences: Ember.computed('activeLicences', function () {\n      const activeLicences = this.get('activeLicences');\n\n      if (activeLicences.get('length') === 0) {\n        return false;\n      }\n\n      const approvedLicenses = activeLicences.filter(licence => {\n        return licence.get('state') === licence.get('STATES.ACCEPTED');\n      });\n      return activeLicences.get('length') !== approvedLicenses.get('length');\n    }),\n    hasNoActiveLicences: Ember.computed('activeLicences', function () {\n      return this.get('activeLicences.length') === 0;\n    }),\n    idsOfActiveDocumentsTypes: Ember.computed('activeDocuments.@each.length', function () {\n      return this.get('activeDocuments').map(d => d.get('documentType.id'));\n    }),\n    statusIcon: Ember.computed('status', function () {\n      switch (this.get('status')) {\n        case 'NO_INVITATION':\n          return 'ban';\n\n        case 'REGISTRATION_IS_IN_PROGRESS':\n          return 'key';\n\n        case 'WAITING':\n          return 'hourglass-start';\n\n        case 'AWAITING_VERIFICATION':\n          return 'hourglass-start';\n\n        case 'UPDATED':\n          return 'warning';\n\n        case 'ACCEPTED':\n          return 'check-circle';\n\n        case 'REJECTED':\n          return 'frown';\n\n        case 'BLOCKED':\n          return 'minus-circle';\n      }\n    }),\n    statusClass: Ember.computed('status', function () {\n      if (['NO_INVITATION', 'WAITING', 'REJECTED', 'BLOCKED'].includes(this.get('status'))) {\n        return 'errors';\n      }\n\n      if (['ACCEPTED'].includes(this.get('status'))) {\n        return 'success';\n      }\n\n      if (['REGISTRATION_IS_IN_PROGRESS', 'AWAITING_VERIFICATION'].includes(this.get('status'))) {\n        return 'info';\n      }\n\n      if (['UPDATED'].includes(this.get('status'))) {\n        return 'warning';\n      }\n    }),\n    principalCompanyId: Ember.computed('principalCompany.id', function () {\n      return this.get('principalCompany.id');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/partnership/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, {\n    attrs: {\n      principalCompany: {\n        serialize: 'records'\n      },\n      contractorCompany: {\n        embedded: 'save'\n      },\n      mainSection: {\n        embedded: 'save'\n      }\n    },\n    serializeHasMany: function (record, json, relationship) {\n      const key = relationship.key;\n      const hasManyRecords = record.hasMany(key);\n\n      if (hasManyRecords && this.attrs[key] && this.attrs[key].embedded === \"save\") {\n        json[key] = [];\n        hasManyRecords.forEach(function (item) {\n          const data = item.attributes();\n          data.id = item.id;\n          json[key].push(data);\n        });\n      } else {\n        this._super(record, json, relationship);\n      }\n    },\n    serializeBelongsTo: function (record, json, relationship) {\n      const key = relationship.key;\n      const embeddedRecord = record.belongsTo(key);\n\n      if (embeddedRecord && this.attrs[key] && this.attrs[key].embedded === \"save\") {\n        const data = embeddedRecord.attributes();\n        data.id = embeddedRecord.id;\n\n        if (relationship.options.deepEmbedded) {\n          relationship.options.deepEmbedded.forEach(function (deepKey) {\n            if (embeddedRecord.belongsTo(deepKey)) {\n              data[deepKey] = embeddedRecord.belongsTo(deepKey).serialize();\n            }\n          });\n        }\n\n        json[key] = data;\n      } else {\n        this._super(record, json, relationship);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/partnerships/index/controller\", [\"exports\", \"apollo/mixins/company-mixin\"], function (_exports, _companyMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_companyMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    company: Ember.computed('model', function () {\n      return this.get('model');\n    }),\n    partnerships: Ember.computed('company.id', 'showPartnershipTable', function () {\n      const companyId = this.get('company.id');\n\n      if (!companyId) {\n        return [];\n      }\n\n      const canSeePartnershipTable = this.get('sessionAccount').hasRole('ROLE_SHOW_PARTNERSHIP_TABLE');\n      return canSeePartnershipTable ? this.get('store').query('partnership', {\n        companyId: companyId,\n        partnershipTypeId: this.get('company.partnershipType.id')\n      }) : [];\n    }),\n    actions: {\n      showPartnershipModal(template, model) {\n        this.send(\"showModal\", template, model);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/partnerships/index/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    //TODO: zabezpieczenia: showAwaitingInvitations, showPartnershipTable (rola + czy nie inny pryncypał)\n    model: function (params) {\n      const companyId = params.companyId;\n      return this.store.findRecord('company', companyId, {\n        reload: true\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/partnerships/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"vfmrmgs9\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"company-nav-header\\\",null,[[\\\"company\\\"],[[23,[\\\"company\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"company\\\",\\\"showPartnershipTable\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"partnership-table\\\",null,[[\\\"company\\\",\\\"partnerships\\\",\\\"showModal\\\"],[[23,[\\\"company\\\"]],[23,[\\\"partnerships\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"showPartnershipModal\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"company\\\",\\\"showAwaitingInvitations\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"awaiting-invitation-table\\\",null,[[\\\"company\\\"],[[23,[\\\"company\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/partnerships/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/periodic-transport/model\", [\"exports\", \"ember-data\", \"apollo/pods/base-recurring-transport/model\"], function (_exports, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _model.BaseRecurringTransportModel.extend({\n    internalIndex: _emberData.default.attr('number'),\n    dateOfAdvice: _emberData.default.attr('date'),\n    validations: { ..._model.BaseRecurringTransportValidations,\n      startDate: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!value) {\n              return true;\n            }\n\n            const dateOfAdvice = model.get('dateOfAdvice');\n            const formattedStartDate = moment(value).format('YYYY-MM-DD');\n            return dateOfAdvice === formattedStartDate;\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('periodicTransport.errors.windowMustBeInFirstDayOfPeriodicTransport');\n          }\n        }]\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/person-queue/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend({\n    user: _emberData.default.belongsTo('user', {\n      async: true\n    }),\n    queue: _emberData.default.belongsTo('queue', {\n      async: true\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/place/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend(_modelValidator.default, {\n    queue: _emberData.default.belongsTo('queue', {\n      async: true\n    }),\n    name: _emberData.default.attr('string'),\n    idx: _emberData.default.attr('string'),\n    shortName: _emberData.default.attr('string'),\n    enabled: _emberData.default.attr('boolean', {\n      defaultValue() {\n        return true;\n      }\n\n    }),\n    validations: {\n      name: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      idx: {\n        presence: {\n          message: 'blank'\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/places/add-place/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_CREATE_PLACE'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n\n    model(params) {\n      const queueId = params.queue_id;\n      const place = this.store.createRecord('place');\n      return Ember.RSVP.hash({\n        queue: this.store.findRecord('queue', queueId),\n        place: place\n      });\n    },\n\n    renderTemplate: function () {\n      this.render('places.create');\n    },\n    setupController: function (controller, model) {\n      this._super.apply(this, arguments);\n\n      const place = model.place;\n      place.setProperties({\n        queue: model.queue\n      });\n      this.controllerFor('places.create').setProperties({\n        model: place\n      });\n    },\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          success: null,\n          errors: []\n        });\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/places/create/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    actions: {\n      save() {\n        const self = this;\n        this.get('model').validate();\n\n        if (this.get('model').get('errors.length')) {\n          return;\n        }\n\n        this.get('model').save().then(place => {\n          console.debug(`Place ${place.get('name')} saved.`);\n          self.setProperties({\n            errors: []\n          });\n        }).catch(response => {\n          self.set('errors', response.errors);\n        }).finally(() => {\n          self.transitionToRoute('squares.edit', self.get('model.queue.square'));\n        });\n      },\n\n      disable() {\n        const self = this;\n        const model = this.get('model');\n        const placeId = this.get('model.id');\n        const jsonBody = JSON.stringify(model);\n        const path = this.get('apolloApiService').APOLLO_API.PLACES.DISABLE; // TODO Przerobić na ember-data\n\n        this.get('apolloApiService').callApolloApi(path, {\n          placeId\n        }, {\n          body: jsonBody\n        }).then(() => {\n          model.set('enabled', false);\n          self.transitionToRoute('squares.edit', self.get('model.queue.square'));\n        });\n      },\n\n      enable() {\n        const self = this;\n        const model = this.get('model');\n        const placeId = this.get('model.id');\n        const jsonBody = JSON.stringify(model);\n        const path = this.get('apolloApiService').APOLLO_API.PLACES.ENABLE; // TODO Przerobić na ember-data\n\n        this.get('apolloApiService').callApolloApi(path, {\n          placeId\n        }, {\n          body: jsonBody\n        }).then(() => {\n          model.set('enabled', true);\n          self.transitionToRoute('squares.edit', self.get('model.queue.square'));\n        });\n      },\n\n      cancel() {\n        const square = this.get('model.queue.square');\n        this.get('model').rollbackAttributes();\n        this.transitionToRoute('squares.edit', square);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/places/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      return this.store.createRecord('place');\n    },\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          success: null,\n          errors: []\n        });\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/places/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"YJYQYYHd\",\n    \"block\": \"{\\\"symbols\\\":[\\\"error\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-narrow\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"placeLabel\\\"]]],false],[0,\\\": \\\"],[1,[23,[\\\"model\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"success\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-success alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"places.updateSuccessMessage\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"label\\\"]]],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"model\\\",\\\"queue\\\",\\\"square\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"queueLabel\\\"]]],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"model\\\",\\\"queue\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.name\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"place-name\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"shortName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.shortName\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"place-short-name\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"shortName\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"shortName\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"idx\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"ramp.idx\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"place-idx\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"min\\\",\\\"class\\\",\\\"value\\\"],[\\\"number\\\",1,\\\"form-control\\\",[23,[\\\"model\\\",\\\"idx\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"idx\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 form-buttons\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"ramp.disableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"disable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"ban\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.disable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"ramp.enableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"enable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"check\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.enable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"ok\\\"],[[\\\"on\\\",\\\"target\\\"],[\\\"submit\\\",[23,[\\\"view\\\"]]]]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/places/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/places/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_EDIT_PLACE'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      return this.store.findRecord('place', params.id, {\n        reload: true\n      });\n    },\n    renderTemplate: function () {\n      this.render('places.create');\n    },\n    setupController: function (controller, model) {\n      this.controllerFor('places.create').setProperties({\n        model: model\n      });\n    },\n    actions: {\n      willTransition: function () {\n        this.get('controller').setProperties({\n          success: false,\n          errors: []\n        });\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/planning/index/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    init() {\n      this._super(...arguments);\n    },\n\n    currentDeliveries: Ember.A([]),\n    currentTransports: Ember.A([]),\n    deliveries: Ember.computed('currentDeliveries', 'model.deliveries.{length,[]}', function () {\n      return this._refreshArray(this.get('model.deliveries'), this.currentDeliveries);\n    }),\n    transports: Ember.computed('currentTransports', 'model.transports.{length,[]}', function () {\n      return this._refreshArray(this.get('model.transports'), this.currentTransports).sort(t => t.internalIndex);\n    }),\n    _refreshArray: function (modelArray, currentArray) {\n      if (!modelArray || modelArray.length === 0 && !modelArray.content) {\n        return currentArray;\n      }\n\n      modelArray.forEach(t => {\n        if (!currentArray.includes(t)) {\n          currentArray.pushObject(t);\n        }\n      });\n      currentArray.forEach(t => {\n        if (!modelArray.includes(t)) {\n          currentArray.removeObject(t);\n        }\n      });\n      return currentArray;\n    },\n    customFieldsForDeliveries: Ember.computed('model.customFields.@each.{id,enabled,visibleInDelivery}', function () {\n      return this.get('model.customFields').filterBy('id').filterBy('enabled').filterBy('visibleInDelivery').sortBy('idx');\n    }),\n    customFieldsForTransport: Ember.computed('model.customFields.@each.{id,enabled,obligatory,visibleDuringTransportCreation}', function () {\n      return this.get('model.customFields').filterBy('id').filterBy('enabled').filterBy('visibleDuringTransportCreation').filterBy('obligatory').sortBy('idx');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/planning/index/route\", [\"exports\", \"apollo/mixins/menu-mixin\"], function (_exports, _menuMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_menuMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    websocketService: Ember.inject.service('websocket'),\n    planningPollingService: Ember.inject.service('polling.planning-service'),\n    access: Ember.A(['ROLE_PLANNING_TAB']),\n    transports: Ember.A([]),\n    model: async function (params) {\n      const transportTypeMode = params.type;\n      const availableTransportTypes = await this.get('store').peekAll('transportType').filter(transportType => {\n        return transportType.canBeSeenByRoleGroup && transportType.usedForDeliveries;\n      });\n      const transportType = availableTransportTypes.find(tt => tt.alias === transportTypeMode);\n      const transportTypeId = transportType.get('id');\n\n      if (!transportTypeId) {\n        console.error('Brak typu transportu z flagą usedForDeliveries');\n        this.transitionTo('forbidden');\n      }\n\n      const transports = await this.store.query('transport', {\n        planning: true\n      });\n      const deliveries = await this.store.query('delivery', {\n        transportTypeId\n      });\n      const packageTypes = await this.get('store').peekAll('packageType');\n      return Ember.RSVP.hash({\n        availableTransportTypes,\n        transportType,\n        deliveries,\n        transports,\n        customFields: this.store.query('customFieldDefinition', {\n          planning: true,\n          transportTypeId\n        }),\n        packageTypes\n      });\n    },\n    beforeModel: function (transition) {\n      const allowWs = this.get('sessionAccount').getSettingValue('USE_WEBSOCKETS') === 'true';\n      const access = this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'));\n\n      if (!allowWs || !access) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    afterModel: function (model) {\n      const socketApi = this.websocketService.getSocketApi();\n\n      if (socketApi) {\n        this.planningPollingService.useSockets(socketApi, model);\n      }\n    },\n\n    activate() {\n      this.activateCurrentTab('PLANNING_TAB');\n    },\n\n    deactivate() {\n      const socketApi = this.websocketService.getSocketApi();\n\n      if (socketApi) {\n        socketApi.unsubscribeAny('topic/planning/update');\n      }\n    },\n\n    refreshModel() {\n      this.refresh();\n    },\n\n    actions: {\n      setTransportTypeMode(mode) {\n        console.log(`Planowanie: Przechodzimy do typu ${mode}...`);\n        this.transitionToRoute('planning.index', mode);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/planning/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"RoepZtIY\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[11,\\\"style\\\",\\\"width: 1920px\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h1\\\"],[9],[1,[27,\\\"t\\\",[\\\"delivery.planningTabTitle\\\"],null],false],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"planning/table-nav\\\",null,[[\\\"availableTransportTypes\\\",\\\"transportTypeMode\\\"],[[23,[\\\"model\\\",\\\"availableTransportTypes\\\"]],[23,[\\\"model\\\",\\\"transportType\\\",\\\"alias\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"planning/not-planned-panel\\\",null,[[\\\"deliveries\\\",\\\"customFields\\\",\\\"transportType\\\",\\\"packageTypes\\\"],[[23,[\\\"deliveries\\\"]],[23,[\\\"customFieldsForDeliveries\\\"]],[23,[\\\"model\\\",\\\"transportType\\\"]],[23,[\\\"model\\\",\\\"packageTypes\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-lg-6\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"planning/planned-panel\\\",null,[[\\\"deliveries\\\",\\\"transports\\\",\\\"transportType\\\",\\\"customFields\\\",\\\"packageTypes\\\"],[[23,[\\\"deliveries\\\"]],[23,[\\\"transports\\\"]],[23,[\\\"model\\\",\\\"transportType\\\"]],[23,[\\\"customFieldsForTransport\\\"]],[23,[\\\"model\\\",\\\"packageTypes\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/planning/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/planning/modals/create-from-transport/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    deliveryService: Ember.inject.service('delivery-service'),\n    modalTitle: Ember.computed('model.delivery.id', function () {\n      return this.get('model.delivery.id') ? this.get('intl').t('delivery.edit') : this.get('intl').t('delivery.create');\n    }),\n    packageTypes: Ember.computed('', function () {\n      return this.get('store').peekAll('packageType');\n    }),\n    customFieldsList: Ember.computed('model.customFields', function () {\n      return this.deliveryService.findCustomFieldPairs(this.get('model.customFields').filterBy('id').filterBy('enabled').filterBy('visibleInDelivery').sortBy('idx'));\n    }),\n    actions: {\n      cancel() {\n        this.get('model.delivery').rollbackAttributes();\n        this.send('hideModal');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/planning/modals/create-from-transport/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"VifrktQB\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"classNames\\\",\\\"title\\\",\\\"showCancelButton\\\",\\\"cancel\\\"],[\\\"transport-modal\\\",[23,[\\\"modalTitle\\\"]],true,[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[1,[27,\\\"transport/create-delivery-from-transport\\\",null,[[\\\"customFieldsList\\\",\\\"packageTypes\\\",\\\"delivery\\\",\\\"transportType\\\",\\\"steps\\\",\\\"disabled\\\"],[[23,[\\\"customFieldsList\\\"]],[23,[\\\"packageTypes\\\"]],[23,[\\\"model\\\",\\\"delivery\\\"]],[23,[\\\"model\\\",\\\"transportType\\\"]],[23,[\\\"model\\\",\\\"transportSteps\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/planning/modals/create-from-transport/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/planning/modals/create/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    modalTitle: Ember.computed('model.delivery.id', function () {\n      return this.get('model.delivery.id') ? this.get('intl').t('delivery.edit') : this.get('intl').t('delivery.create');\n    }),\n    packageTypes: Ember.computed('', function () {\n      return this.get('store').peekAll('packageType');\n    }),\n    actions: {\n      cancel() {\n        this.get('model.delivery').rollbackAttributes();\n        this.send('hideModal');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/planning/modals/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ttEbxEgf\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"classNames\\\",\\\"title\\\",\\\"showCancelButton\\\",\\\"cancel\\\"],[\\\"transport-modal\\\",[23,[\\\"modalTitle\\\"]],true,[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[1,[27,\\\"transport/delivery-section\\\",null,[[\\\"packageTypes\\\",\\\"delivery\\\",\\\"transportType\\\",\\\"customFieldsList\\\",\\\"disabled\\\",\\\"isFromCreateModal\\\"],[[23,[\\\"packageTypes\\\"]],[23,[\\\"model\\\",\\\"delivery\\\"]],[23,[\\\"model\\\",\\\"transportType\\\"]],[23,[\\\"model\\\",\\\"customFields\\\"]],false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/planning/modals/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/port/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    portType: attr('string'),\n    country: attr('string'),\n    city: attr('string'),\n    name: attr('string'),\n    code: attr('string'),\n    seaPort: Ember.computed('portType', function () {\n      return this.get('portType') === 'SEA';\n    }),\n    airPort: Ember.computed('portType', function () {\n      return this.get('portType') === 'AIR';\n    }),\n    portSearchField: Ember.computed('country.ibanSymbol,city,name', function () {\n      return `${this.country} ${this.city} ${this.name}`.toLowerCase();\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/price-list-setting/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    transportType: belongsTo('transportType', {\n      async: true\n    }),\n    allowsPriceList: attr('boolean'),\n    showRouteTemplate: attr('boolean'),\n    requireRouteTemplate: attr('boolean'),\n    searchForMatchingRoute: attr('boolean'),\n    overrideStepAndCustomFieldData: attr('boolean'),\n    truckTypeRouteOfferRestriction: attr('boolean')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/price-list/index/controller\", [\"exports\", \"apollo/pods/transports/index/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _controller.default.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    actionProgressToast: Ember.inject.service('action-progress-service'),\n    hideTableForRerendering: false,\n    availableTransportTypes: Ember.computed('model.availableTransportTypes', function () {\n      return this.get('model.availableTransportTypes');\n    }),\n    shouldDisplayTransportTypeButtons: Ember.computed('availableTransportTypes.length', function () {\n      return this.get('availableTransportTypes.length') > 1;\n    }),\n    // Rozwiązanie na podsatwie\n    // https://github.com/onechiporenko/ember-models-table/issues/584\n    disableHideTable: function () {\n      const self = this;\n\n      if (!this.get('hideTableForRerendering')) {\n        return false;\n      }\n\n      setTimeout(() => {\n        self.set('hideTableForRerendering', false);\n      }, 0);\n      return true;\n    },\n    transportType: Ember.computed('availableTransportTypes.@each.alias', 'transportTypeMode', function () {\n      return this.get('availableTransportTypes').find(tt => tt.get('alias') === this.get('transportTypeMode'));\n    }),\n    shouldDisplayCreateNewRouteButton: Ember.computed('transportType', function () {\n      return this.get('transportType').findPositiveAuthorityRestrictionsByActionType('ROLE_CAN_ADD_ROUTE', this.get('transportType.id')).length > 0;\n    }),\n    showExportXlsButton: Ember.computed('model.showExportXlsButton', function () {\n      return this.get('model.showExportXlsButton');\n    }),\n    _generateXlsReport: async function () {\n      const response = await this.apolloApiService.callApolloApi(this.apolloApiService.APOLLO_API.PRICE_LIST.EXCEL_REPORT);\n\n      if (response.ok) {\n        this.actionProgressToast.showSuccessToast(this.intl.t('transportsToExcel.XLSGenerateMessage'));\n      } else {\n        if (response.status === 404) {\n          this.actionProgressToast.showErrorToast(this.get('intl').t('transportsToExcel.errors.XLSGenerateEmailErrorMessage'));\n          return;\n        }\n\n        const err = await response.json();\n        this.actionProgressToast.showErrorToast(this.get('intl').t('notificationToast.titles.error'), err.errors);\n      }\n    },\n    actions: {\n      setTransportTypeMode(mode) {\n        console.log(`Cenniki: Przechodzimy do typu ${mode}...`);\n        this.transitionToRoute('price-list.index', mode, {\n          queryParams: {\n            max: this.get('max'),\n            page: 1\n          }\n        });\n      },\n\n      showCreateRouteForm() {\n        const routeCustomFieldDefinitions = this.get('transportType.sortedFieldDefinitions').filter(d => d.get('id') && d.get('enabled') && d.get('includedInPriceList'));\n        const routeCustomFields = routeCustomFieldDefinitions.map(definition => {\n          return this.get('store').createRecord('routeCustomField', {\n            definition\n          });\n        });\n        const route = this.get('store').createRecord('route', {\n          transportType: this.get('transportType'),\n          routeCustomFields\n        });\n        const routeAddressLoad = this.get('store').createRecord('routeAddress', {\n          stepType: 'load',\n          idx: 0,\n          stepTypeIdx: 0\n        });\n        const routeAddressUnload = this.get('store').createRecord('routeAddress', {\n          stepType: 'unload',\n          idx: 1,\n          stepTypeIdx: 0\n        });\n        route.get('routeAddresses').addObject(routeAddressLoad);\n        route.get('routeAddresses').addObject(routeAddressUnload);\n        this.send('showModal', 'routes.modals.route-form.show', route);\n      },\n\n      generateExcelReport() {\n        Ember.run.once(this, '_generateXlsReport');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/price-list/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"apollo/mixins/menu-mixin\"], function (_exports, _authenticatedRouteMixin, _menuMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _menuMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    access: Ember.A(['ROLE_PRICE_LIST_TAB']),\n    transportTypeRole: 'ROLE_ACCESS_PRICE_LIST',\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    queryParams: {\n      page: {\n        refreshModel: true\n      },\n      max: {\n        refreshModel: true\n      }\n    },\n    transportTypes: Ember.A(),\n\n    model(params) {\n      params.max = localStorage.getItem('MAX_ROWS_IN_PRICE_LIST_TABLE') || 10;\n      params.page = params.page || 1;\n      const transportTypeMode = params.type;\n      console.log(`Wczytujemy zakładkę Cenników dla typu ${transportTypeMode}...`);\n      const routes = transportTypeMode === 'UNAVAILABLE' ? [] : this.store.query('route', {\n        transportTypeMode,\n        max: params.max,\n        page: params.page\n      });\n      const routeAddresses = this.store.findAll('route-address');\n      return Ember.RSVP.hash({\n        availableTransportTypes: this.transportTypes,\n        transportTypeMode,\n        routes,\n        routeAddresses\n      });\n    },\n\n    beforeModel(transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n\n      this.transportTypes = this.get('sessionAccount.currentUser.transportTypes').filter(tt => tt.allowsPriceList).filter(tt => {\n        return this.authorityCheckerService.findPositiveAuthorityRestrictionsByActionType(this.transportTypeRole, tt);\n      });\n      const enteredTypeName = transition.params['price-list.index'].type;\n\n      if (enteredTypeName !== 'UNAVAILABLE' && !this.transportTypes.getEach('alias').includes(enteredTypeName)) {\n        console.error(`User entered ${enteredTypeName} in params, but doesn't have access to it (or the type doesn't exist).`);\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n\n    setupController: function (controller, model) {\n      // eslint-disable-next-line ember/no-controller-access-in-routes\n      this.get('controller').setProperties({\n        model,\n        totalPages: model.routes.get('meta.totalPages'),\n        hideTableForRerendering: true\n      }); // eslint-disable-next-line ember/no-controller-access-in-routes\n\n      this.get('controller').disableHideTable();\n    },\n\n    activate() {\n      this.activateCurrentTab('PRICE_LIST_TAB');\n    },\n\n    actions: {\n      willTransition(transition) {\n        if (transition.targetName === 'price-list.index') {\n          return;\n        }\n\n        console.log(`transition.targetName: ${transition.targetName}`); // eslint-disable-next-line ember/no-controller-access-in-routes\n\n        this.get('controller').setProperties({\n          page: 1,\n          totalPages: 0\n        });\n      },\n\n      refreshModel() {\n        this.refresh();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/price-list/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"MRa1tHUP\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container-fluid\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"price-list-navigation\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"no-top-margin\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"tabs.priceLists\\\"],null],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_PRICE_LIST_XLS_REPORT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"common.exportAsXLS\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"file-excel\\\"],[[\\\"size\\\"],[\\\"lg\\\"]]],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"generateExcelReport\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"shouldDisplayTransportTypeButtons\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right text-right\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"price-list/routes-table-nav\\\",null,[[\\\"availableTransportTypes\\\",\\\"transportTypeMode\\\",\\\"max\\\"],[[23,[\\\"availableTransportTypes\\\"]],[23,[\\\"transportTypeMode\\\"]],[23,[\\\"max\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"hideTableForRerendering\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"price-list-content\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transportType\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"shouldDisplayCreateNewRouteButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"add-new-route\\\"],[11,\\\"class\\\",\\\"pull-right btn btn-primary\\\"],[9],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"route.addNewRoute\\\"],null],false],[0,\\\" \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showCreateRouteForm\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[23,[\\\"transportType\\\",\\\"label\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"price-list/routes-table\\\",null,[[\\\"routes\\\",\\\"transportType\\\",\\\"routeAddresses\\\",\\\"maxRowsInTable\\\"],[[23,[\\\"model\\\",\\\"routes\\\"]],[23,[\\\"transportType\\\"]],[23,[\\\"model\\\",\\\"routeAddresses\\\"]],[23,[\\\"max\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"route.noTransportTypeAvailable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/price-list/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/price-list/modals/rate-form/conditional-rates-panel/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    tagName: 'div',\n    class: 'row',\n    componentName: 'ltl-rate-panel',\n    store: Ember.inject.service(),\n    actions: {\n      addRate() {\n        const routeOffer = this.get('routeOffer');\n        this.get('routeOffer.conditionalRates').pushObject(this.store.createRecord('conditional-rate', {\n          routeOffer,\n          enabled: true,\n          type: 'RATE_PER_LOADING_METERS',\n          intervalStop: null,\n          rate: null\n        }));\n      },\n\n      deleteRate(rate) {\n        rate.set('enabled', false);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/price-list/modals/rate-form/conditional-rates-panel/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"RigUch6q\",\n    \"block\": \"{\\\"symbols\\\":[\\\"rate\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-heading\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"route.offer.conditionalRatesTitle\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body small-padding\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-hover table-striped\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"route.offer.conditionalRates.ldm\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"route.offer.price\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"rates\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,1,[\\\"errors\\\",\\\"intervalStop\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,1,[\\\"intervalStop\\\"]],[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,1,[]],\\\"intervalStop\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,1,[\\\"errors\\\",\\\"rate\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[22,1,[\\\"rate\\\"]],[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[22,1,[]],\\\"rate\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"disabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"fa fa-trash\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"deleteRate\\\",[22,1,[]]]],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"disabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-sm btn-primary\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addRate\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"has-error\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"routeOffer\\\"]],\\\"conditionalRates\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/price-list/modals/rate-form/conditional-rates-panel/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/price-list/modals/rate-form/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    actionProgressToast: Ember.inject.service('action-progress-service'),\n    intl: Ember.inject.service(),\n    isEditingAndLtl: Ember.computed('routeOffer.id', 'isLtl', function () {\n      return this.get('routeOffer.id') && this.get('isLtl');\n    }),\n    isLtl: Ember.computed('routeOffer.truckType.ltlPricingEnabled', function () {\n      return this.get('routeOffer.truckType.ltlPricingEnabled');\n    }),\n    rates: Ember.computed('routeOffer.conditionalRates.@each.enabled', function () {\n      return this.get('routeOffer.conditionalRates').filterBy('enabled').sortBy('intervalStop').sort((a, b) => {\n        // Przesunięcie nulli na koniec listy\n        if (a.intervalStop === null) return 1;\n        if (b.intervalStop === null) return -1;\n        return a.intervalStop - b.intervalStop;\n      });\n    }),\n    isExistingRouteOffer: Ember.computed('model.routeOffer', function () {\n      return this.get('routeOffer.dateCreated') !== undefined && this.get('creator') !== null;\n    }),\n    route: Ember.computed('model.route', function () {\n      return this.get('model.route');\n    }),\n    routeOffer: Ember.computed('model.routeOffer', function () {\n      return this.get('model.routeOffer');\n    }),\n    truckTypes: Ember.computed('model.truckTypes', function () {\n      return this.get('model.truckTypes');\n    }),\n    disabled: Ember.computed('model.disabled', function () {\n      return this.get('model.disabled');\n    }),\n\n    _save(routeOffer) {\n      const self = this;\n      const rates = routeOffer.conditionalRates || this.get('rates');\n      const routeOfferValidationFailed = !routeOffer.validate();\n      const ratesValidationFailed = rates && rates.toArray().some(rate => !rate.validate());\n\n      if (routeOfferValidationFailed || ratesValidationFailed) {\n        return;\n      }\n\n      routeOffer.save().then(savedRouteOffer => {\n        console.debug(`Zapisaliśmy stawkę ${savedRouteOffer.toJSON()}`);\n        this.actionProgressToast.showSuccessToast(this.get('intl').t('notificationToast.titles.success'));\n        savedRouteOffer.reload();\n        rates.filterBy('id', null).forEach(rate => rate.unloadRecord());\n        self.send('hideModal');\n      }).catch(response => {\n        self.actionProgressToast.showErrorToast(this.get('intl').t('notificationToast.titles.error'), response);\n        self.send('cancel');\n      });\n    },\n\n    actions: {\n      setContractorCompanyData(item) {\n        const self = this;\n        this.get('store').findRecord('company', item.id).then(company => {\n          self.get('routeOffer').set('company', company);\n        });\n      },\n\n      removeContractorCompany() {\n        this.get('routeOffer').set('company', null);\n      },\n\n      setValidityDateStart(dateValues) {\n        this.get('routeOffer').set('validityDateStart', dateValues[0]);\n      },\n\n      setValidityDateEnd(dateValues) {\n        this.get('routeOffer').set('validityDateEnd', dateValues[0]);\n      },\n\n      saveNewRate() {\n        this.set('routeOffer.creator', this.get('sessionAccount.currentUser'));\n        this.set('routeOffer.route', this.get('route'));\n\n        this._save(this.get('routeOffer'));\n      },\n\n      update() {\n        this._save(this.get('routeOffer'));\n      },\n\n      cancel() {\n        const routeOffer = this.get('routeOffer');\n        routeOffer.conditionalRates.filterBy('id', null).forEach(rate => {\n          rate.unloadRecord();\n        });\n        routeOffer.rollbackAttributes();\n        this.send('close');\n      },\n\n      close() {\n        this.set('errors', null);\n        this.send('hideModal');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/price-list/modals/rate-form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"7Yp/QC6z\",\n    \"block\": \"{\\\"symbols\\\":[\\\"result\\\",\\\"error\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"showCancelButton\\\"],[[27,\\\"t\\\",[\\\"route.addNewRate\\\"],null],false]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal section\\\"],[11,\\\"data-form-name\\\",\\\"rate-form\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,2,[\\\"message\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.carrier.label\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"route-offer-company\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"routeOffer\\\",\\\"errors\\\",\\\"company\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"company-auto-complete\\\",null,[[\\\"type\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"clearSelection\\\",\\\"disabled\\\"],[\\\"CARRIER\\\",[27,\\\"readonly\\\",[[23,[\\\"routeOffer\\\",\\\"company\\\",\\\"name\\\"]]],null],[27,\\\"t\\\",[\\\"transport.company.autoCompletePlaceholder\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setContractorCompanyData\\\"],null],\\\"removeContractorCompany\\\",[23,[\\\"disabled\\\"]]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,1,[\\\"shortName\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"address\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,1,[\\\"address\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"routeOffer\\\"]],\\\"company\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"route\\\",\\\"transportType\\\",\\\"isTruckTypeVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"trucks/truck-type-select\\\",null,[[\\\"transoprtType\\\",\\\"model\\\",\\\"truckTypes\\\",\\\"type\\\",\\\"ltlOnly\\\",\\\"disabled\\\"],[[23,[\\\"route\\\",\\\"transportType\\\"]],[23,[\\\"routeOffer\\\"]],[23,[\\\"truckTypes\\\"]],\\\"small\\\",[23,[\\\"isEditingAndLtl\\\"]],[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"isLtl\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"route.minPrice\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"route-offer-min-price\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"routeOffer\\\",\\\"errors\\\",\\\"minPrice\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"onChange\\\",\\\"disabled\\\"],[\\\"number\\\",\\\"form-control\\\",[23,[\\\"routeOffer\\\",\\\"minPrice\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"routeOffer\\\",\\\"minPrice\\\"]]],null]],null],[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"routeOffer\\\"]],\\\"minPrice\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"route.rate\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"route-offer-price\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"routeOffer\\\",\\\"errors\\\",\\\"price\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"min\\\",\\\"onChange\\\",\\\"disabled\\\"],[\\\"number\\\",\\\"form-control\\\",[23,[\\\"routeOffer\\\",\\\"price\\\"]],0,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"routeOffer\\\",\\\"price\\\"]]],null]],null],[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"routeOffer\\\"]],\\\"price\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.currency\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"route-offer-currency\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"route\\\",\\\"errors\\\",\\\"currency\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"disabled\\\",\\\"class\\\",\\\"value\\\"],[true,\\\"form-control\\\",[23,[\\\"route\\\",\\\"currency\\\",\\\"symbol\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"route\\\"]],\\\"currency\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"route.termOfValidity\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-inline col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"routeOffer\\\",\\\"errors\\\",\\\"validityDateStart\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input-group\\\"],[11,\\\"data-field-name\\\",\\\"route-offer-validity-date\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"formatType\\\",\\\"placeholder\\\",\\\"class\\\",\\\"onChange\\\",\\\"disabled\\\"],[[27,\\\"if\\\",[[23,[\\\"routeOffer\\\",\\\"validityDateStart\\\"]],[23,[\\\"routeOffer\\\",\\\"validityDateStart\\\"]],null],null],\\\"shortDate\\\",[27,\\\"t\\\",[\\\"common.from\\\"],null],\\\"form-control date-chooser\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setValidityDateStart\\\"],null],[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon\\\"],[9],[0,\\\"-\\\"],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"formatType\\\",\\\"placeholder\\\",\\\"class\\\",\\\"onChange\\\",\\\"disabled\\\"],[[27,\\\"if\\\",[[23,[\\\"routeOffer\\\",\\\"validityDateEnd\\\"]],[23,[\\\"routeOffer\\\",\\\"validityDateEnd\\\"]],null],null],\\\"shortDate\\\",[27,\\\"t\\\",[\\\"common.to\\\"],null],\\\"form-control date-chooser\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setValidityDateEnd\\\"],null],[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"routeOffer\\\"]],\\\"validityDateStart\\\"]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"routeOffer\\\"]],\\\"validityDateEnd\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isLtl\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"price-list/modals/rate-form/conditional-rates-panel\\\",null,[[\\\"routeOffer\\\",\\\"rates\\\",\\\"disabled\\\"],[[23,[\\\"routeOffer\\\"]],[23,[\\\"rates\\\"]],[23,[\\\"disabled\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"disabled\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"isExistingRouteOffer\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"save-package-button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.update\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"update\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"save-package-button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"saveNewRate\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"cancel-index-button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.close\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/price-list/modals/rate-form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/principal-contractors-group-type/model\", [\"exports\", \"ember-data\", \"ember-data/model\"], function (_exports, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = _model.default.extend({\n    principalCompany: belongsTo('company', {\n      async: true\n    }),\n    contractorsGroupType: belongsTo('contractorsGroupType', {\n      async: true\n    }),\n    visible: attr('boolean')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/principal-contractors-group-type/serializer\", [\"exports\", \"ember-data\", \"apollo/mixins/serializer-mixin\"], function (_exports, _emberData, _serializerMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, _serializerMixin.default, {\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    attrs: {\n      contractorsGroupType: {\n        serialize: 'records'\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/product-setting/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend({\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    company: _emberData.default.belongsTo('company', {\n      async: true\n    }),\n    // Ustawienia ogólne\n    translationKey: _emberData.default.attr('string'),\n    nameAutoCompletePlaceholder: Ember.computed('', function () {\n      return this.getTranslation('name.autoCompletePlaceholder');\n    }),\n\n    getTranslation(propertyName) {\n      const productSetting = this.get('sessionAccount').getProductSetting();\n\n      if (!productSetting) {\n        return this.get('intl').t(`product.INDEX.${propertyName}`);\n      }\n\n      const key = productSetting.get('translationKey');\n      return this.get('intl').t(`product.${key}.${propertyName}`);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/product/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend(_modelValidator.default, {\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    company: _emberData.default.belongsTo('company', {\n      async: false\n    }),\n    index: _emberData.default.attr('string'),\n    name: _emberData.default.attr('string'),\n    shortName: _emberData.default.attr('string'),\n    unit: _emberData.default.attr('string'),\n    enabled: _emberData.default.attr('boolean'),\n    lastUpdated: _emberData.default.attr('date'),\n    validations: {\n      index: {\n        presence: {\n          message: 'blank'\n        },\n        custom: {\n          validation: function (key, value) {\n            return !value || value.length <= 255;\n          },\n          message: 'tooLong'\n        }\n      },\n      name: {\n        presence: {\n          message: 'blank'\n        },\n        custom: {\n          validation: function (key, value) {\n            return !value || value.length <= 255;\n          },\n          message: 'tooLong'\n        }\n      },\n      shortName: {\n        presence: {\n          message: 'blank'\n        },\n        custom: {\n          validation: function (key, value) {\n            return !value || value.length <= 255;\n          },\n          message: 'tooLong'\n        }\n      },\n      unit: {\n        presence: {\n          message: 'blankSelect'\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/products/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_CREATE_PRODUCT'],\n\n    beforeModel(transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n\n    model() {\n      const principalCompany = this.store.peekRecord('company', localStorage.getItem('principalId'));\n      return this.get('store').createRecord('product', {\n        company: principalCompany\n      });\n    },\n\n    renderTemplate() {\n      this.render('products.edit');\n    },\n\n    setupController(controller, model) {\n      this.controllerFor('products.edit').setProperties({\n        model: model\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/products/edit/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    intl: service(),\n    indexController: Ember.inject.controller('products/index'),\n    units: Ember.computed('', function () {\n      return ['KG', 'LITERS', 'PIECES'];\n    }),\n    actions: {\n      save() {\n        if (!this.get('model').validate()) {\n          return;\n        }\n\n        const self = this;\n        this.get('model').set('enabled', true);\n        const isUpdating = !!this.get('model.id');\n        this.get('model').save().then(() => {\n          const messageKey = isUpdating ? 'product.updated' : 'product.saved';\n          const msg = self.get('intl').t(messageKey, {\n            index: this.get('model.index')\n          });\n          self.get('indexController').set('successMessage', msg);\n          self.transitionToRoute('products.index');\n        });\n      },\n\n      disable() {\n        const self = this;\n        this.get('model').set('enabled', false);\n        this.get('model').save().then(() => {\n          const msg = self.get('intl').t('product.disabled', {\n            index: this.get('model.index')\n          });\n          self.get('indexController').set('successMessage', msg);\n          self.transitionToRoute('products.index');\n        });\n      },\n\n      cancel() {\n        this.get('model').rollbackAttributes();\n        this.transitionToRoute('products.index');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/products/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_ACCESS_PRODUCT', 'ROLE_EDIT_PRODUCT', 'ROLE_DELETE_PRODUCT'],\n\n    beforeModel(transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n\n    model(params) {\n      return this.store.findRecord('product', params.id, {\n        reload: true\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/products/edit/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"hsey43K+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"unit\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-narrow product-form-container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h1\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"product.add\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal section\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-3 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"product.index\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-9 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"index\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"product-index\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"autofocus\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"index\\\"]],\\\"autofocus\\\"]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"index\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-3 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"product\\\",\\\"name\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-9 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"product-name\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"autofocus\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"name\\\"]],\\\"autofocus\\\"]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-3 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"product.shortName\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-9 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"shortName\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"product-short-name\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"autofocus\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"shortName\\\"]],\\\"autofocus\\\"]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"shortName\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-3 col-xs-12 control-label\\\"],[11,\\\"for\\\",\\\"unit-select\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"product.unit\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-9 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"unit\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"product-unit\\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"select\\\"],[11,\\\"name\\\",\\\"unit\\\"],[11,\\\"id\\\",\\\"unit-select\\\"],[11,\\\"class\\\",\\\"form-control\\\"],[12,\\\"onchange\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"unit\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"option\\\"],[11,\\\"value\\\",\\\"\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"unit.placeholder\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"units\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"option\\\"],[12,\\\"value\\\",[28,[[22,1,[]]]]],[12,\\\"selected\\\",[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"unit\\\"]],[22,1,[]]],null]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"unit.\\\",[22,1,[]]],null]],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"unit\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_EDIT_PRODUCT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.ok\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_DELETE_PRODUCT\\\"],null]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"product.disableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"disable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"ban\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.disable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/products/edit/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/products/index/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: service('session-account'),\n    queryParams: ['query', 'page', 'size'],\n    canEditProducts: Ember.computed('', function () {\n      return this.get('sessionAccount').hasAnyOfTheRoles(['ROLE_ACCESS_PRODUCT', 'ROLE_EDIT_PRODUCT', 'ROLE_DELETE_PRODUCT']);\n    }),\n    currentPage: Ember.computed('page', function () {\n      return this.get('page') || '1';\n    }),\n    actions: {\n      editProduct(product) {\n        this.transitionToRoute('products.edit', product.get('id'));\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/products/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"apollo/mixins/menu-mixin\"], function (_exports, _authenticatedRouteMixin, _menuMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _menuMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_PRODUCTS_TAB'],\n    queryParams: {\n      page: {\n        refreshModel: true\n      },\n      max: {\n        refreshModel: true\n      }\n    },\n\n    beforeModel(transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n\n    model(params) {\n      params.max = params.max || 25;\n      params.page = params.page || 1;\n      return this.store.query('product', params);\n    },\n\n    setupController(controller, model) {\n      this.get('controller').setProperties({\n        model: model,\n        totalPages: model.get('meta.totalPages')\n      });\n    },\n\n    activate() {\n      this.activateCurrentTab('PRODUCTS_TAB');\n    },\n\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          successMessage: null\n        });\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/products/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"eDkz0z5o\",\n    \"block\": \"{\\\"symbols\\\":[\\\"p\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"products\\\",\\\"table\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_PRODUCT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"products.create\\\"],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"product.add\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-striped\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"product.index\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"product\\\",\\\"name\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"product.shortName\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"product.unit\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.lastUpdated\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canEditProducts\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                     \\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"index\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"shortName\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"unit\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"unit.\\\",[22,1,[\\\"unit\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"responsive-hide-lvl3\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"lastUpdated\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canEditProducts\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-pencil-square clickable\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"editProduct\\\",[22,1,[]]]],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"pagination-buttons\\\",null,[[\\\"url\\\",\\\"page\\\",\\\"max\\\",\\\"totalPages\\\"],[\\\"products.index\\\",[23,[\\\"currentPage\\\"]],[23,[\\\"max\\\"]],[23,[\\\"totalPages\\\"]]]]],false],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/products/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/queue-status/index/controller\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    resourcesArray: Ember.computed('model.classificationResources.@each.state', function () {\n      const self = this;\n      const squares = self.get('sessionAccount.currentUser.accessibleSquares');\n      const resourcesArray = Ember.A();\n      squares.forEach(square => {\n        const queuesArray = Ember.A();\n        let numberOfClassificationResources = 0;\n        const resourceObject = Ember.Object.create({\n          square: square,\n          queuesArray: null\n        });\n        const queues = square.get('queues').filter(q => self.get('sessionAccount.currentUser.accessibleQueues').getEach('id').includes(q.get('id')));\n        queues.forEach(queue => {\n          const classificationResources = self.get('model.classificationResources').filter(cr => cr.get('queue.id') === queue.get('id') && cr.get('state') !== cr.get('STATE_NAMES.RESERVED'));\n          const queueObject = Ember.Object.create({\n            queue: queue,\n            classificationResources: classificationResources\n          });\n          numberOfClassificationResources += classificationResources.get('length');\n          queuesArray.pushObject(queueObject);\n        });\n        resourceObject.set('numberOfClassificationResources', numberOfClassificationResources);\n        resourceObject.set('queuesArray', queuesArray);\n        resourcesArray.pushObject(resourceObject);\n      });\n      return resourcesArray;\n    }),\n    shouldSeeSendSmsIcon: Ember.computed('', function () {\n      return this.get('sessionAccount').hasRole('ROLE_SEND_SMS_TO_ALL_DRIVERS_IN_QUEUE');\n    }),\n    actions: {\n      showSendSmsModal(queue) {\n        (0, _jquery.default)(`#${queue.get('id')}`).modal({\n          keyboard: false\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/queue-status/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"apollo/mixins/menu-mixin\"], function (_exports, _authenticatedRouteMixin, _menuMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _menuMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    poolingService: Ember.inject.service('classification-resource-pooling-service'),\n    access: ['ROLE_QUEUE_STATUS_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      return Ember.RSVP.hash({\n        classificationResources: this.store.findAll('classification-resource'),\n        squares: this.store.findAll('square'),\n        queues: this.store.findAll('queue')\n      });\n    },\n\n    setupController(controller, model) {\n      this._super(...arguments);\n\n      this.get('controller').setProperties({\n        model: model\n      });\n      this.get('poolingService').init(this.pollUpdatesInterval());\n    },\n\n    resetController() {\n      this._super(...arguments);\n\n      this.get('poolingService').cancel();\n    },\n\n    activate() {\n      this.activateCurrentTab('QUEUE_STATUS_TAB');\n    },\n\n    pollUpdatesInterval() {\n      const pollIntervalString = this.get('sessionAccount').getSettingValue('QUEUES_TAB_POLL_INTERVAL');\n      return pollIntervalString ? parseInt(pollIntervalString) : 10000;\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/queue-status/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"6Ckd/TNz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"resource\\\",\\\"queueObject\\\",\\\"classificationResource\\\"],\\\"statements\\\":[[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"queue-status-header\\\"],[9],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"queuesStatusTableHeader\\\"]]],false],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"queue-status\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"resourcesArray\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"square-col\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table square-name-table\\\"],[12,\\\"data-field-name\\\",[28,[[22,1,[\\\"square\\\",\\\"name\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[12,\\\"colspan\\\",[28,[[22,1,[\\\"queuesArray\\\",\\\"length\\\"]]]]],[11,\\\"class\\\",\\\"square-name\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"square\\\",\\\"name\\\"]],false],[0,\\\" (\\\"],[1,[22,1,[\\\"numberOfClassificationResources\\\"]],false],[0,\\\")\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,1,[\\\"queuesArray\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"td\\\"],[12,\\\"data-field-name\\\",[28,[[22,2,[\\\"queue\\\",\\\"nameInAppropriateLanguage\\\"]]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"queue-cell\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"queue-cell-name\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[22,2,[\\\"queue\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"shouldSeeSendSmsIcon\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-envelope clickable\\\"],[11,\\\"data-button-name\\\",\\\"show-modal\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"showSendSmsModal\\\",[22,2,[\\\"queue\\\"]]]],[10],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"queue-status/modals/send-sms\\\",null,[[\\\"queue\\\"],[[22,2,[\\\"queue\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table resources-table\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,2,[\\\"classificationResources\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"resource\\\"],[12,\\\"style\\\",[27,\\\"if\\\",[[22,3,[\\\"place\\\",\\\"id\\\"]],[22,3,[\\\"transport\\\",\\\"backgroundColorStyle\\\"]],\\\"\\\"],null]],[9],[0,\\\"\\\\n                                            \\\"],[1,[22,3,[\\\"carRegistrationNumber\\\"]],false],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"                                \\\"],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/queue-status/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/queue/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend(_modelValidator.default, {\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    languageService: Ember.inject.service('language-service'),\n    name: _emberData.default.attr('string'),\n    idx: _emberData.default.attr('string'),\n    englishName: _emberData.default.attr('string'),\n    shortName: _emberData.default.attr('string'),\n    square: _emberData.default.belongsTo('square', {\n      async: true\n    }),\n    places: _emberData.default.hasMany('place', {\n      async: true\n    }),\n    users: _emberData.default.hasMany('user', {\n      async: true\n    }),\n    enabled: _emberData.default.attr('boolean', {\n      defaultValue: true\n    }),\n    validations: {\n      name: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      idx: {\n        presence: {\n          message: 'blank'\n        }\n      }\n    },\n    nameInAppropriateLanguage: Ember.computed('name', 'englishName', function () {\n      const properLabel = this.get('languageService').findProperLanguageVersion('name', 'englishName');\n      return this.get(properLabel);\n    }).readOnly(),\n    enabledPlaces: Ember.computed('places.@each.enabled', function () {\n      return this.get('places').filterBy('enabled');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/queues/add-queue/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_CREATE_QUEUE'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const square = this.store.findRecord('square', params.square_id);\n      const queue = this.store.createRecord('queue', {});\n      return Ember.RSVP.hash({\n        square: square,\n        queue: queue\n      });\n    },\n    renderTemplate: function () {\n      this.render('queues.create');\n    },\n    setupController: function (controller, model) {\n      this._super.apply(this, arguments);\n\n      const queue = model.queue;\n      queue.setProperties({\n        square: model.square\n      });\n      this.controllerFor('queues.create').setProperties({\n        model: queue\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/queues/create/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    actions: {\n      save() {\n        const self = this;\n        this.get('model').validate();\n\n        if (this.get('model').get('errors.length')) {\n          return;\n        }\n\n        this.get('model').save().then(queue => {\n          console.debug(`Queue ${queue.get('name')} saved.`);\n          self.setProperties({\n            errors: []\n          });\n          const msg = self.get('intl').t('queues.updateSuccessMessage', {\n            queueName: this.get('model').get('name')\n          });\n          self.set('successMessage', msg);\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n\n      disable() {\n        const self = this;\n        const model = this.get('model');\n        const queueId = this.get('model.id');\n        const jsonBody = JSON.stringify(model);\n        const path = this.get('apolloApiService').APOLLO_API.QUEUES.DISABLE;\n        this.get('apolloApiService').callApolloApi(path, {\n          queueId\n        }, {\n          body: jsonBody\n        }).then(() => {\n          model.set('enabled', false);\n          model.get('places').forEach(place => place.set('enabled', false));\n          self.transitionToRoute('squares.edit', self.get('model.square'));\n        });\n      },\n\n      enable() {\n        const self = this;\n        const model = this.get('model');\n        const queueId = this.get('model.id');\n        const jsonBody = JSON.stringify(model);\n        const path = this.get('apolloApiService').APOLLO_API.QUEUES.ENABLE; // TODO Skorzystać z ember-data\n\n        this.get('apolloApiService').callApolloApi(path, {\n          queueId\n        }, {\n          body: jsonBody\n        }).then(() => {\n          model.set('enabled', true);\n          model.get('places').forEach(place => place.set('enabled', true));\n          self.transitionToRoute('squares.edit', self.get('model.square'));\n        });\n      },\n\n      cancel() {\n        const square = this.get('model.square');\n        this.get('model').rollbackAttributes();\n        this.transitionToRoute('squares.edit', square);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/queues/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      return this.store.createRecord('queue');\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/queues/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"TPqOr0Ql\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-narrow\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"queueLabel\\\"]]],false],[0,\\\": \\\"],[1,[23,[\\\"model\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.name\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"queue-name\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"shortName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.shortName\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"queue-short-name\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"shortName\\\"]]]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"shortName\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"englishName\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"queue-english-name\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"queues.englishName\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"englishName\\\"]]]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"englishName\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"idx\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"queue-idx\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"queues.idx\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\"],[\\\"number\\\",\\\"form-control\\\",[23,[\\\"model\\\",\\\"idx\\\"]]]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"idx\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 form-buttons\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"queues.disableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"disable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"ban\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.disable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"ramp.enableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"enable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"check\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.enable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"queue-cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"success\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"settings.backToSettings\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"ok\\\"],[[\\\"on\\\",\\\"target\\\"],[\\\"submit\\\",[23,[\\\"view\\\"]]]]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/queues/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/queues/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_EDIT_QUEUE'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      return this.store.findRecord('queue', params.id, {\n        reload: true\n      });\n    },\n    renderTemplate: function () {\n      this.render('queues.create');\n    },\n    setupController: function (controller, model) {\n      this.controllerFor('queues.create').setProperties({\n        model: model\n      });\n    },\n    actions: {\n      willTransition: function () {\n        this.get('controller').setProperties({\n          success: false,\n          errors: []\n        });\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/queues/index/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n\n    createDummyClassificationResource() {\n      return Ember.Object.create({\n        transport: null\n      });\n    },\n\n    sortProperties: ['stateIdx:asc', 'lastUpdated:asc'],\n    sortedClassificationResources: Ember.computed.sort('model.classificationResources', 'sortProperties'),\n    enabledSquares: Ember.computed('model.squares.@each.enabled', function () {\n      return this.get('model.squares').filterBy('enabled');\n    }),\n    queuesArray: Ember.computed('selectedSquare', 'model.classificationResources.@each.state', function () {\n      const self = this;\n      const queuesArray = Ember.A();\n\n      if (!self.get('selectedSquare.queues')) {\n        return;\n      }\n\n      const queues = self.get('selectedSquare.queues').filter(q => self.get('sessionAccount.currentUser.accessibleQueues').getEach('id').includes(q.get('id')));\n      queues.forEach(queue => {\n        let classificationResources = this.get('sortedClassificationResources').filter(cr => cr.get('queue.id') === queue.get('id'));\n        classificationResources.pushObject(self.createDummyClassificationResource());\n        this.setAdditionalProperties(classificationResources);\n        const obj = Ember.Object.create({\n          queue: queue,\n          classificationResources: classificationResources\n        });\n        queuesArray.pushObject(obj);\n      });\n      return queuesArray;\n    }),\n\n    setAdditionalProperties(classificationResources) {\n      classificationResources.forEach((cr, index) => {\n        cr.set('ordinalNumber', `${++index}.`);\n        cr.set('active', false);\n      });\n      let firstWithoutPlace = classificationResources.find(cr => {\n        return cr.get('place.id') === undefined;\n      });\n\n      if (firstWithoutPlace) {\n        firstWithoutPlace.set('active', true);\n      }\n    },\n\n    actions: {\n      setSelectedSquare(square) {\n        this.set('selectedSquare', square);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/queues/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"apollo/mixins/menu-mixin\"], function (_exports, _authenticatedRouteMixin, _menuMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _menuMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    poolingService: Ember.inject.service('classification-resource-pooling-service'),\n    access: ['ROLE_QUEUES_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      return Ember.RSVP.hash({\n        classificationResources: this.store.findAll('classification-resource'),\n        squares: this.store.findAll('square'),\n        queues: this.store.findAll('queue')\n      });\n    },\n\n    setupController(controller, model) {\n      this._super(...arguments);\n\n      this.get('controller').setProperties({\n        model: model,\n        selectedSquare: model.squares.get('firstObject')\n      });\n      this.get('poolingService').init(this.pollUpdatesInterval());\n    },\n\n    resetController() {\n      this._super(...arguments);\n\n      this.get('poolingService').cancel();\n    },\n\n    activate() {\n      this.activateCurrentTab('QUEUES_TAB');\n    },\n\n    pollUpdatesInterval() {\n      const pollIntervalString = this.get('sessionAccount').getSettingValue('QUEUES_TAB_POLL_INTERVAL');\n      return pollIntervalString ? parseInt(pollIntervalString) : 10000;\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/queues/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"+rtWRv0E\",\n    \"block\": \"{\\\"symbols\\\":[\\\"queueObject\\\",\\\"resource\\\",\\\"square\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"queues-tab\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"enabledSquares\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"squares\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"enabledSquares\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-square \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"selectedSquare\\\",\\\"id\\\"]],[22,3,[\\\"id\\\"]]],null],\\\"active\\\"],null]]]],[12,\\\"data-button-name\\\",[28,[[22,3,[\\\"name\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[22,3,[\\\"name\\\"]],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"setSelectedSquare\\\",[22,3,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"queues\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"queuesArray\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"queue-object\\\"],[12,\\\"data-field-name\\\",[28,[[22,1,[\\\"queue\\\",\\\"nameInAppropriateLanguage\\\"]]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"queue-name\\\"],[12,\\\"data-queue-id\\\",[28,[[22,1,[\\\"queue\\\",\\\"id\\\"]]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"queue\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[22,1,[\\\"classificationResources\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"classification-resource/place-assignment\\\",null,[[\\\"queue\\\",\\\"resource\\\"],[[22,1,[\\\"queue\\\"]],[22,2,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/queues/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/ramp/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\", \"ember-data/model\"], function (_exports, _emberData, _modelValidator, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const attr = _emberData.default.attr;\n  const hasMany = _emberData.default.hasMany;\n  const belongsTo = _emberData.default.belongsTo;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    sessionAccount: service('session-account'),\n    windows: hasMany('timeWindow', {\n      async: true\n    }),\n    warehouse: belongsTo('warehouse', {\n      async: true\n    }),\n    usersWithAccess: hasMany('user', {\n      async: true\n    }),\n    users: hasMany('user', {\n      async: true\n    }),\n    contactPerson: belongsTo('user', {\n      async: true\n    }),\n    warehouseZone: belongsTo('warehouseZone', {\n      async: true\n    }),\n    maxPallet: belongsTo('maxPallet', {\n      async: true\n    }),\n    name: attr('string'),\n    shortName: attr('string'),\n    idx: attr('number'),\n    contactPhoneNumber: attr('string'),\n    enabled: attr('boolean'),\n    deleteDedicatedWindows: attr('boolean'),\n    additionalSmsNotificationInfoPl: attr('string'),\n    additionalSmsNotificationInfoEn: attr('string'),\n    defaultRoleGroups: attr(),\n    validations: {\n      name: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      warehouseZone: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      shortName: {\n        presence: {\n          message: 'blank'\n        },\n        custom: {\n          validation: function (key, value) {\n            return !value || value.length <= 10;\n          },\n          message: 'sizeTooBig'\n        }\n      },\n      idx: {\n        numericality: {\n          greaterThanOrEqualTo: 0,\n          onlyInteger: true,\n          message: 'nonPositiveInteger'\n        },\n        custom: {\n          validation: function (key, value, model) {\n            return parseInt(value) < model.get('warehouse').get('ramps.length');\n          },\n          message: 'idxTooBig'\n        }\n      },\n      maxPallet: {\n        custom: {\n          validation: function (key, value, model) {\n            if (!model.get('hasAccessToMaxPallet')) {\n              return true;\n            }\n\n            return !!model.get('maxPallet.quantity') || model.get('maxPallet.quantity').toString().match(/^[0-9]+$/);\n          },\n          message: 'positiveNumber'\n        }\n      }\n    },\n    orderInWarehouse: function () {\n      return this.get('idx') + 1;\n    }.property('idx'),\n    setIdx: function () {\n      if (this.get('isDeleted')) {\n        return;\n      }\n\n      const orderInWarehouse = this.get('orderInWarehouse');\n      this.set('idx', parseInt(orderInWarehouse) - 1);\n    }.observes('orderInWarehouse'),\n    hasAccessToMaxPallet: Ember.computed('', function () {\n      return this.get('sessionAccount').getSettingValue('HAS_ACCESS_TO_MAX_PALLET_PER_RAMP') === 'true';\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/ramp/serializer\", [\"exports\", \"ember-data\", \"apollo/mixins/serializer-mixin\"], function (_exports, _emberData, _serializerMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, _serializerMixin.default, {\n    attrs: {\n      maxPallet: {\n        embedded: 'save'\n      }\n    },\n    serializeBelongsTo: function (record, json, relationship) {\n      const key = relationship.key;\n      const embeddedRecord = record.belongsTo(key);\n\n      if (embeddedRecord && this.attrs[key] && this.attrs[key].embedded === \"save\") {\n        const data = embeddedRecord.attributes();\n        data.id = embeddedRecord.id;\n\n        if (relationship.options.deepEmbedded) {\n          relationship.options.deepEmbedded.forEach(function (deepKey) {\n            if (embeddedRecord.belongsTo(deepKey)) {\n              data[deepKey] = {\n                id: embeddedRecord.belongsTo(deepKey).id\n              };\n            }\n          });\n        }\n\n        json[key] = data;\n      } else {\n        this._super(record, json, relationship);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/ramps/create/controller\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: service('session-account'),\n    intl: service(),\n    warehousesCreateController: Ember.inject.controller('warehouses/create'),\n    showDeleteDedicatedWindowsCheckbox: Ember.computed(function () {\n      return this.get('sessionAccount').getSettingValue('AUTOMATIC_DELETING_UNUSED_DEDICATED_WINDOWS_ENABLED') === 'true' || this.get('sessionAccount').getSettingValue('AUTOMATIC_DELETING_USED_DEDICATED_WINDOWS_ENABLED') === 'true';\n    }),\n    defaultRoleGroups: Ember.computed(function () {\n      return this.get('model.roleGroups') ? this.get('model.roleGroups').getEach('id') : Ember.A([]);\n    }),\n    actions: {\n      save() {\n        const self = this;\n        this.get('model').validate();\n        const defaultRoleGroups = this.get('defaultRoleGroups');\n\n        if (this.get('model').get('errors.length')) {\n          return;\n        }\n\n        this.get('model').set('defaultRoleGroups', defaultRoleGroups);\n        this.get('model').save().then(function (m) {\n          m.get('warehouse').then(w => {\n            w.reload();\n            self.get('sessionAccount').get('currentUser').reload();\n            self.get('sessionAccount').get('currentUser').get('ramps').reload();\n            self.setProperties({\n              errors: [],\n              success: true\n            });\n            self.transitionToRoute('ramps.edit', m.id);\n          });\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n\n      disable() {\n        const self = this;\n        const model = this.get('model');\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        Ember.$.ajax({\n          url: _environment.default.serverURL + '/ramps/' + model.get('id') + '/disable',\n          type: 'PUT',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(() => {\n          const warehouse = model.get('warehouse');\n          model.set('enabled', false);\n          warehouse.then(w => {\n            w.reload();\n            self.get('sessionAccount').get('currentUser').reload();\n            self.get('sessionAccount').get('currentUser').get('ramps').reload();\n            const msg = self.get('intl').t('ramp.disabledMessage', {\n              rampName: model.get('name')\n            });\n            self.get('warehousesCreateController').set('successMessage', msg);\n            model.unloadRecord();\n            this.transitionToRoute('warehouses.edit', warehouse);\n          });\n        }, function (response) {\n          self.set('errors', response.errors);\n        });\n      },\n\n      enable() {\n        const self = this;\n        const model = this.get('model');\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        Ember.$.ajax({\n          url: _environment.default.serverURL + '/ramps/' + model.get('id') + '/enable',\n          type: 'PUT',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(() => {\n          const warehouse = model.get('warehouse');\n          model.set('enabled', true);\n          warehouse.then(w => {\n            w.reload();\n            self.get('sessionAccount').get('currentUser').reload();\n            self.get('sessionAccount').get('currentUser').get('ramps').reload();\n            const msg = self.get('intl').t('ramp.enabledMessage', {\n              rampName: model.get('name')\n            });\n            self.get('warehousesCreateController').set('successMessage', msg);\n            this.transitionToRoute('warehouses.edit', warehouse);\n          });\n        }, function (response) {\n          self.set('errors', response.errors);\n        });\n      },\n\n      cancel() {\n        const warehouse = this.get('model').get('warehouse');\n        this.get('model').rollbackAttributes();\n        this.transitionToRoute('warehouses.edit', warehouse);\n      },\n\n      setDefaultRoleGroups(roleGroup) {\n        const defaultRoleGroups = this.get('defaultRoleGroups');\n        const newRoleGroup = roleGroup.get('id');\n\n        if (defaultRoleGroups.includes(newRoleGroup)) {\n          // odznaczenie checkbox'a\n          const newDefaultRoleGroups = [...defaultRoleGroups].filter(defaultRoleGroupId => defaultRoleGroupId !== newRoleGroup);\n          this.set('defaultRoleGroups', newDefaultRoleGroups);\n          return;\n        }\n\n        const newDefaultRoleGroups = [...new Set([...defaultRoleGroups, newRoleGroup])];\n        this.set('defaultRoleGroups', newDefaultRoleGroups);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/ramps/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    model: function () {\n      return this.store.createRecord(\"ramp\", {\n        enabled: true\n      });\n    },\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          success: null,\n          errors: null\n        });\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/ramps/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"x0A7d6Fc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"rg\\\",\\\"error\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-narrow\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"ramp.label\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"model\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"success\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-success alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"ramp.updateSuccessMessage\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,2,[]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.label\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"warehouse-name\\\"],[11,\\\"class\\\",\\\"col-sm-8 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"model\\\",\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"warehouseZone.label\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"warehouse-zone-name\\\"],[11,\\\"class\\\",\\\"col-sm-8 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"model\\\",\\\"warehouseZone\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.name\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"ramp-name\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"shortName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.shortName\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"ramp-short-name\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"shortName\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"shortName\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"ramp.additionalSmsNotificationInfoPl\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"additional-sms-notification-info-pl\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"additionalSmsNotificationInfoPl\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"ramp.additionalSmsNotificationInfoEn\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"additional-sms-notification-info-en\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"additionalSmsNotificationInfoEn\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"idx\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"ramp.idx\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"ramp-idx\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"min\\\",\\\"max\\\",\\\"class\\\",\\\"value\\\"],[\\\"number\\\",1,[23,[\\\"model\\\",\\\"warehouse\\\",\\\"enabledRamps\\\",\\\"length\\\"]],\\\"form-control\\\",[23,[\\\"model\\\",\\\"orderInWarehouse\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"orderInWarehouse\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showDeleteDedicatedWindowsCheckbox\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"deleteDedicatedWindows\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"ramp.deleteDedicatedWindows\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"delete-unused-dedicated-windows\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"deleteDedicatedWindows\\\"]]]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"deleteDedicatedWindows\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"maxPallet\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"maxPallet\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"ramp.maxPallets\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"max-pallet\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"min\\\",\\\"class\\\",\\\"value\\\"],[\\\"number\\\",0,\\\"form-control\\\",[23,[\\\"model\\\",\\\"maxPallet\\\",\\\"quantity\\\"]]]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"maxPallet\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-3 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"ramp.roleGroupsLabel\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-3 form-control-static\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"roleGroups\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"no-wrap\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"label\\\"],[12,\\\"for\\\",[28,[[27,\\\"concat\\\",[\\\"role-group-\\\",[22,1,[\\\"id\\\"]]],null]]]],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"input\\\"],[12,\\\"data-field-name\\\",[28,[\\\"default-role-group-\\\",[22,1,[\\\"name\\\"]]]]],[12,\\\"id\\\",[28,[[27,\\\"concat\\\",[\\\"role-group-\\\",[23,[\\\"roleGroup\\\",\\\"id\\\"]]],null]]]],[11,\\\"checked\\\",\\\"checked\\\"],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"setDefaultRoleGroups\\\",[22,1,[]]],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n                                    \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 form-buttons\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"ramp.disableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"disable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"ban\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.disable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"ramp.enableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"enable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"check\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.enable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"back-to-warehouse\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"success\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"ramp.backToWarehouse\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"ok\\\"],[[\\\"on\\\",\\\"target\\\"],[\\\"submit\\\",[23,[\\\"view\\\"]]]]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/ramps/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/ramps/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_EDIT_RAMP'],\n    model: function (params, transition) {\n      const currentUser = this.get('sessionAccount').get('currentUser');\n      const hasAnyOfTheRoles = this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'));\n\n      if (hasAnyOfTheRoles) {\n        return this.store.findRecord('ramp', params.id, {\n          reload: true\n        });\n      } else {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    renderTemplate: function () {\n      this.render('ramps.create');\n    },\n    setupController: function (controller, model) {\n      this.controllerFor('ramps.create').setProperties({\n        model: model\n      });\n    },\n    actions: {\n      willTransition: function () {\n        this.controllerFor('ramps.create').setProperties({\n          success: false,\n          errors: []\n        });\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/reset-password/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    session: service('session'),\n    sessionAccount: service('session-account'),\n    intl: Ember.inject.service(),\n    errors: [],\n    actions: {\n      resetPassword() {\n        const self = this;\n        let user = self.get('sessionAccount').get('currentUser');\n        const passwords = self.getProperties('password', 'confirmedPassword');\n\n        if (passwords.password) {\n          passwords.password = passwords.password.trim();\n        }\n\n        if (passwords.password !== passwords.confirmedPassword || passwords.password == null || passwords.confirmedPassword == null) {\n          const message = self.get('intl').t('resetPasswordWindow.enteredPasswordsIsNotIdentical');\n          this.set('errorMessage', message);\n          return;\n        }\n\n        user.set('password', passwords.password);\n        user.save().then(function () {\n          self.get('sessionAccount').set('passwordExpired', false);\n          self.transitionToRoute('defaultTransports');\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n\n      invalidateSession() {\n        this.get('session').invalidate();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/reset-password/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: service('session-account'),\n    beforeModel: function () {\n      this.get('sessionAccount').set('passwordExpired', true);\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/reset-password/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"RRHtWFas\",\n    \"block\": \"{\\\"symbols\\\":[\\\"error\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"centered-section\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"resetPasswordWindow.header\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"resetPasswordWindow.info\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"padding-top\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"small\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"resetPasswordWindow.info2\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"p\\\"],[9],[1,[22,1,[]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"errorMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[21,\\\"errorMessage\\\"],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"message\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-info\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[21,\\\"message\\\"],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"centered\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[11,\\\"data-field-name\\\",\\\"reset-password\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"identification\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"auth.password\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\"],[[23,[\\\"password\\\"]],[27,\\\"t\\\",[\\\"auth.passwordPlaceholder\\\"],null],\\\"form-control password\\\",\\\"password\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[11,\\\"data-field-name\\\",\\\"confirmed-reset-password\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"password\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"auth.confirmPassword\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"type\\\"],[[23,[\\\"confirmedPassword\\\"]],[27,\\\"t\\\",[\\\"auth.passwordPlaceholder\\\"],null],\\\"form-control password\\\",\\\"password\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row login-nav\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"role\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"auth.logout\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"invalidateSession\\\"]],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"resetPassword\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/reset-password/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/role-group-authority/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend(_modelValidator.default, {\n    roleGroup: _emberData.default.belongsTo('roleGroup', {\n      async: true\n    }),\n    authority: _emberData.default.belongsTo('authority'),\n    validations: {\n      authority: {\n        presence: {\n          message: 'blankSelect'\n        }\n      }\n    },\n    idx: Ember.computed('authority.idx', function () {\n      return this.get('authority.idx');\n    }),\n    group: Ember.computed('authority.group', function () {\n      return this.get('authority.group');\n    }),\n    name: Ember.computed('authority.name', function () {\n      return this.get('authority.name');\n    }),\n    description: Ember.computed('authority.description', function () {\n      return this.get('authority.description');\n    }),\n    canBeManaged: Ember.computed('authority.canBeManaged', function () {\n      return this.get('authority.canBeManaged');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/role-group-invitation-restriction/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend({\n    invitingRoleGroup: _emberData.default.belongsTo('roleGroup', {\n      async: true\n    }),\n    invitedRoleGroup: _emberData.default.belongsTo('roleGroup', {\n      async: true\n    }),\n    lastUpdate: _emberData.default.attr(),\n    dateCreated: _emberData.default.attr()\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/role-group-statistics-report/model\", [\"exports\", \"ember-data\", \"ember-data/model\"], function (_exports, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo\n  } = _emberData.default;\n\n  var _default = _model.default.extend({\n    roleGroup: belongsTo('roleGroup', {\n      async: true\n    }),\n    report: belongsTo('statisticsReport', {\n      async: true\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/role-group/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    belongsTo,\n    hasMany\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    languageService: Ember.inject.service('language-service'),\n    principalCompany: belongsTo('company', {\n      async: true\n    }),\n    notifications: hasMany('notification', {\n      async: true\n    }),\n    transportTypes: hasMany('transportTypes', {\n      async: true\n    }),\n    authorities: hasMany('authority', {\n      async: true\n    }),\n    name: attr('string'),\n    canCreateTransportOfType: attr('boolean'),\n    canSeeTransportOfType: attr('boolean'),\n    namePl: attr('string'),\n    nameEn: attr('string'),\n    isGuard: attr('boolean'),\n    usedForDeliveries: attr('boolean'),\n    usedForMarcos: attr('boolean'),\n    partnershipType: belongsTo('partnership-type'),\n    canBeInvited: attr('boolean'),\n    ownCompanyInvitation: attr('boolean'),\n    roleGroupToCopyFrom: belongsTo('roleGroup'),\n    validations: {\n      namePl: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      nameEn: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      roleGroupToCopyFrom: {\n        custom: [{\n          validation(key, model, value) {\n            if (model.get('id')) {\n              return true;\n            }\n\n            return value && value.get('id');\n          },\n\n          message: 'blankSelect'\n        }]\n      }\n    },\n    nameInAppropriateLanguage: Ember.computed('namePl', 'nameEn', function () {\n      const propertyName = this.get('languageService').findProperLanguageVersion('namePl', 'nameEn');\n      return this.get(propertyName);\n    }).readOnly(),\n    numericId: Ember.computed('id', function () {\n      return Number(this.get('id'));\n    }).readOnly(),\n    authoritiesIds: Ember.computed('authorities.[]', function () {\n      return this.hasMany('authorities').ids();\n    }),\n    announcementAttributeName: Ember.computed('name', function () {\n      return `announcement-role-group-${this.get('name')}`;\n    }),\n    announcementLabel: Ember.computed('nameInAppropriateLanguage', function () {\n      return this.get('nameInAppropriateLanguage');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/role-groups/create/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    settingsIndexController: Ember.inject.controller('settings/index'),\n    ADDITIONAL_FLAGS_OPTIONS: Ember.computed(function () {\n      return [this.get('intl').t('common.yes'), this.get('intl').t('common.no')];\n    }).readOnly('true'),\n    getIsGuardValue: Ember.computed('model.roleGroup.isGuard', function () {\n      return this._getFlagValue('isGuard');\n    }),\n    getUsedForDeliveriesValue: Ember.computed('model.roleGroup.usedForDeliveries', function () {\n      return this._getFlagValue('usedForDeliveries');\n    }),\n\n    _getFlagValue(propertyName) {\n      const value = this.get(`model.roleGroup.${propertyName}`);\n\n      if (value !== undefined) {\n        return value ? this.get('intl').t('common.yes') : this.get('intl').t('common.no');\n      }\n\n      return this.get('intl').t('common.no');\n    },\n\n    _setFlagValue(propertyName, flagValue) {\n      if (flagValue === this.get('intl').t('common.yes')) {\n        this.set(`model.roleGroup.${propertyName}`, true);\n      } else {\n        this.set(`model.roleGroup.${propertyName}`, false);\n      }\n    },\n\n    actions: {\n      save: function () {\n        const self = this;\n        const roleGroup = this.get('model.roleGroup');\n\n        if (!roleGroup.validate()) {\n          console.log('Nowa rola nie przeszła walidacji..');\n          return;\n        }\n\n        roleGroup.save().then(roleGroup => {\n          self.setProperties({\n            errors: []\n          });\n          const msg = self.get('intl').t('settings.roleGroups.successCreate');\n          self.get('settingsIndexController').set('successMessage', msg);\n          self.transitionToRoute('settings.index');\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n      cancel: function () {\n        this.get('model.roleGroup').unloadRecord();\n        this.transitionToRoute('settings.index');\n      },\n      setIsGuardFlag: function (flagValue) {\n        this._setFlagValue('isGuard', flagValue);\n      },\n      setUsedForDeliveriesFlag: function (flagValue) {\n        this._setFlagValue('usedForDeliveries', flagValue);\n      },\n      setUsedForMarcosFlag: function (flagValue) {\n        this._setFlagValue('usedForMarcos', flagValue);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/role-groups/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_CREATE_ROLE_GROUP'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      const principalCompanyId = localStorage.getItem('principalId');\n      const principalCompany = this.store.peekRecord('company', principalCompanyId);\n      const isSuperAdmin = this.get('sessionAccount').get('currentUser.roleGroup.name') === 'SUPER_USER';\n      const roleGroup = this.store.createRecord('roleGroup', {\n        principalCompany: principalCompany\n      });\n      let roleGroupsToCopyFrom = this.store.peekAll('roleGroup').filterBy('principalCompany.id', principalCompanyId).filter(roleGroup => roleGroup.get('name') !== 'E-MAIL_ADVICE');\n\n      if (!isSuperAdmin) {\n        roleGroupsToCopyFrom = roleGroupsToCopyFrom.filter(roleGroup => roleGroup.get('name') !== 'SUPER_USER');\n      }\n\n      const partnershipTypes = this.store.peekAll('partnershipType');\n      return Ember.RSVP.hash({\n        roleGroup: roleGroup,\n        roleGroupsToCopyFrom: roleGroupsToCopyFrom,\n        partnershipTypes: partnershipTypes\n      });\n    },\n    actions: {\n      willTransition: function () {\n        const controllerRoleGroupModel = this.controller.get('model.roleGroup');\n        this.controllerFor('role-groups.create').setProperties({\n          errors: []\n        });\n\n        if (controllerRoleGroupModel) {\n          controllerRoleGroupModel.unloadRecord();\n        }\n\n        console.log('Użytkownik cofnął stronę, anulujemy process tworzenia nowej roli...');\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/role-groups/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ujK7LOui\",\n    \"block\": \"{\\\"symbols\\\":[\\\"usedForMarcosFlag\\\",\\\"usedForDeliveriesFlag\\\",\\\"isGuardFlag\\\",\\\"pt\\\",\\\"rgtcf\\\",\\\"error\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,6,[]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"roleGroup\\\",\\\"errors\\\",\\\"namePl\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-6 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.create.namePl\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-6\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"roleGroup\\\",\\\"namePl\\\"]]]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"roleGroup\\\"]],\\\"namePl\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"roleGroup\\\",\\\"errors\\\",\\\"nameEn\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-6 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.create.nameEn\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-6\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"roleGroup\\\",\\\"nameEn\\\"]]]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"roleGroup\\\"]],\\\"nameEn\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"roleGroup\\\",\\\"errors\\\",\\\"roleGroupToCopyFrom\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-6 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.create.copyFrom\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-6\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"roleGroup\\\",\\\"roleGroupToCopyFrom\\\"]],[23,[\\\"model\\\",\\\"roleGroupsToCopyFrom\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"roleGroup\\\",\\\"roleGroupToCopyFrom\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,5,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"roleGroup\\\"]],\\\"roleGroupToCopyFrom\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"roleGroup\\\",\\\"errors\\\",\\\"partnershipType\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-6 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.create.partnershipType\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-6\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"allowClear\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"roleGroup\\\",\\\"partnershipType\\\"]],[23,[\\\"model\\\",\\\"partnershipTypes\\\"]],false,true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"roleGroup\\\",\\\"partnershipType\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"company.type.\\\",[22,4,[\\\"translationLabel\\\"]]],null]],[[\\\"default\\\"],[[27,\\\"concat\\\",[\\\"company.type.\\\",[22,4,[\\\"name\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"model\\\",\\\"roleGroup\\\",\\\"partnershipType\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.create.noPartnershipInfo\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"roleGroup\\\"]],\\\"partnershipType\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_GUARD_ROLE_GROUP\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"roleGroup\\\",\\\"errors\\\",\\\"isGuard\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-6 control-label\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.create.isGuard\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-6\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"allowClear\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"getIsGuardValue\\\"]],[23,[\\\"ADDITIONAL_FLAGS_OPTIONS\\\"]],false,false,[27,\\\"action\\\",[[22,0,[]],\\\"setIsGuardFlag\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[22,3,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.create.isGuardInfo\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"roleGroup\\\"]],\\\"isGuard\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_USED_FOR_DELIVERIRES_ROLE_GROUP\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"roleGroup\\\",\\\"errors\\\",\\\"usedForDeliveries\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-6 control-label\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.create.usedForDeliveries\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-6\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"allowClear\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"getUsedForDeliveriesValue\\\"]],[23,[\\\"ADDITIONAL_FLAGS_OPTIONS\\\"]],false,false,[27,\\\"action\\\",[[22,0,[]],\\\"setUsedForDeliveriesFlag\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[22,2,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.create.usedForDeliveriesInfo\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"roleGroup\\\"]],\\\"usedForDeliveries\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"roleGroup\\\",\\\"errors\\\",\\\"usedForMarcos\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-6 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.create.usedForMarcos\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-6\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"allowClear\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"getUsedForMarcosValue\\\"]],[23,[\\\"ADDITIONAL_FLAGS_OPTIONS\\\"]],false,false,[27,\\\"action\\\",[[22,0,[]],\\\"setUsedForMarcosFlag\\\"],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[21,\\\"usedForDeliveriesFlag\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"help-block\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.create.usedForMarcosInfo\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"roleGroup\\\"]],\\\"usedForMarcos\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 form-buttons\\\"],[9],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"ok\\\"],[[\\\"on\\\",\\\"target\\\"],[\\\"submit\\\",[23,[\\\"view\\\"]]]]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-5\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.create.info\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/role-groups/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/role/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend({\n    name: _emberData.default.attr('string')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/route-address/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model,\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = Model.extend(_modelValidator.default, {\n    address: belongsTo('address', {\n      async: false\n    }),\n    company: belongsTo('company', {\n      async: true\n    }),\n    route: belongsTo('route', {\n      async: true\n    }),\n    warehouse: belongsTo('warehouse', {\n      async: true\n    }),\n    enabled: attr('boolean'),\n    stepType: attr('string'),\n    idx: attr('number'),\n    stepTypeIdx: attr('number'),\n    dateCreated: _emberData.default.attr('date'),\n    displayIdx: Ember.computed('stepTypeIdx', function () {\n      return this.get('stepTypeIdx') + 1;\n    }),\n    validations: {\n      address: {\n        custom: [{\n          validation: function (key, value) {\n            return value && value.get('id');\n          },\n          message: 'blankSelect'\n        }]\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/route-custom-field/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model,\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = Model.extend(_modelValidator.default, {\n    definition: belongsTo('customFieldDefinition', {\n      async: true\n    }),\n    option: belongsTo('customFieldOption', {\n      async: true\n    }),\n    route: belongsTo('route', {\n      async: true\n    }),\n    value: attr('string'),\n    editionDisabled: Ember.computed('route.id', function () {\n      return !this.get('route.transportType.content').findPositiveAuthorityRestrictionsByActionNameAndCustomFieldDefinition('UPDATE_CUSTOM_FIELD', this.get('definition.id')).length > 0;\n    }),\n    validations: {\n      option: {\n        custom: [{\n          validation: function (key, value) {\n            return value && value.get('id');\n          },\n          message: 'blankSelect'\n        }]\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/route-offer/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model,\n    attr,\n    belongsTo,\n    hasMany\n  } = _emberData.default;\n\n  var _default = Model.extend(_modelValidator.default, {\n    company: belongsTo('company', {\n      async: true,\n      inverse: null\n    }),\n    confirmator: belongsTo('user', {\n      async: true\n    }),\n    creator: belongsTo('user', {\n      async: true\n    }),\n    route: belongsTo('route', {\n      async: true\n    }),\n    truckType: belongsTo('truck-type', {\n      async: true\n    }),\n    conditionalRates: hasMany('conditionalRate', {\n      async: false\n    }),\n    enabled: attr('boolean'),\n    price: attr('number'),\n    minPrice: attr('number'),\n    validityDateStart: _emberData.default.attr('date'),\n    validityDateEnd: _emberData.default.attr('date'),\n    confirmed: attr('boolean'),\n    dateConfirmed: _emberData.default.attr('date'),\n    dateCreated: _emberData.default.attr('date'),\n    currency: Ember.computed('route.currency', function () {\n      return this.get('route.currency');\n    }),\n    isValidToday: Ember.computed('validityDateStart', 'validityDateEnd', function () {\n      const now = moment().startOf('day').toDate();\n      return this.get('validityDateStart') <= now && this.get('validityDateEnd') >= now;\n    }),\n    waitingForAcceptation: Ember.computed('enabled', 'confirmed', 'isValidToday', function () {\n      if (!this.get('enabled') || this.get('confirmed')) {\n        return false;\n      }\n\n      return !this.get('confirmed') && this.get('isValidToday');\n    }),\n\n    /**\n     * Za A-10718. Sortowanie:\n     *\n     * - Pierwsza --> Oferty, których data ważności jest aktualna (od <= dziś <= do)\n     * - Druga --> Oferty, których \"data ważności do\" jest z przyszłości (dziś < do)\n     * - Trzecia --> Oferty, których data ważności jest z przeszłości (od < dziś)\n     */\n    sortLevel: Ember.computed('validityDateStart', 'validityDateEnd', function () {\n      const now = moment().startOf('day').toDate();\n\n      if (this.get('validityDateEnd') < now) {\n        return 3;\n      }\n\n      if (this.get('validityDateStart') > now) {\n        return 2;\n      }\n\n      return 1;\n    }),\n    validations: {\n      truckType: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('route.transportType.requiresTruckType')) {\n              return true;\n            }\n\n            return model.get('truckType.id') !== undefined;\n          },\n          message: 'blankSelect'\n        }]\n      },\n      company: {\n        custom: [{\n          validation: function (key, value) {\n            return value.get('id');\n          },\n          message: 'blank'\n        }]\n      },\n      price: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('truckType.ltlPricingEnabled')) {\n              return true;\n            }\n\n            return value;\n          },\n          message: 'blank'\n        }],\n        numericality: {\n          allowBlank: true,\n          greaterThanOrEqualTo: 0,\n          lessThanOrEqualTo: Number.MAX_VALUE,\n          message: 'noNegativeNumber'\n        }\n      },\n      minPrice: {\n        numericality: {\n          allowBlank: true,\n          greaterThanOrEqualTo: 0,\n          lessThanOrEqualTo: Number.MAX_VALUE,\n          message: 'noNegativeNumber'\n        }\n      },\n      validityDateStart: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      validityDateEnd: {\n        presence: {\n          message: 'blank'\n        },\n        custom: [{\n          validation: function (key, value, model) {\n            const validityDateEndValue = moment(value);\n            const validityDateStartValue = moment(model.get('validityDateStart'));\n            return validityDateEndValue.day === validityDateStartValue.day || validityDateEndValue.isAfter(validityDateStartValue);\n          },\n          message: 'invalidDatesSequence'\n        }]\n      },\n      conditionalRates: {\n        relations: ['hasMany'],\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('truckType.ltlPricingEnabled')) {\n              return true;\n            }\n\n            return value.filter(val => {\n              return val.enabled;\n            }).length > 0;\n          },\n          message: 'blank'\n        }]\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/route-offer/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, {\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    attrs: {\n      conditionalRates: {\n        embedded: 'always'\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/route/adapter\", [\"exports\", \"apollo/adapters/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _application.default.extend({\n    urlForQuery(query) {\n      if (query.transportTypeId) {\n        return `${this.urlPrefix()}/routes/transport-type`;\n      }\n\n      return this._super(...arguments);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/route/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model,\n    attr,\n    belongsTo,\n    hasMany\n  } = _emberData.default;\n\n  var _default = Model.extend(_modelValidator.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    creator: belongsTo('user', {\n      async: true\n    }),\n    currency: belongsTo('currency', {\n      async: true\n    }),\n    principalCompany: belongsTo('company', {\n      async: true\n    }),\n    transportType: belongsTo('transportType', {\n      async: true\n    }),\n    routeAddresses: hasMany('routeAddress', {\n      async: true\n    }),\n    routeCustomFields: hasMany('routeCustomField', {\n      async: true\n    }),\n    routeOffers: hasMany('routeOffer', {\n      async: true\n    }),\n    enabled: attr('boolean'),\n    name: attr('string'),\n    description: attr('string'),\n    dateCreated: attr('date'),\n    hasVisibleOffers: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    validations: {\n      currency: {\n        custom: [{\n          validation: function (key, value) {\n            return value && value.get('id');\n          },\n          message: 'blankSelect'\n        }]\n      },\n      description: {\n        length: {\n          maximum: {\n            value: 255,\n            message: 'length'\n          }\n        }\n      },\n      name: {\n        length: {\n          maximum: {\n            value: 255,\n            message: 'length'\n          }\n        },\n        presence: {\n          message: 'blank'\n        }\n      },\n      routeAddresses: {\n        relations: ['hasMany']\n      },\n      routeCustomFields: {\n        relations: ['hasMany']\n      }\n    },\n    sortedRouteAddresses: Ember.computed('routeAddresses.@each.{idx,address}', function () {\n      return this.get('routeAddresses').sortBy('idx');\n    }),\n    sortedAddresses: Ember.computed('sortedRouteAddresses.@each.{idx,address}', function () {\n      return this.get('routeAddresses').getEach('address');\n    }),\n    loadAddresses: Ember.computed('routeAddresses.@each.{idx,address}', 'sortedRouteAddresses.@each{stepType,address}', function () {\n      return this.get('routeAddresses').filter(ra => ra.get('stepType') === 'load').getEach('address');\n    }),\n    unloadAddresses: Ember.computed('routeAddresses.@each.{idx,address}', 'sortedRouteAddresses.@each{stepType,address}', function () {\n      return this.get('routeAddresses').filter(ra => ra.get('stepType') === 'unload').getEach('address');\n    }),\n    customFieldPairs: Ember.computed('routeCustomFields.@each.definition', 'transportType.sortedFieldDefinitions.@each.includedInPriceList', function () {\n      const definitions = this.get('transportType.sortedFieldDefinitions').filter(d => d.get('id') && d.get('enabled') && d.get('includedInPriceList'));\n      const values = this.get('routeCustomFields');\n      return definitions.map(definition => ({\n        definition,\n        value: values.find(value => value.get('definition.id') === definition.get('id'))\n      }));\n    }),\n    // eslint-disable-next-line\n    sortedOffersProperties: ['sortLevel:asc', 'price:asc', 'dateCreated:asc'],\n    sortedOffers: Ember.computed.sort('routeOffers', 'sortedOffersProperties'),\n    validOffers: Ember.computed('sortedOffers.@each.{enabled,isValidToday}', function () {\n      return this.get('sortedOffers').filterBy('enabled').filterBy('isValidToday');\n    }),\n    offersToAccept: Ember.computed('sortedOffers.@each.waitingForAcceptation', function () {\n      return this.get('sortedOffers').filterBy('waitingForAcceptation');\n    }),\n    hasUnacceptedOffers: Ember.computed('offersToAccept', function () {\n      return this.get('offersToAccept.length') > 0;\n    }),\n    bestOffer: Ember.computed('validOffers.{@each.isValidToday,length}', function () {\n      return this.get('validOffers').get('firstObject');\n    }),\n    // Por. `stepCssClass`\n    addressesCssClass: Ember.computed('routeAddresses.length', function () {\n      const numOfAddresses = this.get('routeAddresses.length');\n      const suffix = numOfAddresses < 4 ? numOfAddresses : 'more';\n      return `step-columns-${suffix}`;\n    }),\n    canBeDeleted: Ember.computed('', function () {\n      return this.get('transportType.content').findPositiveAuthorityRestrictionsByActionType('ROLE_CAN_DELETE_ROUTE', this.get('transportType.id')).length > 0;\n    }),\n    updateDisabled: Ember.computed('', function () {\n      if (!this.get('id') && this.get('transportType.content').findPositiveAuthorityRestrictionsByActionType('ROLE_CAN_ADD_ROUTE', this.get('transportType.id')).length > 0) {\n        return false;\n      }\n\n      if (this.get('id') && this.get('transportType.content').findPositiveAuthorityRestrictionsByActionType('ROLE_CAN_EDIT_ROUTE', this.get('transportType.id')).length > 0) {\n        return false;\n      }\n\n      return true;\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/route/serializer\", [\"exports\", \"ember-data\", \"apollo/mixins/serializer-mixin\"], function (_exports, _emberData, _serializerMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, _serializerMixin.default, {\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    attrs: {\n      routeAddresses: {\n        embedded: 'save'\n      },\n      routeCustomFields: {\n        embedded: 'save'\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/routes/modals/route-form/show/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    routeService: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    route: Ember.computed('model', function () {\n      return this.get('model');\n    }),\n    currencies: Ember.computed('', function () {\n      return this.get('store').peekAll('currency');\n    }),\n    _save: function (route) {\n      const self = this;\n\n      if (!route.validate()) {\n        return;\n      }\n\n      self.set('errors', Ember.A([]));\n\n      if (route.get('truckType.ltlPricingEnabled')) {\n        console.debug('LTL Enabled :: removing price');\n        route.price = null;\n      } else {\n        console.debug('FTL Enabled :: removing conditional rates');\n\n        if (route.conditionalRates) {\n          route.conditionalRates.filter(rate => {\n            return !rate.id;\n          }).forEach(rate => {\n            rate.unloadRecord();\n          });\n        }\n      }\n\n      route.save().then(updatedRoute => {\n        console.debug('Zapisaliśmy trasę o id ' + updatedRoute.id);\n        self.send('rollbackNewChanges');\n        self.send('hideModal');\n        self.send('refreshModel');\n      }).catch(response => {\n        if (response.errors && response.errors[0] === 'DUPLICATE') {\n          self.set('errors', Ember.A([this.get('intl').t('route.errors.unique')]));\n          return;\n        }\n\n        self.get('route').rollbackAttributes();\n      });\n    },\n    actions: {\n      deleteRouteFromList(routeAddress) {\n        console.log(`i want to delete id: ${routeAddress.get('id')} | idx: ${routeAddress.get('idx')} from list`);\n        this.get('route.routeAddresses').removeObject(routeAddress);\n        const filteredRouteAddresses = this.get('route.routeAddresses').filterBy('stepType', routeAddress.get('stepType')); // Przeliczamy stepTypeIdx dla adresów tego samego typu co ten usuwany\n\n        filteredRouteAddresses.forEach((address, idx) => {\n          address.set('stepTypeIdx', idx);\n        }); // Przeliczamy idx wszystkich adresów w trasie\n\n        this.get('route.routeAddresses').forEach((address, idx) => {\n          address.set('idx', idx);\n        });\n      },\n\n      rollbackNewChanges() {\n        this.get('route.routeAddresses').filterBy('isNew', true).forEach(item => this.store.deleteRecord(item));\n        this.get('route.routeCustomFields').filterBy('isNew', true).forEach(item => this.store.deleteRecord(item));\n      },\n\n      save() {\n        const route = this.get('route');\n\n        this._save(route);\n      },\n\n      edit(route) {\n        this._save(route);\n      },\n\n      handleAddressesOrder() {\n        console.log('TODO: Drag&Drop handleAddressesOrder...');\n      },\n\n      close() {\n        this.send('rollbackNewChanges');\n        this.send('hideModal');\n      },\n\n      cancel() {\n        console.debug('Zamykamy formularz trasy...');\n        this.send('rollbackNewChanges');\n        this.set('errors', []);\n      },\n\n      async createTransport() {\n        console.debug('Tworzymy transport z trasy...');\n        this.send('showModal', 'transports.modals.create-transport', (await this.routeService.createTransportFromRoute(this.get('route'))));\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/routes/modals/route-form/show/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"2SG6Qdnk\",\n    \"block\": \"{\\\"symbols\\\":[\\\"c\\\",\\\"ra\\\"],\\\"statements\\\":[[4,\\\"routes/modals/route-form/template\\\",null,[[\\\"route\\\",\\\"editRoute\\\",\\\"saveRoute\\\",\\\"close\\\",\\\"cancel\\\",\\\"createTransport\\\"],[[23,[\\\"route\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"edit\\\",[23,[\\\"route\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"save\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"close\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"createTransport\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"route.name\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"route-name\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 padding-top \\\",[27,\\\"if\\\",[[23,[\\\"route\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control \\\",[23,[\\\"route\\\",\\\"name\\\"]],[23,[\\\"route\\\",\\\"namePlaceholder\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"route\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"row \\\",[27,\\\"concat\\\",[\\\"section-\\\",[23,[\\\"route\\\",\\\"addressesCssClass\\\"]]],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"col-md-3 col-xs-12\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"route.addresses\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"sortable-objects\\\",null,[[\\\"sortableObjectList\\\",\\\"sortEndAction\\\",\\\"enableSort\\\",\\\"inPlace\\\"],[[23,[\\\"route\\\",\\\"routeAddresses\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"handleAddressesOrder\\\"],null],true,true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"route\\\",\\\"routeAddresses\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"route/form/route-address-section\\\",null,[[\\\"ra\\\",\\\"onDeleteHandler\\\"],[[22,2,[]],[27,\\\"action\\\",[[22,0,[]],\\\"deleteRouteFromList\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"route.details\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row form-inline\\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 col-md-6\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"route/form/route-custom-fields-section\\\",null,[[\\\"route\\\"],[[23,[\\\"route\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-6 col-xs-12\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"route-currency\\\"],[11,\\\"class\\\",\\\"col-xs-6 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.currency\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"route-currency\\\"],[11,\\\"data-field-name\\\",\\\"route-currency\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-6 \\\",[27,\\\"if\\\",[[23,[\\\"route\\\",\\\"errors\\\",\\\"currency\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"route\\\",\\\"currency\\\"]]],null],[23,[\\\"currencies\\\"]],true,\\\"symbol\\\",[27,\\\"t\\\",[\\\"common.currency\\\"],null],[23,[\\\"route\\\",\\\"updateDisabled\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"route\\\",\\\"currency\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,1,[\\\"symbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"route\\\"]],\\\"currency\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section form-horizontal\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"transport.description\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"transport-description\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"light-frame\\\"],null],\\\" \\\",[27,\\\"if\\\",[[23,[\\\"route\\\",\\\"errors\\\",\\\"description\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"type\\\",\\\"placeholder\\\",\\\"class\\\",\\\"disabled\\\",\\\"rows\\\",\\\"value\\\"],[\\\"textarea\\\",[27,\\\"t\\\",[\\\"transport.description\\\"],null],\\\"form-control vertical-resizable-only textarea-resize\\\",[23,[\\\"route\\\",\\\"updateDisabled\\\"]],\\\"3\\\",[23,[\\\"route\\\",\\\"description\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"route\\\"]],\\\"description\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/routes/modals/route-form/show/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/routes/modals/route-form/template/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Component.extend({\n    intl: Ember.inject.service(),\n    tagName: '',\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    routeLabel: Ember.computed('route.transportType.label', function () {\n      return (this.get('route.id') ? `${this.get('intl').t('route.editRoute')}: ${this.get('route.id')}` : this.get('intl').t('route.newRoute')) + ' - ' + this.get('route.transportType.label');\n    }),\n    canCreateTransportFromRoute: Ember.computed('', function () {\n      return this.get('authorityCheckerService').findPositiveAuthorityRestrictionsByActionType('ROLE_CREATE_TRANSPORT_FROM_ROUTE', this.get('route.transportType.id'));\n    }),\n    actions: {\n      createTransport() {\n        this.createTransport();\n      },\n\n      saveRoute() {\n        this.saveRoute();\n      },\n\n      editRoute() {\n        this.editRoute();\n      },\n\n      close() {\n        this.close();\n      },\n\n      cancel() {\n        this.cancel();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/routes/modals/route-form/template/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ky2pf3sy\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"classNames\\\",\\\"allowDraggable\\\",\\\"yieldWithLayout\\\",\\\"cancel\\\"],[\\\"transport-modal\\\",false,false,[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-header\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"bold col-xs-12\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[21,\\\"routeLabel\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"route\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"small\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"transport.createdMessage\\\"],[[\\\"date\\\",\\\"person\\\",\\\"company\\\"],[[27,\\\"my-format-date\\\",[[23,[\\\"route\\\",\\\"dateCreated\\\"]],\\\"defaultDateTime\\\"],null],[23,[\\\"route\\\",\\\"creator\\\",\\\"name\\\"]],[23,[\\\"route\\\",\\\"creator\\\",\\\"company\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-times pull-right clickable\\\"],[11,\\\"data-button-name\\\",\\\"close\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-body form-horizontal\\\"],[9],[0,\\\"\\\\n        \\\"],[14,1],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer margin-top text-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"route\\\",\\\"id\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save-route\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"saveRoute\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"route\\\",\\\"id\\\"]],[27,\\\"not\\\",[[23,[\\\"route\\\",\\\"updateDisabled\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"update-route\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.update\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"editRoute\\\"]],[10],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"route\\\",\\\"id\\\"]],[23,[\\\"canCreateTransportFromRoute\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"create-transport\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"route.createTransport\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"createTransport\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"cancel-route\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/routes/modals/route-form/template/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/schedule-setting/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend({\n    transportType: _emberData.default.belongsTo('transportType', {\n      async: true\n    }),\n    topLeft: _emberData.default.attr('string'),\n    topMiddle: _emberData.default.attr('string'),\n    topRight: _emberData.default.attr('string'),\n    bottomLeft: _emberData.default.attr('string'),\n    bottomMiddle: _emberData.default.attr('string'),\n    bottomRight: _emberData.default.attr('string'),\n    leftSideArea: _emberData.default.attr('string'),\n    trimTopLeft: _emberData.default.attr('number'),\n    trimTopMiddle: _emberData.default.attr('number'),\n    trimTopRight: _emberData.default.attr('number'),\n    trimBottomLeft: _emberData.default.attr('number'),\n    trimBottomMiddle: _emberData.default.attr('number'),\n    trimBottomRight: _emberData.default.attr('number'),\n    topLeftHellip: _emberData.default.attr('boolean'),\n    topMiddleHellip: _emberData.default.attr('boolean'),\n    topRightHellip: _emberData.default.attr('boolean'),\n    bottomLeftHellip: _emberData.default.attr('boolean'),\n    bottomMiddleHellip: _emberData.default.attr('boolean'),\n    bottomRightHellip: _emberData.default.attr('boolean'),\n    stepTypeSymbolLoad: _emberData.default.attr('string'),\n    stepTypeSymbolUnload: _emberData.default.attr('string'),\n    transportCombiningSymbol: _emberData.default.attr('string')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/secondary-section/model\", [\"exports\", \"ember-data\", \"apollo/pods/section/model\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    bankFiles: _emberData.default.hasMany('file', {\n      async: true\n    }),\n    othersFiles: _emberData.default.hasMany('file', {\n      async: true\n    }),\n    partnership: _emberData.default.belongsTo('partnership', {\n      async: true,\n      deepEmbedded: ['contractorCompany']\n    }),\n    bankPatternFileENG: _emberData.default.belongsTo('file', {\n      async: true\n    }),\n    bankPatternFilePL: _emberData.default.belongsTo('file', {\n      async: true\n    }),\n    internalNotes: _emberData.default.attr('string'),\n    bankAccountNumber: _emberData.default.attr('string'),\n    validations: {\n      'contractorNumber': {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('partnership.sessionAccount.currentUser.isPrincipal')) {\n              return model.get('partnership.contractorNumber');\n            }\n\n            return true;\n          },\n          message: 'blank'\n        }]\n      },\n      bankAccountNumber: {\n        presence: {\n          message: 'blank'\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/secondary-section/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, {\n    attrs: {\n      partnership: {\n        embedded: 'save'\n      }\n    },\n    serializeBelongsTo: function (record, json, relationship) {\n      var embeddedRecord, key;\n      key = relationship.key;\n      embeddedRecord = record.belongsTo(key);\n\n      if (embeddedRecord && this.attrs[key] && this.attrs[key].embedded === \"save\") {\n        var data = embeddedRecord.attributes();\n        data.id = embeddedRecord.id;\n\n        if (relationship.options.deepEmbedded) {\n          relationship.options.deepEmbedded.forEach(function (deepKey) {\n            if (embeddedRecord.belongsTo(deepKey)) {\n              data[deepKey] = embeddedRecord.belongsTo(deepKey).serialize();\n            }\n          });\n        }\n\n        json[key] = data;\n      } else {\n        this._super(record, json, relationship);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/section-action/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend({\n    person: _emberData.default.belongsTo('user', {\n      async: true\n    }),\n    section: _emberData.default.belongsTo('section', {\n      async: true\n    }),\n    type: _emberData.default.attr('string'),\n    active: _emberData.default.attr('boolean'),\n    comment: _emberData.default.attr('string'),\n    dateCreated: _emberData.default.attr('date')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/section/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend(_modelValidator.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    changeTracker: {\n      auto: true,\n      enableIsDirty: true\n    },\n    STATES: {\n      PENDING: 'PENDING',\n      ACCEPTED: 'ACCEPTED',\n      REJECTED: 'REJECTED',\n      UPDATED: 'UPDATED',\n      EXPIRED: 'EXPIRED',\n      DELETED: 'DELETED',\n      ARCHIVED: 'ARCHIVED',\n      DOCUMENT_ADDED: 'DOCUMENT_ADDED'\n    },\n    actions: _emberData.default.hasMany('section-action', {\n      async: true\n    }),\n    partnership: _emberData.default.belongsTo('partnership', {\n      async: true\n    }),\n    truck: _emberData.default.belongsTo('truck', {\n      async: true\n    }),\n    name: _emberData.default.attr('string'),\n    state: _emberData.default.attr('string'),\n    reaction: _emberData.default.attr('string'),\n    deleted: _emberData.default.attr('boolean'),\n    dateCreated: _emberData.default.attr('date'),\n    lastUpdated: _emberData.default.attr('date'),\n    modelObject: Ember.computed('partnership.id', 'truck.id', function () {\n      return this.get('partnership.id') ? this.get('partnership') : this.get('truck');\n    }),\n    manageSectionRole: Ember.computed(function () {\n      if (this.get('partnership.id')) {\n        return 'ROLE_MANAGE_APPLY_SECTIONS';\n      } else {\n        return 'ROLE_MANAGE_MOT_SECTIONS';\n      }\n    }),\n    deleteFileFromSectionRole: Ember.computed(function () {\n      if (this.get('partnership.id')) {\n        return 'CAN_DELETE_APPLIES_FILES';\n      } else {\n        return 'CAN_DELETE_MOT_FILES';\n      }\n    }),\n    isOwner: Ember.computed('partnership.contractorCompany.id', 'truck.owner.id', function () {\n      if (this.get('partnership.id')) {\n        return this.get('partnership.contractorCompany.id') === this.get('sessionAccount.currentUser.company.id');\n      } else {\n        return this.get('truck.owner.id') === this.get('sessionAccount.currentUser.company.id');\n      }\n    }),\n    isAccepted: Ember.computed('state', function () {\n      return this.get('state') === this.get('STATES').ACCEPTED;\n    }),\n    isActive: Ember.computed('state', function () {\n      return ![this.get('STATES').ARCHIVED, this.get('STATES').DELETED].includes(this.get('state'));\n    }),\n    isRejected: Ember.computed('state', function () {\n      return [this.get('STATES').REJECTED].includes(this.get('state'));\n    }),\n    hasBeenUpdated: Ember.computed('partnership.registrationCompleted', 'truck.verificationCompleted', 'state', function () {\n      const properState = [this.get('STATES').PENDING, this.get('STATES').UPDATED, this.get('STATES').DOCUMENT_ADDED].includes(this.get('state'));\n\n      if (this.get('partnership.id')) {\n        return this.get('partnership.registrationCompleted') && this.get('partnership.status') !== this.get('partnership.STATUS.REGISTRATION_IS_IN_PROGRESS') && properState;\n      }\n\n      return this.get('truck.verificationCompleted') && properState;\n    }),\n    canBeConfirmed: Ember.computed('state', 'manageSectionRole', 'modelObject', function () {\n      const roleToConfirm = this.get('manageSectionRole');\n      const hasRoleToConfirm = this.get('sessionAccount').hasRole(roleToConfirm);\n      const sectionCanBeConfirmed = [this.get('STATES').PENDING, this.get('STATES').UPDATED, this.get('STATES').DOCUMENT_ADDED, this.get('STATES').REJECTED].includes(this.get('state'));\n      const modelObjectCanBeConfirmed = [this.get('modelObject.STATUS.ACCEPTED'), this.get('modelObject.STATUS.REJECTED'), this.get('modelObject.STATUS.UPDATED'), this.get('modelObject.STATUS.AWAITING_VERIFICATION'), this.get('modelObject.STATUS.BLOCKED')].includes(this.get('modelObject.status'));\n      return sectionCanBeConfirmed && modelObjectCanBeConfirmed && hasRoleToConfirm;\n    }),\n    canBeRejected: Ember.computed('state', 'name', 'manageSectionRole', 'modelObject', function () {\n      const roleToReject = this.get('manageSectionRole');\n      const hasRoleToReject = this.get('sessionAccount').hasRole(roleToReject);\n      const canBeRejected = this.get('documentType.canBeRejected') || this.get('name') === 'ANTI_CORRUPTION_TYPE';\n      const sectionCanBeRejected = [this.get('STATES').PENDING, this.get('STATES').UPDATED, this.get('STATES').DOCUMENT_ADDED, this.get('STATES').ACCEPTED].includes(this.get('state'));\n      const modelObjectCanBeRejected = [this.get('modelObject.STATUS.ACCEPTED'), this.get('modelObject.STATUS.REJECTED'), this.get('modelObject.STATUS.UPDATED'), this.get('modelObject.STATUS.AWAITING_VERIFICATION'), this.get('modelObject.STATUS.BLOCKED')].includes(this.get('modelObject.status'));\n      return sectionCanBeRejected && modelObjectCanBeRejected && hasRoleToReject && canBeRejected;\n    }),\n    canBeUpdated: Ember.computed('state', 'isOwner', 'manageSectionRole', function () {\n      const roleToUpdate = this.get('manageSectionRole');\n      const hasRoleToUpdate = this.get('sessionAccount').hasRole(roleToUpdate);\n      const sectionCanBeUpdated = this.get('name') === 'MAIN_DATA_TYPE' || [this.get('STATES').PENDING, this.get('STATES').UPDATED, this.get('STATES').DOCUMENT_ADDED, this.get('STATES').REJECTED].includes(this.get('state'));\n      return sectionCanBeUpdated && (hasRoleToUpdate || this.get('isOwner'));\n    }),\n    canBeDisabled: Ember.computed('state', 'manageSectionRole', function () {\n      const roleToDisable = this.get('manageSectionRole');\n      return this.get('sessionAccount').hasRole(roleToDisable);\n    }),\n    activeAction: Ember.computed('actions.@each.active', function () {\n      return this.get('actions').filterBy('active').get('firstObject');\n    }),\n    shouldBeExpanded: Ember.computed('state', function () {\n      return this.get('state') !== this.get('STATES').ACCEPTED;\n    }),\n\n    hasChangesApartFromActions() {\n      const changes = this.modelChanges();\n      return Object.keys(changes).filter(k => k !== 'actions').length > 0;\n    },\n\n    translatedName: Ember.computed('name', function () {\n      return this.get('intl').t(`sectionType.${this.get('name')}`);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/sections/modals/rejection-modal/controller\", [\"exports\", \"apollo/mixins/section-mixin\"], function (_exports, _sectionMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_sectionMixin.default, {\n    intl: Ember.inject.service(),\n    resetProperties: Ember.observer('model.modelOpenTime', function () {\n      this.setProperties({\n        errors: [],\n        comment: null\n      });\n    }),\n    section: Ember.computed('model', function () {\n      return this.get('model');\n    }),\n    title: Ember.computed('section.id', 'section.name', function () {\n      if (this.get('section.documentType.translationKey')) {\n        return this.get('intl').t(`documentType.${this.get('section.documentType.translationKey')}.name`);\n      }\n\n      const typeLabel = this.get('intl').t(`sectionType.${this.get('section.name')}`);\n\n      if (this.get('section.id')) {\n        return typeLabel;\n      } else {\n        return this.get('intl').t(`section.${this.get('section.groupName')}.new`, {\n          typeLabel: typeLabel\n        });\n      }\n    }),\n    subtitle: Ember.computed('section.id', 'section.number', function () {\n      return this.get('section.id') ? this.get('section.number') : null;\n    }),\n    actions: {\n      rejectWithComment() {\n        if (!this.get('comment')) {\n          const errorMessage = this.get('intl').t('section-action.noCommentError');\n          this.set('errors', [errorMessage]);\n        } else {\n          this.send('reject', this.get('section'), this.get('comment'));\n          this.send('hideModal');\n        }\n      },\n\n      cancel() {\n        console.debug(`Zamykamy okienko odrzucania dokumentu...`);\n        this.set('errors', []);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/sections/modals/rejection-modal/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"f3p+z4hX\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"subtitle\\\",\\\"cancel\\\"],[[23,[\\\"title\\\"]],[23,[\\\"subtitle\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group col-xs-12\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[12,\\\"for\\\",[28,[[27,\\\"concat\\\",[\\\"rejection-comment-\\\",[23,[\\\"section\\\",\\\"id\\\"]]],null]]]],[11,\\\"class\\\",\\\"control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"section-action.rejectionComment\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"rows\\\"],[\\\"form-control vertical-resizable-only focus-input\\\",[27,\\\"concat\\\",[\\\"rejection-comment-\\\",[23,[\\\"section\\\",\\\"id\\\"]]],null],[23,[\\\"comment\\\"]],\\\"3\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons margin-top col-xs-12\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"savingInProgress\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"common.operationInProgress\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-success\\\"],[11,\\\"data-button-name\\\",\\\"reject-with-comment-document\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"section.reject\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"rejectWithComment\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/sections/modals/rejection-modal/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/sent-notification/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model,\n    attr\n  } = _emberData.default; // SentNotificationDTO\n\n  var _default = Model.extend({\n    status: attr('string'),\n    message: attr('string'),\n    dateCreated: attr('date')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/sent-notification/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    RESTSerializer\n  } = _emberData.default;\n\n  var _default = RESTSerializer.extend({\n    normalizeQueryResponse(store, primaryModelClass, payload, id, requestType) {\n      const {\n        currentPage,\n        pageSize,\n        totalPages,\n        totalItems\n      } = payload[0].metaData;\n      const metaData = {\n        currentPage,\n        pageSize,\n        totalPages,\n        totalItems\n      };\n      const normalizedPayload = {\n        'sentNotifications': payload[0].data,\n        'meta': metaData\n      };\n      return this.normalizeArrayResponse(store, primaryModelClass, normalizedPayload, id, requestType);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/serial-transport/model\", [\"exports\", \"ember-data\", \"apollo/pods/base-recurring-transport/model\"], function (_exports, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const attr = _emberData.default.attr;\n\n  var _default = _model.BaseRecurringTransportModel.extend({\n    transportId: attr('number'),\n    validations: { ..._model.BaseRecurringTransportValidations\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/setting/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend(_modelValidator.default, {\n    intl: Ember.inject.service(),\n    company: _emberData.default.belongsTo('company', {\n      async: true\n    }),\n    name: _emberData.default.attr('string'),\n    value: _emberData.default.attr('string'),\n    editable: _emberData.default.attr('boolean'),\n    dateCreated: _emberData.default.attr('date'),\n    lastUpdated: _emberData.default.attr('date'),\n    validations: {\n      name: {\n        custom: [{\n          validation: function (key, value) {\n            if (!value) {\n              return false;\n            }\n\n            return value;\n          },\n          message: 'blankSelect'\n        }]\n      }\n    },\n    settingValueType: function () {\n      const settingValue = this.get('value');\n\n      if (settingValue === 'true' || settingValue === 'false') {\n        return 'boolean';\n      }\n    }.property('value'),\n    isChecked: function () {\n      const settingValue = this.get('value');\n      return settingValue === 'true';\n    }.property('value'),\n    translatedName: Ember.computed('name', function () {\n      return this.get('intl').t(`settings.desc.${this.get('name')}`);\n    }),\n    translatedNameString: Ember.computed('name', function () {\n      return this.get('intl').t(`settings.desc.${this.get('name')}`).toString();\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/settings/create/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    settingsIndexController: Ember.inject.controller('settings/index'),\n    success: false,\n    errors: [],\n    setting: '',\n    settings: Ember.computed('', function () {\n      const settings = [];\n      const settingsNames = this.get('model.settingsOptions');\n      settingsNames.forEach(name => {\n        settings.push({\n          name,\n          translation: this.get('intl').t(`settings.desc.${name}`)\n        });\n      });\n      return settings;\n    }),\n    actions: {\n      save: function () {\n        const setting = this.get('model.setting');\n\n        if (!setting.validate()) {\n          return;\n        }\n\n        setting.save().then(() => {\n          this.set('success', true);\n          this.get('settingsIndexController').set('successMessage', this.get('intl').t('common.saveSuccessMessage'));\n          this.transitionToRoute('settings.index');\n        }).catch(response => this.set('errors', response.errors));\n      },\n      cancel: function () {\n        this.get('model.setting').rollbackAttributes();\n        this.transitionToRoute('settings.index');\n      },\n      setSettingName: function (setting) {\n        this.set('setting', setting);\n        this.set('model.setting.name', setting.name);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/settings/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    access: ['ROLE_MANAGE_SETTINGS'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      const principalId = localStorage.getItem('principalId');\n      const setting = this.store.createRecord('setting', {\n        company: this.store.peekRecord('company', principalId)\n      });\n      const path = this.get('apolloApiService').APOLLO_API.SETTINGS.FIND_UNSET_NAMES;\n      return Ember.RSVP.hash({\n        setting,\n        settingsOptions: this.get('apolloApiService').callApolloApi(path).then(res => res.json())\n      });\n    },\n    actions: {\n      willTransition: function () {\n        this.controllerFor('settings.edit').setProperties({\n          success: false,\n          errors: []\n        });\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/settings/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ITaU6VpA\",\n    \"block\": \"{\\\"symbols\\\":[\\\"settings\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.create\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"form\\\"],[12,\\\"class\\\",[28,[\\\"form-horizontal \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"setting\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.name\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10 form-control-static\\\"],[11,\\\"data-field-name\\\",\\\"settings-select\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"renderInPlace\\\",\\\"options\\\",\\\"searchField\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"setting\\\"]],true,[23,[\\\"settings\\\"]],\\\"translation\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setSettingName\\\"],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[\\\"translation\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"setting\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 form-buttons\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"success\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"settings.backToSettings\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/settings/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/settings/edit/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    success: false,\n    errors: [],\n    intl: Ember.inject.service(),\n    settingsIndexController: Ember.inject.controller('settings/index'),\n    actions: {\n      save: function () {\n        var self = this;\n        var setting = this.get('model');\n\n        if (setting.get('settingValueType') === 'boolean') {\n          setting.set('value', $('#settingCheckbox').is(':checked'));\n        }\n\n        setting.save().then(function () {\n          self.set('success', true);\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n      delete: function () {\n        this.get('model').destroyRecord().then(() => {\n          this.get('settingsIndexController').set('successMessage', this.get('intl').t('common.saveSuccessMessage'));\n          this.transitionToRoute('settings.index');\n        }).catch(response => {\n          this.set('errors', response.errors);\n        });\n      },\n      cancel: function () {\n        this.get('model').rollbackAttributes();\n        this.transitionToRoute('settings.index');\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/settings/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_SETTINGS_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      return this.store.query('setting', params.id);\n    },\n    actions: {\n      willTransition: function () {\n        this.get('controller').setProperties({\n          success: false,\n          errors: []\n        });\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/settings/edit/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"BXiyNNx0\",\n    \"block\": \"{\\\"symbols\\\":[\\\"error\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.edit\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"success\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-success alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.updateSuccessMessage\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.name\\\"],null],false],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[23,[\\\"model\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.value\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"settingValueType\\\"]],\\\"boolean\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\"],[\\\"settingCheckbox\\\",\\\"checkbox\\\",[23,[\\\"model\\\",\\\"isChecked\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"value\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.description\\\"],null],false],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"settings.desc.\\\",[23,[\\\"model\\\",\\\"name\\\"]]],null]],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_SETTINGS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.editable\\\"],null],false],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10 form-control-static\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"id\\\",\\\"type\\\",\\\"checked\\\"],[\\\"editableCheckbox\\\",\\\"checkbox\\\",[23,[\\\"model\\\",\\\"editable\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 form-buttons\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_SETTINGS\\\"],null]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-danger\\\",[27,\\\"t\\\",[\\\"settings.confirmDelete\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\"],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"success\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"settings.backToSettings\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"ok\\\"],[[\\\"on\\\",\\\"target\\\"],[\\\"submit\\\",[23,[\\\"view\\\"]]]]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/settings/edit/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/settings/index/controller\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: service('session-account'),\n    sortedSettings: Ember.computed('model.settings.@each.translatedNameString', function () {\n      return this.get('model.settings').sortBy('translatedNameString');\n    }),\n    contractorsReportMinDate: null,\n    contractorsReportMaxDate: null,\n    canCreateTransportType: Ember.computed('', function () {\n      return this.get('sessionAccount').hasRole('ROLE_MANAGE_TRANSPORT_TYPE');\n    }),\n    enabledSquares: Ember.computed('model.squares.@each.enabled', function () {\n      return this.get('model.squares').filterBy('enabled');\n    }),\n    workflows: Ember.computed('model.workflows.[]', function () {\n      return this.get('model.workflows').sortBy('transportType.idx');\n    }),\n    squareSetting: Ember.computed(function () {\n      return this.get('sessionAccount').getSquareSetting();\n    }),\n    showRestSettings: Ember.computed('squareSetting', function () {\n      return this.get('squareSetting');\n    }),\n    showOtherSettings: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_MANAGE_ALLOWED_DOMAINS') || this.get('sessionAccount').hasRole('ROLE_MANAGE_NOTIFICATIONS') || this.get('sessionAccount').hasRole('ROLE_MANAGE_APPLIES_SETTINGS');\n    }),\n    actions: {\n      generateContractorsReport() {\n        Ember.run.once(this, function () {\n          let url = _environment.default.serverURL + '/reports/contractors?token=' + this.get('sessionAccount').get('token');\n          const minDate = this.get('contractorsReportMinDate') ? moment(this.get('contractorsReportMinDate')[0]).format() : '';\n          const maxDate = this.get('contractorsReportMaxDate') ? moment(this.get('contractorsReportMaxDate')[0]).format() : '';\n          const params = {\n            minDate,\n            maxDate\n          };\n          url += '&' + $.param(params);\n          window.location = url;\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/settings/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"apollo/mixins/menu-mixin\"], function (_exports, _authenticatedRouteMixin, _menuMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _menuMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_SETTINGS_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      const principalCompanyId = localStorage.getItem('principalId');\n      const userRoleGroupName = this.get('sessionAccount.currentUser.roleGroup.name');\n      let roleGroups = this.store.peekAll('roleGroup').filterBy('principalCompany.id', principalCompanyId);\n\n      if (!this.get('sessionAccount').hasRole('ROLE_MANAGE_AUTHORITIES') || userRoleGroupName !== 'SUPER_USER') {\n        roleGroups = roleGroups.filter(roleGroup => roleGroup.get('name') !== 'SUPER_USER' && roleGroup.get('name') !== 'E-MAIL_ADVICE');\n      }\n\n      const gates = this.store.findAll('gate');\n      const squares = this.store.findAll('square');\n      return Ember.RSVP.hash({\n        principalCompany: this.store.findRecord('company', principalCompanyId),\n        settings: this.store.findAll('setting', {\n          reload: true\n        }).then(data => {\n          if (this.get('sessionAccount').hasRole('ROLE_MANAGE_SETTINGS')) {\n            return data;\n          } else {\n            return data.filterBy('editable');\n          }\n        }),\n        warehouses: this.store.findAll('warehouse', {\n          reload: true\n        }).then(function (data) {\n          return data.sortBy('name');\n        }),\n        workflows: this.store.findAll('workflow').then(data => {\n          return data;\n        }),\n        roleGroups: roleGroups,\n        squares: squares,\n        gates\n      });\n    },\n\n    activate() {\n      this.activateCurrentTab('SETTINGS_TAB');\n    },\n\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          info: null,\n          errors: null,\n          successMessage: null\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/settings/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"65oV/2DU\",\n    \"block\": \"{\\\"symbols\\\":[\\\"setting\\\",\\\"w\\\",\\\"rg\\\",\\\"square\\\",\\\"gate\\\",\\\"w\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row division\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"reports.label\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h4\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"reports.contractors.label\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-inline\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"reports.contractors.header\\\"],null],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"placeholder\\\",\\\"formatType\\\",\\\"class\\\"],[[23,[\\\"contractorsReportMinDate\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"contractorsReportMinDate\\\"]]],null]],null],[27,\\\"t\\\",[\\\"common.minDate\\\"],null],\\\"shortDate\\\",\\\"form-control date-chooser\\\"]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.andBetween\\\"],null],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"placeholder\\\",\\\"formatType\\\",\\\"class\\\"],[[23,[\\\"contractorsReportMaxDate\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"contractorsReportMaxDate\\\"]]],null]],null],[27,\\\"t\\\",[\\\"common.maxDate\\\"],null],\\\"shortDate\\\",\\\"form-control date-chooser\\\"]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.and\\\"],null],false],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"common.exportAsXLS\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"fa-icon\\\",[\\\"file-excel\\\"],[[\\\"size\\\"],[\\\"lg\\\"]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.downloadFile\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"generateContractorsReport\\\"]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row division\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"warehouses.label\\\"],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"link-to\\\",[\\\"warehouses.create\\\"],[[\\\"class\\\"],[\\\"btn btn-default margin-left\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.create\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-responsive padding-top\\\"],[11,\\\"data-field-name\\\",\\\"warehouses-table\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-responsive table-hover table-condensed\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.name\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.workStartHour\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.workEndHour\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.numberOfRamps\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.idx\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.timeWindowOffsetInterval\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.timeWindowDefaultLengthInMinutes\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.timeWindowMustOccupyEntireRamp\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_EDIT_WAREHOUSE\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"th\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"warehouses\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[12,\\\"class\\\",[28,[[27,\\\"unless\\\",[[22,6,[\\\"enabled\\\"]],\\\"disabled\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,6,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,6,[\\\"workStartTime\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,6,[\\\"workEndTime\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,6,[\\\"enabledRamps\\\",\\\"length\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,6,[\\\"idx\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,6,[\\\"timeWindowOffsetInterval\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,6,[\\\"timeWindowDefaultLengthInMinutes\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,6,[\\\"timeWindowMustOccupyEntireRamp\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"check\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_EDIT_WAREHOUSE\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"warehouses.edit\\\",[22,6,[]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_SUPER_USER\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row division\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"gates.label\\\"],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"link-to\\\",[\\\"gates.create\\\"],[[\\\"class\\\"],[\\\"btn btn-default margin-left\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"gates.create\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-responsive padding-top\\\"],[11,\\\"data-field-name\\\",\\\"gates-table\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-responsive table-hover table-condensed\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.name\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"gates.gateTypes.label\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"gates.artrIdentifier\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"gates\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,5,[\\\"name\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,5,[\\\"gateTypeTranslation\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,5,[\\\"artrIdentifier\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"gates.edit\\\",[22,5,[\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_SUPER_USER\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row division\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"label\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-responsive padding-top\\\"],[11,\\\"data-field-name\\\",\\\"squares-table\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-responsive table-hover table-condensed\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.name\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.idx\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_EDIT_SQUARE\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"th\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"enabledSquares\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"tr\\\"],[12,\\\"class\\\",[28,[[27,\\\"unless\\\",[[22,4,[\\\"enabled\\\"]],\\\"disabled\\\"],null]]]],[12,\\\"data-square-id\\\",[28,[[22,4,[\\\"id\\\"]]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,4,[\\\"name\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,4,[\\\"idx\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_EDIT_SQUARE\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"squares.edit\\\",[22,4,[]]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-edit pull-right\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_SQUARE\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"squares.create\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"create\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row division\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.label\\\"],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_ROLE_GROUP\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"authorities.aggregate\\\"],[[\\\"class\\\",\\\"data-button-name\\\"],[\\\"btn btn-default margin-left\\\",\\\"aggregate-role-group\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"eye\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.aggregate.showAll\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_ROLE_GROUP\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"role-groups.create\\\"],[[\\\"class\\\",\\\"data-button-name\\\"],[\\\"btn btn-default margin-left\\\",\\\"create-role-group\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"settings.roleGroups.create.label\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top\\\"],[11,\\\"data-field-name\\\",\\\"ROLE_GROUP_SETTINGS_SECTION\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"roleGroups\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[12,\\\"data-button-name\\\",[28,[\\\"role-group-settings-button-\\\",[22,3,[\\\"name\\\"]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"authorities.index\\\",[22,3,[\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-default margin-right-small\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,3,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row division\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.label\\\"],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canCreateTransportType\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"transport-types.create\\\"],[[\\\"class\\\"],[\\\"btn btn-default margin-left\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.create\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"workflows\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[12,\\\"data-button-name\\\",[28,[\\\"transport-type-settings-button-\\\",[22,2,[\\\"name\\\"]]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"workflows.edit\\\",[22,2,[\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-default margin-right-small\\\"]],{\\\"statements\\\":[[4,\\\"if\\\",[[22,2,[\\\"deliveryWorkflow\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,2,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,2,[\\\"transportType\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showOtherSettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row division\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.other\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_TRUCK_TYPES\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"truck-types.index\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"truckType.settingButtonLabel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_SURCHARGE_DEFINITIONS\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"surcharge-definitions.index\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"surchargeDefinition.settingButtonLabel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[4,\\\"link-to\\\",[\\\"companies.allowed-domains\\\",[23,[\\\"model\\\",\\\"principalCompany\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"company.allowedDomains.label\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"notifications.index\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"notifications.availableNotifications\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_APPLIES_SETTINGS\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"applies-settings\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"appliesSettings.label\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_APPLIES_SETTINGS\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"groups-settings\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"groupTypeSettings.label\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_TRANSACTION_UNIT_AMOUNT_TYPES\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"transaction-unit-amount-types.index\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"transaction.unitAmountType\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row division\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.label\\\"],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_SETTINGS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"add-setting-button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"settings.create\\\"],[[\\\"class\\\"],[\\\"btn btn-default margin-left\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"settings.create\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-responsive padding-top\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-responsive table-hover table-striped\\\"],[11,\\\"data-field-name\\\",\\\"settings-table\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.name\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.value\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.lastUpdated\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"sortedSettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"settings.desc.\\\",[22,1,[\\\"name\\\"]]],null]],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"word-break-all\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"value\\\"]],\\\"true\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"check\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"value\\\"]],\\\"false\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"times\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[22,1,[\\\"value\\\"]],false],[0,\\\"\\\\n                            \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"lastUpdated\\\"]],\\\"short\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"settings.edit\\\",[22,1,[]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showRestSettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row division\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.restSettingLabel\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"squareSetting\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"square-settings.edit\\\",[23,[\\\"squareSetting\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-default margin-right-small\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"squareSetting.label\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/settings/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/special-field-option/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend({\n    languageService: Ember.inject.service('language-service'),\n    transportType: _emberData.default.belongsTo('transportType', {\n      async: true\n    }),\n    field: _emberData.default.attr('string'),\n    option: _emberData.default.attr('string'),\n    optionEn: _emberData.default.attr('string'),\n    optionCs: _emberData.default.attr('string'),\n    optionInAppropriateLanguage: Ember.computed('option', 'optionEn', function () {\n      const propertyName = this.get('languageService').findProperLanguageVersion('option', 'optionEn');\n      return this.get(propertyName);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/square-setting/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend({\n    company: _emberData.default.belongsTo('company', {\n      async: true\n    }),\n    translationKey: _emberData.default.attr('string'),\n    orderNumberFirstColumnVisibility: _emberData.default.attr('boolean'),\n    carRegistrationFirstTableColumnVisibility: _emberData.default.attr('boolean'),\n    hdsFirstTableColumnVisibility: _emberData.default.attr('boolean'),\n    squareFirstTableColumnVisibility: _emberData.default.attr('boolean'),\n    queueFirstTableColumnVisibility: _emberData.default.attr('boolean'),\n    squareSecondTableColumnVisibility: _emberData.default.attr('boolean'),\n    queueSecondTableColumnVisibility: _emberData.default.attr('boolean'),\n    bufferSecondTableColumnVisibility: _emberData.default.attr('boolean'),\n    unloadSecondTableColumnVisibility: _emberData.default.attr('boolean')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/square-settings/edit/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    errors: [],\n    successMessage: null,\n    intl: Ember.inject.service(),\n    setSuccessMessage: function () {\n      this.set('successMessage', this.get('intl').t(\"common.saveSuccessMessage\"));\n      this.set('errors', []);\n    },\n    setErrorMessage: function (message) {\n      this.set('successMessage', null);\n      this.set('errors', message);\n    },\n    actions: {\n      save() {\n        this.get('model').save().then(() => this.setSuccessMessage()).catch(response => this.setErrorMessage(response.errors));\n      },\n\n      cancel() {\n        this.transitionToRoute('settings.index');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/square-settings/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_SETTINGS_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      return this.store.peekRecord('squareSetting', params.id);\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/square-settings/edit/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"VojlLrzQ\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"squareSetting.label\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row form-inline\\\"],[11,\\\"data-field-name\\\",\\\"translationKey\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"squareSetting.translationKey\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"model\\\",\\\"translationKey\\\"]],\\\"form-control\\\"]]],false],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[11,\\\"data-field-name\\\",\\\"order-number-first-column-visibility\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"orderNumberFirstColumnVisibility\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"squareSetting.orderNumberFirstColumnVisibility\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[11,\\\"data-field-name\\\",\\\"car-registration-first-table-column-visibility\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"carRegistrationFirstTableColumnVisibility\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"squareSetting.carRegistrationFirstTableColumnVisibility\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[11,\\\"data-field-name\\\",\\\"hds-first-table-column-visibility\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"hdsFirstTableColumnVisibility\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"squareSetting.hdsFirstTableColumnVisibility\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[11,\\\"data-field-name\\\",\\\"square-first-table-column-visibility\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"squareFirstTableColumnVisibility\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"squareSetting.squareFirstTableColumnVisibility\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[11,\\\"data-field-name\\\",\\\"queue-first-table-column-visibility\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"queueFirstTableColumnVisibility\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"squareSetting.queueFirstTableColumnVisibility\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[11,\\\"data-field-name\\\",\\\"square-second-table-column-visibility\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"squareSecondTableColumnVisibility\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"squareSetting.squareSecondTableColumnVisibility\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[11,\\\"data-field-name\\\",\\\"queue-second-table-column-visibility\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"queueSecondTableColumnVisibility\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"squareSetting.queueSecondTableColumnVisibility\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[11,\\\"data-field-name\\\",\\\"buffer-second-table-column-visibility\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"bufferSecondTableColumnVisibility\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"squareSetting.bufferSecondTableColumnVisibility\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[11,\\\"data-field-name\\\",\\\"unload-second-table-column-visibility\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"unloadSecondTableColumnVisibility\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"squareSetting.unloadSecondTableColumnVisibility\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/square-settings/edit/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/square/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend(_modelValidator.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    name: _emberData.default.attr('string'),\n    idx: _emberData.default.attr('string'),\n    company: _emberData.default.belongsTo('company', {\n      async: true\n    }),\n    queues: _emberData.default.hasMany('queue', {\n      async: true\n    }),\n    enabled: _emberData.default.attr('boolean', {\n      defaultValue: true\n    }),\n    validations: {\n      name: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      idx: {\n        presence: {\n          message: 'blank'\n        }\n      }\n    },\n    enabledQueuesForCurrentUser: Ember.computed('sessionAccount.currentUser.ramps', function () {\n      return this.get('sessionAccount.currentUser.queues').filterBy('square.id', this.get('id'));\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/squares/create/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: service('session-account'),\n    intl: service(),\n    store: service(),\n    apolloApiService: service('api.apollo-api-service'),\n    actions: {\n      save() {\n        const self = this;\n        const square = this.get('model');\n        square.validate();\n\n        if (square.get('errors.length')) {\n          return;\n        }\n\n        square.save().then(function (response) {\n          const msg = self.get('intl').t('square.updateSuccessMessage', {\n            squareName: square.get('name')\n          });\n          self.set('successMessage', msg);\n          self.transitionToRoute('squares.edit', response.id);\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n\n      disable() {\n        const self = this;\n        const model = this.get('model');\n        const squareId = this.get('model.id');\n        const jsonBody = JSON.stringify(model);\n        const path = this.get('apolloApiService').APOLLO_API.SQUARES.DISABLE;\n        this.get('apolloApiService').callApolloApi(path, {\n          squareId\n        }, {\n          body: jsonBody\n        }).then(() => {\n          model.set('enabled', false);\n          self.transitionToRoute('settings.index');\n        });\n      },\n\n      enable() {\n        const model = this.get('model');\n        const squareId = this.get('model.id');\n        const jsonBody = JSON.stringify(model);\n        const path = this.get('apolloApiService').APOLLO_API.SQUARES.ENABLE;\n        this.get('apolloApiService').callApolloApi(path, {\n          squareId\n        }, {\n          body: jsonBody\n        }).then(() => {\n          model.set('enabled', true);\n        });\n      },\n\n      cancel() {\n        this.get('model').rollbackAttributes();\n        this.transitionToRoute('settings.index');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/squares/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_CREATE_SQUARE'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      return this.store.createRecord(\"square\", {});\n    },\n    actions: {\n      willTransition: function () {\n        this.get('controller').setProperties({\n          errors: []\n        });\n        this.get('currentModel').unloadRecord();\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/squares/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"I2O3p/ZF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"queue\\\",\\\"idx\\\",\\\"place\\\",\\\"index\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[12,\\\"data-square-id\\\",[28,[[23,[\\\"model\\\",\\\"id\\\"]]]]],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"model\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom\\\"],[11,\\\"data-field-name\\\",\\\"square-name\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",\\\"text\\\",[23,[\\\"model\\\",\\\"name\\\"]],[27,\\\"t\\\",[\\\"common.name\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom\\\"],[11,\\\"data-field-name\\\",\\\"square-idx\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",\\\"number\\\",[23,[\\\"model\\\",\\\"idx\\\"]],[27,\\\"t\\\",[\\\"common.idx\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"idx\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 form-buttons\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"square.disableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"disable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"ban\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.disable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n                            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"warehouse.enableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"enable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"check\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.enable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"ok\\\"],[[\\\"on\\\",\\\"target\\\"],[\\\"submit\\\",[23,[\\\"view\\\"]]]]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-5\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"queues\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[12,\\\"data-queue-id\\\",[28,[[22,1,[\\\"id\\\"]]]]],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12\\\"],[9],[0,\\\"\\\\n                                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"panel-heading \\\",[27,\\\"unless\\\",[[22,1,[\\\"enabled\\\"]],\\\"disabled\\\"],null]]]],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"b\\\"],[9],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"queueLabel\\\"]]],false],[0,\\\" \\\"],[1,[22,1,[\\\"idx\\\"]],false],[10],[0,\\\"\\\\n                                            \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_EDIT_QUEUE\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"queues.edit\\\",[22,1,[]]],null,{\\\"statements\\\":[[0,\\\"                                                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[11,\\\"data-button-name\\\",\\\"queue-edit\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                                        \\\"],[10],[0,\\\"\\\\n                                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,1,[\\\"places\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                                    \\\"],[7,\\\"p\\\"],[12,\\\"class\\\",[28,[[27,\\\"unless\\\",[[22,3,[\\\"enabled\\\"]],\\\"disabled\\\"],null]]]],[12,\\\"data-place-id\\\",[28,[[22,3,[\\\"id\\\"]]]]],[9],[0,\\\"\\\\n                                                        \\\"],[1,[22,3,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_EDIT_PLACE\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"places.edit\\\",[22,3,[]]],null,{\\\"statements\\\":[[0,\\\"                                                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[11,\\\"data-button-name\\\",\\\"place-edit\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n                                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-footer\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_PLACE\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"places.addPlace\\\",[23,[\\\"model\\\",\\\"id\\\"]],[22,1,[\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                                                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"createPlace\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_QUEUE\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"queues.addQueue\\\",[23,[\\\"model\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"addQueue\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"square.createQueueAfterSave\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/squares/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/squares/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_EDIT_SQUARE'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      return this.store.findRecord('square', params.id, {\n        reload: true\n      });\n    },\n    renderTemplate: function () {\n      this.render('squares.create');\n    },\n    setupController: function (controller, model) {\n      this.controllerFor('squares.create').setProperties({\n        model: model\n      });\n    },\n    actions: {\n      willTransition: function () {\n        this.get('controller').setProperties({\n          success: false,\n          errors: []\n        });\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/statistics-report/index/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    reportWidth: '100%',\n    reportHeight: '1000',\n    reportTitle: Ember.computed('report.dashboardName', function () {\n      return this.get('report.dashboardName') + '_STATISTICS_REPORT';\n    }),\n    report: Ember.computed('model.{statisticsReports.firstObject,currentReport}', function () {\n      return this.get('model.currentReport') || this.get('model.statisticsReports.firstObject');\n    }),\n    url: Ember.computed('report.url', function () {\n      return this.get('report.url');\n    }),\n    noReportsAvailable: Ember.computed('model.statisticsReports{[],length}', function () {\n      return !this.get('model.statisticsReports') || this.get('model.statisticsReports.length') === 0;\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/statistics-report/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"apollo/mixins/menu-mixin\"], function (_exports, _authenticatedRouteMixin, _menuMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _menuMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    cookies: Ember.inject.service(),\n    access: Ember.A(['ROLE_STATISTICS_REPORT_TAB']),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      const statisticsReports = this.store.findAll('statistics-report');\n      const currentReport = statisticsReports.get('firstObject');\n      return Ember.RSVP.hash({\n        statisticsReports,\n        currentReport\n      });\n    },\n\n    activate() {\n      this.activateCurrentTab('STATISTICS_REPORT_TAB');\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/statistics-report/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"vDBWSMyS\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"noReportsAvailable\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"errors\\\"],[9],[1,[27,\\\"t\\\",[\\\"noAccessibleStatisticsReports\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"statistics-report-nav-header\\\",null,[[\\\"model\\\",\\\"activeReport\\\"],[[23,[\\\"model\\\"]],[23,[\\\"report\\\",\\\"nameInCurrentLanguage\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container-fluid \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"title\\\"],[9],[1,[23,[\\\"report\\\",\\\"nameInCurrentLanguage\\\"]],false],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"iframe-component\\\",null,[[\\\"height\\\",\\\"width\\\",\\\"title\\\",\\\"url\\\"],[[23,[\\\"reportHeight\\\"]],[23,[\\\"reportWidth\\\"]],[23,[\\\"reportTitle\\\"]],[23,[\\\"url\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/statistics-report/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/statistics-report/model\", [\"exports\", \"ember-data\", \"ember-data/model\"], function (_exports, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = _model.default.extend({\n    intl: Ember.inject.service(),\n    dashboardName: attr('string'),\n    plDashboardLabel: attr('string'),\n    enDashboardLabel: attr('string'),\n    csDashboardLabel: attr('string'),\n    deDashboardLabel: attr('string'),\n    url: attr('string'),\n    principalCompany: belongsTo('company', {\n      async: true\n    }),\n    nameInCurrentLanguage: Ember.computed('intl.locale.firstObject', function () {\n      const browserLanguage = this.get('intl.locale.firstObject');\n\n      switch (browserLanguage) {\n        case 'en':\n          return this.get('enDashboardLabel');\n\n        case 'cs':\n          return this.get('csDashboardLabel');\n\n        case 'de':\n          return this.get('deDashboardLabel');\n\n        case 'pl':\n        default:\n          return this.get('plDashboardLabel');\n      }\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/step-package-type/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\", \"ember-data-copyable\"], function (_exports, _emberData, _modelValidator, _emberDataCopyable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    Model,\n    attr\n  } = _emberData.default;\n\n  var _default = Model.extend(_modelValidator.default, _emberDataCopyable.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    validationService: Ember.inject.service('validation-service'),\n    intl: Ember.inject.service(),\n    step: belongsTo('step'),\n    packageType: belongsTo('packageType'),\n    quantity: attr('number'),\n    multiplier: attr('number'),\n    validations: {\n      step: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      packageType: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      quantity: {\n        custom: [{\n          validation: function (key, value, model) {\n            let isFieldVisible = false;\n            const packageTypeTransportType = model.get('packageTypeTransportType');\n            const isVisibleInWarehouseStep = packageTypeTransportType.get('visibleInWarehouseStep');\n            const isVisibleInContractorStep = packageTypeTransportType.get('visibleInContractorStep');\n\n            if (model.get('step.transport.transportType.hasVisibleSteps')) {\n              if (model.get('step.belongsToWarehouse')) {\n                isFieldVisible = isVisibleInWarehouseStep;\n              } else {\n                isFieldVisible = isVisibleInContractorStep;\n              }\n            } else {\n              isFieldVisible = isVisibleInWarehouseStep || isVisibleInContractorStep;\n            }\n\n            if (!isFieldVisible || !packageTypeTransportType.get('required')) {\n              return true;\n            }\n\n            return !Ember.isEmpty(value);\n          },\n          message: 'blank'\n        }, {\n          validation: function (key, value, model) {\n            return model.get('validationService').isPositiveInteger(value);\n          },\n          message: 'positiveInteger'\n        }, {\n          validation: function (key, value, model) {\n            if (Ember.isEmpty(value)) {\n              return true;\n            }\n\n            const packageTypeTransportType = model.get('packageTypeTransportType');\n            const minQuantityValue = packageTypeTransportType.get('minValue') ? packageTypeTransportType.get('minValue') : 0;\n            return value >= minQuantityValue;\n          },\n          message: function (key, value, model) {\n            const packageTypeTransportType = model.get('packageTypeTransportType');\n            const minQuantityValue = packageTypeTransportType.get('minValue') ? packageTypeTransportType.get('minValue') : 0;\n            return model.get('intl').t('step.errors.minQuantityValue', {\n              minQuantityValue\n            });\n          }\n        }]\n      }\n    },\n    packageTypeTransportType: Ember.computed('step.transport.transportType.id', 'packageType.id', function () {\n      const transportTypeId = this.get('step.transport.transportType.id');\n      const packageId = this.get('packageType.id');\n      return this.get('sessionAccount').getPackageTypeTransportType(packageId, transportTypeId);\n    }),\n    referencePackage: Ember.computed('step.transport.transportType.id', function () {\n      const transportTypeId = this.get('step.transport.transportType.id');\n      return this.get('sessionAccount').getPackageTypeTransportTypeForTransportType(transportTypeId).find(p => p.get('referencePackage')).get('packageType');\n    }),\n    referenceQuantityInfo: Ember.computed('referencePackage', 'packageType.id', 'asReferenceQuantity', function () {\n      if (this.get('referencePackage.id') === this.get('packageType.id')) {\n        return null;\n      }\n\n      return this.get('asReferenceQuantity');\n    }),\n    asReferenceQuantity: Ember.computed('quantity', 'multiplier', function () {\n      const quantity = this.get('quantity');\n      const multiplier = this.get('multiplier');\n\n      if (Ember.isEmpty(quantity) || !multiplier) {\n        return null;\n      }\n\n      return Math.ceil(quantity / multiplier);\n    }),\n    idx: Ember.computed('packageTypeTransportType.idx', function () {\n      return this.get('packageTypeTransportType.idx');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/step-warehouse-location/model\", [\"exports\", \"ember-data/model\", \"ember-data\"], function (_exports, _model, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend({\n    step: belongsTo('step', {\n      async: true,\n      inverse: 'stepWarehouseLocations'\n    }),\n    warehouseLocation: belongsTo('warehouseLocation', {\n      async: true,\n      inverse: null\n    }),\n    idx: attr('number')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/step/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"ember-data-copyable\", \"apollo/mixins/model-validator\", \"apollo/utils/validators/step-dates-validator\"], function (_exports, _emberData, _model, _emberDataCopyable, _modelValidator, _stepDatesValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    hasMany,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, _emberDataCopyable.default, {\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    dateFormatterService: Ember.inject.service('date.date-formatter-service'),\n    validationService: Ember.inject.service('validation-service'),\n    rounding: Ember.inject.service('rounding-service'),\n    STEP_TYPES: Object.freeze({\n      LOAD: 'load',\n      UNLOAD: 'unload'\n    }),\n    transport: belongsTo('transport', {\n      async: true\n    }),\n    timeWindow: belongsTo('timeWindow', {\n      async: true\n    }),\n    company: belongsTo('company', {\n      async: true\n    }),\n    companyGroup: belongsTo('userGroup', {\n      async: true\n    }),\n    address: belongsTo('address', {\n      async: true\n    }),\n    warehouse: belongsTo('warehouse', {\n      async: true\n    }),\n    warehouseZone: belongsTo('warehouseZone', {\n      defaultValue: function () {\n        return null;\n      }\n    }),\n    assortmentGroup: belongsTo('assortmentGroup', {\n      async: true\n    }),\n    stepWarehouseLocations: hasMany('stepWarehouseLocation', {\n      async: false\n    }),\n    stepTypeName: attr('string'),\n    orderInTransport: attr('number'),\n    documentIdentifier: attr(),\n    arrivalDate: attr('date'),\n    minAdviceDate: attr('date'),\n    maxAdviceDate: attr('date'),\n    weight: attr('number'),\n    volume: attr('number'),\n    stepPackageTypes: hasMany('stepPackageType', {\n      async: true\n    }),\n    enabled: attr('boolean', {\n      defaultValue: function () {\n        return true;\n      }\n    }),\n    didWarehouseChange: false,\n    contactPerson: attr('string'),\n    contactPersonMobilePhonePrefix: attr('string'),\n    contactPersonMobilePhoneNumber: attr('string'),\n    contactPersonEmail: attr('string'),\n    purchaseOrderNumber: attr('string'),\n    dimensions: attr('string'),\n    marcosPlaceId: attr('string'),\n    segmentLdm: attr('number'),\n    segmentPayload: attr('number'),\n    temporaryStepId: attr('string', {\n      transient: true\n    }),\n    stepSegmentLdm: Ember.computed('segmentLdm', function () {\n      return this.rounding.roundToTwoDecimals(this.get('segmentLdm'));\n    }),\n    stepSegmentPayload: Ember.computed('segmentPayload', function () {\n      return this.rounding.roundToTwoDecimals(this.get('segmentPayload'));\n    }),\n    validations: {\n      company: {\n        custom: [{\n          validation: function (key, value, model) {\n            // validacja obowiązuje tylko gdy w formularzu sa widoczne stepy\n            if (!model.get('transport.transportType.hasVisibleSteps')) {\n              return true;\n            } // pole jest wymagane tylko dla stepów które nie mają magazynu, podczas tworzenia transpotru mówi o tym zmienna ownedByPrincipal\n            // eslint-disable-next-line no-mixed-operators\n\n\n            if ((!model.get('ownedByPrincipal') && !model.get('id') || !model.get('warehouse.id')) && !value.get('id') && model.get('transport.transportType.requiresContractor')) {\n              return false;\n            }\n\n            return true;\n          },\n          message: 'isRequired'\n        }]\n      },\n      address: {\n        custom: [{\n          validation: function (key, value, model) {\n            // validacja nie obowiązuje jeśli typ transportu nie wymaga adresu i go nie podamy\n            if (!model.get('transport.transportType.requiresAddress') && !value.get('content')) {\n              return true;\n            } // Walidacja obowiązuje tylko gdy w formularzu są widoczne etapy\n\n\n            if (!model.get('transport.transportType.hasVisibleSteps')) {\n              return true;\n            } // Pole może być wymagane tylko dla etapów, które nie mają magazynu; podczas tworzenia transportu mówi o tym zmienna ownedByPrincipal\n\n\n            if (model.get('ownedByPrincipal') || model.get('warehouse.id')) {\n              return true;\n            } // Jeśli podczas tworzenia/edycji transportu chcemy dodać nowy adres musimy wypełnić pola ulica, miasto itp.\n\n\n            if (!value.get('id') && value.get('content')) {\n              return value.get('content').validate();\n            }\n\n            return value && (value.get('id') || value.get('recipient'));\n          },\n          message: 'blank'\n        }]\n      },\n      arrivalDate: {\n        custom: [{\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.arrivalDateBlank(model, model.get('transport.transportType'), value);\n          },\n          message: 'blankSelect'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.arrivalDateInPast(model, model.get('transport.transportType'), value);\n          },\n          message: 'isInPast'\n        }]\n      },\n      minAdviceDate: {\n        custom: [{\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.minAdviceDateBlank(model, model.get('transport.transportType'), value);\n          },\n          message: 'blankSelect'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.minAdviceDateAfterWindowStart(model, value);\n          },\n          message: 'afterWindowStart'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.minAdviceDateOutsideOfInterval(model, value);\n          },\n          message: function (key, value, self) {\n            const windowInterval = self.get('warehouse.timeWindowOffsetInterval');\n            return self.get('intl').t('step.errors.outsideOfInterval', {\n              windowInterval\n            }).toString();\n          }\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.minAdviceDateWorkingHours(model, value);\n          },\n          message: function (key, value, self) {\n            const workStartHour = self.get('warehouse.workStartHour');\n            const workStartDate = moment(value).startOf('day').add(workStartHour, 'hours').toDate();\n            const workEndHour = self.get('warehouse.workEndHour');\n            const workEndDate = moment(value).startOf('day').add(workEndHour, 'hours').toDate();\n            return self.get('intl').t('step.errors.outsideWarehouseWorkHours', {\n              workStart: moment(workStartDate).format('HH:mm'),\n              workEnd: workEndHour === 24 ? '24:00' : moment(workEndDate).format('HH:mm')\n            }).toString();\n          }\n        }]\n      },\n      maxAdviceDate: {\n        custom: [{\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.maxAdviceDateBlank(model, model.get('transport.transportType'), value);\n          },\n          message: 'blankSelect'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.maxAdviceDateEarly(model, value);\n          },\n          message: 'earlierThanMinAdviceDate'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.maxAdviceDateInPast(model, model.get('transport.transportType', value));\n          },\n          message: 'inThePast'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.maxAdviceDateWorkHours(model, value);\n          },\n          message: function (key, value, self) {\n            const workStartHour = self.get('warehouse.workStartHour');\n            const workStartDate = moment(value).startOf('day').add(workStartHour, 'hours').toDate();\n            const workEndHour = self.get('warehouse.workEndHour');\n            const workEndDate = moment(value).startOf('day').add(workEndHour, 'hours').toDate();\n            return self.get('intl').t('step.errors.outsideWarehouseWorkHours', {\n              workStart: moment(workStartDate).format('HH:mm'),\n              workEnd: workEndHour === 24 ? '24:00' : moment(workEndDate).format('HH:mm')\n            }).toString();\n          }\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.maxAdviceDateEarly(model, value);\n          },\n          message: 'beforeWindowStop'\n        }, {\n          validation: function (key, value, model) {\n            return _stepDatesValidator.default.maxAdviceDateOutsideInterval(model, value);\n          },\n          message: function (key, value, self) {\n            const windowInterval = self.get('warehouse.timeWindowOffsetInterval');\n            return self.get('intl').t('step.errors.outsideOfInterval', {\n              windowInterval\n            }).toString();\n          }\n        }]\n      },\n      warehouse: {\n        custom: [{\n          validation: function (key, value, model) {\n            // Walidacja obowiązuje tylko gdy w formularzu są widoczne stepy\n            if (!model.get('transport.transportType.hasVisibleSteps')) {\n              return true;\n            } // Pole jest wymagane tylko dla stepów, które mają magazyn.\n            // Podczas tworzenia transportu mówi o tym zmienna `ownedByPrincipal`\n\n\n            return value.get('id') || !model.get('ownedByPrincipal') || model.get('id');\n          },\n          message: 'blankSelect'\n        }, {\n          validation: function (key, value, model) {\n            // Nie wybranie magazynu powinno skutkować innym błędem\n            if (!value || !value.get('id')) {\n              return true;\n            }\n\n            const stepsWithWarehouse = model.get('transport.stepsWithWarehouse');\n\n            if (model.get('transport.id') && stepsWithWarehouse.get('length') <= 1) {\n              return true;\n            }\n\n            if (model.get('sessionAccount').getSettingValue('ALLOW_SAME_WAREHOUSE_IN_DIFFERENT_STEP') === 'true') {\n              return true;\n            }\n\n            const currentStepTypeName = model.get('stepTypeName'); // Nie chcemy, żeby błąd wyświetlał się przy obu magazynach - wystarczy na rozładunku\n\n            if (currentStepTypeName === 'load') {\n              return true;\n            }\n\n            const sameWarehouses = stepsWithWarehouse.filter(s => s.get('warehouse.id') === value.get('id'));\n            console.debug(`Number of the same warehouses: ${sameWarehouses.get('length')}`);\n            return !sameWarehouses || sameWarehouses.get('length') === 1;\n          },\n          message: 'sameWarehousesInTransfer'\n        }]\n      },\n      assortmentGroup: {\n        custom: [{\n          validation: function (key, value, model) {\n            // Jeśli step nie jest magazynowy, to nie ma potrzeby sprawdzania tej walidacji\n            if (!model.get('warehouse.id')) {\n              return true;\n            }\n\n            const assortmentGroups = model.get('store').peekAll('assortmentGroup').filter(ag => {\n              return ag.get('transportTypeIds').includes(model.get('transport.transportType.id')) && ag.get('warehouse.id') === model.get('transport.warehouse.id') && ag.get('enabled') === true;\n            }); // Walidacja obowiązuje tylko gdy do magazynu i typu transportu są przypisane grupy\n\n            if (assortmentGroups.length === 0) {\n              return true;\n            }\n\n            return !!value.get('id');\n          },\n          message: 'blankSelect'\n        }]\n      },\n      stepWarehouseLocations: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('belongsToWarehouse')) {\n              return true;\n            }\n\n            const fieldVisible = model.get('transport.transportType.isWarehouseLocationVisible');\n            const fieldObligatory = model.get('transport.transportType.isWarehouseLocationObligatory');\n            return !(fieldVisible && fieldObligatory && model.get('stepWarehouseLocations').length < 1);\n          },\n          message: 'blankSelect'\n        }]\n      },\n      weight: {\n        custom: [{\n          validation: function (key, value, model) {\n            let isFieldVisible = false;\n\n            if (model.get('belongsToWarehouse')) {\n              isFieldVisible = model.get('transport.transportType.isWeightVisibleInWarehouseStep');\n            } else {\n              isFieldVisible = model.get('transport.transportType.isWeightVisibleInContractorStep');\n            }\n\n            if (!isFieldVisible || !model.get('transport.transportType.requiresStepsWeight')) {\n              return true;\n            }\n\n            return !Ember.isEmpty(value);\n          },\n          message: 'blank'\n        }, {\n          validation: function (key, value, model) {\n            return model.get('validationService').isPositiveNumber(value);\n          },\n          message: 'noNegativeNumber'\n        }]\n      },\n      volume: {\n        custom: [{\n          validation: function (key, value, model) {\n            return model.get('validationService').isPositiveNumber(value);\n          },\n          message: 'noNegativeNumber'\n        }]\n      },\n      warehouseZone: {\n        custom: [{\n          validation: function (key, value, model) {\n            // Walidacja powinna obowiązywać tylko podczas tworzenia transportu\n            // i dopiero po wybraniu magazynu.\n            if (model.get('id') || !model.get('warehouse.id')) {\n              return true;\n            } // Można nie podać tej wartości w przypadku typów, które nie wymagają okna czasowego.\n\n\n            if (!model.get('transport.transportType.requiresTimeWindow')) {\n              return true;\n            } // Nie powinniśmy walidować strefy, jeśli nie jest ona widoczna w formularzu.\n\n\n            if (!model.get('transport.transportType.isWarehouseZoneVisible')) {\n              return true;\n            }\n\n            if (model.get('warehouse.warehouseZones.length') <= 1) {\n              const warehouseName = model.get('warehouse.name');\n              console.debug(`Magazyn ${warehouseName} posiada najwyżej jedną strefę - nie przeprowadzamy walidacji.`);\n              return true;\n            }\n\n            return value && value.get('id');\n          },\n          message: 'blank'\n        }]\n      },\n      contactPerson: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('transport.transportType.isContactDetailsFieldsVisible')) {\n              return true;\n            }\n\n            return !(model.get('transport.transportType.isContactDetailsFieldsRequired') && !value);\n          },\n          message: 'blank'\n        }]\n      },\n      contactPersonMobilePhoneNumber: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('transport.transportType.isContactDetailsFieldsRequired') || !model.get('transport.transportType.isContactDetailsFieldsVisible')) {\n              return true;\n            }\n\n            return /^[0-9]+$/.test(value) && value.length >= 9;\n          },\n          message: 'blank'\n        }]\n      },\n      contactPersonEmail: {\n        custom: [{\n          validation: function (key, value, model) {\n            const emailFormat = /^\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(\\.\\w{2,3})+$/;\n\n            if (!model.get('transport.transportType.isContactDetailsFieldsVisible')) {\n              return true;\n            }\n\n            if (value !== null && !value.match(emailFormat)) {\n              return false;\n            }\n\n            return !(model.get('transport.transportType.isContactDetailsFieldsRequired') && !value);\n          },\n          message: 'invalidEmailAddress'\n        }]\n      },\n      purchaseOrderNumber: {\n        length: {\n          maximum: {\n            value: 255,\n            message: 'length',\n            allowBlank: true\n          }\n        }\n      },\n      dimensions: {\n        length: {\n          maximum: {\n            value: 255,\n            message: 'length',\n            allowBlank: true\n          }\n        }\n      },\n      companyGroup: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('belongsToWarehouse')) {\n              return true;\n            }\n\n            if (!model.get('companyGroup.id')) {\n              return true;\n            }\n\n            const company = model.get('company');\n\n            if (!company.get('userGroups').find(ug => ug.get('id') === value.get('id'))) {\n              return false;\n            }\n\n            return true;\n          },\n          message: 'wrongValue'\n        }, {\n          validation: function (key, value, model) {\n            if (model.get('belongsToWarehouse') && model.get('transport.sortedSteps.length') !== 1) {\n              return true;\n            }\n\n            if (!model.get('transport.transportType.requiresContractorStepCompanyGroup')) {\n              return true;\n            }\n\n            const company = model.get('company');\n            const userGroups = company.get('nonDefaultUserGroups');\n\n            if (userGroups.length === 0) {\n              return true;\n            }\n\n            return !!model.get('companyGroup.id');\n          },\n          message: 'blank'\n        }]\n      }\n    },\n    startDate: Ember.computed('minAdviceDate', 'arrivalDate', function () {\n      return this.get('minAdviceDate') || this.get('arrivalDate');\n    }),\n    companyLabel: Ember.computed('company.shortName', 'companyGroup.{id,name}', function () {\n      let label = this.get('company.shortName');\n\n      if (this.get('companyGroup.id')) {\n        label += ` (${this.get('companyGroup.name')})`;\n      }\n\n      return label;\n    }),\n    sortProperty: Ember.computed('start', function () {\n      return this.get('start') ? this.get('start').getTime() : '';\n    }),\n    start: Ember.computed('timeWindow.start', function () {\n      return this.get('timeWindow').get('start');\n    }),\n    isInWarehouse: Ember.computed('warehouse.id', 'ownedByPrincipal', function () {\n      return this.get('warehouse.id') || this.get('ownedByPrincipal');\n    }),\n    isLoad: Ember.computed('stepTypeName', function () {\n      return this.get('stepTypeName') === this.get('STEP_TYPES').LOAD;\n    }),\n    isUnload: Ember.computed('stepTypeName', function () {\n      return this.get('stepTypeName') === this.get('STEP_TYPES').UNLOAD;\n    }),\n    companyName: Ember.computed('company', function () {\n      return this.get('company.name');\n    }),\n    country: Ember.computed('company', function () {\n      return this.get('company.country');\n    }),\n    belongsToWarehouse: Ember.computed('warehouse.id', 'id', 'ownedByPrincipal', function () {\n      return Boolean(this.get('warehouse.id')) || !this.get('id') && !!this.get('ownedByPrincipal');\n    }),\n    formattedAdviceTimeRange: Ember.computed('minAdviceDate', 'maxAdviceDate', function () {\n      return moment(this.get('minAdviceDate')).format('DD.MM.YYYY HH:mm').toString() + ' - ' + moment(this.get('maxAdviceDate')).format('DD.MM.YYYY HH:mm').toString();\n    }),\n    postal: Ember.computed('address.postal', 'warehouse.address.postal', function () {\n      return this.get('address.postal') || this.get('warehouse.address.postal');\n    }),\n    city: Ember.computed('address.city', 'warehouse.address.city', function () {\n      return this.get('address.city') || this.get('warehouse.address.city');\n    }),\n    indexes: Ember.computed('id', 'store', function () {\n      return this.get('store').peekAll('index').filter(i => i.get('step.id') === this.get('id'));\n    }),\n    indexSearchField: Ember.computed('company.shortName', 'address.recipient', function () {\n      if (!this.get('company.shortName')) {\n        return this.get('intl').t('common.noData');\n      }\n\n      const addressRecipient = this.get('address.recipient') ? ', ' + this.get('address.recipient') : '';\n      return `${this.get('company.shortName')}${addressRecipient}`;\n    }),\n    // eslint-disable-next-line ember/require-return-from-computed\n    formattedTerm: Ember.computed('arrivalDate', 'formattedAdviceTimeRange', 'showAdviceDateRestrictions', 'timeWindow.{formattedTime,id}', 'warehouse.formattedWorkTime', function () {\n      if (this.get('timeWindow.id') || this.get('showAdviceDateRestrictions')) {\n        return this.get('timeWindow.formattedTime') || this.get('formattedAdviceTimeRange');\n      } else if (this.get('arrivalDate')) {\n        return this.dateFormatterService.formatDefaultDateTime(this.get('arrivalDate'));\n      }\n    }),\n    numberOfErrors: Ember.computed('errors.length', function () {\n      return this.get('errors.length');\n    }),\n    showWarehouseCheckbox: Ember.computed('', function () {\n      return this.get('isLoad') ? this.get('transport.transportType.allowLoadStepTypeChange') : this.get('transport.transportType.allowUnloadStepTypeChange');\n    }),\n    showAdviceDateRestrictions: Ember.computed('warehouse', 'ownedByPrincipal', 'transport.transportType.requiresAdviceDateRestrictions', function () {\n      return this.get('isInWarehouse') && this.get('transport.transportType.requiresAdviceDateRestrictions');\n    }),\n    showAdviceDateRestrictionInEveryStep: Ember.computed('transport', function () {\n      if (this.get('transport.transportType.adviceRestrictionInEveryStep')) {\n        if (!this.get('transport.id')) {\n          this.setAdviceRestrictionDates();\n        }\n\n        return true;\n      }\n\n      return false;\n    }),\n\n    // W przypadku zmian spójrz na address-unload-time-service#_defaultArrivalDate. Jest tam\n    // zdublowany kod, który również trzeba będzie poprawić.\n    setArrivalDate() {\n      const numberOfDaysForFirstStep = this.get('transport.transportType.numberOfDaysAddedToFirstStep') || 0;\n      const defaultArrivalDateHour = this.get('transport.transportType.defaultArrivalDateHour') || '18:00'; // Split the time string into hours and minutes\n\n      const [hours, minutes] = (defaultArrivalDateHour || '').split(':').map(Number);\n      const defaultArrivalDate = moment().startOf('day').add(numberOfDaysForFirstStep, 'day').add(hours || 18, 'hours').add(minutes || 0, 'minutes').toDate();\n      this.setProperties({\n        arrivalDate: defaultArrivalDate\n      });\n    },\n\n    setAdviceRestrictionDates() {\n      const numberOfDaysAddedToFirstStep = this.get('transport.transportType.numberOfDaysAddedToFirstStep');\n      const numberOfDaysAddedToFirstStepEnd = this.get('transport.transportType.numberOfDaysAddedToFirstStepEnd');\n      const numberOfDaysAddedToNextSteps = this.get('transport.transportType.numberOfDaysAddedToNextSteps');\n      const numberOfDaysAddedToNextStepsEnd = this.get('transport.transportType.numberOfDaysAddedToNextStepsEnd');\n      const numberOfDaysForFirstStep = numberOfDaysAddedToFirstStep || 0;\n      const numberOfDaysForFirstStepEnd = numberOfDaysAddedToFirstStepEnd || 0;\n      const numberOfDaysForNextSteps = numberOfDaysAddedToNextSteps || 0;\n      const numberOfDaysForNextStepsEnd = numberOfDaysAddedToNextStepsEnd || 0;\n      const minAdviceDateForFirstStep = moment().startOf('day').add(numberOfDaysForFirstStep, 'day').toDate();\n      const maxAdviceDateForFirstStep = moment().startOf('day').add(numberOfDaysForFirstStepEnd, 'day').toDate();\n      const minAdviceDateForNextSteps = moment().startOf('day').add(numberOfDaysForNextSteps, 'day').toDate();\n      const maxAdviceDateForNextSteps = moment().startOf('day').add(numberOfDaysForNextStepsEnd, 'day').toDate();\n      let minAdviceDate = null;\n      let maxAdviceDate = null;\n\n      if (this.get('orderInTransport') === 0) {\n        minAdviceDate = minAdviceDateForFirstStep;\n        maxAdviceDate = maxAdviceDateForFirstStep;\n      } else {\n        minAdviceDate = minAdviceDateForNextSteps;\n        maxAdviceDate = maxAdviceDateForNextSteps;\n      }\n\n      if (this.get('warehouse')) {\n        const warehouseWorkStartHour = this.get('warehouse.workStartHour');\n        const warehouseWorkEndHour = this.get('warehouse.workEndHour');\n        minAdviceDate = moment(minAdviceDate).add(warehouseWorkStartHour, 'hours').toDate();\n        maxAdviceDate = moment(maxAdviceDate).add(warehouseWorkEndHour, 'hours').toDate();\n      }\n\n      this.setProperties({\n        minAdviceDate,\n        maxAdviceDate\n      });\n    },\n\n    requiresArrivalAndDepartureDate: Ember.computed('transport', function () {\n      return this.get('transport.transportType.requiresArrivalAndDepartureDate');\n    }),\n    requiresArrivalAndDepartureDateInWarehouseStep: Ember.computed('transport', 'transport.transportType', function () {\n      return this.get('transport.transportType.requiresArrivalAndDepartureDateInWarehouseStep');\n    }),\n    showAddressFieldsInContractorSteps: Ember.computed('transport.transportType.showAddressFieldsInContractorSteps', function () {\n      return this.get('transport.transportType.showAddressFieldsInContractorSteps');\n    }),\n    showWeightFieldInOfferForm: Ember.computed('transport', 'transport.activeAuction', 'showWeightField', function () {\n      return this.get('transport.activeAuction') && this.get('showWeightField');\n    }),\n    showWeightField: Ember.computed('transport', function () {\n      if (this.get('belongsToWarehouse')) {\n        return this.get('transport.transportType.isWeightVisibleInWarehouseStep');\n      }\n\n      return this.get('transport.transportType.isWeightVisibleInContractorStep');\n    }),\n    showVolumeField: Ember.computed('transport', function () {\n      if (this.get('belongsToWarehouse')) {\n        return this.get('transport.transportType.isVolumeVisibleInWarehouseStep');\n      }\n\n      return this.get('transport.transportType.isVolumeVisibleInContractorStep');\n    }),\n    showInternalReleaseNumberField: Ember.computed('transport', function () {\n      if (this.get('belongsToWarehouse')) {\n        return this.get('transport.transportType.isInternalReleaseNumberVisibleInWarehouseStep');\n      }\n\n      return this.get('transport.transportType.isInternalReleaseNumberVisibleInContractorStep');\n    }),\n    showPurchaseOrderNumberField: Ember.computed('transport', function () {\n      if (this.get('belongsToWarehouse')) {\n        return this.get('transport.transportType.purchaseOrderNumberVisibleInWarehouseStep');\n      }\n\n      return this.get('transport.transportType.purchaseOrderNumberVisibleInContractorStep');\n    }),\n    showDimensionsField: Ember.computed('transport', function () {\n      if (this.get('belongsToWarehouse')) {\n        return this.get('transport.transportType.dimensionsVisibleInWarehouseStep');\n      }\n\n      return this.get('transport.transportType.dimensionsVisibleInContractorStep');\n    }),\n    // Chciałam użyć nasłuchiwacz na `transport.checkpoints.@each.isConfirmed`, ale generowało to problemy\n    // ponieważ przy zapisie checkpointy są usuwane i generowane na nowo, przez co ember nie może\n    // czasem dodać nasłuchiwacza.\n    // Po potwierdzeniu statusu zawsze aktualizuje się transport.lastUpdated, więc efekt jest zgodny z oczekiwaniem.\n    canMoveLoadSteps: Ember.computed('transport.{id,transportType,lastUpdated}', function () {\n      return this.get('transport.content') && this.get('transport.content').actionCanBePerformed('MOVE_LOAD_STEPS');\n    }),\n\n    /**\n     * `transport.lastUpdated` -- zob. komentarz dla `canMoveLoadSteps`\n     */\n    canMoveUnloadSteps: Ember.computed('transport.{id,transportType,lastUpdated}', function () {\n      return this.get('transport.content') && this.get('transport.content').actionCanBePerformed('MOVE_UNLOAD_STEPS');\n    }),\n\n    /**\n     * Step można przesunąć, jeśli:\n     * - użytkownik ma uprawnienia na przesuwanie i załadunków, i rozładunków,\n     * - do czasu potwierdzenia statusu 'Potwierdzenie kolejności rozładunków'\n     * - lub step ma chociaż jednego sąsiada tego samego typu (do którego ma uprawnienie użytkownik)\n     */\n    canBeMoved: Ember.computed('stepTypeName', 'canMoveLoadSteps', 'canMoveUnloadSteps', 'transport.{steps.length,canBeUpdated}', function () {\n      if (this.get('canMoveLoadSteps') && this.get('canMoveUnloadSteps')) {\n        return true;\n      }\n\n      const stepType = this.get('stepTypeName');\n      return stepType === this.get('STEP_TYPES').LOAD ? this.get('canMoveLoadSteps') : this.get('canMoveUnloadSteps');\n    }),\n    // eslint-disable-next-line ember/require-return-from-computed\n    title: Ember.computed('stepTypeName', 'canMoveLoadSteps', 'canMoveUnloadSteps', function () {\n      if (!this.get('canBeMoved')) {\n        if (!this.get('canMoveLoadSteps') && !this.get('canMoveUnloadSteps')) {\n          return;\n        }\n\n        return this.get('canMoveLoadSteps') ? this.get('intl').t('step.canMoveLoadStep') : this.get('intl').t('step.canMoveUnloadStep');\n      }\n    }),\n    stringLabel: Ember.computed('address.{recipient,country.ibanSymbol}', 'warehouse.name', function () {\n      return this.get('warehouse.id') ? `${this.get('warehouse.name')}` : `${this.get('address.recipient')} (${this.get('address.country.ibanSymbol')})`;\n    }),\n    ramp: Ember.computed('timeWindow.ramp', function () {\n      return this.get('timeWindow.ramp');\n    }),\n    userRamps: Ember.computed('warehouse', 'sessionAccount.currentUser.ramps.[]', function () {\n      return this.get('sessionAccount.currentUser.ramps').filterBy('warehouse.id', this.get('warehouse.id'));\n    }),\n    warehouseZoneTransportTypes: Ember.computed('', function () {\n      return this.get('store').peekAll('warehouse-zone-transport-type');\n    }).readOnly(),\n    warehouseZones: Ember.computed('userRamps.@each.warehouseZone', 'warehouseZoneTransportTypes.[]', 'transport.transportType.id', function () {\n      const self = this;\n      const warehouseZonesIds = this.get('userRamps').getEach('warehouseZone.id').uniq();\n      const transportTypeId = self.get('transport.transportType.id');\n      const filteredWarehouseZoneTransportTypes = this.get('warehouseZoneTransportTypes').filter(it => {\n        return it.get('transportType.id') === transportTypeId;\n      }).filter(wztt => {\n        return warehouseZonesIds.includes(wztt.get('warehouseZone.id'));\n      });\n      return filteredWarehouseZoneTransportTypes.getEach('warehouseZone');\n    }),\n    // eslint-disable-next-line ember/no-observers\n    warehouseChanged: Ember.observer('warehouse', 'warehouseZones', 'transport.transportType', function () {\n      if (this.get('warehouseZone.id') && this.get('warehouseZone.warehouse.id') !== this.get('warehouse.id')) {\n        console.debug(`W stepie ${this.get('orderInTransport')} jest nowy magazyn -- ${this.get('warehouse.name')}; czyścimy wybór strefy...`);\n        this.set('warehouseZone', null);\n\n        if (this.get('transport.id')) {\n          console.debug('Został zmieniony magazyn w istniejącym zleceniu, ustawiam flagę didWarehouseChange na true');\n          this.set('didWarehouseChange', true);\n        }\n      }\n    }),\n    quantitySum: Ember.computed('stepPackageTypes.@each.{quantity,multiplier}', function () {\n      let sum = 0;\n      this.get('stepPackageTypes').forEach(spt => {\n        const asReferenceQuantity = spt.get('asReferenceQuantity');\n        sum += asReferenceQuantity || 0;\n      });\n      return sum;\n    }),\n    palletsQuantity: Ember.computed('stepPackageTypes.@each.quantity', function () {\n      return this.get('stepPackageTypes').filter(spt => spt.get('packageType.name').includes('PALLETS')).map(spt => spt.get('quantity') ? spt.get('quantity') : 0).reduce((a, b) => Number(a) + Number(b), 0);\n    }),\n    // eslint-disable-next-line ember/require-return-from-computed\n    newAddressAsDefault: Ember.computed('stepTypeName', 'company.id', 'transport.transportType.id', function () {\n      const stepTypeName = this.get('stepTypeName');\n      const stepTypes = this.get('STEP_TYPES');\n      const transportType = this.get('transport.transportType');\n\n      if (stepTypeName === stepTypes.LOAD) {\n        return transportType.get('newAddressAsDefaultInLoadStep');\n      } else if (stepTypeName === stepTypes.UNLOAD) {\n        return transportType.get('newAddressAsDefaultInUnloadStep');\n      }\n    }),\n    shouldAutoSaveCompanyGroup: Ember.computed('transport.sortedSteps.length', 'belongsToWarehouse', 'companyGroup.content', 'company.nonDefaultUserGroups.length', function () {\n      return (this.get('transport.sortedSteps.length') === 1 || !this.get('belongsToWarehouse')) && !this.get('companyGroup.content') && this.get('company.nonDefaultUserGroups.length') === 1;\n    }),\n    stepWarehouseLocationsLabels: Ember.computed('warehouse.warehouseLocations.@each.nameInAppropriateLanguage', function () {\n      return this.get('warehouse.warehouseLocations').filterBy('enabled');\n    }),\n    createdFromRoute: Ember.computed('transport.routeTemplate.id', function () {\n      return !!this.get('transport.routeTemplate.id');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/step/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, {\n    attrs: Object.freeze({\n      address: {\n        serialize: 'records'\n      }\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/super-admin/create/controller\", [\"exports\", \"apollo/config/environment\", \"jquery\"], function (_exports, _environment, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    errors: [],\n    countries: Ember.computed(function () {\n      return this.get('store').peekAll('country').sortBy('ibanSymbol');\n    }),\n    actions: {\n      save: function () {\n        const self = this;\n        const companyModel = this.get('model.company');\n        const addressModel = this.get('model.address');\n        const userModel = this.get('model.user');\n        addressModel.set('recipient', companyModel.get('name'));\n        companyModel.set('taxIdIsoNumber', companyModel.get('country.ibanSymbol'));\n        const companyModelErrors = !companyModel.validate({\n          except: ['partnershipType']\n        });\n        const addressModelErrors = !addressModel.validate();\n\n        if (companyModelErrors || addressModelErrors) {\n          return;\n        }\n\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        _jquery.default.ajax({\n          url: _environment.default.serverURL + '/companies/createPrincipal',\n          type: 'POST',\n          contentType: 'application/json; charset=utf-8',\n          dataType: 'json',\n          data: JSON.stringify({\n            company: companyModel,\n            address: addressModel,\n            user: userModel\n          }),\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(res => {\n          const msg = self.get('intl').t('administration.newPrincipal.successMsg', {\n            username: res.person.username\n          });\n          self.set('successMessage', msg);\n          $('html, body').animate({\n            scrollTop: 0\n          }, 'slow');\n        }).catch(response => {\n          self.set('errors', response.responseJSON.errors);\n          $('html, body').animate({\n            scrollTop: 0\n          }, 'slow');\n        });\n      },\n      cancel: function () {\n        this.transitionToRoute('super-admin.index');\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/super-admin/create/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    access: ['ROLE_SUPER_USER'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      const company = this.store.createRecord(\"company\", {\n        enabled: true,\n        isPrincipal: true,\n        pricingPlan: 'CLIENT'\n      });\n      const user = this.store.createRecord(\"user\", {\n        enabled: true,\n        statuteAccepted: true,\n        ramps: [],\n        notifications: []\n      });\n      const address = this.store.createRecord(\"address\", {});\n      return Ember.RSVP.hash({\n        user: user,\n        company: company,\n        address: address\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/super-admin/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"8Nhe/AUF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"lang\\\",\\\"country\\\",\\\"country\\\",\\\"error\\\"],\\\"statements\\\":[[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal form-margins\\\"],[11,\\\"autocomplete\\\",\\\"\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h1\\\"],[9],[1,[27,\\\"t\\\",[\\\"administration.newPrincipal.creation\\\"],null],false],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger dark-background\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,4,[]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"administration.newPrincipal.baseData\\\"],null],false],[10],[0,\\\"\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"company\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"company.name\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"name\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"company\\\",\\\"name\\\"]],[27,\\\"t\\\",[\\\"company.name\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"company\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"company\\\",\\\"errors\\\",\\\"shortName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"company.shortName\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"shortName\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"company\\\",\\\"shortName\\\"]],[27,\\\"t\\\",[\\\"company.shortName\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"company\\\"]],\\\"shortName\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"company\\\",\\\"errors\\\",\\\"alias\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"company.alias\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"alias\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"company\\\",\\\"alias\\\"]],[27,\\\"t\\\",[\\\"company.alias\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"company\\\"]],\\\"alias\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row text-right\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-12 hint\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"administration.newPrincipal.aliasHint\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"company\\\",\\\"errors\\\",\\\"country\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"company.country\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"taxIdNumber\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"country-select\\\",\\\"form-control\\\",[23,[\\\"model\\\",\\\"company\\\",\\\"country\\\"]],[23,[\\\"countries\\\"]],\\\"ibanSymbol\\\",[27,\\\"t\\\",[\\\"company.selectCountry\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"company\\\",\\\"country\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,3,[\\\"ibanSymbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"company\\\"]],\\\"country\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"company\\\",\\\"errors\\\",\\\"taxIdNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"company.taxIdNumber\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"taxIdNumber\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon mw-50px\\\"],[9],[1,[23,[\\\"model\\\",\\\"company\\\",\\\"country\\\",\\\"ibanSymbol\\\"]],false],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"company\\\",\\\"taxIdNumber\\\"]],[27,\\\"t\\\",[\\\"company.taxIdNumber\\\"],null],[27,\\\"not\\\",[[23,[\\\"model\\\",\\\"company\\\",\\\"country\\\",\\\"id\\\"]]],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"company\\\"]],\\\"taxIdNumber\\\"]]],false],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"model\\\",\\\"company\\\",\\\"country\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row text-right\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-12 hint\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"company.chooseCountryHint\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"administration.newPrincipal.companyAddress\\\"],null],false],[10],[0,\\\"\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"address\\\",\\\"errors\\\",\\\"street\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"address.street\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"street\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"address\\\",\\\"street\\\"]],[27,\\\"t\\\",[\\\"address.street\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"address\\\"]],\\\"street\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"address\\\",\\\"errors\\\",\\\"postal\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"address.postal\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"postal\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"address\\\",\\\"postal\\\"]],[27,\\\"t\\\",[\\\"address.postal\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"address\\\"]],\\\"postal\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"address\\\",\\\"errors\\\",\\\"city\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"address.city\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"city\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"address\\\",\\\"city\\\"]],[27,\\\"t\\\",[\\\"address.city\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"address\\\"]],\\\"city\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"address\\\",\\\"errors\\\",\\\"country\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"address.country\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"country\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"address\\\",\\\"country\\\"]]],null],[23,[\\\"countries\\\"]],true,\\\"searchFieldCountry\\\",[27,\\\"t\\\",[\\\"warehouse.selectCountry\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"address\\\",\\\"country\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,2,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"address\\\"]],\\\"country\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"administration.newPrincipal.userData\\\"],null],false],[10],[0,\\\"\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"user\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"user.name\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"person-name\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"user\\\",\\\"name\\\"]],[27,\\\"t\\\",[\\\"user.name\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"user\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"user\\\",\\\"errors\\\",\\\"username\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"user.username\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"person-username\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"user\\\",\\\"username\\\"]],[27,\\\"t\\\",[\\\"user.username\\\"],null],\\\"\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"user\\\"]],\\\"username\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"user\\\",\\\"errors\\\",\\\"email\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"user.email\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"person-email\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"user\\\",\\\"email\\\"]],[27,\\\"t\\\",[\\\"user.email\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"user\\\"]],\\\"email\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"user.preferredLanguage\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"preferred-language\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"model\\\",\\\"user\\\",\\\"preferredLanguage\\\"]],[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"availableLanguages\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"user\\\",\\\"preferredLanguage\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"languages.\\\",[22,1,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"user\\\",\\\"errors\\\",\\\"mobilePhoneNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"user.mobilePhoneNumber\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"person-mobilePhoneNumber\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"user\\\",\\\"mobilePhoneNumber\\\"]],[27,\\\"t\\\",[\\\"user.mobilePhoneNumber\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"user\\\"]],\\\"mobilePhoneNumber\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"user\\\",\\\"errors\\\",\\\"password\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"auth.password\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"person-password\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\",\\\"type\\\",\\\"autocomplete\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"user\\\",\\\"password\\\"]],[27,\\\"t\\\",[\\\"auth.password\\\"],null],\\\"password\\\",\\\"\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"user\\\"]],\\\"password\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"user\\\",\\\"errors\\\",\\\"password\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"auth.repeatPassword\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"person-repeatPassword\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\",\\\"type\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"user\\\",\\\"repeatedNewPassword\\\"]],[27,\\\"t\\\",[\\\"auth.password\\\"],null],\\\"password\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"user\\\"]],\\\"password\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 form-buttons\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/super-admin/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/super-admin/index/controller\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    session: Ember.inject.service('session'),\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    applicationController: Ember.inject.controller('application'),\n    transportsController: Ember.inject.controller('transports/index'),\n    actions: {\n      async start(job) {\n        const response = await this.get('apolloApiService').callApolloApi(this.get('apolloApiService').APOLLO_API.MANAGE_JOBS.START, null, {\n          body: JSON.stringify(job)\n        });\n\n        if (response.ok) {\n          this.set('errorMessage', []);\n        } else {\n          const error = await response.json();\n          this.set('errorMessage', error.errors);\n        }\n      },\n\n      async stop(job) {\n        const response = await this.get('apolloApiService').callApolloApi(this.get('apolloApiService').APOLLO_API.MANAGE_JOBS.STOP, null, {\n          body: JSON.stringify(job)\n        });\n\n        if (response.ok) {\n          this.set('errors', []);\n        } else {\n          const error = await response.json();\n          this.set('errors', error.errors);\n        }\n      },\n\n      impersonate() {\n        const self = this;\n        const currentToken = self.get('session.data.authenticated.token');\n        const usernameToImpersonate = self.get('username'); // TODO :: apollo-api-service\n\n        Ember.$.ajax({\n          url: _environment.default.serverURL + `/impersonate/${usernameToImpersonate}`,\n          type: 'POST',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + currentToken);\n          }\n        }).then(data => {\n          const token = data.token; // Nadpisujemy dane sesji ember-simple-auth.\n\n          self.get('session').setProperties({\n            'data.authenticated.access_token': token,\n            'data.authenticated.token': token,\n            'data.authenticated.username': usernameToImpersonate\n          }); // Nadpisujemy wpis w LocalStorage.\n\n          localStorage['ember_simple_auth-session'] = JSON.stringify({\n            'authenticated': {\n              'authenticator': 'authenticator:custom',\n              token,\n              'username': usernameToImpersonate,\n              'prevToken': currentToken,\n              'prevUsername': 'super-admin'\n            }\n          }); // Czyścimy ciasteczko zawierające id firmy pryncypała\n          // (będzie ponownie uzupełnione po wczytaniu użytkownika).\n\n          localStorage.removeItem('principalId'); // Ładujemy użytkownika na podstawie otrzymanego tokenu.\n\n          self.get('sessionAccount').loadCurrentUser().then(impersonatedUser => {\n            console.debug(`Zalogowaliśmy się na użytkownika ${impersonatedUser.get('username')}.`); // Po poprawnym wczytaniu użytkownika, uzupełniamy dane pryncypała..\n\n            const principalCompanyId = localStorage.getItem('principalId');\n            const principalCompany = self.get('store').peekRecord('company', principalCompanyId);\n            self.get('applicationController').set('principal', principalCompany); // ..i przenosimy użytkownika do widoku tabeli transportów.\n\n            self.get('transportsController').set('content', null);\n            self.send('goToTransportTab');\n          });\n        }, failureData => {\n          self.set('errorMessage', failureData.responseText);\n        });\n      },\n\n      goToTransportTab() {\n        this.send('goToTab', 'transports');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/super-admin/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"apollo/mixins/menu-mixin\"], function (_exports, _authenticatedRouteMixin, _menuMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _menuMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: Ember.A(['ROLE_SUPER_USER']),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      return Ember.RSVP.hash({\n        'managableJobs': this.store.findAll('managableJob')\n      });\n    },\n\n    activate() {\n      this.activateCurrentTab('SUPER_USER_TAB');\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/super-admin/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"pW6Ifs+x\",\n    \"block\": \"{\\\"symbols\\\":[\\\"job\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errorMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[21,\\\"errorMessage\\\"],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group pull-right\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"super-admin.create\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"administration.newPrincipal.create\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-inline\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"username-field\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"auth.impersonate\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\":\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\"],[\\\"username-field\\\",[23,[\\\"username\\\"]],\\\"swisskrono@demo.pl\\\",\\\"form-control\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"username\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"title\\\",\\\"impersonate\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"auth.login\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"impersonate\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[9],[1,[27,\\\"t\\\",[\\\"managableJob.title\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table-condensed table-header-bold\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.name\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.desc\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.start\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.stop\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"managableJobs\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[22,1,[\\\"jobName\\\"]],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[1,[22,1,[\\\"jobDescription\\\"]],false],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"clickable\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"start\\\",[22,1,[]]],null]],[9],[1,[27,\\\"t\\\",[\\\"common.start\\\"],null],false],[10],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"clickable\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"stop\\\",[22,1,[]]],null]],[9],[1,[27,\\\"t\\\",[\\\"common.stop\\\"],null],false],[10],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[1,[21,\\\"date-formatter-test\\\"],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/super-admin/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/surcharge-definition/model\", [\"exports\", \"apollo/mixins/model-validator\", \"ember-data\", \"ember-data/model\"], function (_exports, _modelValidator, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    hasMany,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    idx: attr('number'),\n    name: attr('string'),\n    nameEn: attr('string'),\n    alias: attr('string'),\n    enabled: attr('boolean', {\n      defaultValue() {\n        return true;\n      }\n\n    }),\n    multipleOccurences: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    alwaysIncludedInFreight: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    transportTypes: hasMany('transport-type'),\n    validations: {\n      idx: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      name: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      nameEn: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      alias: {\n        presence: {\n          message: 'blank'\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/surcharge-definitions/index/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    modalService: Ember.inject.service('modal-service'),\n    errors: Ember.A([]),\n    successMessage: null,\n    company: Ember.computed('model.company.id', function () {\n      return this.get('model.company');\n    }),\n    transportTypes: Ember.computed('model.transportTypes.@each.id', function () {\n      return this.get('model.transportTypes');\n    }),\n    surchargeDefinitions: Ember.computed('model.surchargeDefinitions.{[],length}', function () {\n      return this.get('model.surchargeDefinitions').filterBy('enabled').sortBy('idx');\n    }),\n    actions: {\n      add: function () {\n        const surchargeDefinition = this.get('store').createRecord('surchargeDefinition');\n        this.get('modalService').showModal(this.get('modalService').MODALS.SURCHARGE_DEFINITION.FORM, Ember.ObjectProxy.create({\n          surchargeDefinition,\n          transportTypes: this.get('model.transportTypes')\n        }));\n      },\n      edit: function (surchargeDefinition) {\n        this.get('modalService').showModal(this.get('modalService').MODALS.SURCHARGE_DEFINITION.FORM, Ember.ObjectProxy.create({\n          surchargeDefinition,\n          transportTypes: this.get('transportTypes')\n        }));\n      },\n      delete: async function (surchargeDefinition) {\n        await surchargeDefinition.set('enabled', false);\n        await surchargeDefinition.destroyRecord();\n        this.send('refreshRoute');\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/surcharge-definitions/index/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    access: Ember.A(['ROLE_MANAGE_SURCHARGE_DEFINITIONS']),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      return Ember.RSVP.hash({\n        transportTypes: this.store.findAll('transportType'),\n        surchargeDefinitions: this.store.findAll('surchargeDefinition')\n      });\n    },\n    actions: {\n      refreshRoute: function () {\n        this.refresh();\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/surcharge-definitions/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"sIKbOcK0\",\n    \"block\": \"{\\\"symbols\\\":[\\\"surchargeDefinition\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[0,\\\"\\\\n    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"add\\\"]],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-responsive padding-top\\\"],[11,\\\"data-field-name\\\",\\\"surcharge-definitions-table\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-responsive table-hover table-condensed\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"surchargeDefinition.table.name\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"surchargeDefinition.table.nameEn\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"surchargeDefinition.table.alias\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"surchargeDefinition.table.multipleOccurences\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"surchargeDefinition.table.alwaysIncludedInFreight\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"surchargeDefinition.table.idx\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                     \\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"surchargeDefinitions\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"surcharge-definition-name\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"surcharge-definition-name-en\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"nameEn\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"surcharge-definition-alias\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"alias\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"surcharge-definition-multiple-occcurences\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"multipleOccurences\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-check\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-times\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"surcharge-definition-always-included-in-freight\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"alwaysIncludedInFreight\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-check\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-times\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"surcharge-definition-idx\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"idx\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[9],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-xs btn-primary\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.edit\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"edit\\\",[22,1,[]]]],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-xs btn-danger\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"delete\\\",[22,1,[]]]],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/surcharge-definitions/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/surcharge-definitions/modals/form/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n\n    async init() {\n      this._super(...arguments);\n\n      this.set('loading', true);\n      await this.get('model.transportTypes');\n      this.set('loading', false);\n    },\n\n    modalTitle: Ember.computed('truckType.id', function () {\n      return this.get('truckType.id') ? this.get('intl').t('surchargeDefinition.form.title.edit') : this.get('intl').t('surchargeDefinition.form.title.add');\n    }),\n    surchargeDefinition: Ember.computed('model.surchargeDefinition', function () {\n      return this.get('model.surchargeDefinition');\n    }),\n    transportTypes: Ember.computed('model.transportTypes.[]', function () {\n      return this.get('model.transportTypes');\n    }),\n    proxiedTransportTypes: Ember.computed('surchargeDefinition.transportTypes', 'transportTypes', function () {\n      const properTransportTypesList = this.get('surchargeDefinition.id') ? this.get('surchargeDefinition.transportTypes') : [];\n      return this.get('transportTypes').map(tt => {\n        return Ember.ObjectProxy.create({\n          content: tt,\n          checked: properTransportTypesList.getEach('id').includes(tt.get('id'))\n        });\n      });\n    }),\n    actions: {\n      save() {\n        const self = this;\n        const surchargeDefinition = this.get('surchargeDefinition');\n        surchargeDefinition.set('transportTypes', this.get('proxiedTransportTypes').filterBy('checked', true).map(tt => tt.content));\n\n        if (!surchargeDefinition.validate()) {\n          console.error('Walidacja kosztu zwróciła błedy:');\n          surchargeDefinition.errors.forEach(error => console.error(`${error.attribute} ${error.message}`));\n          return;\n        }\n\n        surchargeDefinition.save().then(() => {\n          self.set('errors', []);\n          self.send('refreshRoute');\n          self.send('hideModal');\n        }).catch(response => {\n          console.debug(response);\n          response.errors ? this.set('errors', response.errors) : this.set('errors', [this.get('intl').t('common.defaultError')]);\n        });\n      },\n\n      cancel() {\n        this.get('surchargeDefinition').rollbackAttributes();\n        this.send('hideModal');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/surcharge-definitions/modals/form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"OhnVS3pe\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tt\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"showCancelButton\\\",\\\"cancel\\\"],[[23,[\\\"modalTitle\\\"]],true,[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"data-form-name\\\",\\\"truck-type-form\\\"],[11,\\\"class\\\",\\\"form-horizontal section\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"surchargeDefinition.form.idx\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"surcharge-definition-idx\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"surchargeDefinition\\\",\\\"errors\\\",\\\"idx\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"surchargeDefinition\\\",\\\"idx\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"surchargeDefinition\\\"]],\\\"idx\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"surchargeDefinition.form.name\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"surcharge-definition-name\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"surchargeDefinition\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"surchargeDefinition\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"surchargeDefinition\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"surchargeDefinition.form.nameEn\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"surcharge-definition-name-en\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"surchargeDefinition\\\",\\\"errors\\\",\\\"nameEn\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"surchargeDefinition\\\",\\\"nameEn\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"surchargeDefinition\\\"]],\\\"nameEn\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"surchargeDefinition.form.alias\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"surcharge-definition-name\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"surchargeDefinition\\\",\\\"errors\\\",\\\"alias\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"surchargeDefinition\\\",\\\"alias\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"surchargeDefinition\\\"]],\\\"alias\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-6 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"surchargeDefinition.form.multipleOccurences\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-3 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"no-wrap\\\"],[11,\\\"data-field-name\\\",\\\"surcharge-definition-multiple-occcurences\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"surchargeDefinition\\\",\\\"multipleOccurences\\\"]]]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[23,[\\\"surchargeDefinition\\\",\\\"form\\\",\\\"multipleOccurences\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-6 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"surchargeDefinition.form.alwaysIncludedInFreight\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-3 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"no-wrap\\\"],[11,\\\"data-field-name\\\",\\\"surcharge-definition-always-included-in-freight\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"surchargeDefinition\\\",\\\"alwaysIncludedInFreight\\\"]]]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[23,[\\\"surchargeDefinition\\\",\\\"form\\\",\\\"alwaysIncludedInFreight\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-6 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"surchargeDefinition.form.transportTypes\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-3 form-control-static\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"proxiedTransportTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"no-wrap\\\"],[12,\\\"data-field-name\\\",[28,[\\\"enabled-for-\\\",[22,1,[\\\"alias\\\"]]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"checked\\\"],[\\\"checkbox\\\",[27,\\\"concat\\\",[\\\"transport-type-\\\",[22,1,[\\\"id\\\"]]],null],[22,1,[\\\"checked\\\"]]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"label\\\"],[12,\\\"for\\\",[28,[[27,\\\"concat\\\",[\\\"transport-type-\\\",[22,1,[\\\"id\\\"]]],null]]]],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"save-button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"cancel-button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/surcharge-definitions/modals/form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/surcharge-value/model\", [\"exports\", \"apollo/mixins/model-validator\", \"ember-data\", \"ember-data/model\"], function (_exports, _modelValidator, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    transport: belongsTo('transport', {\n      async: true,\n      inverse: 'surchargeValues'\n    }),\n    surchargeDefinition: belongsTo('surchargeDefinition'),\n    currency: belongsTo('currency'),\n    contractor: belongsTo('company'),\n    confirmator: belongsTo('user'),\n    dateConfirmed: attr('date'),\n    value: attr('number'),\n    quantity: attr('number'),\n    validations: {\n      currency: {\n        custom: [{\n          validation: function (key, value) {\n            return !!value.get('id');\n          },\n          message: 'blankSelect'\n        }]\n      },\n      contractor: {\n        custom: [{\n          validation: function (key, value) {\n            return !!value.get('id');\n          },\n          message: 'blankSelect'\n        }]\n      },\n      surchargeDefinition: {\n        custom: [{\n          validation: function (key, value) {\n            return !!value.get('id');\n          },\n          message: 'blankSelect'\n        }]\n      },\n      value: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      quantity: {\n        presence: {\n          message: 'blank'\n        }\n      }\n    },\n    currencySymbol: Ember.computed('currency.symbol', function () {\n      return this.get('currency.symbol');\n    }),\n    accepted: Ember.computed('dateConfirmed', 'confirmator.id', function () {\n      return this.confirmator.get('id') && this.dateConfirmed;\n    }),\n    totalValue: Ember.computed('quantity', 'value', function () {\n      return Number(this.quantity || 1) * Number(this.value || 0);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/table-column/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend({\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    languageService: Ember.inject.service('language-service'),\n    LABEL_FROM_SETTINGS: {\n      ERP_IDENTIFIER: 'ERP_IDENTIFIER_LABEL',\n      ALT_IDENTIFIER: 'ALT_IDENTIFIER_LABEL',\n      STORAGE_ZONE: 'WAREHOUSE_ZONE_LABEL'\n    },\n    name: _emberData.default.attr('string'),\n    idx: _emberData.default.attr(''),\n    label: Ember.computed('name', function () {\n      const settingName = this.get('LABEL_FROM_SETTINGS')[this.get('name')];\n      let columnName = null;\n\n      if (settingName) {\n        const properSuffix = this.get('languageService').findProperLanguageVersion('', '_EN');\n        columnName = this.get('sessionAccount').getSettingValue(`${settingName}${properSuffix}`);\n      }\n\n      return columnName ? columnName : this.get('intl').t(`columns.${this.get('name')}`);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/task/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\", \"ember-data/model\"], function (_exports, _emberData, _modelValidator, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    belongsTo,\n    hasMany\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    languageService: Ember.inject.service('language-service'),\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    workflow: belongsTo('workflow', {\n      async: true,\n      inverse: 'tasks'\n    }),\n    enabled: attr('boolean'),\n    alias: attr('string'),\n    groupAlias: attr('string'),\n    canBeConfirmedByGuard: attr('boolean'),\n    taskGroupIdentifier: attr('number'),\n    idxInGroup: attr('number'),\n    tracked: attr('boolean'),\n    markIfWasDelayed: attr('boolean'),\n    stepType: attr('string'),\n    checkpointName: attr('string'),\n    checkpointNameEn: attr('string'),\n    stageName: attr('string'),\n    stageNameEn: attr('string'),\n    altCheckpointName: attr('string'),\n    altCheckpointNameEn: attr('string'),\n    color: attr('string'),\n    altCheckpointColor: attr('string'),\n    canBeRevoked: attr('boolean'),\n    canBeRejected: attr('boolean'),\n    confirmCheckpointAfterCarrierSelect: attr('boolean'),\n    confirmCheckpointAfterCourierPickup: attr('boolean'),\n    confirmCheckpointAfterCourierDelivered: attr('boolean'),\n    moveTransportToArchiveIfDelayed: attr('boolean'),\n    shouldBeApprovedWithAdvice: attr('boolean'),\n    shouldBeApprovedWithCFTypeEmailAdvice: attr('boolean'),\n    shouldBeApprovedWithTimeWindow: attr('boolean'),\n    weighingIncluded: attr('boolean'),\n    artrIncluded: attr('boolean'),\n    shouldBeSavedAsApproved: attr('boolean'),\n    canBeConfirmAfterAddingDocumentsForTransport: attr('boolean'),\n    shouldCreateClassificationResource: attr('boolean'),\n    canConfirmPrevious: attr('boolean'),\n    expectedDateInterval: attr('string'),\n    expectedDateReference: attr('string'),\n    association: attr('string'),\n    shouldGenerateDocument: attr('boolean'),\n    sendDocumentDelayedEmail: attr('boolean'),\n    showPunctualityAlertAfterConfirmation: attr('boolean'),\n    visibleInDeliveryDocument: attr('boolean'),\n    sendApiMessage: attr('boolean'),\n    repeatSendApiMessage: attr('boolean'),\n    requiresWarehouseLocation: attr('boolean'),\n    requiresTruckType: attr('boolean'),\n    shouldFindFreeSpotAfterDelay: attr('boolean'),\n    canBeBlocked: attr('boolean'),\n    isDriverCheckInTask: attr('boolean'),\n    customFieldOption: belongsTo('customFieldOption', {\n      async: true\n    }),\n    stayAtTheFacility: attr('boolean'),\n    canBeConfirmedWithSms: attr('boolean'),\n    masterTask: belongsTo('task', {\n      async: true,\n      inverse: 'subTasks',\n      deepEmbedded: false\n    }),\n    subTasks: hasMany('task', {\n      async: true,\n      inverse: 'masterTask'\n    }),\n    openCustomModal: attr('boolean'),\n    recreateMasterTaskSubTasks: attr('boolean'),\n    customModalComponentName: attr('string'),\n    timeWindowCssClassName: attr('string'),\n    shouldConfirmRelatedCheckpoint: attr('boolean'),\n    shouldBeConfirmedByRelatedCheckpoint: attr('boolean'),\n    shouldSendLpToSapMessages: attr('boolean'),\n    shouldSendLpToMSHMessages: attr('boolean'),\n    includeConfirmationDateWhenGeneratingAdviceReport: attr('boolean'),\n    userHasToAddCheckpointConfirmationDate: attr('boolean'),\n    checkpointSortId: attr('number'),\n    validations: {\n      stepType: {\n        custom: [{\n          validation: function (key, value, model) {\n            return !(model.get('taskGroupIdentifier') === 1 && !value);\n          },\n          message: 'blank'\n        }]\n      },\n      checkpointName: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      checkpointNameEn: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      stageName: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      stageNameEn: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      association: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('isInStepsGroup')) {\n              return true;\n            }\n\n            return !!value;\n          },\n          message: 'blankSelect'\n        }]\n      },\n      color: {\n        custom: [{\n          validation: function (key, value) {\n            const style = new Option().style;\n            style.color = value;\n            return style.color !== '';\n          },\n          message: 'blank'\n        }]\n      },\n      expectedDateReference: {\n        presence: {\n          message: 'blank'\n        }\n      }\n    },\n    DEFAULT_CUSTOM_MODAL_COMPONENT_NAME: Ember.computed('', function () {\n      return 'default-modal';\n    }).readOnly(),\n    canBeBlockedByRole: Ember.computed('sessionAccount.currentUser.roleNames.length', function () {\n      const hasRole = this.actionCanBePerformed('ROLE_CAN_BLOCK_TASK') && this.actionCanBePerformed('ROLE_CAN_BLOCK_TASK').length > 0;\n      return this.get('canBeBlocked') && hasRole && !this.get('checkpoint.completed');\n    }),\n    canBeRevokedByRole: Ember.computed('sessionAccount.currentUser.roleNames.length', function () {\n      return this.get('canBeRevoked') && this.actionCanBePerformed('ROLE_CAN_REVOKE_TASK');\n    }),\n    canBeRejectedByRole: Ember.computed('sessionAccount.currentUser.roleNames.length', function () {\n      return this.get('canBeRejected') && this.actionCanBePerformed('ROLE_CAN_REJECT_TASK');\n    }),\n    canBeConfirmedByRole: Ember.computed('sessionAccount.currentUser.roleNames.length', function () {\n      return this.actionCanBePerformed('ROLE_CAN_CONFIRM_TASK');\n    }),\n    canBeSeenByRole: Ember.computed('sessionAccount.currentUser.roleNames.length', function () {\n      return this.actionCanBePerformed('ROLE_CAN_ACCESS_TASK');\n    }),\n    canAddConfirmationDateByRole: Ember.computed('sessionAccount.currentUser.roleNames.length', function () {\n      return this.actionCanBePerformed('ROLE_CAN_ADD_CONFIRMATION_DATE_TASK').length > 0;\n    }),\n    actionCanBePerformed: function (actionType) {\n      return this.authorityCheckerService.findPositiveAuthorityRestrictionsForTask(this, actionType);\n    },\n    expectedDateIntervalSign: Ember.computed('expectedDateInterval', function () {\n      const interval = this.get('expectedDateInterval');\n\n      if (!interval) {\n        return null;\n      }\n\n      return interval[0] === '-' ? 'before' : 'after';\n    }),\n    expectedDateIntervalUnit: Ember.computed('expectedDateInterval', function () {\n      const interval = this.get('expectedDateInterval');\n\n      if (!interval) {\n        return null;\n      }\n\n      return interval[interval.length - 1];\n    }),\n    expectedDateIntervalModulo: Ember.computed('expectedDateInterval', function () {\n      const interval = this.get('expectedDateInterval');\n\n      if (!interval) {\n        return null;\n      }\n\n      const unit = this.get('expectedDateIntervalUnit');\n      return parseInt(interval.replace('-', '').replace(unit, ''));\n    }),\n    // eslint-disable-next-line ember/no-observers\n    expectedDateIntervalUnitChanged: Ember.observer('expectedDateIntervalUnit', 'expectedDateIntervalSign', 'expectedDateIntervalModulo', function () {\n      const unit = this.get('expectedDateIntervalUnit');\n      const sign = this.get('expectedDateIntervalSign') === 'before' ? '-' : '';\n      const number = this.get('expectedDateIntervalModulo');\n      const newInterval = sign + number + unit;\n      this.set('expectedDateInterval', newInterval);\n    }),\n    defaultStageName: Ember.computed('stageName', 'checkpointName', function () {\n      return this.get('checkpointName') ? this.get('stageName') || this.get('intl').t('task.defaultStagePrefix') + ' ' + this.get('checkpointName') : this.get('intl').t('task.stageName');\n    }),\n    checkpointNameInAppropriateLanguage: Ember.computed('checkpointName', 'checkpointNameEn', function () {\n      const propertyName = this.get('languageService').findProperLanguageVersion('checkpointName', 'checkpointNameEn');\n      return this.get(propertyName);\n    }),\n    stageNameInAppropriateLanguage: Ember.computed('stageName', 'stageNameEn', function () {\n      const propertyName = this.get('languageService').findProperLanguageVersion('stageName', 'stageNameEn');\n      return this.get(propertyName);\n    }),\n    isLastWeighingTask: Ember.computed('weighingIncluded', 'workflow.sortedTasks', function () {\n      const workflowId = this.get('workflow.id');\n      const weighingTasks = this.get('store').peekAll('task').filter(task => {\n        return task.get('weighingIncluded') && task.get('workflow.id') === workflowId;\n      }).sortBy('taskGroupIdentifier', 'idxInGroup');\n      return weighingTasks && weighingTasks.get('length') > 0 ? weighingTasks.get('lastObject.id') === this.get('id') : false;\n    }),\n    legendString: Ember.computed('stageNameInAppropriateLanguage', 'workflow.transportType.name', function () {\n      return `${this.get('stageNameInAppropriateLanguage')} (${this.get('workflow.transportType.nameInAppropriateLanguage')})`;\n    }),\n    isInStepsGroup: Ember.computed('id', function () {\n      return this.get('taskGroupIdentifier') === 1;\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/task/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, {\n    attrs: Object.freeze({\n      subTasks: {\n        embedded: 'save'\n      }\n    }),\n    serializeHasMany: function (record, json, relationship) {\n      const key = relationship.key;\n      const hasManyRecords = record.hasMany(key);\n\n      if (hasManyRecords && this.attrs[key] && this.attrs[key].embedded === 'save') {\n        json[key] = [];\n        hasManyRecords.forEach(function (item) {\n          const data = item.attributes();\n          data.id = item.id;\n          json[key].push(data);\n        });\n      } else {\n        this._super(record, json, relationship);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/tasks/edit/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    errors: [],\n    ASSOCIATIONS: ['WAREHOUSE', 'CONTRACTOR', 'WAREHOUSE_AND_CONTRACTOR'],\n    TASK_GROUP_IDENTIFIER: Object.freeze({\n      TASK_GROUP_PREPARATION: 0,\n      TASK_GROUP_STEPS: 1,\n      TASK_GROUP_ARCHIVING: 2,\n      TASK_GROUP_DELIVERY: 100\n    }),\n    movingDelayedTransportToArchiveActive: Ember.computed('', function () {\n      return this.get('sessionAccount').getSettingValue('DELAY_TIME_TO_MOVE_ORDER_TO_ARCHIVE_AFTER_TASK_TIMEOUT');\n    }),\n    automaticGenerateDocumentActive: Ember.computed('', function () {\n      return this.get('sessionAccount').getSettingValue('AUTOMATIC_GENERATE_DOCUMENT');\n    }),\n    customFieldDefinitions: Ember.computed('model.workflow.transportType', function () {\n      return this.get('model.workflow.transportType').get('customFieldDefinitions');\n    }),\n    selectedCustomFieldDefinition: Ember.computed('model.customFieldOption', function () {\n      return this.get('model.customFieldOption.definition');\n    }),\n    customFieldOptions: Ember.computed('customFieldDefinitions', 'selectedCustomFieldDefinition', function () {\n      return this.get('selectedCustomFieldDefinition').get('options');\n    }),\n    shouldShowArtrOption: Ember.computed('model.taskGroupIdentifier', function () {\n      const groupId = this.get('model.taskGroupIdentifier');\n      return !(groupId === this.get('TASK_GROUP_IDENTIFIER.TASK_GROUP_PREPARATION') || groupId === this.get('TASK_GROUP_IDENTIFIER.TASK_GROUP_ARCHIVING'));\n    }),\n    actions: {\n      save: function () {\n        const self = this;\n        const taskModel = this.get('model');\n\n        if (!taskModel.validate()) {\n          return;\n        }\n\n        taskModel.save().then(function (task) {\n          self.set('errors', []);\n          self.transitionToRoute('workflows.edit', self.get('model.workflow.id'));\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n      cancel: function () {\n        this.transitionToRoute('workflows.edit', this.get('model.workflow.id'));\n      },\n\n      disable(task) {\n        const self = this;\n        task.deleteRecord();\n        task.save().then(() => {\n          self.set('errors', []);\n          self.transitionToRoute('workflows.edit', self.get('model.workflow.id'));\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/tasks/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_EDIT_WORKFLOW'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      return this.store.findRecord('task', params.task_id);\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/tasks/edit/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"EV32e0sZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"cfo\\\",\\\"cfd\\\",\\\"association\\\"],\\\"statements\\\":[[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal form-margins\\\"],[11,\\\"autocomplete\\\",\\\"\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"checkpointName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-lg-8\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.editLabel\\\"],[[\\\"id\\\",\\\"transportType\\\"],[[23,[\\\"model\\\",\\\"id\\\"]],[23,[\\\"model\\\",\\\"workflow\\\",\\\"transportType\\\",\\\"nameInAppropriateLanguage\\\"]]]]],false],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xl-4 navigation-buttons\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"tasks.edit\\\",[23,[\\\"model\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-info\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"task.settingsLabel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"checkpointName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.checkpointName\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"checkpoint-name\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"checkpointName\\\"]],[27,\\\"t\\\",[\\\"task.checkpointName\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"checkpointName\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"checkpointNameEn\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.checkpointNameEn\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"checkpoint-name-en\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"checkpointNameEn\\\"]],[27,\\\"t\\\",[\\\"task.checkpointNameEn\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"checkpointNameEn\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"checkpointSortId\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.checkpointSortId\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"checkpoint-sort-id\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"checkpointSortId\\\"]],[27,\\\"t\\\",[\\\"task.checkpointSortId\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"checkpointSortId\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"stageName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.stageName\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"stage-name\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"stageName\\\"]],[27,\\\"t\\\",[\\\"task.stageName\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"stageName\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"stageNameEn\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.stageNameEn\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"stage-name-en\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"stageNameEn\\\"]],[27,\\\"t\\\",[\\\"task.stageNameEn\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"stageNameEn\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"isInStepsGroup\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"association\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.associations.label\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"association\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"model\\\",\\\"association\\\"]],[23,[\\\"ASSOCIATIONS\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"association\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"task.associations.\\\",[22,3,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"association\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"alias\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.alias\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"alias\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"alias\\\"]],[27,\\\"t\\\",[\\\"task.alias\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"alias\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_TASK_GROUP_ALIAS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"groupAlias\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.groupAlias\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"groupAlias\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"groupAlias\\\"]],[27,\\\"t\\\",[\\\"task.groupAlias\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"groupAlias\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"color\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.color\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"color\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"color\\\"]],[27,\\\"t\\\",[\\\"task.color\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"color\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"customFieldDefinition\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.customFieldDefinition\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"custom-field-definition\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"selectedCustomFieldDefinition\\\"]],[23,[\\\"customFieldDefinitions\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"selectedCustomFieldDefinition\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[22,2,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"customFieldDefinition\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"selectedCustomFieldDefinition\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"customFieldOption\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.customFieldOption\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"custom-field-option\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"model\\\",\\\"customFieldOption\\\"]],[23,[\\\"customFieldOptions\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"customFieldOption\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"customFieldOption\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"altCheckpointName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.altCheckpointName\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"alt-checkpoint-name\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"altCheckpointName\\\"]],[27,\\\"t\\\",[\\\"task.altCheckpointName\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"altCheckpointName\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"altCheckpointNameEn\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.altCheckpointNameEn\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"alt-checkpoint-name-en\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"altCheckpointNameEn\\\"]],[27,\\\"t\\\",[\\\"task.altCheckpointNameEn\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"altCheckpointNameEn\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"altCheckpointColor\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.altCheckpointColor\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"alt-checkpoint-color\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"altCheckpointColor\\\"]],[27,\\\"t\\\",[\\\"task.altCheckpointColor\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"altCheckpointColor\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"timeWindowCssClassName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.timeWindowCssClassName\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"alt-checkpoint-color\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"timeWindowCssClassName\\\"]],[27,\\\"t\\\",[\\\"task.timeWindowCssClassName\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"timeWindowCssClassName\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"canBeRevoked\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.canBeRevoked\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"can-be-revoked\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"canBeRevoked\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"canBeRevoked\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"canBeRejected\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.canBeRejected\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"can-be-rejected\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"canBeRejected\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"canBeRejected\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"canBeConfirmAfterAddingDocumentsForTransport\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.canBeConfirmAfterAddingDocumentsForTransport\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"can-be-confirm-after-adding-documents-for-transport\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"canBeConfirmAfterAddingDocumentsForTransport\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"canBeConfirmAfterAddingDocumentsForTransport\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"shouldBeApprovedWithAdvice\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.shouldBeApprovedWithAdvice\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"should-be-approved-with-advice\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"shouldBeApprovedWithAdvice\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"shouldBeApprovedWithAdvice\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"shouldBeApprovedWithCFTypeEmailAdvice\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.shouldBeApprovedWithCFTypeEmailAdvice\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"should-be-approved-with-cf-type-email-advice\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"shouldBeApprovedWithCFTypeEmailAdvice\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"shouldBeApprovedWithCFTypeEmailAdvice\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"shouldBeApprovedWithTimeWindow\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.shouldBeApprovedWithTimeWindow\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"should-be-approved-with-time-window\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"shouldBeApprovedWithTimeWindow\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"shouldBeApprovedWithTimeWindow\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"shouldBeSavedAsApproved\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.shouldBeSavedAsApproved\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"should-be-saved-as-approved\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"shouldBeSavedAsApproved\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"shouldBeSavedAsApproved\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"confirmCheckpointAfterCarrierSelect\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.confirmCheckpointAfterCarrierSelect\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"confirm-checkpoint-after-carrier-select\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"confirmCheckpointAfterCarrierSelect\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"confirmCheckpointAfterCarrierSelect\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"confirmCheckpointAfterCourierPickup\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.confirmCheckpointAfterCourierPickup\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"confirm-checkpoint-after-courier-pickup\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"confirmCheckpointAfterCourierPickup\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"confirmCheckpointAfterCourierPickup\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"confirmCheckpointAfterCourierDelivered\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.confirmCheckpointAfterCourierDelivered\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"confirm-checkpoint-after-courier-delivered\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"confirmCheckpointAfterCourierDelivered\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"confirmCheckpointAfterCourierDelivered\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"automaticGenerateDocumentActive\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"shouldGenerateDocument\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.shouldGenerateDocument\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"automatic-delivery-note-generation\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"shouldGenerateDocument\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"shouldGenerateDocument\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"visibleInDeliveryDocument\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.visibleInDeliveryDocument\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"visible-in-delivery-document\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"visibleInDeliveryDocument\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"visibleInDeliveryDocument\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"weighingIncluded\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.weighingIncluded\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"weighing-included\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"weighingIncluded\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"weighingIncluded\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"shouldShowArtrOption\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"artrIncluded\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.artrIncluded\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"artr-included\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"artrIncluded\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"artrIncluded\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"sendDocumentDelayedEmail\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.sendDocumentDelayedEmail\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"weighing-included\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"sendDocumentDelayedEmail\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"sendDocumentDelayedEmail\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"movingDelayedTransportToArchiveActive\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"moveTransportToArchiveIfDelayed\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.moveTransportToArchiveIfDelayed\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"move-transport-to-archive-if-delayed\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"moveTransportToArchiveIfDelayed\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"moveTransportToArchiveIfDelayed\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"showPunctualityAlertAfterConfirmation\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.showPunctualityAlertAfterConfirmation\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"show-punctuality-alert-after-confirmation\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"showPunctualityAlertAfterConfirmation\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"showPunctualityAlertAfterConfirmation\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"sendApiMessage\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.sendApiMessage\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"send-api-message\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"sendApiMessage\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"sendApiMessage\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"sendApiMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"repeatSendApiMessage\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.repeatSendApiMessage\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"send-api-message\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"repeatSendApiMessage\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"repeatSendApiMessage\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"requiresWarehouseLocation\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.requiresWarehouseLocation\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"requires-warehouse-location\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"requiresWarehouseLocation\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"requiresWarehouseLocation\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"requiresTruckType\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.requiresTruckType\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"requires-truck-type\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"requiresTruckType\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"requiresTruckType\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"shouldFindFreeSpotAfterDelay\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.shouldFindFreeSpotAfterDelay\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"should-find-free-spot-after-delay\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"shouldFindFreeSpotAfterDelay\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"shouldFindFreeSpotAfterDelay\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"canBeBlocked\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.canBeBlocked\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"can-be-blocked\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"canBeBlocked\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"canBeBlocked\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"isDriverCheckInTask\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.isDriverCheckInTask\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"is-driver-check-in-task\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"isDriverCheckInTask\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"isDriverCheckInTask\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"openCustomModal\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.openCustomModal\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"open-custom-modal\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"openCustomModal\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"openCustomModal\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"shouldConfirmRelatedCheckpoint\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.shouldConfirmRelatedCheckpoint\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"should-confirm-related-checkpoint\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"shouldConfirmRelatedCheckpoint\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"shouldConfirmRelatedCheckpoint\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"shouldBeConfirmedByRelatedCheckpoint\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.shouldBeConfirmedByRelatedCheckpoint\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"should-be-confirmed-by-related-checkpoint\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"shouldBeConfirmedByRelatedCheckpoint\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"shouldBeConfirmedByRelatedCheckpoint\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"shouldSendLpToSapMessages\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.shouldSendLpToSapMessages\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"should-send-lp-to-sap-messages\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"shouldSendLpToSapMessages\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"shouldSendLpToSapMessages\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"openCustomModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"customModalComponentName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.customModalComponentName\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"custom-modal-component-name\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"customModalComponentName\\\"]],[23,[\\\"model\\\",\\\"DEFAULT_CUSTOM_MODAL_COMPONENT_NAME\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"customModalComponentName\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"masterTask\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"recreateMasterTaskSubTasks\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.recreateMasterTaskSubTasks\\\"],[[\\\"n\\\"],[[23,[\\\"model\\\",\\\"masterTask\\\",\\\"checkpointNameInAppropriateLanguage\\\"]]]]],false],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"recreate-master-task-sub-tasks\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"recreateMasterTaskSubTasks\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"recreateMasterTaskSubTasks\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"stayAtTheFacility\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.stayAtTheFacility\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"stay-at-the-facility\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"stayAtTheFacility\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"stayAtTheFacility\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"canBeConfirmedWithSms\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.canBeConfirmedWithSms\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"stay-at-the-facility\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"canBeConfirmedWithSms\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"canBeConfirmedWithSms\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"userHasToAddCheckpointConfirmationDate\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.userHasToAddCheckpointConfirmationDate\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"stay-at-the-facility\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"userHasToAddCheckpointConfirmationDate\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"userHasToAddCheckpointConfirmationDate\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"shouldSendLpToMSHMessages\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.shouldSendLpToMSHMessages\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"should-send-lp-to-sap-messages\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"shouldSendLpToMSHMessages\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"shouldSendLpToMSHMessages\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"includeConfirmationDateWhenGeneratingAdviceReport\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[1,[27,\\\"t\\\",[\\\"task.includeConfirmationDateWhenGeneratingAdviceReport\\\"],null],false],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"include-confirmation-date-when-generating-advice-report\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"includeConfirmationDateWhenGeneratingAdviceReport\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"includeConfirmationDateWhenGeneratingAdviceReport\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 form-buttons\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-danger\\\",[27,\\\"t\\\",[\\\"task.disableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"disable\\\",[23,[\\\"model\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"t\\\",[\\\"common.disable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/tasks/edit/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/temporary-account-modal/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    user: Ember.computed('sessionAccount.currentUser', function () {\n      return this.get('sessionAccount.currentUser');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/temporary-account-modal/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"UnJ5/oXw\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"showCancelButton\\\",\\\"classNames\\\"],[[27,\\\"t\\\",[\\\"temporaryAccountAlert.title\\\"],null],true,\\\"temporary-account-modal\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"temporaryAccountAlert.limitReached\\\"],null],false],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"temporaryAccountAlert.daysLeft\\\"],[[\\\"days\\\"],[[23,[\\\"user\\\",\\\"temporaryAccountDaysLeft\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[1,[27,\\\"t\\\",[\\\"temporaryAccountAlert.upgrade\\\"],null],false],[0,\\\"\\\\n    \\\"],[7,\\\"a\\\"],[11,\\\"target\\\",\\\"_blank\\\"],[11,\\\"href\\\",\\\"https://logintegra.com/cennik-pakietow/\\\"],[9],[1,[27,\\\"t\\\",[\\\"temporaryAccountAlert.pricingPlans\\\"],null],false],[10],[0,\\\".\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/temporary-account-modal/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/terms-of-service/model\", [\"exports\", \"ember-data\", \"apollo/pods/document/model\"], function (_exports, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n\n  var _default = _model.default.extend({\n    sessionAccount: service('session-account'),\n    confirmator: _emberData.default.belongsTo('user'),\n    confirmationDate: _emberData.default.attr('date'),\n    isConfirmed: _emberData.default.attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    formattedConfirmationDate: Ember.computed('confirmationDate', function () {\n      return moment(this.get('confirmationDate')).format('DD.MM.YYYY HH:mm').toString();\n    }),\n    formattedExpirationDate: Ember.computed('confirmationDate', function () {\n      return moment(this.get('expirationDate')).format('DD.MM.YYYY HH:mm').toString();\n    }),\n    confirmatorName: Ember.computed('confirmator', function () {\n      return this.get('confirmator.username');\n    }),\n    validations: {\n      isConfirmed: {\n        custom: [{\n          validation: function (key, value) {\n            return value;\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('terms-of-service.errors.unchecked');\n          }\n        }]\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/terms/review/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    session: service('session'),\n    sessionAccount: service('session-account'),\n    statuteAccepted: false,\n    actions: {\n      acceptStatute() {\n        const self = this;\n        const currentUser = this.get('sessionAccount.currentUser');\n        currentUser.set('statuteAccepted', true);\n        currentUser.save().then(user => {\n          console.log(`User ${user.get('username')} accepted Terms.`);\n          self.transitionToRoute('defaultTransports');\n        });\n      },\n\n      rejectStatute() {\n        const self = this;\n        this.get('sessionAccount.currentUser').save().then(user => {\n          console.log(`User ${user.get('username')} rejected Terms and must be logged-out.`);\n          self.get('session').invalidate();\n        });\n      },\n\n      approveAllPoints() {\n        this.set('statuteAccepted', true);\n      },\n\n      unApproveSomePoints() {\n        this.set('statuteAccepted', false);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/terms/review/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    actions: {\n      willTransition(transition) {\n        if (!this.get('sessionAccount').get('currentUser').get('statuteAccepted')) {\n          transition.abort();\n        }\n\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/terms/review/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"pV6Vrs/Q\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-medium\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"statute.accept.header\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[21,\\\"users/rodo-information\\\"],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"statuteAccepted\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"acceptStatute\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"disabled\\\",\\\"disabled\\\"],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"statute.accept.disabled.title\\\"],null]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-danger\\\",[27,\\\"t\\\",[\\\"statute.reject.confirmation\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"rejectStatute\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"statute.reject.button\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/terms/review/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/themes/table-theme\", [\"exports\", \"ember-models-table/themes/bootstrap3\"], function (_exports, _bootstrap) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject; //http://kronus.me/2017/10/theming-ember-models-table-2-x/\n  //https://blog.fossasia.org/tag/ember-models-table/\n\n  var _default = _bootstrap.default.extend({\n    intl: service(),\n    'sort-asc': 'fa fa-sort-up',\n    'sort-desc': 'fa fa-sort-down',\n    'clearFilterIcon': 'fa fa-times-circle form-control-feedback',\n    'nav-first': 'fa fa-angle-double-left',\n    'nav-prev': 'fa fa-chevron-left',\n    'nav-next': 'fa fa-chevron-right',\n    'nav-last': 'fa fa-angle-double-right',\n    messages: Ember.computed('', function () {\n      return {\n        searchLabel: this.get('intl').t('common.search')\n      };\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/time-window/modals/window-note/controller\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    sessionAccount: service('session-account'),\n    title: function () {\n      return \"#\" + this.get('model.id') + \" \" + this.get('intl').t('warehouse.windowNoteTitle');\n    }.property(),\n    errors: [],\n    canNotEdit: function () {\n      return !this.get('sessionAccount').hasRole('ROLE_ADD_WINDOW_NOTES');\n    }.property(),\n    actions: {\n      save() {\n        const self = this;\n        const window = this.get('model');\n        console.log(`save window note / isTemplateView: ${window.get('isTemplateView')}`);\n        (0, _jquery.default)(\"#main-modal\").data(\"skip-cancel-action\", true);\n\n        if (window.get('isTemplateView')) {\n          this.send('hideModal');\n        } else {\n          window.save().then(function () {\n            self.send('hideModal');\n          });\n        }\n      },\n\n      cancel() {\n        console.debug(`Zamykamy okienko dodawania notatki do okna...`);\n        this.get('model').setProperties({\n          note: this.get('model').get('oldNote'),\n          oldNote: null\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/time-window/modals/window-note/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"zEJQthC7\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"cancel\\\"],[[23,[\\\"title\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container-fluid\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.windowNoteLabel\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"class\\\",\\\"rows\\\",\\\"value\\\"],[\\\"form-control full-width vertical-resizable-only focus-input\\\",5,[23,[\\\"model\\\",\\\"note\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"canNotEdit\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/time-window/modals/window-note/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/time-window/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\", \"ember-data-copyable\", \"apollo/utils/validators/windowFitsToScheduleValidator\"], function (_exports, _emberData, _model, _modelValidator, _emberDataCopyable, _windowFitsToScheduleValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, _emberDataCopyable.default, {\n    dateFormatterService: Ember.inject.service('date.date-formatter-service'),\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    changeTracker: Object.freeze({\n      auto: true,\n      enableIsDirty: true\n    }),\n    ramp: belongsTo('ramp', {\n      async: true\n    }),\n    step: belongsTo('step', {\n      async: true\n    }),\n    transportType: belongsTo('transportType', {\n      async: true\n    }),\n    transport: belongsTo('transport', {\n      async: true\n    }),\n    relatedTransport: belongsTo('transport', {\n      async: true,\n      inverse: null\n    }),\n    company: belongsTo('company', {\n      async: true\n    }),\n    userGroup: belongsTo('userGroup', {\n      async: true\n    }),\n    start: attr('date'),\n    stop: attr('date'),\n    deleted: attr('boolean'),\n    isTemplate: attr('boolean'),\n    note: attr('string'),\n    isSwapped: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    swappedWindowId: attr('number'),\n    initialStart: attr('date', {\n      defaultValue() {\n        return new Date();\n      }\n\n    }),\n    wasMovedAutomatically: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    CARRIER_SECTION: attr('string'),\n    ERP_SECTION: attr('string'),\n    ALT_SECTION: attr('string'),\n    INTERNAL_INDEX_SECTION: attr('string'),\n    QUANTITY_SECTION: attr('string'),\n    REG_NUM_SECTION: attr('string'),\n    INDEX_NAME_SECTION: attr('string'),\n    INDEX_DOCUMENT_NUMBER_SECTION: attr('string'),\n    TRAILER_REG_NUM_SECTION: attr('string'),\n    CONTRACTOR_COUNTRY_SECTION: attr('string'),\n    CONTRACTOR_NAME_SECTION: attr('string'),\n    CONTRACTOR_GROUP_SECTION: attr('string'),\n    STEP_TYPE_ARROW: attr('string'),\n    CUSTOM_FIELDS_SECTION: attr('string'),\n    DRIVER_NAME: attr('string'),\n    STEP_TYPE_SYMBOL: attr('string'),\n    LOCATIONS: attr('string'),\n    state: attr('string'),\n    wasDelayedOnMarkedTask: attr('boolean'),\n    color: attr('string'),\n    additionalCssClassFromTask: attr('string'),\n    hasAnyTransportRelation: attr('boolean'),\n    hasAnyTransportCombiningRelation: attr('boolean'),\n    updateAllFuturePeriodicWindows: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n\n    /**\n     * Informacja ta nie przychodzi z serwera - jest ustawiana \"ręcznie\", np. `warehouses/schedule/controller.js`.\n     */\n    lastUpdated: attr('date'),\n    // Własności nie związane z obiektami na serwerze - ustawiane \"ręcznie\".\n    isLockedForEditing: Ember.computed('', function () {\n      return false;\n    }),\n    textColorStyle: Ember.computed('color', function () {\n      return this.get('color') ? Ember.String.htmlSafe('color: ' + this.get('color') + ';') : this.get('transport.textColorStyle');\n    }).readOnly(),\n    backgroundColorStyle: Ember.computed('color', function () {\n      return this.get('color') ? Ember.String.htmlSafe('background-color: ' + this.get('color') + ';') : this.get('transport.backgroundColorStyle');\n    }).readOnly(),\n    grabberColor: Ember.computed('color', function () {\n      const DEFAULT_COLOR = '#FFFFFF';\n\n      if (!this.get('color')) {\n        return DEFAULT_COLOR;\n      }\n\n      const windowColor = this.get('color').substr(1);\n      const invertedColor = (Number(`0x1${windowColor}`) ^ 0xFFFFFF).toString(16).substr(1).toUpperCase();\n      return this.isHexValidColor(invertedColor) ? `#${invertedColor}` : DEFAULT_COLOR;\n    }).readOnly(),\n    STATE_NAMES: Object.freeze({\n      dedicated: 'state-dedicated',\n      disabled: 'state-disabled',\n      template: 'state-template',\n      dedicatedTemplate: 'state-dedicated-template',\n      transport: 'state-with-transport'\n    }),\n    validations: {\n      stop: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!value || !model.get('start')) {\n              return true;\n            }\n\n            return value >= model.get('start');\n          },\n          message: 'earlierThanStart'\n        }, {\n          validation: function (key, value, model) {\n            if (!value || !model.get('step').get('maxAdviceDate')) {\n              return true;\n            }\n\n            return value <= model.get('step').get('maxAdviceDate');\n          },\n          message: 'outsideOfAdviceRange'\n        }, {\n          validation: function (key, value, model) {\n            if (!value || !model.get('ramp') || !model.get('ramp.warehouse.id')) {\n              return true;\n            }\n\n            const workStartHour = model.get('ramp.warehouse.workStartHour');\n            const workEndHour = model.get('ramp.warehouse.workEndHour');\n            const validatedValue = moment(value).add(-1, 'seconds');\n            const workStartOnMaxDateDay = moment(validatedValue).startOf('day').add(workStartHour, 'hours').toDate();\n            const workEndOnMaxDateDay = moment(validatedValue).startOf('day').add(workEndHour, 'hours').toDate();\n            return validatedValue >= workStartOnMaxDateDay && validatedValue <= workEndOnMaxDateDay;\n          },\n          message: function (key, value, self) {\n            const warehouseWorkStartHour = self.get('ramp.warehouse.workStartHour');\n            const warehouseWorkStartDate = moment(value).startOf('day').add(warehouseWorkStartHour, 'hours').toDate();\n            const warehouseWorkEndHour = self.get('ramp.warehouse.workEndHour');\n            const warehouseWorkEndDate = moment(value).startOf('day').add(warehouseWorkEndHour, 'hours').toDate();\n            return self.get('intl').t('timeWindow.errors.stop.outsideWarehouseWorkHours', {\n              workStart: moment(warehouseWorkStartDate).format('HH:mm'),\n              workEnd: warehouseWorkEndDate === 24 ? '24:00' : moment(warehouseWorkEndDate).format('HH:mm')\n            }).toString();\n          }\n        }, {\n          validation: function (key, value, model) {\n            if (!value || !model.get('ramp') || !model.get('ramp.warehouse.id')) {\n              return true;\n            }\n\n            const windowOffset = model.get('ramp.warehouse.timeWindowOffsetInterval');\n            const workStartHour = model.get('ramp.warehouse.workStartHour');\n            return _windowFitsToScheduleValidator.default.validate(value, windowOffset, workStartHour);\n          },\n          message: function (key, value, model) {\n            const windowOffset = model.get('ramp.warehouse.timeWindowOffsetInterval');\n            const hour = value.getHours();\n            const possibleWindowStops = [];\n            let validMinutes = 0;\n\n            for (let i = 0; i < 60 / windowOffset; i++) {\n              let formattedValidMinutes = validMinutes.toString();\n\n              if (formattedValidMinutes.length === 1) {\n                formattedValidMinutes = '0' + formattedValidMinutes;\n              }\n\n              possibleWindowStops.pushObject(`${hour}:${formattedValidMinutes}`);\n              validMinutes += windowOffset;\n            }\n\n            return model.get('intl').t('timeWindow.errors.stop.notConsistentWithWarehouseOffset', {\n              possibleWindowStops: possibleWindowStops.join(', ')\n            }).toString();\n          }\n        }]\n      },\n      start: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!value || model.get('sessionAccount').hasRole('ROLE_CAN_PLAN_ADVICE_IN_THE_PAST')) {\n              return true;\n            } // Walidacja powinna obowiązywać tylko w przypadku wprowadzenia zmian w oknie -\n            // nie podczas edycji pozostałych właściwości zlecenia.\n\n\n            const changedAttributes = model.changedAttributes();\n\n            if (!changedAttributes || !model.changedAttributes().start || changedAttributes.start[0] && changedAttributes.start[0].getTime() === changedAttributes.start[1].getTime()) {\n              console.log(`Start okna czasowego ${model.get('logString')} nie zmienił się - pomijamy jego walidację.`);\n              return true;\n            }\n\n            const initialStart = model.get('initialStart')._isAMomentObject ? model.get('initialStart').toDate() : model.get('initialStart');\n            const start = value._isAMomentObject ? value.toDate() : value;\n\n            if (!initialStart || initialStart.getTime() === start.getTime()) {\n              console.debug('Start of time window hasn\\'t changed - validation skipped.');\n              return true;\n            }\n\n            return start >= new Date();\n          },\n          message: 'isInPast'\n        }, {\n          validation: function (key, value, model) {\n            if (!value || !model.get('step').get('minAdviceDate')) {\n              return true;\n            }\n\n            return value >= model.get('step').get('minAdviceDate');\n          },\n          message: 'outsideOfAdviceRange'\n        }, {\n          validation: function (key, value, model) {\n            if (!value || !model.get('ramp') || !model.get('ramp.warehouse.id')) {\n              return true;\n            }\n\n            const warehouseWorkStartHour = model.get('ramp.warehouse.workStartHour');\n            const warehouseWorkEndHour = model.get('ramp.warehouse.workEndHour');\n            const workStartOnAdviceDate = moment(value).startOf('day').add(warehouseWorkStartHour, 'hours').toDate();\n            const workEndOnAdviceDate = moment(value).startOf('day').add(warehouseWorkEndHour, 'hours').toDate();\n            return value >= workStartOnAdviceDate && value < workEndOnAdviceDate;\n          },\n          message: function (key, value, self) {\n            const warehouseWorkStartHour = self.get('ramp.warehouse.workStartHour');\n            const warehouseWorkStartDate = moment(value).startOf('day').add(warehouseWorkStartHour, 'hours').toDate();\n            const warehouseWorkEndHour = self.get('ramp.warehouse.workEndHour');\n            const warehouseWorkEndDate = moment(value).startOf('day').add(warehouseWorkEndHour, 'hours').toDate();\n            return self.get('intl').t('timeWindow.errors.start.outsideWarehouseWorkHours', {\n              workStart: moment(warehouseWorkStartDate).format('HH:mm'),\n              workEnd: warehouseWorkEndDate === 24 ? '24:00' : moment(warehouseWorkEndDate).format('HH:mm')\n            }).toString();\n          }\n        }, {\n          validation: function (key, value, model) {\n            if (!value || !model.get('ramp') || !model.get('ramp.warehouse.id')) {\n              return true;\n            }\n\n            const windowOffset = model.get('ramp.warehouse.timeWindowOffsetInterval');\n            const workStartHour = model.get('ramp.warehouse.workStartHour');\n            return _windowFitsToScheduleValidator.default.validate(value, windowOffset, workStartHour);\n          },\n          message: function (key, value, model) {\n            const windowOffset = model.get('ramp.warehouse.timeWindowOffsetInterval');\n            const hour = value.getHours();\n            const possibleWindowStarts = [];\n            let validMinutes = 0;\n\n            for (let i = 0; i < 60 / windowOffset; i++) {\n              let formattedValidMinutes = validMinutes.toString();\n\n              if (formattedValidMinutes.length === 1) {\n                formattedValidMinutes = '0' + formattedValidMinutes;\n              }\n\n              possibleWindowStarts.pushObject(`${hour}:${formattedValidMinutes}`);\n              validMinutes += windowOffset;\n            }\n\n            return model.get('intl').t('timeWindow.errors.start.notConsistentWithWarehouseOffset', {\n              possibleWindowStarts: possibleWindowStarts.join(', ')\n            }).toString();\n          }\n        }, {\n          validation: function (key, value, model) {\n            const steps = model.get('transport.stepsWithWindow').sortBy('orderInTransport');\n\n            if (!steps || steps.length < 2) {\n              return true;\n            }\n\n            const index = steps.findIndex(step => step.orderInTransport === model.get('step.orderInTransport'));\n\n            if (index > 0) {\n              const prevStep = steps.get(index - 1);\n\n              if (value < prevStep.get('timeWindow.stop')) {\n                return false;\n              }\n            }\n\n            return true;\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('timeWindow.errors.start.startsEarlierThenPreviousWindowStops');\n          }\n        }]\n      }\n    },\n\n    /**\n     * Sprawdza, czy okno jest powiązane z transportem/stepem -> nie powoduje wykonania zapytania do serwera.\n     */\n    hasTransport: Ember.computed('step', function () {\n      return this.belongsTo('step').id();\n    }),\n    computedState: Ember.computed('state', 'hasTransport', 'company.id', 'userGroup.id', function () {\n      if (this.get('company.id') || this.get('userGroup.id')) {\n        return this.get('isTemplate') ? this.get('STATE_NAMES').dedicatedTemplate : this.get('STATE_NAMES').dedicated;\n      }\n\n      if (!this.get('hasTransport')) {\n        if (this.get('sessionAccount.isPrincipal')) {\n          return this.get('isTemplate') ? this.get('STATE_NAMES').template : this.get('STATE_NAMES').disabled;\n        } else {\n          return this.get('STATE_NAMES').disabled;\n        }\n      }\n\n      return this.get('state');\n    }),\n    isDisabled: Ember.computed('computedState', function () {\n      return this.get('isBlocked') || this.get('isDedicated');\n    }),\n    isBlocked: Ember.computed('computedState', function () {\n      return this.get('computedState') === this.get('STATE_NAMES').disabled || this.get('computedState') === this.get('STATE_NAMES').template;\n    }),\n    isDedicated: Ember.computed('computedState', function () {\n      return this.get('computedState') === this.get('STATE_NAMES').dedicated || this.get('computedState') === this.get('STATE_NAMES').dedicatedTemplate;\n    }),\n    durationInMinutes: Ember.computed('start', 'stop', function () {\n      return (this.get('stop') - this.get('start')) / (1000 * 60);\n    }),\n\n    /**\n     * @Deprecated\n     * Potrzebne jest jedynie do formatowania dla wartości w URL-u przekierowującego do magazynu.\n     * W przyszłości powinniśmy zrezygnować z moment() i być zastąpione.\n     */\n    startFormattedISO: Ember.computed('start', function () {\n      return moment(this.get('start')).format('YYYY-MM-DD');\n    }),\n    formattedStart: Ember.computed('start', function () {\n      const date = this.get('start');\n      return this.dateFormatterService.formatShortDate(date);\n    }),\n    formattedStop: Ember.computed('stop', function () {\n      const date = this.get('stop');\n      return this.dateFormatterService.formatShortDate(date);\n    }),\n    formattedTime: Ember.computed('start', 'stop', function () {\n      const start = this.get('start');\n      const stop = this.get('stop');\n\n      if (this.get('formattedStart') === this.get('formattedStop')) {\n        const formattedStartDefault = this.dateFormatterService.formatDefaultDateTime(start);\n        const formattedStopShortTime = this.dateFormatterService.formatShortTime(stop);\n        return formattedStartDefault + '-' + formattedStopShortTime;\n      } else {\n        const formattedStartDefault = this.dateFormatterService.formatDefaultDateTime(start);\n        const formattedStopDefault = this.dateFormatterService.formatDefaultDateTime(stop);\n        return formattedStartDefault + '-' + formattedStopDefault;\n      }\n    }),\n    isLoad: Ember.computed('step.isLoad', function () {\n      return this.get('step.isLoad');\n    }),\n    isUnload: Ember.computed('step.isUnload', function () {\n      return this.get('step.isUnload');\n    }),\n    companyShownInSchedule: Ember.computed('transport.{firstContractor,carrierCompany}', function () {\n      return this.get('transport.firstContractor') || this.get('transport.carrierCompany');\n    }),\n    numberOfErrors: Ember.computed('errors.length', function () {\n      return this.get('errors.length');\n    }),\n    isHexValidColor: function (hexColor) {\n      return /^#[0-9A-F]{6}$/i.test(`#${hexColor}`);\n    },\n\n    restorePlace() {\n      if (!this.get('oldStart')) {\n        return console.log(`Okno czasowe ${this.get('id')} nie ma zapisanej wartości w 'oldStart' - nie możemy przywrócić poprzedniego miejsca.`);\n      }\n\n      this.setProperties({\n        start: this.get('oldStart'),\n        stop: this.get('oldStop'),\n        ramp: this.get('oldRamp'),\n        oldStart: null,\n        oldStop: null,\n        oldRamp: null\n      });\n    },\n\n    slotIdentifier: Ember.computed(function () {\n      const startDay = moment(this.get('start')).format('YYYY-MM-DD-H-m');\n      return `slot-${this.get('ramp.id')}-${startDay}`;\n    }),\n\n    lockForEditing() {\n      console.debug(`Window ${this.get('logString')} locked for editing..`);\n      this.set('isLockedForEditing', true);\n    },\n\n    unlockForEditing() {\n      console.debug(`Window ${this.get('logString')} unlocked for editing..`);\n      this.set('isLockedForEditing', false);\n    },\n\n    logString: Ember.computed('id', 'formattedTime', 'ramp.name', function () {\n      if (!this.get('id')) {\n        return '(niezapisany)';\n      }\n\n      return `#${this.get('id')} / ${this.get('formattedTime')}, ${this.get('ramp.name')}`;\n    }),\n    parts: Ember.computed('start', 'stop', function () {\n      const startDay = moment(this.get('start')).startOf('day');\n      const stopDay = moment(this.get('stop')).endOf('day');\n      const diffInDays = moment(stopDay).diff(startDay, 'days');\n      const array = [];\n\n      for (let i = 0; i < diffInDays + 1; i++) {\n        array.push(i);\n      }\n\n      return array.map(p => {\n        return {\n          isFirst: p === 0,\n          isLast: p === diffInDays,\n          shift: p\n        };\n      });\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/time-windows-summary-modal/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    actions: {\n      close() {\n        this.send('hideModal');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/time-windows-summary-modal/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"/n3hhGpF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tw\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"showCancelButton\\\",\\\"classNames\\\"],[[27,\\\"concat\\\",[\\\"Transport #\\\",[23,[\\\"model\\\",\\\"transportToHandle\\\",\\\"identifier\\\"]]],null],true,\\\"temporary-account-modal\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h5\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.selectedWindows\\\"],[[\\\"transportIdentifier\\\"],[[23,[\\\"model\\\",\\\"transportToHandle\\\",\\\"identifier\\\"]]]]],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"transportToHandle\\\",\\\"timeWindows\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"ramp\\\",\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\", \\\"],[1,[22,1,[\\\"ramp\\\",\\\"name\\\"]],false],[0,\\\", \\\"],[1,[22,1,[\\\"formattedTime\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"OK\\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/time-windows-summary-modal/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction-setting/model\", [\"exports\", \"ember-data\", \"ember-data/model\"], function (_exports, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend({\n    transportType: belongsTo('transportType', {\n      async: true\n    }),\n    showCarrierConfirmationCheckbox: attr('boolean', {\n      defaultValue() {\n        return true;\n      }\n\n    }),\n    requireCarrierConfirmation: attr('boolean', {\n      defaultValue() {\n        return true;\n      }\n\n    }),\n    carrierAutoAcceptsTransport: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    canChooseCarrierFromTransportTable: attr('boolean', {\n      defaultValue() {\n        return true;\n      }\n\n    }),\n    defaultCurrency: attr('string', {\n      defaultValue() {\n        return 'PLN';\n      }\n\n    }),\n    defaultInvoiceCurrency: attr('string', {\n      defaultValue() {\n        return 'PLN';\n      }\n\n    }),\n    priceLabel: attr('string', {\n      defaultValue() {\n        return 'FREIGHT';\n      }\n\n    }),\n    showPriceFieldForDeliveries: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    requirePriceFieldForDeliveries: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    showReasonField: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    requiresReasonField: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    showAndRequireReasonFieldIfPriceIsZero: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    showPriceField: attr('boolean', {\n      defaultValue() {\n        return true;\n      }\n\n    }),\n    showExpectedConfirmationDate: attr('boolean', {\n      defaultValue() {\n        return true;\n      }\n\n    }),\n    showUnitAmountType: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    requireUnitAmountType: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    autoPassOnTransportCreation: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    requireCarrierAcceptationOnAutoPass: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction-unit-amount-type/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    name: attr('string'),\n    nameEn: attr('string'),\n    validations: {\n      name: {\n        presence: {\n          message: 'blank'\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction-unit-amount-types/index/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    modalService: Ember.inject.service('modal-service'),\n    actions: {\n      add: function () {\n        const transactionUnitAmountType = this.get('store').createRecord('transactionUnitAmountType');\n        this.get('modalService').showModal(this.get('modalService').MODALS.TRANSACTION_UNIT_AMOUNT_TYPE.FORM, {\n          transactionUnitAmountType\n        });\n      },\n      edit: function (transactionUnitAmountType) {\n        this.get('modalService').showModal(this.get('modalService').MODALS.TRANSACTION_UNIT_AMOUNT_TYPE.FORM, {\n          transactionUnitAmountType\n        });\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction-unit-amount-types/index/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    access: Ember.A(['ROLE_MANAGE_TRANSACTION_UNIT_AMOUNT_TYPES']),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: async function () {\n      return Ember.RSVP.hash({\n        transactionUnitAmountTypes: await this.store.findAll('transaction-unit-amount-type')\n      });\n    },\n    actions: {\n      refreshRoute: function () {\n        this.refresh();\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction-unit-amount-types/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"zOl2Zh5a\",\n    \"block\": \"{\\\"symbols\\\":[\\\"type\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[0,\\\"\\\\n    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"add\\\"]],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-responsive padding-top\\\"],[11,\\\"data-field-name\\\",\\\"transaction-unit-amount-types-table\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-responsive table-hover table-condensed\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transaction.unitAmountTypeName\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transaction.unitAmountTypeNameEn\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.actions\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"transactionUnitAmountTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"nameEn\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"i\\\"],[11,\\\"data-button-name\\\",\\\"transaction-unit-amount-types-edit-button\\\"],[11,\\\"class\\\",\\\"fa fa-edit clickable\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"edit\\\",[22,1,[]]]],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transaction-unit-amount-types/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction-unit-amount-types/modals/form/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    modalTitle: Ember.computed('model.transactionUnitAmountType.id', function () {\n      return this.get('model.transactionUnitAmountType.id') ? this.get('intl').t('common.edit') : this.get('intl').t('common.add');\n    }),\n    actions: {\n      save() {\n        const self = this;\n        const transactionUnitAmountType = this.get('model.transactionUnitAmountType');\n\n        if (!transactionUnitAmountType.validate()) {\n          self.set('errors', []);\n          return;\n        }\n\n        transactionUnitAmountType.save().then(() => {\n          self.set('errors', []);\n          self.send('refreshRoute');\n          self.send('hideModal');\n        }).catch(response => {\n          console.debug(response);\n          response.errors ? this.set('errors', response.errors) : this.set('errors', [this.get('intl').t('common.defaultError')]);\n        });\n      },\n\n      cancel() {\n        this.get('model.transactionUnitAmountType').rollbackAttributes();\n        this.send('hideModal');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction-unit-amount-types/modals/form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"5+ykUSiy\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"showCancelButton\\\",\\\"cancel\\\"],[[23,[\\\"modalTitle\\\"]],true,[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"data-form-name\\\",\\\"transaction-amount-unit-type-form\\\"],[11,\\\"class\\\",\\\"form-horizontal section\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transaction.unitAmountTypeName\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"transaction-amount-unit-type-name\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"transactionUnitAmountType\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"transactionUnitAmountType\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"transactionUnitAmountType\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transaction.unitAmountTypeNameEn\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"transaction-amount-unit-type-name-en\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"transactionUnitAmountType\\\",\\\"errors\\\",\\\"nameEn\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"transactionUnitAmountType\\\",\\\"nameEn\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"transactionUnitAmountType\\\"]],\\\"nameEn\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"save-transaction-amount-unit-type-button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"cancel-transaction-amount-unit-type-button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transaction-unit-amount-types/modals/form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction/adapter\", [\"exports\", \"apollo/adapters/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _application.default.extend({\n    urlForCreateRecord(query) {\n      return `${this.urlPrefix()}/transactions/pass-transport`;\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction/modals/choose-carrier/controller\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    amountOfCoverService: Ember.inject.service(),\n    errors: Ember.A([]),\n\n    init() {\n      this._super(...arguments);\n\n      this.set('errors', []);\n    },\n\n    carriersList: Ember.computed('model.carriers.@each.{shortName,routeOfferPrice,disabled}', function () {\n      return this.get('model.carriers');\n    }),\n    // eslint-disable-next-line\n    sortedCarriersProperties: [\"hasRouteOffer:desc\", \"routeOfferPrice:asc\", \"disabled:asc\", \"shortName:asc\"],\n    sortedCarriers: Ember.computed.sort('carriersList', 'sortedCarriersProperties'),\n    title: Ember.computed('', function () {\n      return this.get('intl').t('transaction.chooseCarrier');\n    }),\n    hint: Ember.computed('transaction.carrierMustAcceptTransport', function () {\n      if (this.get('transaction.carrierMustAcceptTransport')) {\n        return this.get('intl').t('transaction.carrierMustAcceptTransportHint.checked');\n      } else {\n        return this.get('intl').t('transaction.carrierMustAcceptTransportHint.unchecked');\n      }\n    }),\n    translationKeyLabel: Ember.computed('transaction.transport.transportType', function () {\n      return this.get('transaction.transport.transportType.priceLabelTranslation');\n    }),\n    transaction: Ember.computed('model', function () {\n      return this.get('model.transaction');\n    }),\n    showChoosingReason: Ember.computed('transaction.{' + 'requireAuctionChoosingReason,' + 'requireTransactionChoosingReason,' + 'requireReasonFieldIfPriceIsZero,' + 'price,' + 'transport.deliveries.@each.freightCost}', function () {\n      const deliveries = this.get('transaction.transport.deliveries');\n      const anyDeliveryHasZeroCost = deliveries.any(d => {\n        return d.get('freightCost') && Number(d.get('freightCost')) === 0;\n      });\n      const requireReasonFieldIfPriceIsZero = this.get('transaction.requireReasonFieldIfPriceIsZero') && (this.get('transaction.price') && Number(this.get('transaction.price')) === 0 || anyDeliveryHasZeroCost);\n      return this.get('transaction.requireAuctionChoosingReason') || this.get('transaction.requireTransactionChoosingReason') || requireReasonFieldIfPriceIsZero;\n    }),\n    currencies: Ember.computed('', function () {\n      return this.get('store').peekAll('currency');\n    }),\n    priceUpdateDisabled: Ember.computed('model.disabledEdition', 'transaction.carrier.routeOffer.id', function () {\n      return this.get('model.disabledEdition') || !!this.get('transaction.carrier.routeOffer.id');\n    }),\n    // eslint-disable-next-line ember/no-observers\n    expectedConfirmationDateChanged: Ember.observer('model.expectedConfirmationTime', 'model.expectedConfirmationDate', function () {\n      Ember.run.once(this, '_expectedConfirmationDateChangedOnce');\n    }),\n    showCarrierMustAcceptTransportCheckbox: Ember.computed('', function () {\n      const transportType = this.get('model.transaction.transport.transportType');\n      const transactionSetting = this.get('sessionAccount').getTransactionSetting(transportType);\n      return transactionSetting ? transactionSetting.get('showCarrierConfirmationCheckbox') : true;\n    }),\n    choosingReasonList: Ember.computed('model.transaction.transport.activeAuction', function () {\n      let choosingReasonList;\n\n      if (this.get('model.transaction.transport.activeAuction')) {\n        choosingReasonList = this.get('store').peekAll('specialFieldOption').filter(sfo => sfo.get('field') === 'AUCTION_CHOOSING_REASON');\n      } else {\n        choosingReasonList = this.get('store').peekAll('specialFieldOption').filter(sfo => sfo.get('field') === 'MANUAL_PASS_CHOOSING_REASON');\n      }\n\n      return choosingReasonList.filter(sfo => sfo.get('transportType.id') === this.get('model.transaction.transport.transportType.id'));\n    }),\n    _expectedConfirmationDateChangedOnce: function () {\n      const self = this;\n      const expectedConfirmationTime = self.get('model.expectedConfirmationTime');\n      const h = expectedConfirmationTime ? expectedConfirmationTime.split(':')[0] : '0';\n      const m = expectedConfirmationTime ? expectedConfirmationTime.split(':')[1] : '0'; // ember-flatpickr wysyła nam listę dat -- dlatego musimy wziąć pierwszy element ([0])\n\n      const expectedConfirmationDate = self.get('model.expectedConfirmationDate')[0] ? self.get('model.expectedConfirmationDate')[0] : self.get('transaction.expectedConfirmationDate');\n      const date = moment(expectedConfirmationDate || new Date()).startOf('day').add(h, 'hours').add(m, 'minutes').toDate();\n\n      if (self.get('transaction.expectedConfirmationDate') !== date) {\n        self.get('transaction').set('expectedConfirmationDate', date);\n      }\n    },\n    actions: {\n      setTransactionCompany(company) {\n        if (!company || company.get('disabled')) {\n          return;\n        }\n\n        if (!this.get('amountOfCoverService').hasEnoughAmountOfCover(this.get('transaction.transport'), company)) {\n          return;\n        }\n\n        const routeOffer = company.get('routeOffer');\n        const transportType = this.get('transaction.transport.transportType');\n        const transactionSetting = this.get('sessionAccount').getTransactionSetting(transportType);\n        const defaultCurrencySymbol = transactionSetting ? transactionSetting.get('defaultCurrency') : 'PLN';\n        const defaultCurrency = this.get('store').peekAll('currency').filterBy('symbol', defaultCurrencySymbol).get('firstObject');\n        console.log(`Wybieramy przewoźnika ${company.get('shortName')} z ofertą ${routeOffer.get('price')}...`);\n        this.get('transaction').setProperties({\n          carrier: company,\n          routeOffer,\n          currency: routeOffer.get('currency') !== undefined ? routeOffer.get('currency') : defaultCurrency,\n          price: routeOffer.get('price')\n        });\n      },\n\n      passTransport: function () {\n        try {\n          const transaction = this.get('transaction');\n          const deliveries = transaction.get('transport.deliveries') || Ember.A([]);\n          const deliveriesErrors = Ember.A([]);\n          const showPriceFieldForEachDeliveries = transaction.get('showPriceForDeliveriesField');\n          const showPriceField = transaction.get('showPriceField');\n\n          if (deliveries.length > 0 && showPriceField) {\n            deliveries.forEach(d => {\n              if (!showPriceFieldForEachDeliveries) {\n                d.set('freightCost', transaction.get('price'));\n              }\n\n              d.set('freightCostCurrency', transaction.get('currency'));\n              d.set('requireFreightCostDuringTransaction', transaction.get('requirePriceFieldForDeliveries'));\n              deliveriesErrors.push(d.validate({\n                only: 'freightCost,freightCostCurrency'\n              }));\n            });\n\n            if (deliveriesErrors.length > 0 && deliveriesErrors.some(d => {\n              return d === false;\n            })) {\n              transaction.validate();\n              return console.error('Walidacja delivery zwróciła błąd: ' + deliveriesErrors);\n            }\n          }\n\n          if (!transaction.validate()) {\n            return;\n          }\n\n          transaction.save().then(() => {\n            (0, _jquery.default)('#main-modal').data('skip-cancel-action', true);\n            this.send('hideModal');\n          }).catch(response => {\n            throw new Error(response.errors);\n          });\n        } catch (e) {\n          this.set('errors', [e]);\n          console.error(e);\n        } finally {\n          this.get('transaction.transport').reload();\n        }\n      },\n      cancel: function () {\n        console.debug('Wycofujemy zmiany w okienku przekazywania zlecenia do przewoźnika...');\n        this.get('transaction').destroyRecord();\n      },\n      close: function () {\n        this.send('hideModal');\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction/modals/choose-carrier/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"niKXCiGc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"r\\\",\\\"c\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"cancel\\\"],[[23,[\\\"title\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.carrier.label\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-7 no-padding \\\",[27,\\\"if\\\",[[23,[\\\"transaction\\\",\\\"errors\\\",\\\"carrier\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"CARRIER\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"transaction\\\",\\\"carrier\\\"]]],null],[23,[\\\"sortedCarriers\\\"]],true,\\\"name\\\",\\\"-\\\",[23,[\\\"model\\\",\\\"disabledEdition\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setTransactionCompany\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[1,[22,2,[\\\"partnershipWithPrincipal\\\",\\\"contractorShortName\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[22,2,[\\\"routeOffer\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                            (\\\"],[1,[22,2,[\\\"routeOffer\\\",\\\"price\\\"]],false],[0,\\\" \\\"],[1,[22,2,[\\\"routeOffer\\\",\\\"currency\\\",\\\"symbol\\\"]],false],[0,\\\")\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[1,[27,\\\"company-disabled-icon\\\",[[22,2,[]],[23,[\\\"transaction\\\",\\\"transport\\\"]]],null],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transaction\\\"]],\\\"carrier\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transaction\\\",\\\"showExpectedConfirmationDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transaction.expectedConfirmationDate\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-7 no-padding \\\",[27,\\\"if\\\",[[23,[\\\"transaction\\\",\\\"errors\\\",\\\"expectedConfirmationDate\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-7 no-left-padding\\\"],[11,\\\"data-field-name\\\",\\\"DATE\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"formatType\\\",\\\"class\\\",\\\"onChange\\\"],[[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"expectedConfirmationDate\\\"]],[23,[\\\"model\\\",\\\"expectedConfirmationDate\\\"]],null],null],\\\"shortDate\\\",\\\"form-control date-chooser\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"expectedConfirmationDate\\\"]]],null]],null]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-5 no-padding pull-right\\\"],[11,\\\"data-field-name\\\",\\\"TIME\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"time\\\",\\\"60\\\",\\\"form-control\\\",\\\"00:00\\\",[23,[\\\"model\\\",\\\"expectedConfirmationTime\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transaction\\\"]],\\\"expectedConfirmationDate\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"transaction/modals/choose-carrier/transaction-prices-section\\\",null,[[\\\"priceUpdateDisabled\\\",\\\"transaction\\\",\\\"currencies\\\",\\\"label\\\"],[[23,[\\\"model\\\",\\\"disabledEdition\\\"]],[23,[\\\"transaction\\\"]],[23,[\\\"currencies\\\"]],[23,[\\\"translationKeyLabel\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transaction\\\",\\\"showUnitAmountType\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"unit-amount-type-select\\\",null,[[\\\"model\\\"],[[23,[\\\"transaction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showChoosingReason\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.choosingReason\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-7 no-padding \\\",[27,\\\"if\\\",[[23,[\\\"transaction\\\",\\\"errors\\\",\\\"choosingReason\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"REASON\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"transaction\\\",\\\"choosingReason\\\"]],[23,[\\\"choosingReasonList\\\"]],true,\\\"-\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"transaction\\\",\\\"choosingReason\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[\\\"optionInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transaction\\\"]],\\\"choosingReason\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showCarrierMustAcceptTransportCheckbox\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-7 no-padding\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label-not-bold\\\"],[11,\\\"data-field-name\\\",\\\"CARRIER_CONFIRM_CHECKBOX\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transaction\\\",\\\"carrierMustAcceptTransport\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transaction.carrierMustAcceptTransport\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"help-block\\\"],[9],[1,[21,\\\"hint\\\"],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[12,\\\"data-loading-text\\\",[28,[[27,\\\"t\\\",[\\\"common.pleaseWait\\\"],null]]]],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"PASS\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transaction.pass\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"passTransport\\\"]],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"CANCEL\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transaction/modals/choose-carrier/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction/modals/choose-carrier/transaction-prices-section/delivery-price-labels/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"BZFbmYEv\",\n    \"block\": \"{\\\"symbols\\\":[\\\"delivery\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"transaction\\\",\\\"transport\\\",\\\"deliveries\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"transaction/modals/choose-carrier/transaction-prices-section/price-label\\\",null,[[\\\"errorModel\\\",\\\"errorFieldName\\\",\\\"error\\\",\\\"label\\\",\\\"price\\\",\\\"deliveryNumber\\\",\\\"isPriceDisabled\\\",\\\"selectedCurrency\\\",\\\"currencies\\\",\\\"isCurrencyDisabled\\\"],[[22,1,[]],\\\"freightCost\\\",[22,1,[\\\"errors\\\",\\\"freightCost\\\"]],[22,1,[\\\"deliveryNumber\\\"]],[22,1,[\\\"freightCost\\\"]],[22,1,[\\\"deliveryNumber\\\"]],false,[23,[\\\"transaction\\\",\\\"currency\\\"]],[23,[\\\"\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transaction/modals/choose-carrier/transaction-prices-section/delivery-price-labels/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction/modals/choose-carrier/transaction-prices-section/price-label/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"KDfUmkZ4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"c\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[12,\\\"data-field-name\\\",[28,[[27,\\\"if\\\",[[23,[\\\"deliveryNumber\\\"]],\\\"delivery-number\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[1,[21,\\\"label\\\"],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-7 no-padding\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-7 no-left-padding \\\",[27,\\\"if\\\",[[23,[\\\"error\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"PRICE\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"pattern\\\",\\\"min\\\",\\\"class\\\",\\\"value\\\",\\\"placeholder\\\",\\\"disabled\\\"],[\\\"number\\\",\\\"5\\\",\\\"^[0-9]+\\\\\\\\.[0-9][0-9]$\\\",\\\"0\\\",\\\"form-control\\\",[23,[\\\"price\\\"]],\\\"0.00\\\",[23,[\\\"isPriceDisabled\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"errorModel\\\"]],[23,[\\\"errorFieldName\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-5 no-padding pull-right\\\"],[11,\\\"data-field-name\\\",\\\"CURRENCY\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"selectedCurrency\\\"]],[23,[\\\"currencies\\\"]],true,\\\"symbol\\\",[27,\\\"t\\\",[\\\"common.currency\\\"],null],[23,[\\\"isCurrencyDisabled\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"selectedCurrency\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,1,[\\\"symbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transaction/modals/choose-carrier/transaction-prices-section/price-label/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction/modals/choose-carrier/transaction-prices-section/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Szmn7EZw\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transaction\\\",\\\"showPriceField\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"transaction/modals/choose-carrier/transaction-prices-section/price-label\\\",null,[[\\\"errorModel\\\",\\\"errorFieldName\\\",\\\"error\\\",\\\"label\\\",\\\"price\\\",\\\"isPriceDisabled\\\",\\\"selectedCurrency\\\",\\\"currencies\\\",\\\"isCurrencyDisabled\\\"],[[23,[\\\"transaction\\\"]],\\\"price\\\",[23,[\\\"transaction\\\",\\\"errors\\\",\\\"price\\\"]],[23,[\\\"label\\\"]],[23,[\\\"transaction\\\",\\\"price\\\"]],[23,[\\\"priceUpdateDisabled\\\"]],[23,[\\\"transaction\\\",\\\"currency\\\"]],[23,[\\\"currencies\\\"]],[23,[\\\"priceUpdateDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"transaction\\\",\\\"showPriceForDeliveriesField\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"transaction/modals/choose-carrier/transaction-prices-section/delivery-price-labels\\\",null,[[\\\"transaction\\\"],[[23,[\\\"transaction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transaction/modals/choose-carrier/transaction-prices-section/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction/modals/choose-courier/controller\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    activeServiceList: Ember.A([]),\n    courierList: Ember.computed('model.couriers', function () {\n      return this.get('model.couriers');\n    }),\n    serviceList: Ember.computed('model.services', 'transaction.carrier', function () {\n      const list = this.get('model.services');\n      const names = [];\n      list.forEach(it => {\n        if (it.get('courierPricing.courierCompany.name') === this.get('transaction.carrier.name')) {\n          const price = it.get('courierPricing.courierCompany.name') === 'DHL Express' && it.price ? it.price : it.priceSumNetto != null ? it.priceSumNetto : it.price;\n          names.push(price + ' ' + it.priceCurrency.get('symbol') + ' | ' + it.serviceName);\n        }\n      });\n      return names;\n    }),\n    title: Ember.computed('', function () {\n      return this.get('intl').t('transaction.chooseCourier');\n    }),\n    transaction: Ember.computed('model', function () {\n      return this.get('model.transaction');\n    }),\n    contactDetailsPresent: Ember.computed('model.transaction.transport.steps', function () {\n      const steps = this.get('model.transaction.transport.steps');\n      let present = true;\n      steps.forEach(function (step) {\n        if (!step.contactPerson || !step.contactPersonMobilePhoneNumber || !step.contactPersonMobilePhonePrefix || !step.contactPersonEmail) {\n          present = false;\n        }\n      });\n      return present;\n    }),\n    dhlInvoiceDetailsPresent: Ember.computed('transaction.carrier.name', 'model.transaction.transport.{courierInvoice,needExportDeclaration,needPLT}', function () {\n      let present = true;\n\n      if (!(this.get('transaction.carrier.name') === 'DHL Express')) {\n        return present;\n      }\n\n      const invoice = this.get('model.transaction.transport.courierInvoice');\n      const needExportDeclaration = this.get('model.transaction.transport.needExportDeclaration');\n      const needPLT = this.get('model.transaction.transport.needPLT');\n\n      if (needPLT) {\n        if (invoice.get('base64') === null || invoice.get('base64') === '' || invoice.get('base64') === undefined) {\n          present = false;\n        }\n      }\n\n      if (needExportDeclaration) {\n        if (invoice.get('number') === null || invoice.get('number') === '' || invoice.get('number') === undefined || invoice.get('date') === null || invoice.get('date') === '' || invoice.get('date') === undefined) {\n          present = false;\n        }\n      }\n\n      return present;\n    }),\n    selectedService: Ember.computed('transaction.typeOfService', function () {\n      return this.get('transaction.typeOfService');\n    }),\n\n    expectedConfirmationDate() {\n      const expectedConfirmationDateHour = this.get('model.courierHourMax') ? this.get('model.courierHourMax').split(':')[0] : '0';\n      const expectedConfirmationDateMinutes = this.get('model.courierHourMax') ? this.get('model.courierHourMax').split(':')[1] : '0';\n      return moment(this.get('model.courierDate')).startOf('day').add(expectedConfirmationDateHour, 'hours').add(expectedConfirmationDateMinutes, 'minutes').toDate();\n    },\n\n    isInPast: Ember.computed('model', function () {\n      const currentDate = this.expectedConfirmationDate();\n      return currentDate < new Date();\n    }),\n    _prepareCourierTypeOfService: function (chosenService) {\n      if (!chosenService) {\n        return null;\n      }\n\n      return chosenService.get('dhlProductCode') || chosenService.get('serviceName');\n    },\n    actions: {\n      saveTransaction: function () {\n        const self = this;\n        const chosenCarrier = this.get('courierList').find(carrier => carrier.get('name') === this.get('transaction.carrier.name'));\n        const chosenService = this.get('model.services').find(service => {\n          const longTos = this.get('transaction.typeOfService').toString();\n          const tos = longTos.substring(longTos.indexOf('|') + 2);\n          return service.get('courierPricing.courierCompany.name') === chosenCarrier.get('name') && service.get('serviceName') === tos;\n        });\n        const expectedConfirmationDate = this.expectedConfirmationDate();\n        this.set('transaction.typeOfService', this._prepareCourierTypeOfService(chosenService));\n        const price = chosenService.get('priceSumNetto') != null ? chosenService.get('priceSumNetto') : chosenService.get('price');\n        this.set('transaction.price', price);\n        this.set('transaction.expectedConfirmationDate', expectedConfirmationDate);\n        this.set('transaction.currency', chosenService.get('priceCurrency'));\n        this.set('transaction.carrierMustAcceptTransport', false);\n\n        if (!this.get('transaction').validate()) {\n          console.debug(this.get('transaction.errors'));\n          return;\n        }\n\n        this.get('transaction').save().then(() => {\n          (0, _jquery.default)('#main-modal').data('skip-cancel-action', true);\n          self.send('hideModal');\n          self.get('transaction.transport').set('carrierCompany', self.get('transaction.carrier'));\n          console.debug('Poprawnie zapisano transakcje');\n        }).catch(response => {\n          console.debug(response.errors);\n        });\n      },\n      cancel: function () {\n        console.debug('Wycofujemy zmiany w okienku przekazywania zlecenia do kuriera...');\n        this.get('transaction').destroyRecord();\n      },\n      close: function () {\n        this.send('hideModal');\n      },\n      selectCourierAndClearService: function (courier) {\n        this.set('transaction.carrier', courier);\n        this.set('transaction.typeOfService', null);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction/modals/choose-courier/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"4BDxmSP5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"typeOfService\\\",\\\"courier\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"cancel\\\"],[[23,[\\\"title\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-header\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"style\\\",\\\"text-align: center; vertical-align: middle;font-weight: bold;\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transport.courier.loadCity.label\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"model\\\",\\\"loadCity\\\"]],false],[0,\\\"\\\\n            \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transport.courier.unloadCity.label\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"model\\\",\\\"unloadCity\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.courier.label\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-7 no-padding \\\",[27,\\\"if\\\",[[23,[\\\"transaction\\\",\\\"errors\\\",\\\"courier\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"courier-company\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"transaction\\\",\\\"carrier\\\"]],[23,[\\\"courierList\\\"]],true,\\\"-\\\",[27,\\\"action\\\",[[22,0,[]],\\\"selectCourierAndClearService\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,2,[\\\"name\\\"]],false],[0,\\\" \\\"],[7,\\\"i\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"c\\\",\\\"disabled\\\"]],\\\"fa fa-ban\\\"],null]]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transaction\\\"]],\\\"courier\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.courier.service.label\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-7 no-padding \\\",[27,\\\"if\\\",[[23,[\\\"transaction\\\",\\\"errors\\\",\\\"service\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"courier-service\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"selectedService\\\"]],[23,[\\\"serviceList\\\"]],true,\\\"-\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"transaction\\\",\\\"typeOfService\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transaction\\\"]],\\\"service\\\"]]],false],[0,\\\"\\\\n\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.courier.pickUpDate.label\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-7 no-padding\\\"],[11,\\\"data-field-name\\\",\\\"courier-date\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"courierDate\\\"]],true]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.courier.pickUpHour.label\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-7 no-padding\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-6 no-left-padding\\\"],[11,\\\"data-field-name\\\",\\\"courier-hourMin\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"courierHourMin\\\"]],true]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-6 no-padding pull-right\\\"],[11,\\\"data-field-name\\\",\\\"courier-hourMax\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"courierHourMax\\\"]],true]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"contactDetailsPresent\\\"]],[23,[\\\"dhlInvoiceDetailsPresent\\\"]],[27,\\\"not\\\",[[23,[\\\"isInPast\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[12,\\\"data-loading-text\\\",[28,[[27,\\\"t\\\",[\\\"common.pleaseWait\\\"],null]]]],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"PASS\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transaction.pass\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"saveTransaction\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"isInPast\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"style\\\",\\\"color: darkred;font-weight: bold;\\\"],[11,\\\"data-field-name\\\",\\\"dhl-missing-document\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.courier.dateInPast\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"contactDetailsPresent\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"style\\\",\\\"color: darkred;font-weight: bold;\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transport.courier.missingContactDetails\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"dhlInvoiceDetailsPresent\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transaction\\\",\\\"transport\\\",\\\"needPLT\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"style\\\",\\\"color: darkred;font-weight: bold;\\\"],[11,\\\"data-field-name\\\",\\\"dhl-missing-document\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.courier.dhlMissingDocument\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transaction\\\",\\\"transport\\\",\\\"needExportDeclaration\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"style\\\",\\\"color: darkred;font-weight: bold;\\\"],[11,\\\"data-field-name\\\",\\\"dhl-missing-export-declaration\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.courier.dhlMissingExportDeclaration\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"CANCEL\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transaction/modals/choose-courier/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction/modals/courier-errors/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    activeServiceList: [],\n    errorCodeList: Ember.computed('model.transport', function () {\n      const error = this.get(\"model.transport.courierOrderError.content\");\n      const code = error.get(\"errorCode\").split(\";\");\n      const msg = error.get(\"errorMessage\").split(\";\");\n      const map = new Map();\n      let index = 0;\n      code.forEach(it => {\n        map.set(it, msg[index]);\n        index++;\n      });\n      return map;\n    }),\n    title: Ember.computed('', function () {\n      return this.get('intl').t(\"common.errorList\");\n    }),\n    actions: {\n      close: function () {\n        this.send('hideModal');\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction/modals/courier-errors/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"FAxEvdrI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"value\\\",\\\"key\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"allowDraggable\\\",\\\"title\\\",\\\"cancel\\\"],[false,[23,[\\\"title\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"close\\\"],null]]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"logs-div \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"scrollable-modal-section\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\"],[11,\\\"id\\\",\\\"couriers-error-table\\\"],[11,\\\"class\\\",\\\"table table-hover table-striped\\\"],[11,\\\"aria-multiselectable\\\",\\\"true\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.errorCode\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.error\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[27,\\\"-each-in\\\",[[23,[\\\"errorCodeList\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,2,[]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"CANCEL\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transaction/modals/courier-errors/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction/modals/edit-freight/controller\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    title: Ember.computed('', function () {\n      return this.get('intl').t('transaction.label');\n    }),\n    transaction: Ember.computed('model.transaction', function () {\n      return this.get('model.transaction');\n    }),\n    currencies: Ember.computed('', function () {\n      return this.get('store').peekAll('currency');\n    }),\n    priceUpdateDisabled: Ember.computed('transaction.routeOffer.id', function () {\n      return !!this.get('transaction.routeOffer.id');\n    }),\n    actions: {\n      editFreight: async function () {\n        const transaction = this.get('transaction');\n\n        if (!transaction.validate({\n          only: 'price'\n        })) {\n          return;\n        }\n\n        const data = JSON.stringify({\n          freight: transaction.get('price'),\n          currencyId: transaction.get('currency.id'),\n          unitAmountTypeId: transaction.get('unitAmountType.id')\n        });\n        const path = this.get('apolloApiService').APOLLO_API.TRANSACTIONS.EDIT_FREIGHT;\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, {\n            id: transaction.get('id')\n          }, {\n            body: data\n          });\n\n          if (response.ok) {\n            this.set('errors', []);\n            (0, _jquery.default)('#main-modal').data('skip-cancel-action', true);\n            this.send('hideModal');\n          } else {\n            const error = await response.json();\n            this.set('errors', error.errors);\n          }\n        } catch (error) {\n          this.set('errors', [this.get('intl').t('common.defaultError')]);\n          console.error(error);\n        }\n      },\n      cancel: function () {\n        console.debug('Wycofujemy zmiany w okienku edycji frachtu...');\n        this.get('transaction').rollbackAttributes(); // ember nie umie wycofywać zmian w relacjach :/\n\n        this.set('transaction.currency', this.get('model.initialCurrency'));\n      },\n      close: function () {\n        this.send('hideModal');\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction/modals/edit-freight/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"90fV9AKt\",\n    \"block\": \"{\\\"symbols\\\":[\\\"c\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"cancel\\\"],[[23,[\\\"title\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-5 control-label text-right\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transaction.price\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-7 no-padding\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-7 no-left-padding \\\",[27,\\\"if\\\",[[23,[\\\"transaction\\\",\\\"errors\\\",\\\"price\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"PRICE\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"pattern\\\",\\\"min\\\",\\\"class\\\",\\\"value\\\",\\\"placeholder\\\",\\\"disabled\\\"],[\\\"number\\\",\\\"5\\\",\\\"^[0-9]+\\\\\\\\.[0-9][0-9]$\\\",\\\"0\\\",\\\"form-control\\\",[23,[\\\"transaction\\\",\\\"price\\\"]],\\\"0.00\\\",[23,[\\\"priceUpdateDisabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transaction\\\"]],\\\"price\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-5 no-padding pull-right\\\"],[11,\\\"data-field-name\\\",\\\"CURRENCY\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"transaction\\\",\\\"currency\\\"]]],null],[23,[\\\"currencies\\\"]],true,\\\"symbol\\\",[27,\\\"t\\\",[\\\"common.currency\\\"],null],[23,[\\\"priceUpdateDisabled\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"transaction\\\",\\\"currency\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[\\\"symbol\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transaction\\\",\\\"routeOffer\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row text-right\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transaction.updateDisabledInfo.route\\\"],[[\\\"routeId\\\"],[[23,[\\\"transaction\\\",\\\"routeOffer\\\",\\\"route\\\",\\\"id\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transaction\\\",\\\"unitAmountType\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row text-right\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"unit-amount-type-select\\\",null,[[\\\"model\\\"],[[23,[\\\"transaction\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[12,\\\"data-loading-text\\\",[28,[[27,\\\"t\\\",[\\\"common.pleaseWait\\\"],null]]]],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"editFreight\\\"]],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transaction/modals/edit-freight/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"ember-data-copyable\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _emberDataCopyable, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, _emberDataCopyable.default, {\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    transport: belongsTo('transport', {\n      async: true\n    }),\n    carrier: belongsTo('company', {\n      async: true\n    }),\n    currency: belongsTo('currency'),\n    routeOffer: belongsTo('routeOffer', {\n      async: true\n    }),\n    autoRouteOfferPass: attr('boolean'),\n    autoRouteOfferPassNotAccepted: attr('boolean'),\n    autoRouteOfferPassError: attr('boolean'),\n    invoiceNumber: attr('string'),\n    invoicePrice: attr('number'),\n    invoiceCurrency: belongsTo('currency'),\n    isInvoiceForm: attr('boolean'),\n    choosingReason: belongsTo('specialFieldOption'),\n    expectedConfirmationDate: attr('date'),\n    price: attr('number'),\n    carrierMustAcceptTransport: attr('boolean', {\n      defaultValue() {\n        return true;\n      }\n\n    }),\n    carrierAutoAcceptsTransport: attr('boolean', {\n      defaultValue() {\n        return true;\n      }\n\n    }),\n    isRejected: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    // typ serwisu kurierskiego\n    typeOfService: attr('string'),\n    unitAmountType: belongsTo('transactionUnitAmountType', {\n      async: true\n    }),\n    transactionMethod: attr('string'),\n    invoiceState: Ember.computed(function () {\n      const withInvoice = this.get('intl').t('transaction.withInvoice').toString();\n      const withoutInvoice = this.get('intl').t('transaction.withoutInvoice').toString();\n\n      if (this.get('invoiceNumber')) {\n        return {\n          name: withInvoice,\n          key: 'WITH_INVOICE'\n        };\n      } else {\n        return {\n          name: withoutInvoice.toString(),\n          key: 'WITHOUT_INVOICE'\n        };\n      }\n    }).readOnly(),\n    validations: {\n      carrier: {\n        custom: [{\n          validation: function (key, value) {\n            return value.get('id') || value.content;\n          },\n          message: 'blank'\n        }]\n      },\n      price: {\n        custom: [{\n          validation: function (key, value, model) {\n            return !(model.get('showPriceField') && !value);\n          },\n          message: 'blank'\n        }]\n      },\n      invoiceNumber: {\n        custom: [{\n          validation: function (key, value, model) {\n            return !model.get('isInvoiceForm') || value != null && value.length > 0;\n          },\n          message: 'blank'\n        }]\n      },\n      invoicePrice: {\n        custom: [{\n          validation: function (key, value, model) {\n            return !model.get('isInvoiceForm') || value != null;\n          },\n          message: 'blank'\n        }, {\n          validation: function (key, value, model) {\n            if (!model.get('isInvoiceForm') || !value) {\n              return true;\n            }\n\n            return /[0-9]+(\\.|\\,[0-9]{1,2})?$/.test(value);\n          },\n          message: 'wrongNumberFormat'\n        }]\n      },\n      expectedConfirmationDate: {\n        custom: [{\n          validation: function (key, value, model) {\n            // walidacja nie obowiązuje w formularzu faktury\n            if (model.get('isInvoiceForm')) {\n              return true;\n            }\n\n            return value > new Date();\n          },\n          message: 'isInPast'\n        }]\n      },\n      choosingReason: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('requireReasonFieldIfPriceIsZero')) {\n              const anyDeliveryHasZeroCost = model.get('transport.deliveries').any(d => {\n                return d.get('freightCost') && Number(d.get('freightCost')) === 0;\n              });\n\n              if (Number(model.get('price')) === 0 || anyDeliveryHasZeroCost) {\n                return value && value.get('id');\n              }\n            }\n\n            if (model.get('transport.activeAuction')) {\n              if (!model.get('requireAuctionChoosingReason')) {\n                return true;\n              } else {\n                return value && value.get('id');\n              }\n            } else {\n              if (model.get('requireTransactionChoosingReason') && model.get('mandatoryTransactionChoosingReason')) {\n                return value && value.get('id');\n              } else {\n                return true;\n              }\n            }\n          },\n          message: 'blank'\n        }]\n      },\n      unitAmountType: {\n        custom: [{\n          validation: function (key, value, model) {\n            return !(model.get('requireUnitAmountType') && !value.get('id'));\n          },\n          message: 'blank'\n        }]\n      }\n    },\n    requireReasonFieldIfPriceIsZero: Ember.computed('transport.transportType.id', function () {\n      const transactionSetting = this.get('sessionAccount').getTransactionSetting(this.get('transport.transportType'));\n\n      if (!transactionSetting) {\n        return false;\n      }\n\n      return transactionSetting.get('showAndRequireReasonFieldIfPriceIsZero');\n    }),\n    priceLabelTranslationKey: Ember.computed('transport.transportType.id', function () {\n      const transactionSetting = this.get('sessionAccount').getTransactionSetting(this.get('transport.transportType'));\n\n      if (!transactionSetting) {\n        return 'FREIGHT';\n      }\n\n      return transactionSetting.get('priceLabel');\n    }),\n    requireAuctionChoosingReason: Ember.computed('notTheBestOffer', 'transport.transportType.id', function () {\n      const auctionSetting = this.get('sessionAccount').getAuctionSetting(this.get('transport.transportType.id'));\n\n      if (!auctionSetting) {\n        return false;\n      }\n\n      return auctionSetting.get('requireReasonIfNotBestOfferIsChosen') && this.get('notTheBestOffer');\n    }),\n    requireTransactionChoosingReason: Ember.computed('transport.transportType.id', function () {\n      const transactionSetting = this.get('sessionAccount').getTransactionSetting(this.get('transport.transportType'));\n\n      if (!transactionSetting) {\n        return false;\n      }\n\n      return transactionSetting.get('showReasonField');\n    }),\n    mandatoryTransactionChoosingReason: Ember.computed('transport.transportType.id', function () {\n      const transactionSetting = this.get('sessionAccount').getTransactionSetting(this.get('transport.transportType'));\n\n      if (!transactionSetting) {\n        return false;\n      }\n\n      return transactionSetting.get('requiresReasonField');\n    }),\n    showExpectedConfirmationDate: Ember.computed('transport.transportType.id', function () {\n      const transactionSetting = this.get('sessionAccount').getTransactionSetting(this.get('transport.transportType'));\n\n      if (!transactionSetting) {\n        return false;\n      }\n\n      return transactionSetting.get('showExpectedConfirmationDate');\n    }),\n    showPriceField: Ember.computed('transport.transportType.id', function () {\n      const transactionSetting = this.get('sessionAccount').getTransactionSetting(this.get('transport.transportType'));\n\n      if (!transactionSetting) {\n        return false;\n      }\n\n      return transactionSetting.get('showPriceField');\n    }),\n    showPriceForDeliveriesField: Ember.computed('transport.transportType.id', function () {\n      const transactionSetting = this.get('sessionAccount').getTransactionSetting(this.get('transport.transportType'));\n\n      if (!transactionSetting) {\n        return false;\n      }\n\n      return transactionSetting.get('showPriceFieldForDeliveries');\n    }),\n    requirePriceFieldForDeliveries: Ember.computed('transport.transportType.id', function () {\n      const transactionSetting = this.get('sessionAccount').getTransactionSetting(this.get('transport.transportType'));\n\n      if (!transactionSetting) {\n        return false;\n      }\n\n      return transactionSetting.get('requirePriceFieldForDeliveries');\n    }),\n    showUnitAmountType: Ember.computed('transport.transportType.id', function () {\n      const transactionSetting = this.get('sessionAccount').getTransactionSetting(this.get('transport.transportType'));\n\n      if (!transactionSetting) {\n        return false;\n      }\n\n      return transactionSetting.get('showUnitAmountType');\n    }),\n    requireUnitAmountType: Ember.computed('transport.transportType.id', function () {\n      const transactionSetting = this.get('sessionAccount').getTransactionSetting(this.get('transport.transportType'));\n\n      if (!transactionSetting) {\n        return false;\n      }\n\n      return transactionSetting.get('requireUnitAmountType');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transaction/serializer\", [\"exports\", \"ember-data\", \"apollo/mixins/serializer-mixin\"], function (_exports, _emberData, _serializerMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, _serializerMixin.default, {\n    serialize(snapshot, options) {\n      const json = this._super(...arguments);\n\n      const resultJson = {};\n      resultJson.transaction = json;\n      const deliveries = snapshot.record.get('transport.deliveries');\n      resultJson.deliveries = deliveries.map(d => {\n        const json = d.serialize();\n        json.id = d.id;\n        return json;\n      });\n      return resultJson;\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-log/model\", [\"exports\", \"ember-data/model\", \"ember-data\"], function (_exports, _model, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _model.default.extend({\n    AUTHORITY_RESTRICTION_CLASSES: ['ActionAuthority', 'ActiveAuctionRestriction', 'UnlimitedRestriction', 'TimeBasedRestriction', 'OwnCompanyRestriction', 'BlockedRestriction', 'AuthorityRestriction', 'AfterCheckpointBasedRestriction', 'BeforeCheckpointBasedRestriction', 'ActiveRestriction', 'AdviceDatesRestriction', 'NoRouteOfferRestriction'],\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    languageService: Ember.inject.service('language-service'),\n    store: Ember.inject.service('store'),\n    SPECIAL_VALUE_FUNCTION: {\n      orderInTransport: i => Number(i) + 1\n    },\n    transport: _emberData.default.belongsTo('transport', {\n      async: true\n    }),\n    persistedObjectId: _emberData.default.attr('string'),\n    persistedObjectVersion: _emberData.default.attr('number'),\n    newValue: _emberData.default.attr('string'),\n    oldValue: _emberData.default.attr('string'),\n    dateCreated: _emberData.default.attr('date'),\n    propertyName: _emberData.default.attr('string'),\n    actor: _emberData.default.attr('string'),\n    className: _emberData.default.attr('string'),\n    eventName: _emberData.default.attr('string'),\n    propertyNameType: _emberData.default.attr('string'),\n    transportTypeId: _emberData.default.attr('string'),\n    transportIdentifier: _emberData.default.attr('string'),\n    transportId: _emberData.default.attr('string'),\n    customFieldDefinitionId: _emberData.default.attr('number'),\n    newValueFormat: function () {\n      return this.findValueFormat('newValue');\n    }.property('propertyNameType', 'newValue'),\n    oldValueFormat: function () {\n      return this.findValueFormat('oldValue');\n    }.property('propertyNameType', 'oldValue'),\n    findValueFormat: function (valueIdentifier) {\n      if (this.get('propertyName') === 'lastLoginDate' || this.get('oldValue') === this.get('newValue')) {\n        return '';\n      } else if (this.get('className') === 'PersonNotification') {\n        return this.findPersonNotificationFormat(valueIdentifier);\n      } else if (this.get('className') === 'PersonRamp') {\n        return this.findPersonRampFormat(valueIdentifier);\n      } else if (this.get('className') === 'CompanyRamp') {\n        return this.findCompanyRampFormat(valueIdentifier);\n      } else if (this.get('className') === 'RoleGroupAuthority') {\n        return this.findRoleGroupAuthorityFormat(valueIdentifier);\n      } else if (this.AUTHORITY_RESTRICTION_CLASSES.includes(this.get('className'))) {\n        return this.findAuthorityRestrictionFormat(valueIdentifier);\n      } else if (this.get('eventName') === 'STATUS_CHANGED') {\n        return this.get('intl').t(`company.partnershipStatus.${this.get(valueIdentifier)}`);\n      } else if (this.get('propertyNameType') == 'java.util.Date') {\n        const date = this.get(valueIdentifier) ? this.get(valueIdentifier).replace(/CET|CEST/, '') : '';\n        return date ? moment(date).format('DD.MM.YYYY HH:mm') : 'X';\n      } else if (this.get('propertyNameType') == 'java.lang.Boolean') {\n        return this.get(valueIdentifier) === 'true' ? '✓' : 'x';\n      } else if (this.SPECIAL_VALUE_FUNCTION[this.get('propertyName')]) {\n        const specialFunction = this.SPECIAL_VALUE_FUNCTION[this.get('propertyName')];\n        return specialFunction(this.get(valueIdentifier));\n      } else if (this.get('propertyName') === 'termsOfConditionsAccepted') {\n        return this.get(valueIdentifier) === 'true' ? '✓' : this.get(valueIdentifier) !== null ? 'x' : '--';\n      } else {\n        return Ember.isEmpty(this.get(valueIdentifier)) ? '-' : this.get(valueIdentifier);\n      }\n    },\n    findPersonRampFormat: function (valueIdentifier) {\n      const stringValue = this.get(valueIdentifier);\n\n      if (!stringValue) {\n        return '';\n      }\n\n      if (stringValue === 'false') {\n        return '';\n      }\n\n      const identifier = this.get('persistedObjectId');\n      const username = identifier.split(':')[0];\n      const rampId = identifier.split(':')[1];\n      const rampLabel = this.get('store').peekRecord('ramp', rampId).get('name');\n      const warehouseLabel = this.get('store').peekRecord('ramp', rampId).get('warehouse.name');\n      return `${username} - ${rampLabel} [${warehouseLabel}]`;\n    },\n    findCompanyRampFormat: function (valueIdentifier) {\n      const stringValue = this.get(valueIdentifier);\n\n      if (!stringValue) {\n        return '';\n      }\n\n      if (stringValue === 'false') {\n        return '';\n      }\n\n      const identifier = this.get('persistedObjectId');\n      const company = identifier.split(':')[0];\n      const rampId = identifier.split(':')[1];\n      const rampLabel = this.get('store').peekRecord('ramp', rampId).get('name');\n      const warehouseLabel = this.get('store').peekRecord('ramp', rampId).get('warehouse.name');\n      return `${company} - ${rampLabel} [${warehouseLabel}]`;\n    },\n    findRoleGroupAuthorityFormat: function (valueIdentifier) {\n      const stringValue = this.get(valueIdentifier);\n\n      if (!stringValue) {\n        return '';\n      }\n\n      if (stringValue === 'false') {\n        return '';\n      }\n\n      const identifiers = this.get('persistedObjectId').split(':');\n      const roleGroupName = this.get('languageService').findProperLanguageVersion(identifiers[0], identifiers[1]);\n      const authority = this.get('intl').t('settings.roleGroups.authorityLabels.' + identifiers[2]);\n      return `${roleGroupName} - ${authority}`;\n    },\n    findAuthorityRestrictionFormat: function (valueIdentifier) {\n      const stringValue = this.get(valueIdentifier);\n\n      if (!stringValue) {\n        return '';\n      }\n\n      if (stringValue === 'false') {\n        return '';\n      }\n\n      const identifiers = this.get('persistedObjectId').split(':');\n      const roleGroupLabel = this.get('languageService').findProperLanguageVersion(identifiers[3], identifiers[2]);\n      const actionTypeLabel = this.get('intl').t('settings.roleGroups.authorityLabels.' + identifiers[4]);\n      const authorityRangeLabel = this.get('intl').t('settings.roleGroups.authorityRangeLabels.' + identifiers[5]);\n      const propertyNameLabelMap = {\n        'assetId': identifiers[1],\n        'roleGroup': roleGroupLabel,\n        'actionType': actionTypeLabel,\n        'authorityRange': authorityRangeLabel\n      };\n      return propertyNameLabelMap[this.get('propertyName')];\n    },\n    findPersonNotificationFormat: function (valueIdentifier) {\n      const stringValue = this.get(valueIdentifier);\n\n      if (!stringValue) {\n        return '';\n      }\n\n      const identifier = this.get('persistedObjectId');\n      const username = identifier.split(':')[0];\n      const notificationId = identifier.split(':')[1];\n      const notificationLabel = this.get('store').peekRecord('notification', notificationId).get('label');\n      return `${username}: ${notificationLabel}`;\n    },\n    eventLabel: Ember.computed('className', 'eventName', function () {\n      let additionalText = '';\n\n      if (this.AUTHORITY_RESTRICTION_CLASSES.includes(this.get('className'))) {\n        const additionalInfo = this.get('persistedObjectId').split(':');\n        const assetType = additionalInfo[0] === 'CUSTOM_FIELD' ? 'customFieldDefinition' : 'transportType';\n        const assetId = additionalInfo[1];\n\n        if (!assetId) {\n          return '';\n        }\n\n        const assetName = this.get('store').peekRecord(assetType, assetId).get('nameInAppropriateLanguage');\n        const authorityName = this.get('intl').t(`settings.roleGroups.authorityLabels.${additionalInfo[4]}`);\n        const authorityRange = this.get('intl').t(`settings.roleGroups.authorityRangeLabels.${additionalInfo[5]}`);\n        additionalText += ` - ${authorityName}, ${authorityRange} (${assetName})`;\n      }\n\n      if (this.get('className') === 'Partnership') {\n        return this.get('intl').t(`partnership.logs.${this.get('eventName')}`) + additionalText;\n      } else if (this.get('className') === 'EmailAdvice') {\n        const identifier = this.get('persistedObjectId');\n        const adviceType = this.get('store').peekRecord('emailAdvice', identifier).get('type');\n        return this.get('intl').t('emailAdvice.logLabel.' + adviceType);\n      } else {\n        return this.get('intl').t(`logs.${this.get('eventName')}.${this.get('className')}`) + additionalText;\n      }\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-order-setting/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\", \"ember-data/model\"], function (_exports, _emberData, _modelValidator, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    DEFAULT_ADDITIONAL_DETAILS_FONT_SIZE: Object.freeze(12),\n    transportType: belongsTo('transportType'),\n    freightSufix: attr('string'),\n    showOnlyStartingDate: attr('boolean'),\n    shouldGenerateTransportOrder: attr('boolean'),\n    transportOrderCustomFields: attr('string'),\n    additionalDetailsFontSize: attr('number', {\n      defaultValue: function () {\n        return 12;\n      }\n    }),\n    validations: {\n      additionalDetailsFontSize: {\n        numericality: {\n          lessThanOrEqualTo: 32,\n          greaterThanOrEqualTo: 1\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-packaging/model\", [\"exports\", \"ember-data\", \"ember-data-copyable\", \"apollo/pods/ldm-packaging/model\"], function (_exports, _emberData, _emberDataCopyable, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.LdmPackaging.extend(_emberDataCopyable.default, {\n    transport: belongsTo('transport'),\n    temporaryLoadStepId: attr('string', {\n      transient: true\n    }),\n    temporaryUnloadStepId: attr('string', {\n      transient: true\n    }),\n    intl: Ember.inject.service(),\n    validations: {\n      packageType: {\n        custom: [{\n          validation: function (key, value) {\n            return value.get('id');\n          },\n          message: 'blankSelect'\n        }]\n      },\n      loadStep: {\n        custom: [{\n          validation: function (key, value) {\n            return value.content;\n          },\n          message: 'blankSelect'\n        }, {\n          validation: function (key, value, model) {\n            return model.get('loadStep.orderInTransport') < model.get('unloadStep.orderInTransport');\n          },\n          message: 'orderInTransport'\n        }]\n      },\n      unloadStep: {\n        custom: [{\n          validation: function (key, value) {\n            return value.content;\n          },\n          message: 'blankSelect'\n        }, {\n          validation: function (key, value, model) {\n            return model.get('loadStep.orderInTransport') < model.get('unloadStep.orderInTransport');\n          },\n          message: 'orderInTransport'\n        }]\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-relation/model\", [\"exports\", \"ember-data/model\", \"ember-data\"], function (_exports, _model, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = _model.default.extend({\n    alias: attr('string'),\n    primaryTransportType: belongsTo('transport-type', {\n      async: true,\n      inverse: null\n    }),\n    subordinateTransportType: belongsTo('transport-type', {\n      async: true,\n      inverse: null\n    }),\n    maxTotalWeight: attr('number'),\n    requiresTheSameWarehouseInDifferentStepType: attr('boolean'),\n    requiresTheSameWarehouseInTheSameStepType: attr('boolean'),\n    autoAdviceWhenCombined: attr('boolean')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-transport-relation/model\", [\"exports\", \"ember-data/model\", \"ember-data\"], function (_exports, _model, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = _model.default.extend({\n    transportRelation: belongsTo('transport-relation', {\n      async: true,\n      inverse: null\n    }),\n    masterTransport: belongsTo('transport', {\n      async: true,\n      inverse: null\n    }),\n    relatedTransport: belongsTo('transport', {\n      async: true,\n      inverse: null\n    }),\n    alias: attr('string'),\n    relationIdentifier: attr('string')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-type-role-group-table-column/model\", [\"exports\", \"ember-data\", \"ember-data/model\"], function (_exports, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend({\n    transportType: belongsTo('transportType'),\n    tableColumn: belongsTo('tableColumn'),\n    roleGroup: belongsTo('roleGroup'),\n    customFieldDefinition: belongsTo('custom-field-definition', {\n      async: true,\n      inverse: null\n    }),\n    visibility: attr(),\n    isHighlighted: attr('boolean')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-type-schedule-setting/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\", \"ember-data/model\"], function (_exports, _emberData, _modelValidator, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    transportType: belongsTo('transportType'),\n    displayDeliveryNumber: attr('boolean'),\n    displayDeliveryIncoterms: attr('boolean'),\n    displayDeliveryUnloadAddress: attr('boolean'),\n    displayDeliveryUnloadDate: attr('boolean')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-type/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    hasMany,\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    languageService: Ember.inject.service('language-service'),\n    intl: Ember.inject.service(),\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    TYPE_GROUPS: {\n      TRANSPORT: 'TRANSPORT',\n      SERVICE: 'SERVICE',\n      DELIVERY: 'DELIVERY',\n      COLLECTION: 'COLLECTION',\n      SIMPLIFIED_DELIVERY: 'SIMPLIFIED_DELIVERY',\n      TRANSFER_BETWEEN_WAREHOUSES: 'TRANSFER_BETWEEN_WAREHOUSES'\n    },\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    DATE_FILTER_PROPERTIES: ['DATE_CREATED', 'TIME_WINDOW_START', 'TIME_WINDOW_STOP', 'TIME_WINDOW_DATES', 'TIME_RANGE_FOR_ADVICE_START', 'TIME_RANGE_FOR_ADVICE_STOP', 'DEPARTURE_DATE', 'LOAD_DATE', 'UNLOAD_DATE'],\n    packageTypeTransportType: hasMany('packageTypeTransportType', {\n      async: true\n    }),\n    customFieldDefinitions: hasMany('customFieldDefinition', {\n      async: true\n    }),\n    warehouses: hasMany('warehouse', {\n      async: true\n    }),\n    company: belongsTo('company', {\n      async: true\n    }),\n    workflow: belongsTo('workflow', {\n      inverse: null\n    }),\n    scheduleSetting: belongsTo('scheduleSetting'),\n    name: attr('string'),\n    englishName: attr('string'),\n    alias: attr('string'),\n    typeGroup: attr('string'),\n    idx: attr('number'),\n    quantitySumCheckValue: attr('number'),\n    defaultArrivalDateHour: attr('string'),\n    defaultLoadStepStartHour: attr('string'),\n    defaultLoadStepEndHour: attr('string'),\n    numberOfDaysAddedToFirstStep: attr('number'),\n    numberOfDaysAddedToFirstStepEnd: attr('number'),\n    numberOfDaysAddedToNextSteps: attr('number'),\n    numberOfDaysAddedToNextStepsEnd: attr('number'),\n    dateFilterProperty: attr('string'),\n    requiresWarehouse: attr('boolean'),\n    requiresTimeWindow: attr('boolean'),\n    adviceSavedWithTransport: attr('boolean'),\n    requiresErpIdentifier: attr('boolean'),\n    requiresUniqueErpIdentifier: attr('boolean'),\n    allowsErpIdentifier: attr('boolean'),\n    allowsContractor: attr('boolean'),\n    requiresContractor: attr('boolean'),\n    calculatingTimeWindowSizeFromAlgorithm: attr('boolean'),\n    calculatingTimeWindowSizeFromDelivery: attr('boolean'),\n    requiresStepsWeight: attr('boolean'),\n    hasVisibleSteps: attr('boolean'),\n    requiresAddress: attr('boolean'),\n    allowsCarrier: attr('boolean'),\n    requiresCarrier: attr('boolean'),\n    allowsService: attr('boolean'),\n    requiresService: attr('boolean'),\n    requiresContractorStepCompanyGroup: attr('boolean'),\n    requiresTrailer: attr('boolean'),\n    allowsTrailer: attr('boolean'),\n    adviceRequiresPhoneNumber: attr('boolean'),\n    altIdentifierIsCreatedAutomatically: attr('boolean'),\n    carrierMustBeSelectedBeforeAdvice: attr('boolean'),\n    maximumPermissableVehicleWeight: attr('boolean'),\n    isWeightVisibleInContractorStep: attr('boolean'),\n    isVolumeVisibleInContractorStep: attr('boolean'),\n    isInternalReleaseNumberVisibleInContractorStep: attr('boolean'),\n    isWeightVisibleInWarehouseStep: attr('boolean'),\n    isVolumeVisibleInWarehouseStep: attr('boolean'),\n    isInternalReleaseNumberVisibleInWarehouseStep: attr('boolean'),\n    canBeEditedByRoleGroup: attr('boolean'),\n    requiresAdviceDateRestrictions: attr('boolean'),\n    hasDiscrepancyReportEnabled: attr('boolean'),\n    allowsAltIdentifier: attr('boolean'),\n    requiresAltIdentifier: attr('boolean'),\n    altIdentifierSequenceName: attr('string'),\n    altIdentifierFormat: attr('string'),\n    altIdentifierRegex: attr('string'),\n    requiresAdvice: attr('boolean'),\n    pastingFromExcelEnabled: attr('boolean'),\n    requiresDriverDocumentNumber: attr('boolean'),\n    requiresDriverName: attr('boolean'),\n    generatingWeightReceiptEnabled: attr('boolean'),\n    isWarehouseZoneVisible: attr('boolean'),\n    isWarehouseLocationVisible: attr('boolean'),\n    isWarehouseLocationObligatory: attr('boolean'),\n    adviceRestrictionInEveryStep: attr('boolean'),\n    allowLoadStepTypeChange: attr('boolean'),\n    allowUnloadStepTypeChange: attr('boolean'),\n    isLoadStepInWarehouseByDefault: attr('boolean'),\n    isUnloadStepInWarehouseByDefault: attr('boolean'),\n    hasCmrDocumentEnabled: attr('boolean'),\n    hasEntrancePassDocumentEnabled: attr('boolean'),\n    hasProductSpecificationDocumentEnabled: attr('boolean'),\n    allowsDriverName: attr('boolean'),\n    allowsPhoneNumber: attr('boolean'),\n    allowsRodoCheckbox: attr('boolean'),\n    requiresCarRegistrationNumber: attr('boolean'),\n    allowsPeriodicTransport: attr('boolean'),\n    requiresArrivalAndDepartureDate: attr('boolean'),\n    requiresArrivalAndDepartureDateInWarehouseStep: attr('boolean'),\n    showAddressFieldsInContractorSteps: attr('boolean'),\n    windowColorDependsOnWarehouse: attr('boolean'),\n    requiresDriverLanguage: attr('boolean'),\n    allowsDriverDocumentNumber: attr('boolean'),\n    allowsCarRegistrationNumber: attr('boolean'),\n    requiresModeOfTransportationVerification: attr('boolean'),\n    adviceSeparatedFromWindow: attr('boolean'),\n    selectionOfWindowBeforeAdvice: attr('boolean'),\n    newAddressAsDefaultInLoadStep: attr('boolean'),\n    newAddressAsDefaultInUnloadStep: attr('boolean'),\n    newAddressCityAutocompleteEnabled: attr('boolean'),\n    isAvailableInAdviceReport: attr('boolean'),\n    isAvailableInSecondTabOfTimeWindowAdviceReport: attr('boolean'),\n    documentIdentifierTranslationKey: attr('string'),\n    workerFieldTranslationKey: attr('string'),\n    requiresTransportSupervisor: attr('boolean'),\n    transportSupervisorTranslationKey: attr('string'),\n    carRegistrationNumberTranslationKey: attr('string'),\n    allowsPriceList: attr('boolean'),\n    priceListSetting: belongsTo('price-list-setting', {\n      async: false\n    }),\n    duplicateStepCountryFieldToNewSteps: attr('boolean'),\n    randomTransportInspection: attr('boolean'),\n    isChoosingWorkerObligatory: attr('boolean'),\n    defaultLoadCompanyId: attr('number'),\n    defaultUnloadCompanyId: attr('number'),\n    defaultServicemanCompanyId: attr('number'),\n    participatesInCombiningTransports: attr('boolean'),\n    shouldGenerateTransportWeightReceipt: attr('boolean'),\n    shouldCopyAdviceOnTransportCopy: attr('boolean'),\n    isAmountOfCoverVisible: attr('boolean'),\n    isAmountOfCoverObligatory: attr('boolean'),\n    defaultAmountOfCover: belongsTo('amountOfCover', {\n      async: true,\n      deepEmbedded: ['currency']\n    }),\n    checkAmountOfCover: attr('boolean'),\n    loadingCompleted: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    readyToLoad: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    unhandledTransportIds: attr('raw', {\n      defaultValue: function () {\n        return [];\n      }\n    }),\n    isContactDetailsFieldsVisible: attr('boolean'),\n    isContactDetailsFieldsRequired: attr('boolean'),\n    purchaseOrderNumberTranslationKey: attr('string'),\n    purchaseOrderNumberVisibleInContractorStep: attr('boolean'),\n    purchaseOrderNumberVisibleInWarehouseStep: attr('boolean'),\n    dimensionsTranslationKey: attr('string'),\n    dimensionsVisibleInContractorStep: attr('boolean'),\n    dimensionsVisibleInWarehouseStep: attr('boolean'),\n    alternativeStepsLayout: attr('boolean'),\n    supplierFieldTranslationKey: attr('string'),\n    guardCheckpointConfirmationSingleColumnLayout: attr('boolean'),\n    defaultTextForTransportAdditionalDescription: attr('string'),\n    usedForDeliveries: attr('boolean'),\n    usedForMarcos: attr('boolean'),\n    generateTransportOrder: attr('boolean'),\n    shouldShowArrivalDatesInScheduleTooltip: attr('boolean'),\n    useResourcesFromExternalSource: attr('boolean'),\n    isTruckTypeVisible: attr('boolean'),\n    requiresTruckType: attr('boolean'),\n    marcosTransportKind: attr('string'),\n    additionalDescriptionTextAreaRows: attr('number'),\n    courierPackagesEnabled: attr('boolean'),\n    transportPackagesEnabled: attr('boolean'),\n    deleteTransportStepsAfterDeliveryUnbind: attr('boolean'),\n    seaTransports: attr('boolean'),\n    airTransports: attr('boolean'),\n    allowsSaveAsResourceCheckbox: attr('boolean'),\n    enableTransportTableDaysLimit: attr('boolean'),\n    transportTableDaysLimit: attr('string'),\n    countLdmForTransportPackaging: attr('boolean'),\n    automaticallyAssignStepsInPackagingSection: attr('boolean'),\n    validations: {\n      seaTransports: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!value) {\n              return true;\n            }\n\n            return value && !model.get('airTransports');\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('settings.transportTypes.cantBeBoth');\n          }\n        }]\n      },\n      defaultLoadStepStartHour: {\n        custom: [{\n          validation: function (key, value) {\n            if (!value) {\n              return true;\n            }\n\n            return /^([01]?\\d|2[0-3]):([0-5]\\d)$/.test(value);\n          },\n          message: 'regex'\n        }]\n      },\n      defaultLoadStepEndHour: {\n        custom: [{\n          validation: function (key, value) {\n            if (!value) {\n              return true;\n            }\n\n            return /^([01]?\\d|2[0-3]):([0-5]\\d)$/.test(value);\n          },\n          message: 'regex'\n        }]\n      },\n      name: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      englishName: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      quantitySumCheckValue: {\n        numericality: {\n          allowBlank: true,\n          greaterThanOrEqualTo: 0,\n          onlyInteger: true,\n          message: 'invalidQuantity'\n        }\n      },\n      altIdentifierFormat: {\n        custom: [{\n          validation: function (key, value, model) {\n            const cfdString = 'cfd_';\n\n            if (value && value.includes(cfdString)) {\n              const cfdId = value.split('$').find(v => v.includes(cfdString)).replace(/\\D/g, '');\n              return model.get('sortedFieldDefinitions').some(cfd => cfd.get('id') === cfdId);\n            }\n\n            return true;\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('settings.transportTypes.invalidCustomFieldId');\n          }\n        }]\n      }\n    },\n    // ustawiane w sessionAccount.js\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    authorityRestrictions: [],\n    label: Ember.computed('name', function () {\n      return this.get('nameInAppropriateLanguage');\n    }).readOnly(),\n    sortedFieldDefinitions: Ember.computed('customFieldDefinitions.@each.{id,enabled}', function () {\n      return this.get('customFieldDefinitions').filterBy('enabled').sortBy('idx');\n    }),\n    customFieldDefinitionsIncludedInPriceList: Ember.computed('sortedFieldDefinitions.@each.includedInPriceList', function () {\n      return this.get('sortedFieldDefinitions').filterBy('includedInPriceList');\n    }),\n    warehousesForCurrentUser: Ember.computed('warehouses.@each.id', 'sessionAccount.currentUser.warehouses.@each.id', function () {\n      const userWarehouses = this.get('sessionAccount.currentUser.accessibleWarehouses');\n      const userWarehousesIds = userWarehouses.map(w => {\n        return w.get('id');\n      });\n      const transportTypeWarehouseIds = this.hasMany('warehouses').ids();\n      const warehouseIdsIntersection = userWarehousesIds.filter(id => transportTypeWarehouseIds.includes(id));\n      return this.get('store').peekAll('warehouse').filter(w => warehouseIdsIntersection.includes(w.id)).sortBy('idx');\n    }).readOnly(),\n    guardUniqueSortedTasks: Ember.computed('guardSortedTasks.{[],@each.alias}', function () {\n      const guardTasks = this.get('guardSortedTasks');\n      const uniqueGuardTasks = Ember.A([]);\n\n      if (!guardTasks) {\n        return uniqueGuardTasks;\n      }\n\n      guardTasks.sortBy('masterTask.idxInGroup', 'taskGroupIdentifier', 'idxInGroup').forEach(task => {\n        if (uniqueGuardTasks.some(uTask => {\n          return uTask.get('alias') === task.get('alias');\n        })) {\n          return;\n        }\n\n        uniqueGuardTasks.pushObject(task);\n      });\n      return uniqueGuardTasks;\n    }),\n    guardSortedTasks: Ember.computed('workflow.sortedTasks.@each.canBeConfirmedByGuard', function () {\n      return this.get('workflow.sortedTasks').filterBy('canBeConfirmedByGuard');\n    }).readOnly(),\n    indexQuantityTypes: Ember.computed('', function () {\n      return this.get('store').peekAll('indexQuantityType').filterBy('transportType.id', this.get('id')).sortBy('idx');\n    }).readOnly(),\n    conditionallyObligatoryIndexQuantityTypes: Ember.computed('indexQuantityTypes.@each.conditionallyObligatory', function () {\n      return this.get('indexQuantityTypes').filterBy('conditionallyObligatory');\n    }),\n    weighingOnSave: Ember.computed('tasks.@each.weighingIncluded', function () {\n      const self = this;\n      const tasksSavedWithTransport = this.get('store').peekAll('task').filter(task => {\n        return task.get('workflow.id') === self.get('workflow.id') && task.get('shouldBeSavedAsApproved');\n      }).sortBy('taskGroupIdentifier', 'idxInGroup');\n\n      if (tasksSavedWithTransport.get('length') === 0) {\n        return false;\n      }\n\n      return tasksSavedWithTransport.get('lastObject.weighingIncluded');\n    }),\n    allowTimeWindow: Ember.computed('typeGroup', function () {\n      return this.get('typeGroup') !== this.TYPE_GROUPS.SERVICE;\n    }).readOnly(),\n    // TODO: Kod został przeniesiony do serwisu, w ramach tego todo trzeba podmienić wszystkie wywołania tej metody na wywołania z serwisu i\n    // ostatecznie usunąć te metodę z modelu\n    findPositiveAuthorityRestrictionsByActionType: function (actionType, assetId) {\n      return this.get('authorityCheckerService').findPositiveAuthorityRestrictionsByActionType(actionType, assetId);\n    },\n    // TODO: Przenieść do serwisu i usunąć\n    findPositiveAuthorityRestrictionsByActionNameAndCustomFieldDefinition: function (actionType, customFieldDefinitionId) {\n      return this.findPositiveAuthorityRestrictionsByActionType(actionType, customFieldDefinitionId);\n    },\n    // TODO: Przenieść do serwisu i usunąć\n    findPositiveAuthorityRestrictionsByActionTypes: function (actionTypes) {\n      return this.get('authorityRestrictions').filter(actionType => actionTypes.includes(actionType.get('name')));\n    },\n    canBeCreatedByRoleGroup: Ember.computed('authorityRestrictions', function () {\n      return this.findPositiveAuthorityRestrictionsByActionType('CREATE_TRANSPORT', this.get('id')).get('length') > 0;\n    }),\n    canBeSeenByRoleGroup: Ember.computed('authorityRestrictions', function () {\n      return this.findPositiveAuthorityRestrictionsByActionType('ACCESS_TRANSPORT', this.get('id')).get('length') > 0;\n    }),\n    canBeSeenInArchiveByRoleGroup: Ember.computed('authorityRestrictions', function () {\n      return this.findPositiveAuthorityRestrictionsByActionType('ACCESS_TRANSPORT', this.get('id')).filterBy('authorityRange', 'UNLIMITED').get('length') > 0;\n    }),\n    nameInAppropriateLanguage: Ember.computed('name', 'englishName', function () {\n      const propertyName = this.get('languageService').findProperLanguageVersion('name', 'englishName');\n      return this.get(propertyName);\n    }),\n    indexSetting: Ember.computed('', function () {\n      const self = this;\n      return this.get('store').peekAll('index-setting').find(is => is.get('transportType.id') === self.get('id'));\n    }),\n    courierSetting: Ember.computed('', function () {\n      const self = this;\n      return this.get('store').peekAll('courier-setting').find(is => is.get('transportType.id') === self.get('id'));\n    }),\n    connectedAssetIds: Ember.computed('id', 'customFieldDefinitions.@each.id', function () {\n      return [this.get('id')].concat(this.get('customFieldDefinitions').getEach('id')).map(id => Number(id));\n    }),\n    priceLabelTranslationKey: Ember.computed('id', function () {\n      const transactionSetting = this.get('sessionAccount').getTransactionSetting(this);\n\n      if (!transactionSetting) {\n        return 'FREIGHT';\n      }\n\n      return transactionSetting.get('priceLabel');\n    }),\n    priceLabelTranslation: Ember.computed('priceLabelTranslationKey', function () {\n      const key = this.get('priceLabelTranslationKey');\n      return this.get('intl').t('transactionSetting.priceLabel.' + key);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-type/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, {\n    primaryKey: 'id',\n    attrs: Object.freeze({\n      defaultAmountOfCover: {\n        serialize: 'records',\n        deserialize: 'id'\n      },\n      priceListSetting: {\n        serialize: 'none',\n        deserialize: 'records'\n      }\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/artr-settings/controller\", [\"exports\", \"apollo/mixins/response-util-mixin\"], function (_exports, _responseUtilMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_responseUtilMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    artrSetting: Ember.computed('model.artrSetting', function () {\n      return this.get('model.artrSetting');\n    }),\n    transportType: Ember.computed('model.transportType.id', function () {\n      return this.get('model.transportType');\n    }),\n    actions: {\n      save() {\n        this.set('errors', []);\n        const artrSetting = this.get('artrSetting');\n        artrSetting.set('transportType', this.get('transportType'));\n\n        if (!artrSetting.validate()) {\n          return;\n        }\n\n        artrSetting.save().then(() => {\n          this.send('refreshModel');\n          const msg = this.get('intl').t('common.saveSuccessMessage');\n          this.set('successMessage', msg);\n          jQuery('html, body').animate({\n            scrollTop: 0\n          }, 'slow');\n        }).catch(response => {\n          this.set('errors', response.errors);\n          jQuery('html, body').animate({\n            scrollTop: 0\n          }, 'slow');\n        });\n      },\n\n      create() {\n        if (this.get('artrSetting')) {\n          return;\n        }\n\n        const transportType = this.get('transportType');\n        this.set('artrSetting', this.get('store').createRecord('artr-setting', {\n          transportType\n        }));\n      },\n\n      delete() {\n        this.set('errors', []);\n        this.get('artrSetting').destroyRecord().then(() => this.handleSuccessResponse(this)).catch(response => this.handleErrorResponse(this, response));\n      },\n\n      cancel() {\n        this.get('artrSetting').rollbackAttributes();\n        this.transitionToRoute('workflows.edit', this.get('transportType.workflow.id'));\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/artr-settings/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: Ember.A(['ROLE_MANAGE_ARTR_SETTINGS']),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const transportTypeId = params.id;\n      const transportType = this.store.peekRecord('transport-type', transportTypeId);\n      const artrSetting = this.store.queryRecord('artrSetting', {\n        transportTypeId\n      });\n      return Ember.RSVP.hash({\n        transportType,\n        artrSetting\n      });\n    },\n    actions: {\n      willTransition() {\n        // eslint-disable-next-line ember/no-controller-access-in-routes\n        this.get('controller').setProperties({\n          model: null,\n          errors: null,\n          successMessage: null\n        });\n      },\n\n      refreshModel() {\n        this.refresh();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/artr-settings/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"rnNGSIvJ\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"transport-types-nav-header\\\",null,[[\\\"workflow\\\",\\\"transportType\\\"],[[23,[\\\"transportType\\\",\\\"workflow\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"artrSettings.label\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"artrSetting\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"info bold\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"artrSettings.noSettings\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-right\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"artrSettings.add\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"create\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"artrSettings.fields.entryWhiteListCheckpointAlias\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-principal-name\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"artrSettings.fields.entryWhiteListCheckpointAlias\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\"],[\\\"text\\\",[23,[\\\"artrSetting\\\",\\\"entryWhiteListCheckpointAlias\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"artrSettings.fields.entryGateCheckpointAlias\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-principal-name\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"artrSettings.fields.entryGateCheckpointAlias\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\"],[\\\"text\\\",[23,[\\\"artrSetting\\\",\\\"entryGateCheckpointAlias\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"artrSettings.fields.exitWhiteListCheckpointAlias\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-principal-name\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"artrSettings.fields.exitWhiteListCheckpointAlias\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\"],[\\\"text\\\",[23,[\\\"artrSetting\\\",\\\"exitWhiteListCheckpointAlias\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"artrSettings.fields.exitGateCheckpointAlias\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-principal-name\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"artrSettings.fields.exitGateCheckpointAlias\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\"],[\\\"text\\\",[23,[\\\"artrSetting\\\",\\\"exitGateCheckpointAlias\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"artrSettings.fields.expirationTimeInHours\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-principal-name\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"artrSettings.fields.expirationTimeInHours\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"min\\\"],[\\\"number\\\",[23,[\\\"artrSetting\\\",\\\"expirationTimeInHours\\\"]],0]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"artrSetting\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-danger\\\",[27,\\\"t\\\",[\\\"common.confirmMessage\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transport-types/artr-settings/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/auction-settings/controller\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    errors: [],\n    transportType: Ember.computed('model.transportType.id', function () {\n      return this.get('model.transportType');\n    }),\n    auctionSetting: Ember.computed('model.auctionSetting', function () {\n      return this.get('model.auctionSetting');\n    }),\n    currencies: Ember.computed('', function () {\n      return this.get('store').peekAll('currency').getEach('symbol');\n    }),\n    rollbackChanges: function () {\n      this.set('errors', []);\n      this.set('successMessage', null);\n\n      if (this.get('auctionSetting.id')) {\n        this.get('auctionSetting').rollbackAttributes();\n      } else {\n        const auctionSetting = this.get('auctionSetting');\n\n        if (auctionSetting) {\n          auctionSetting.unloadRecord();\n        }\n\n        this.set('auctionSetting', null);\n      }\n    },\n    actions: {\n      save() {\n        this.set('errors', []);\n        this.get('auctionSetting').save().then(() => {\n          this.send('refreshModel');\n          const msg = this.get('intl').t('common.saveSuccessMessage');\n          this.set('successMessage', msg);\n          (0, _jquery.default)('html, body').animate({\n            scrollTop: 0\n          }, 'slow');\n        }).catch(response => {\n          this.set('errors', response.errors);\n          (0, _jquery.default)('html, body').animate({\n            scrollTop: 0\n          }, 'slow');\n        });\n      },\n\n      create() {\n        if (this.get('auctionSetting')) {\n          return;\n        }\n\n        const transportType = this.get('transportType');\n        const auctionSetting = this.get('store').createRecord('auction-setting', {\n          transportType,\n          company: transportType.get('company')\n        });\n        this.set('auctionSetting', auctionSetting);\n      },\n\n      cancel() {\n        this.rollbackChanges();\n        this.transitionToRoute('settings.index');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/auction-settings/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_MANAGE_AUCTION_SETTINGS'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const transportTypeId = params.id;\n      const transportType = this.store.peekRecord('transport-type', transportTypeId);\n      const auctionSetting = this.store.queryRecord('auction-setting', {\n        transportTypeId: transportTypeId\n      });\n      return Ember.RSVP.hash({\n        transportType: transportType,\n        auctionSetting: auctionSetting\n      });\n    },\n    actions: {\n      willTransition() {\n        this.get('controller').rollbackChanges();\n      },\n\n      refreshModel() {\n        this.refresh();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/auction-settings/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"j+YEQg73\",\n    \"block\": \"{\\\"symbols\\\":[\\\"c\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"transport-types-nav-header\\\",null,[[\\\"workflow\\\",\\\"transportType\\\"],[[23,[\\\"transportType\\\",\\\"workflow\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.auctionSetting\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"transportType\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"auctionSetting\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"info bold\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.noAuctionSetting\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"auctionSetting\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-right\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.addAuctionSetting\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"create\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auctionSetting\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"info\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsGroup.general\\\"],null],false],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.translationKey\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"translation-key\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.translationKey\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"auctionSetting\\\",\\\"translationKey\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.defaultCurrency\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"default-currency\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.defaultCurrency\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block width-200\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"auctionSetting\\\",\\\"defaultCurrency\\\"]],[23,[\\\"currencies\\\"]],true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"auctionSetting\\\",\\\"defaultCurrency\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.defaultAuctionFinishDelayInterval\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"default-auction-finish-delay-interval\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.defaultAuctionFinishDelayInterval\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"auctionSetting\\\",\\\"defaultAuctionFinishDelayInterval\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.auctionProlongationOffsetInterval\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"auction-prolongation-offset-interval\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.auctionProlongationOffsetInterval\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"auctionSetting\\\",\\\"auctionProlongationOffsetInterval\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.reminderTimeAboutAuction\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"reminder-time-about-auction\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.reminderTimeAboutAuction\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"auctionSetting\\\",\\\"reminderTimeAboutAuction\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.selectAllCarriersByDefault\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"select-all-carriers-by-default\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"selectAllCarriersByDefault\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.selectAllCarriersByDefault\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showCompanyGroupsSection\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-company-groups-section\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"showCompanyGroupsSection\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showCompanyGroupsSection\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auctionSetting\\\",\\\"showCompanyGroupsSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block margin-left-big\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.selectionBasedOnlyOnGroups\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-company-groups-section\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"selectionBasedOnlyOnGroups\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.selectionBasedOnlyOnGroups\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showBlockedCompaniesSection\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-blocked-companies-section\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"showBlockedCompaniesSection\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showBlockedCompaniesSection\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.selectionOfAuctionDurationFromAClosedList\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"selection-of-auction-duration-from-aclosed-list\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"selectionOfAuctionDurationFromAClosedList\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.selectionOfAuctionDurationFromAClosedList\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auctionSetting\\\",\\\"selectionOfAuctionDurationFromAClosedList\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.auctionFinishDelayIntervalOptions.title\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"default-auction-finish-delay-interval-options\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.auctionFinishDelayIntervalOptions.title\\\"],null],false],[0,\\\"\\\\n                    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-info-circle\\\"],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.auctionFinishDelayIntervalOptions.hint\\\"],null]],[9],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"auctionSetting\\\",\\\"auctionFinishDelayIntervalOptions\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"info\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsGroup.offerForm\\\"],null],false],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showPorts\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-ports\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"showPorts\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showPorts\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requirePorts\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-ports\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"requirePorts\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requirePorts\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showOperator\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-operator\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"showOperator\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showOperator\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requireOperator\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-operator\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"requireOperator\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requireOperator\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showStepDataInOfferForm\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-step-data-in-offer-form\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"showStepDataInOfferForm\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showStepDataInOfferForm\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showQuantityFieldInOfferForm\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-quantity-field-in-offer-form\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"showQuantityFieldInOfferForm\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showQuantityFieldInOfferForm\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showDescriptionSection\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-description-section\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"showDescriptionSection\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showDescriptionSection\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requireDescriptionSection\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-description-section\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"requireDescriptionSection\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requireDescriptionSection\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showTransitTime\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-transit-time\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"showTransitTime\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showTransitTime\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requireTransitTime\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-transit-time\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"requireTransitTime\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requireTransitTime\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n            \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"info\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsGroup.auctionPass\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"auctionSetting\\\",\\\"alowMultipleOffers\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.shouldPassToCarrierAfterAuction\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"should-pass-to-carrier-after-auction\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"shouldPassToCarrierAfterAuction\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.shouldPassToCarrierAfterAuction\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showPassToCarrierButton\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-pass-to-carrier-button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"showPassToCarrierButton\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showPassToCarrierButton\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requireReasonIfNotBestOfferIsChosen\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-reason-if-not-best-offer-is-chosen\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"requireReasonIfNotBestOfferIsChosen\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requireReasonIfNotBestOfferIsChosen\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requireSelectedOfferAcceptance\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-selected-offer-acceptance\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"requireSelectedOfferAcceptance\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requireSelectedOfferAcceptance\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"info\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsGroup.auctionOffers\\\"],null],false],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showPriceRangeFields\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-price-range-fields\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"showPriceRangeFields\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showPriceRangeFields\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requireMinPrice\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-min-price\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"requireMinPrice\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requireMinPrice\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requireMaxPrice\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-max-price\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"requireMaxPrice\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requireMaxPrice\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.minOfferReductionSize\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"min-offer-reduction-size\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.minOfferReductionSize\\\"],null],false],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"auctionSetting\\\",\\\"minOfferReductionSize\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requireMinOfferReductionSizeValidation\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-min-offer-reduction-size-validation\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"requireMinOfferReductionSizeValidation\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requireMinOfferReductionSizeValidation\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.canAcceptWithMinPrice\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"can-accept-with-min-price\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"canAcceptWithMinPrice\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.canAcceptWithMinPrice\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"info\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsGroup.auctionMails\\\"],null],false],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.newAuctionEmailFileName\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"new-auction-email-file-name\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.newAuctionEmailFileName\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"auctionSetting\\\",\\\"newAuctionEmailFileName\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.auctionEndedWithoutOffersEmailFileName\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"auction-ended-without-offers-email-file-name\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.auctionEndedWithoutOffersEmailFileName\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"auctionSetting\\\",\\\"auctionEndedWithoutOffersEmailFileName\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.auctionPreferredOfferEmailFileName\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"auction-preferred-offer-email-file-name\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.auctionPreferredOfferEmailFileName\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"auctionSetting\\\",\\\"auctionPreferredOfferEmailFileName\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.auctionEmailSubjectPl\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"auction-email-subject-pl\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.auctionEmailSubjectPl\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"auctionSetting\\\",\\\"auctionEmailSubjectPl\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.auctionEmailSubjectEn\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"auction-email-subject-en\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.auctionEmailSubjectEn\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"auctionSetting\\\",\\\"auctionEmailSubjectEn\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n            \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"info\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsGroup.others\\\"],null],false],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.exportAuctionInfoToExcel\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"export-auction-info-to-excel\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"exportAuctionInfoToExcel\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.exportAuctionInfoToExcel\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.addFileToTransportAfterOfferAcceptation\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"add-file-to-transport-after-offer-acceptation\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"addFileToTransportAfterOfferAcceptation\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.addFileToTransportAfterOfferAcceptation\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.addFileToTransportAfterOfferAcceptationName\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"add-file-to-transport-after-offer-acceptation-name\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.addFileToTransportAfterOfferAcceptationName\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"auctionSetting\\\",\\\"addFileToTransportAfterOfferAcceptationName\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showUnitAmountType\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-unit-amount-type\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"showUnitAmountType\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.showUnitAmountType\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requireUnitAmountType\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-unit-amount-type\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"auctionSetting\\\",\\\"requireUnitAmountType\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.auctionSetting.requireUnitAmountType\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transport-types/auction-settings/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/cmr-settings/controller\", [\"exports\", \"apollo/mixins/response-util-mixin\"], function (_exports, _responseUtilMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_responseUtilMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    cmrSetting: Ember.computed('model', function () {\n      return this.get('model.cmrSetting');\n    }),\n    transportType: Ember.computed('model.transportType.id', function () {\n      return this.get('model.transportType');\n    }),\n    customFieldDefinitions: Ember.computed('model.transportType.sortedFieldDefinitions', function () {\n      return Ember.A(this.get('transportType.sortedFieldDefinitions'));\n    }),\n    actions: {\n      save() {\n        this.set('errors', []);\n        const cmrSetting = this.get('cmrSetting');\n        cmrSetting.set('transportType', this.get('transportType'));\n\n        if (!cmrSetting.validate()) {\n          return;\n        }\n\n        cmrSetting.save().then(() => {\n          this.send('refreshModel');\n          const msg = this.get('intl').t('common.saveSuccessMessage');\n          this.set('successMessage', msg);\n          jQuery('html, body').animate({\n            scrollTop: 0\n          }, 'slow');\n        }).catch(response => {\n          this.set('errors', response.errors);\n          jQuery('html, body').animate({\n            scrollTop: 0\n          }, 'slow');\n        });\n      },\n\n      create() {\n        if (this.get('cmrSetting')) {\n          return;\n        }\n\n        const transportType = this.get('transportType');\n        this.set('cmrSetting', this.get('store').createRecord('cmr-setting', {\n          transportType\n        }));\n      },\n\n      delete() {\n        this.set('errors', []);\n        this.get('cmrSetting').destroyRecord().then(() => this.handleSuccessResponse(this)).catch(response => this.handleErrorResponse(this, response));\n      },\n\n      cancel() {\n        this.get('cmrSetting').rollbackAttributes();\n        this.transitionToRoute('workflows.edit', this.get('transportType.workflow.id'));\n      },\n\n      setAppendedDocsSpecificationCustomField(cfd) {\n        this.set('cmrSetting.appendedDocsSpecificationCustomField', cfd);\n      },\n\n      setFeaturesAndNumbersCustomField(cfd) {\n        this.set('cmrSetting.featuresAndNumbersCustomField', cfd);\n      },\n\n      setQuantityCustomField(cfd) {\n        this.set('cmrSetting.quantityCustomField', cfd);\n      },\n\n      setWeightGrossCustomField(cfd) {\n        this.set('cmrSetting.weightGrossCustomField', cfd);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/cmr-settings/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_MANAGE_CMR_SETTINGS'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const transportTypeId = params.id;\n      const transportType = this.store.peekRecord('transport-type', transportTypeId);\n      const cmrSetting = this.store.queryRecord('cmrSetting', {\n        transportTypeId: transportTypeId\n      });\n      return Ember.RSVP.hash({\n        transportType: transportType,\n        cmrSetting: cmrSetting\n      });\n    },\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          errors: null,\n          successMessage: null\n        });\n      },\n\n      refreshModel() {\n        this.refresh();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/cmr-settings/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"hHD+8grq\",\n    \"block\": \"{\\\"symbols\\\":[\\\"cf\\\",\\\"cf\\\",\\\"cf\\\",\\\"cf\\\",\\\"cf\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"transport-types-nav-header\\\",null,[[\\\"workflow\\\",\\\"transportType\\\"],[[23,[\\\"transportType\\\",\\\"workflow\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"cmrSettings.label\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"cmrSetting\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"info bold\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"cmrSettings.noSettings\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-right\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"cmrSettings.add\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"create\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"cmrSettings.fields.showPrincipalName\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-principal-name\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"cmrSettings.fields.showPrincipalName\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"cmrSetting\\\",\\\"showPrincipalName\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"cmrSettings.fields.showWarehouseName\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-warehouse-name\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"cmrSettings.fields.showWarehouseName\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"cmrSetting\\\",\\\"showWarehouseName\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"cmrSettings.fields.appendedDocsText\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"appended-docs-text\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"cmrSettings.fields.appendedDocsText\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"cmrSetting\\\",\\\"appendedDocsText\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"cmrSettings.fields.appendedDocsSpecificationNumber\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"appended-docs-specification-number\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"cmrSettings.fields.appendedDocsSpecificationNumber\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"cmrSetting\\\",\\\"appendedDocsSpecificationNumber\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"cmrSettings.fields.appendedDocsSpecificationCustomField\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"appended-docs-specification-custom-field\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"cmrSettings.fields.appendedDocsSpecificationCustomField\\\"],null],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"inline-block width-200\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"placeholder\\\",\\\"renderInPlace\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"cmrSetting\\\",\\\"appendedDocsSpecificationCustomField\\\"]],[23,[\\\"customFieldDefinitions\\\"]],[27,\\\"t\\\",[\\\"cmrSettings.fields.appendedDocsSpecificationCustomField\\\"],null],true,[27,\\\"action\\\",[[22,0,[]],\\\"setAppendedDocsSpecificationCustomField\\\"],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,5,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"cmrSettings.fields.featuresAndNumbersText\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"features-and-numbers-text\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"cmrSettings.fields.featuresAndNumbersText\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"cmrSetting\\\",\\\"featuresAndNumbersText\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"cmrSettings.fields.featuresAndNumbersCustomField\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"features-and-numbers-custom-field\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"cmrSettings.fields.featuresAndNumbersCustomField\\\"],null],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"inline-block width-200\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"placeholder\\\",\\\"renderInPlace\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"cmrSetting\\\",\\\"featuresAndNumbersCustomField\\\"]],[23,[\\\"customFieldDefinitions\\\"]],[27,\\\"t\\\",[\\\"cmrSettings.fields.featuresAndNumbersCustomField\\\"],null],true,[27,\\\"action\\\",[[22,0,[]],\\\"setFeaturesAndNumbersCustomField\\\"],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,4,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"cmrSettings.fields.quantityText\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"quantity-text\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"cmrSettings.fields.quantityText\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"cmrSetting\\\",\\\"quantityText\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"cmrSettings.fields.quantityCustomField\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"quantity-custom-field\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"cmrSettings.fields.quantityCustomField\\\"],null],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"inline-block width-200\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"placeholder\\\",\\\"renderInPlace\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"cmrSetting\\\",\\\"quantityCustomField\\\"]],[23,[\\\"customFieldDefinitions\\\"]],[27,\\\"t\\\",[\\\"cmrSettings.fields.quantityCustomField\\\"],null],true,[27,\\\"action\\\",[[22,0,[]],\\\"setQuantityCustomField\\\"],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,3,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"cmrSettings.fields.packageTypeText\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"package-type-text\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"cmrSettings.fields.packageTypeText\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"cmrSetting\\\",\\\"packageTypeText\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"cmrSettings.fields.weightGrossCustomField\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"weight-gross-custom-field\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"cmrSettings.fields.weightGrossCustomField\\\"],null],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"inline-block width-200\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"placeholder\\\",\\\"renderInPlace\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"cmrSetting\\\",\\\"weightGrossCustomField\\\"]],[23,[\\\"customFieldDefinitions\\\"]],[27,\\\"t\\\",[\\\"cmrSettings.fields.weightGrossCustomField\\\"],null],true,[27,\\\"action\\\",[[22,0,[]],\\\"setWeightGrossCustomField\\\"],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,2,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"cmrSetting\\\",\\\"errors\\\",\\\"senderInstructionText\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"cmrSettings.fields.senderInstructionText\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"sender-instruction-text\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"cmrSettings.fields.senderInstructionText\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\",\\\"rows\\\"],[[23,[\\\"cmrSetting\\\",\\\"senderInstructionText\\\"]],\\\"textarea\\\",\\\"form-control\\\",\\\"8\\\"]]],false],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"help-block\\\"],[9],[1,[27,\\\"t\\\",[\\\"cmrSettings.senderInstructionTextHint\\\"],null],false],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"cmrSetting\\\"]],\\\"senderInstructionText\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"cmrSettings.fields.senderInstructionCustomField\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"sender-instruction-custom-field\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"cmrSettings.fields.senderInstructionCustomField\\\"],null],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"inline-block width-200\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select-multiple\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"placeholder\\\",\\\"renderInPlace\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"cmrSetting\\\",\\\"senderInstructionCustomFields\\\"]],[23,[\\\"customFieldDefinitions\\\"]],[27,\\\"t\\\",[\\\"cmrSettings.fields.senderInstructionCustomField\\\"],null],true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"cmrSetting\\\",\\\"senderInstructionCustomFields\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"cmrSetting\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-danger\\\",[27,\\\"t\\\",[\\\"common.confirmMessage\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transport-types/cmr-settings/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/courier-settings/controller\", [\"exports\", \"apollo/mixins/response-util-mixin\"], function (_exports, _responseUtilMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_responseUtilMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    transportType: Ember.computed('model', function () {\n      return this.get('model.transportType');\n    }),\n    courierSettings: Ember.computed('model', function () {\n      return this.get('model.courierSettings');\n    }),\n    transportTypes: Ember.computed('sessionAccount.currentUser.transportTypes', function () {\n      return this.get('sessionAccount.currentUser.transportTypes');\n    }),\n    actions: {\n      save() {\n        this.set('errors', []);\n        this.get('courierSettings').save().then(() => this.handleSuccessResponse(this)).catch(response => this.handleErrorResponse(this, response));\n      },\n\n      create() {\n        if (this.get('courierSettings')) {\n          return;\n        }\n\n        this.set('courierSettings', this.get('store').createRecord('courier-setting', {\n          transportType: this.get('transportType')\n        }));\n      },\n\n      delete() {\n        this.set('errors', []);\n        this.get('courierSettings').destroyRecord().then(() => this.handleSuccessResponse(this)).catch(response => this.handleErrorResponse(this, response));\n      },\n\n      cancel() {\n        this.get('courierSettings').rollbackAttributes();\n        this.transitionToRoute('settings.index');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/courier-settings/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_SUPER_USER'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const transportTypeId = params.id;\n      return Ember.RSVP.hash({\n        transportType: this.store.peekRecord('transport-type', transportTypeId),\n        courierSettings: this.store.queryRecord('courier-setting', {\n          transportTypeId: transportTypeId\n        })\n      });\n    },\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          errors: null,\n          successMessage: null\n        });\n      },\n\n      refreshModel() {\n        this.refresh();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/courier-settings/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"T8NtA9dr\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"transport-types-nav-header\\\",null,[[\\\"workflow\\\",\\\"transportType\\\"],[[23,[\\\"model\\\",\\\"workflow\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"courierSettings.label\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"courierSettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"info bold\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"courierSettings.noSettings\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-right\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"courierSettings.add\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"create\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block margin-bottom-small\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"courierSettings.description.transportType\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-statement-to-download\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"courierSettings.description.transportType\\\"],null],false],[0,\\\":\\\\n                \\\"],[1,[23,[\\\"courierSettings\\\",\\\"transportType\\\",\\\"label\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"courierSettings.description.isGetCourierQuotesFieldVisibility\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-statement-to-download\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"courierSettings.description.isGetCourierQuotesFieldVisibility\\\"],null],false],[0,\\\":\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"courierSettings\\\",\\\"isGetCourierQuotesFieldVisibility\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block margin-bottom-big\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"courierSettings.description.shouldGetCourierQuotesByDefault\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-statement-to-download\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"courierSettings.description.shouldGetCourierQuotesByDefault\\\"],null],false],[0,\\\":\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"courierSettings\\\",\\\"shouldGetCourierQuotesByDefault\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"courierSettings\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-danger margin-bottom-big\\\",[27,\\\"t\\\",[\\\"common.confirmMessage\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons margin-bottom-big\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transport-types/courier-settings/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/create-definition/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_CREATE_CUSTOM_FIELD_DEFINITIONS'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const transportType = this.store.peekRecord('transport-type', params.id);\n      return this.store.createRecord('custom-field-definition', {\n        transportType: transportType\n      });\n    },\n    renderTemplate: function () {\n      this.render('custom-field-definitions.edit');\n    },\n    setupController: function (controller, model) {\n      this.controllerFor('custom-field-definitions.edit').setProperties({\n        model: model\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/create/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: service('session-account'),\n    intl: service(),\n    store: service(),\n    transportType: Ember.computed('model', function () {\n      return this.get('model');\n    }),\n    typeGroups: Ember.computed('transportType', function () {\n      return Object.keys(this.get('transportType.TYPE_GROUPS'));\n    }),\n    actions: {\n      cancel() {\n        this.get('transportType').unloadRecord();\n        window.history.back();\n      },\n\n      save() {\n        let self = this;\n\n        if (!this.get('transportType').validate()) {\n          return;\n        }\n\n        this.get('transportType').save().then(transportType => {\n          self.setProperties({\n            success: true,\n            errors: []\n          });\n          const userRoleGroupId = self.get('sessionAccount.currentUser.roleGroup.id');\n          this.store.query('authority-restriction', {\n            roleGroupId: userRoleGroupId\n          }).then(data => {\n            transportType.get('workflow').reload().then(() => {\n              const transportTypeId = transportType.get('id');\n              const authorityRestrictions = data.filter(aR => {\n                return aR.assetId === Number(transportTypeId);\n              });\n              this.get('sessionAccount').set('authorityRestrictions', data);\n              transportType.set('authorityRestrictions', authorityRestrictions);\n              transportType.reload().then(() => {\n                let msg = self.get('intl').t('settings.transportTypes.settingsSaveSuccess');\n                self.set('successMessage', msg);\n              });\n            });\n          });\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_MANAGE_TRANSPORT_TYPE'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      let transportType = this.store.createRecord('transport-type', {});\n      transportType.set('typeGroup', transportType.get('TYPE_GROUPS.TRANSPORT'));\n      return transportType;\n    },\n    setupController: function (controller, model) {\n      this._super(controller, model);\n\n      this.controllerFor('transport-types/edit').setProperties({\n        model: model\n      });\n    },\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          successMessage: null,\n          errors: null\n        });\n        this.get('currentModel').unloadRecord();\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"oUnyQQS0\",\n    \"block\": \"{\\\"symbols\\\":[\\\"group\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-bottom\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"settings.transportTypes.create\\\"],null]],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.name\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[12,\\\"data-field-name\\\",[28,[\\\"transport-type-name \\\",[27,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"transportType\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.englishName\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[12,\\\"data-field-name\\\",[28,[\\\"transport-type-english-name \\\",[27,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"errors\\\",\\\"englishName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"transportType\\\",\\\"englishName\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"englishName\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.group\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-7\\\"],[11,\\\"data-field-name\\\",\\\"transport-type-group\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"transportType\\\",\\\"typeGroup\\\"]],[23,[\\\"typeGroups\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"transportType\\\",\\\"typeGroup\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"transport.type.\\\",[22,1,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transport-types/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/delivery-settings/controller\", [\"exports\", \"apollo/mixins/response-util-mixin\"], function (_exports, _responseUtilMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_responseUtilMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    deliverySetting: Ember.computed('model.deliverySetting', function () {\n      return this.get('model.deliverySetting');\n    }),\n    transportType: Ember.computed('model.transportType.id', function () {\n      return this.get('model.transportType');\n    }),\n    actions: {\n      save() {\n        this.set('errors', []);\n        const deliverySetting = this.get('deliverySetting');\n        deliverySetting.set('transportType', this.get('transportType'));\n\n        if (!deliverySetting.validate()) {\n          return;\n        }\n\n        deliverySetting.save().then(() => {\n          this.send('refreshModel');\n          const msg = this.get('intl').t('common.saveSuccessMessage');\n          this.set('successMessage', msg);\n          jQuery('html, body').animate({\n            scrollTop: 0\n          }, 'slow');\n        }).catch(response => {\n          this.set('errors', response.errors);\n          jQuery('html, body').animate({\n            scrollTop: 0\n          }, 'slow');\n        });\n      },\n\n      create() {\n        if (this.get('deliverySetting')) {\n          return;\n        }\n\n        const transportType = this.get('transportType');\n        this.set('deliverySetting', this.get('store').createRecord('deliverySetting', {\n          transportType\n        }));\n      },\n\n      delete() {\n        this.set('errors', []);\n        this.get('deliverySetting').destroyRecord().then(() => this.handleSuccessResponse(this)).catch(response => this.handleErrorResponse(this, response));\n      },\n\n      cancel() {\n        this.get('deliverySetting').rollbackAttributes();\n        this.transitionToRoute('workflows.edit', this.get('transportType.workflow.id'));\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/delivery-settings/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: Ember.A(['ROLE_MANAGE_DELIVERY_SETTINGS']),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const transportTypeId = params.id;\n      const transportType = this.store.peekRecord('transport-type', transportTypeId);\n      const deliverySetting = this.store.queryRecord('deliverySetting', {\n        transportTypeId\n      });\n      return Ember.RSVP.hash({\n        transportType,\n        deliverySetting\n      });\n    },\n    actions: {\n      willTransition() {\n        // eslint-disable-next-line ember/no-controller-access-in-routes\n        this.get('controller').setProperties({\n          model: null,\n          errors: null,\n          successMessage: null\n        });\n      },\n\n      refreshModel() {\n        this.refresh();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/delivery-settings/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"5XQUOny4\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"transport-types-nav-header\\\",null,[[\\\"workflow\\\",\\\"transportType\\\"],[[23,[\\\"transportType\\\",\\\"workflow\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"deliverySettings.label\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"deliverySetting\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"info bold\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliverySettings.noSettings\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-right\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliverySettings.add\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"create\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"deliverySettings.fields.requireAtLeastOnePackaging\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-at-least-one-packaging\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliverySettings.fields.requireAtLeastOnePackaging\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"deliverySetting\\\",\\\"requireAtLeastOnePackaging\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"deliverySettings.fields.checkCompatibilityOfLoadingCity\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"check-compatibility-of-loading-city\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliverySettings.fields.checkCompatibilityOfLoadingCity\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"deliverySetting\\\",\\\"checkCompatibilityOfLoadingCity\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"deliverySettings.fields.autoGenerateDeliveryNumber\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"auto-generate-delivery-number\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliverySettings.fields.autoGenerateDeliveryNumber\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"deliverySetting\\\",\\\"autoGenerateDeliveryNumber\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"deliverySettings.fields.requireNetWeight\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-net-weight\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliverySettings.fields.requireNetWeight\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"deliverySetting\\\",\\\"requireNetWeight\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"deliverySettings.fields.requireGrossWeight\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-gross-weight\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliverySettings.fields.requireGrossWeight\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"deliverySetting\\\",\\\"requireGrossWeight\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"deliverySettings.fields.requireFreightCost\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-freight-cost\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliverySettings.fields.requireFreightCost\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"deliverySetting\\\",\\\"requireFreightCost\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"deliverySettings.fields.copyContactDetailsForTransportation\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"copy-contact-details-for-transportation\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliverySettings.fields.copyContactDetailsForTransportation\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"deliverySetting\\\",\\\"copyContactDetailsForTransportation\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"deliverySettings.fields.weightThresholdUpper\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"weight-threshold-upper\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliverySettings.fields.weightThresholdUpper\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\"],[\\\"number\\\",[23,[\\\"deliverySetting\\\",\\\"weightThresholdUpper\\\"]]]]],false],[0,\\\" [kg]\\\\n                \\\"],[1,[27,\\\"spectrum-color-picker\\\",null,[[\\\"color\\\",\\\"showPaletteOnly\\\",\\\"togglePaletteOnly\\\",\\\"onChange\\\",\\\"preferredFormat\\\",\\\"clickoutFiresChange\\\",\\\"showButtons\\\",\\\"allowEmpty\\\",\\\"palette\\\"],[[23,[\\\"deliverySetting\\\",\\\"weightAlertColorUpper\\\"]],true,true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"deliverySetting\\\",\\\"weightAlertColorUpper\\\"]]],null]],null],\\\"name\\\",true,false,true,\\\"[[\\\\\\\"steelblue\\\\\\\", \\\\\\\"aqua\\\\\\\", \\\\\\\"teal\\\\\\\", \\\\\\\"green\\\\\\\"], [\\\\\\\"lime\\\\\\\", \\\\\\\"yellow\\\\\\\", \\\\\\\"orange\\\\\\\", \\\\\\\"maroon\\\\\\\"], [\\\\\\\"fuchsia\\\\\\\", \\\\\\\"purple\\\\\\\", \\\\\\\"gray\\\\\\\", \\\\\\\"silver\\\\\\\"], [\\\\\\\"brak\\\\\\\"]]\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"deliverySettings.fields.weightThresholdLower\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"weight-threshold-lower\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliverySettings.fields.weightThresholdLower\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\"],[\\\"number\\\",[23,[\\\"deliverySetting\\\",\\\"weightThresholdLower\\\"]]]]],false],[0,\\\" [kg]\\\\n                \\\"],[1,[27,\\\"spectrum-color-picker\\\",null,[[\\\"color\\\",\\\"showPaletteOnly\\\",\\\"togglePaletteOnly\\\",\\\"onChange\\\",\\\"preferredFormat\\\",\\\"clickoutFiresChange\\\",\\\"showButtons\\\",\\\"allowEmpty\\\",\\\"palette\\\"],[[23,[\\\"deliverySetting\\\",\\\"weightAlertColorLower\\\"]],true,true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"deliverySetting\\\",\\\"weightAlertColorLower\\\"]]],null]],null],\\\"name\\\",true,false,true,\\\"[[\\\\\\\"steelblue\\\\\\\", \\\\\\\"aqua\\\\\\\", \\\\\\\"teal\\\\\\\", \\\\\\\"green\\\\\\\"], [\\\\\\\"lime\\\\\\\", \\\\\\\"yellow\\\\\\\", \\\\\\\"orange\\\\\\\", \\\\\\\"maroon\\\\\\\"], [\\\\\\\"fuchsia\\\\\\\", \\\\\\\"purple\\\\\\\", \\\\\\\"gray\\\\\\\", \\\\\\\"silver\\\\\\\"], [\\\\\\\"brak\\\\\\\"]]\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"deliveryPackaging.sectionTitle\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"deliverySettings.fields.requireStackingFactor\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-stacking-Factor\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliverySettings.fields.requireStackingFactor\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"deliverySetting\\\",\\\"requireStackingFactor\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"deliverySettings.fields.sendIfsMessageAfterTimeWindowAction\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"send-ifs-message-after-time-window-action\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliverySettings.fields.sendIfsMessageAfterTimeWindowAction\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"deliverySetting\\\",\\\"sendIfsMessageAfterTimeWindowAction\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"deliverySettings.fields.showSimplePackagingSection\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-stacking-Factor\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"deliverySettings.fields.showSimplePackagingSection\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"deliverySetting\\\",\\\"showSimplePackagingSection\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"deliverySetting\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-danger\\\",[27,\\\"t\\\",[\\\"common.confirmMessage\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transport-types/delivery-settings/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/edit/controller\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: service('session-account'),\n    actions: {\n      cancel() {\n        this.transitionToRoute('settings.index');\n      },\n\n      sortEndAction() {\n        let dataToSend = [];\n        this.get('model.sortedFieldDefinitions').forEach((cfd, idx) => {\n          cfd.set('idx', idx);\n          dataToSend.pushObject({\n            id: cfd.get('id'),\n            idx: cfd.get('idx')\n          });\n        });\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        Ember.$.ajax({\n          url: _environment.default.serverURL + '/custom-field-definitions/update-ordering',\n          type: 'PUT',\n          data: JSON.stringify(dataToSend),\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(() => {\n          console.log('Zedytowano kolejność custom fieldów');\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_CREATE_CUSTOM_FIELD_DEFINITIONS'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      return this.store.findRecord('transport-type', params.id);\n    },\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          successMessage: null,\n          errors: null\n        });\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/edit/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"vxdmtFsQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"cfd\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"transport-types-nav-header\\\",null,[[\\\"workflow\\\",\\\"transportType\\\"],[[23,[\\\"model\\\",\\\"workflow\\\"]],[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-bottom\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"model\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"link-to\\\",[\\\"transport-types.createDefinition\\\",[23,[\\\"model\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-default margin-left\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.addNewField\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-hover table-striped\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"custom-field-definition.name\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"custom-field-definition.englishName\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"custom-field-definition.typeField\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"custom-field-definition.obligatory\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"custom-field-definition.visibleDuringTransportCreation\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"custom-field-definition.visibleInAdviceSection\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"custom-field-definition.idx\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"custom-field-definition.sideShort\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.edit\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"sortable-objects\\\",null,[[\\\"sortableObjectList\\\",\\\"sortEndAction\\\",\\\"enableSort\\\",\\\"tagName\\\"],[[23,[\\\"model\\\",\\\"sortedFieldDefinitions\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"sortEndAction\\\"],null],true,\\\"tbody\\\"]],{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"sortedFieldDefinitions\\\"]]],null,{\\\"statements\\\":[[4,\\\"draggable-object\\\",null,[[\\\"content\\\",\\\"overrideClass\\\",\\\"isSortable\\\",\\\"tagName\\\"],[[22,1,[]],\\\"sortObject\\\",true,\\\"tr\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,1,[\\\"englishName\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"custom-field-definition.type.\\\",[22,1,[\\\"type\\\"]]],null]],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"obligatory\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"check\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"visibleDuringTransportCreation\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"check\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"visibleInAdviceSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"check\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,1,[\\\"idx\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"side\\\"]],\\\"RIGHT\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.sideRight\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"custom-field-definition.sideLeft\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"custom-field-definitions.edit\\\",[22,1,[\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"common.edit\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transport-types/edit/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/index-settings/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    store: Ember.inject.service(),\n    errors: [],\n    intl: Ember.inject.service(),\n    indexSettings: Ember.computed('model.indexSettings', function () {\n      return this.get('model.indexSettings');\n    }),\n    transportType: Ember.computed('model.transportType.id', function () {\n      return this.get('model.transportType');\n    }),\n    actions: {\n      save() {\n        this.set('errors', []);\n        const self = this;\n        const indexSettings = this.get('indexSettings');\n        indexSettings.set('transportType', this.get('transportType'));\n        indexSettings.save().then(() => {\n          const msg = self.get('intl').t('common.saveSuccessMessage');\n          self.set('successMessage', msg);\n          window.scrollTo({\n            top: 0,\n            behavior: 'smooth'\n          });\n        }).catch(response => {\n          self.set('errors', response.errors);\n          window.scrollTo({\n            top: 0,\n            behavior: 'smooth'\n          });\n        });\n      },\n\n      create() {\n        if (this.get('indexSettings')) {\n          console.log(`Ustawienia indeksów dla typu transport ${this.get('transportType.id')} już istnieją!`);\n          return;\n        }\n\n        const transportType = this.get('transportType');\n        this.set('indexSettings', this.get('store').createRecord('indexSetting', {\n          transportType\n        }));\n      },\n\n      delete() {\n        this.set('errors', []);\n        this.get('indexSettings').destroyRecord().then(() => this.handleSuccessResponse(this)).catch(response => this.handleErrorResponse(this, response));\n      },\n\n      cancel() {\n        this.get('indexSettings').rollbackAttributes();\n        this.transitionToRoute('workflows.edit', this.get('transportType.workflow.id'));\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/index-settings/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: Ember.A(['ROLE_MANAGE_INDEX_SETTINGS']),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n\n    async model(params) {\n      const transportTypeId = params.id;\n      return {\n        transportType: this.store.peekRecord('transport-type', transportTypeId),\n        indexSettings: await this.store.queryRecord('index-setting', {\n          transportTypeId\n        }),\n        indexQuantityTypes: await this.store.query('index-quantity-type', {\n          transportTypeId\n        })\n      };\n    },\n\n    actions: {\n      willTransition() {\n        // eslint-disable-next-line ember/no-controller-access-in-routes\n        this.get('controller').setProperties({\n          model: null,\n          errors: null,\n          successMessage: null\n        });\n      },\n\n      refreshModel() {\n        this.refresh();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/index-settings/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"vbxYvGBg\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"transport-types-nav-header\\\",null,[[\\\"workflow\\\",\\\"transportType\\\"],[[23,[\\\"transportType\\\",\\\"workflow\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"indexSettings.label\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"indexSettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"info bold\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"indexSettings.noSettings\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-right\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"indexSettings.add\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"create\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"indexSettings.fields.showName\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-name\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"indexSettings.fields.showName\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"indexSettings\\\",\\\"showName\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"indexSettings.fields.requiresName\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-name\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"indexSettings.fields.requiresName\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"indexSettings\\\",\\\"requiresName\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"indexSettings.fields.hasProductsEnabled\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"has-products-enabled\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"indexSettings.fields.hasProductsEnabled\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"indexSettings\\\",\\\"hasProductsEnabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"indexSettings.fields.hasProductsShortNameEnabled\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"has-products-short-name-enabled\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"indexSettings.fields.hasProductsShortNameEnabled\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"indexSettings\\\",\\\"hasProductsShortNameEnabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"indexSettings.fields.showDocumentNumber\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-document-number\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"indexSettings.fields.showDocumentNumber\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"indexSettings\\\",\\\"showDocumentNumber\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"indexSettings.fields.showGlobalNumber\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-global-number\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"indexSettings.fields.showGlobalNumber\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"indexSettings\\\",\\\"showGlobalNumber\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"indexSettings.fields.requiresGlobalNumber\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-global-number\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"indexSettings.fields.requiresGlobalNumber\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"indexSettings\\\",\\\"requiresGlobalNumber\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"indexSettings.fields.showLocalNumber\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-local-number\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"indexSettings.fields.showLocalNumber\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"indexSettings\\\",\\\"showLocalNumber\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"indexSettings.fields.showNotes\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-notes\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"indexSettings.fields.showNotes\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"indexSettings\\\",\\\"showNotes\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"indexSettings.fields.showQuantity\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-quantity\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"indexSettings.fields.showQuantity\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"indexSettings\\\",\\\"showQuantity\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"indexSettings.fields.showIncompleteLoading\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-incomplete-loading\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"indexSettings.fields.showIncompleteLoading\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"indexSettings\\\",\\\"showIncompleteLoading\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"indexSettings.fields.showPasteFromExcel\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-paste-from-excel\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"indexSettings.fields.showPasteFromExcel\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"indexSettings\\\",\\\"showPasteFromExcel\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"indexSettings.fields.showTransportNumber\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-transport-number\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"indexSettings.fields.showTransportNumber\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"indexSettings\\\",\\\"showTransportNumber\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\"],[1,[27,\\\"index-quantity-type-table\\\",null,[[\\\"indexQuantityTypes\\\",\\\"transportType\\\"],[[23,[\\\"model\\\",\\\"indexQuantityTypes\\\"]],[23,[\\\"model\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transport-types/index-settings/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/package-type-settings/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    errors: [],\n    packageTypeTransportTypes: Ember.computed('model.packageTypeTransportTypes', function () {\n      return this.get('model.packageTypeTransportTypes').sortBy('idx');\n    }),\n    referencePackage: Ember.computed('model.packageTypeTransportTypes', function () {\n      let refPckg = null;\n      const pt = this.get('store').peekAll('packageTypeTransportType').find(pt => pt.get('referencePackage'));\n\n      if (pt) {\n        refPckg = pt.get('packageType');\n      }\n\n      return refPckg;\n    }),\n    selectedPackageTypeTransportType: Ember.computed('packageTypeTransportTypes.{firstObject,length}', function () {\n      return this.get('packageTypeTransportTypes.firstObject');\n    }),\n    actions: {\n      setPackageTypeTransportType(pttt) {\n        this.set('selectedPackageTypeTransportType', pttt);\n        this.set('errors', []);\n        this.set('successMessage', null);\n      },\n\n      add() {\n        const pttt = this.get('store').createRecord('packageTypeTransportType', {\n          transportType: this.get('model.transportType')\n        });\n        this.get('packageTypeTransportTypes').pushObject(pttt);\n        this.set('selectedPackageTypeTransportType', pttt);\n      },\n\n      cancel(pttt) {\n        this.get('packageTypeTransportTypes').removeObject(pttt);\n        pttt.unloadRecord();\n        this.set('selectedPackageTypeTransportType', this.get('packageTypeTransportTypes.firstObject'));\n        this.set('errors', []);\n        this.set('successMessage', null);\n      },\n\n      delete(pttt) {\n        const ptttId = pttt.get('id');\n        pttt.destroyRecord().then(() => {\n          const objectToRemove = this.get('packageTypeTransportTypes').find(pttt => pttt.get('id') === ptttId);\n          this.get('packageTypeTransportTypes').removeObject(objectToRemove);\n          this.set('selectedPackageTypeTransportType', this.get('packageTypeTransportTypes.firstObject'));\n        }).catch(response => {\n          this.set('errors', response.errors);\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/package-type-settings/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_MANAGE_PACKAGE_TYPE_TRANSPORT_TYPE'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const transportTypeId = params.id;\n      const transportType = this.store.findRecord('transport-type', transportTypeId);\n      const packageTypeTransportTypes = this.store.query('packageTypeTransportType', {\n        transportTypeId: transportTypeId\n      });\n      return Ember.RSVP.hash({\n        transportType: transportType,\n        packageTypeTransportTypes: packageTypeTransportTypes\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/package-type-settings/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"R56kcLGf\",\n    \"block\": \"{\\\"symbols\\\":[\\\"pttt\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"transport-types-nav-header\\\",null,[[\\\"workflow\\\",\\\"transportType\\\"],[[23,[\\\"model\\\",\\\"transportType\\\",\\\"workflow\\\"]],[23,[\\\"model\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.packageTypeSettings\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"model\\\",\\\"transportType\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"packageTypeTransportTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[12,\\\"data-button-name\\\",[28,[\\\"package-type-id-\\\",[22,1,[\\\"id\\\"]]]]],[12,\\\"class\\\",[28,[\\\"btn btn-info margin-bottom\\\\n                            \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"selectedPackageTypeTransportType\\\",\\\"id\\\"]],[22,1,[\\\"id\\\"]]],null],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"packageType\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"packageTypes.\\\",[22,1,[\\\"packageType\\\",\\\"name\\\"]],\\\".label\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        ?\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"setPackageTypeTransportType\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn btn-default margin-bottom\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"add\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"packageTypeTransportTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"transport-types/package-type-settings-form\\\",null,[[\\\"packageTypeTransportType\\\",\\\"referencePackage\\\",\\\"errors\\\",\\\"successMessage\\\",\\\"cancel\\\",\\\"delete\\\"],[[23,[\\\"selectedPackageTypeTransportType\\\"]],[23,[\\\"referencePackage\\\"]],[23,[\\\"errors\\\"]],[23,[\\\"successMessage\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"t\\\",[\\\"packageTypes.noRelationsWithPackageTypes\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transport-types/package-type-settings/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/price-list-settings/controller\", [\"exports\", \"apollo/mixins/response-util-mixin\"], function (_exports, _responseUtilMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_responseUtilMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    priceListSetting: Ember.computed('model.priceListSetting', function () {\n      return this.get('model.priceListSetting');\n    }),\n    transportType: Ember.computed('model.transportType.id', function () {\n      return this.get('model.transportType');\n    }),\n    actions: {\n      save() {\n        this.set('errors', []);\n        const priceListSetting = this.get('priceListSetting');\n        priceListSetting.set('transportType', this.get('transportType'));\n\n        if (!priceListSetting.validate()) {\n          return;\n        }\n\n        priceListSetting.save().then(() => {\n          this.send('refreshModel');\n          const msg = this.get('intl').t('common.saveSuccessMessage');\n          this.set('successMessage', msg);\n          window.scrollTo({\n            top: 0,\n            behavior: 'smooth'\n          });\n        }).catch(response => {\n          this.set('errors', response.errors);\n          window.scrollTo({\n            top: 0,\n            behavior: 'smooth'\n          });\n        });\n      },\n\n      create() {\n        if (this.get('priceListSetting')) {\n          return;\n        }\n\n        const transportType = this.get('transportType');\n        this.set('priceListSetting', this.get('store').createRecord('priceListSetting', {\n          transportType\n        }));\n      },\n\n      delete() {\n        this.set('errors', []);\n        this.get('priceListSetting').destroyRecord().then(() => {\n          this.set('priceListSetting', null);\n          this.transitionToRoute('workflows.edit', this.get('transportType.workflow.id'));\n        }).catch(response => this.handleErrorResponse(this, response));\n      },\n\n      cancel() {\n        this.get('priceListSetting').rollbackAttributes();\n        this.transitionToRoute('workflows.edit', this.get('transportType.workflow.id'));\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/price-list-settings/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: Ember.A(['ROLE_MANAGE_PRICE_LIST_SETTINGS']),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const transportTypeId = params.id;\n      const transportType = this.store.peekRecord('transport-type', transportTypeId);\n      const priceListSetting = this.store.queryRecord('price-list-setting', {\n        transportTypeId\n      });\n      return Ember.RSVP.hash({\n        transportType,\n        priceListSetting\n      });\n    },\n    actions: {\n      willTransition() {\n        // eslint-disable-next-line ember/no-controller-access-in-routes\n        this.get('controller').setProperties({\n          model: null,\n          errors: null,\n          successMessage: null\n        });\n      },\n\n      refreshModel() {\n        this.refresh();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/price-list-settings/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"SQWAEW/K\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"transport-types-nav-header\\\",null,[[\\\"workflow\\\",\\\"transportType\\\"],[[23,[\\\"transportType\\\",\\\"workflow\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"priceListSetting.label\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\",\\\"firstObject\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"priceListSetting\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"info bold\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"priceListSetting.noSettings\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-right\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"create\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"priceListSetting.allowsPriceList\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"allows-price-list\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"priceListSetting\\\",\\\"allowsPriceList\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.allowsPriceList\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"priceListSetting.showRouteTemplate\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-route-template\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"priceListSetting\\\",\\\"showRouteTemplate\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"priceListSetting.showRouteTemplate\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"priceListSetting.requireRouteTemplate\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-route-template\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"priceListSetting\\\",\\\"requireRouteTemplate\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"priceListSetting.requireRouteTemplate\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"priceListSetting.searchForMatchingRoute\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"search-for-matching-route\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"priceListSetting\\\",\\\"searchForMatchingRoute\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"priceListSetting.searchForMatchingRoute\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"priceListSetting.truckTypeRouteOfferRestriction\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"truck-type-route-offer-restriction\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"priceListSetting\\\",\\\"truckTypeRouteOfferRestriction\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"priceListSetting.truckTypeRouteOfferRestriction\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"priceListSetting.overrideStepAndCustomFieldData\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"override-step-and-custom-field-data\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"priceListSetting\\\",\\\"overrideStepAndCustomFieldData\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"priceListSetting.overrideStepAndCustomFieldData\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"priceListSetting\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-danger\\\",[27,\\\"t\\\",[\\\"common.confirmMessage\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transport-types/price-list-settings/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/schedule-settings/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    transportTypeScheduleSettings: Ember.computed('model.transportTypeScheduleSettings', function () {\n      return this.get('model.transportTypeScheduleSettings');\n    }),\n    actions: {\n      save() {\n        this.set('errors', []);\n        const transportTypeScheduleSettings = this.get('transportTypeScheduleSettings');\n        transportTypeScheduleSettings.set('transportType', this.get('model.transportType'));\n\n        if (!transportTypeScheduleSettings.validate()) {\n          return;\n        }\n\n        transportTypeScheduleSettings.save().then(() => {\n          this.send('refreshModel');\n          const msg = this.get('intl').t('common.saveSuccessMessage');\n          this.set('successMessage', msg);\n          window.scrollTo({\n            top: 0\n          });\n        }).catch(response => {\n          this.set('errors', response.errors);\n          window.scrollTo({\n            top: 0\n          });\n        });\n      },\n\n      cancel() {\n        this.get('transportTypeScheduleSettings').rollbackAttributes();\n        this.transitionToRoute('workflows.edit', this.get('transportType.workflow.id'));\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/schedule-settings/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: Ember.A(['ROLE_SUPER_USER']),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const transportTypeId = params.id;\n      const transportType = this.store.peekRecord('transport-type', transportTypeId);\n      const transportTypeScheduleSettings = this.store.queryRecord('transport-type-schedule-setting', {\n        transportTypeId\n      });\n      return Ember.RSVP.hash({\n        transportType,\n        transportTypeScheduleSettings\n      });\n    },\n    actions: {\n      willTransition() {\n        // eslint-disable-next-line ember/no-controller-access-in-routes\n        this.get('controller').setProperties({\n          model: null,\n          errors: null,\n          successMessage: null\n        });\n      },\n\n      refreshModel() {\n        this.refresh();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/schedule-settings/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ymXY6AvW\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"transport-types-nav-header\\\",null,[[\\\"workflow\\\",\\\"transportType\\\"],[[23,[\\\"model\\\",\\\"transportType\\\",\\\"workflow\\\"]],[23,[\\\"model\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"transportTypeScheduleSettings.label\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transportTypeScheduleSettings.fields.displayDeliveryNumber\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"display-delivery-numbers\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transportTypeScheduleSettings.fields.displayDeliveryNumber\\\"],null],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportTypeScheduleSettings\\\",\\\"displayDeliveryNumber\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transportTypeScheduleSettings.fields.displayDeliveryIncoterms\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"display-delivery-incoterms\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transportTypeScheduleSettings.fields.displayDeliveryIncoterms\\\"],null],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportTypeScheduleSettings\\\",\\\"displayDeliveryIncoterms\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transportTypeScheduleSettings.fields.displayDeliveryUnloadAddress\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"display-delivery-unload-address\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transportTypeScheduleSettings.fields.displayDeliveryUnloadAddress\\\"],null],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportTypeScheduleSettings\\\",\\\"displayDeliveryUnloadAddress\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transportTypeScheduleSettings.fields.displayDeliveryUnloadDate\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"display-delivery-unload-dates\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transportTypeScheduleSettings.fields.displayDeliveryUnloadDate\\\"],null],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportTypeScheduleSettings\\\",\\\"displayDeliveryUnloadDate\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transport-types/schedule-settings/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/settings/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    errors: [],\n    transportType: Ember.computed('model.transportType', function () {\n      return this.get('model.transportType');\n    }),\n    defaultLoadCompany: Ember.computed('model.defaultLoadCompany', function () {\n      return this.get('model.defaultLoadCompany');\n    }),\n    defaultUnloadCompany: Ember.computed('model.defaultUnloadCompany', function () {\n      return this.get('model.defaultUnloadCompany');\n    }),\n    defaultServicemanCompany: Ember.computed('model.defaultServicemanCompany', function () {\n      return this.get('model.defaultServicemanCompany');\n    }),\n    actions: {\n      defaultAocCheckAction() {\n        const tt = this.get('transportType');\n\n        if (tt.get('isAmountOfCoverVisible')) {\n          tt.set('isAmountOfCoverVisible', false);\n          tt.set('isAmountOfCoverObligatory', false);\n          tt.get('defaultAmountOfCover').content.destroyRecord().then(tt.set('defaultAmountOfCover', null));\n        } else {\n          tt.set('isAmountOfCoverVisible', true);\n          tt.set('isAmountOfCoverObligatory', true);\n\n          if (!this.get('transportType.defaultAmountOfCover.id')) {\n            const aoc = this.store.createRecord('amountOfCover', {\n              amount: 0.0,\n              currency: null\n            });\n            tt.set('defaultAmountOfCover', aoc);\n          }\n        }\n      },\n\n      setCompany(property, item) {\n        this.get('store').findRecord('company', item.id).then(company => {\n          this.set(property, company);\n          this.set(`transportType.${property}Id`, company.get('id'));\n        });\n      },\n\n      removeCompany(property) {\n        this.set(property, null);\n        this.set(`transportType.${property}Id`, null);\n      },\n\n      save() {\n        const self = this;\n        const transportType = this.get('transportType');\n\n        if (!transportType.validate()) {\n          $('html, body').animate({\n            scrollTop: 0\n          }, 'slow');\n          return;\n        }\n\n        if (transportType.get('defaultAmountOfCover.amount')) {\n          if (!transportType.get('defaultAmountOfCover.content').validate()) {\n            return;\n          }\n        }\n\n        this.set('errors', []);\n        transportType.save().then(function () {\n          self.setProperties({\n            success: true,\n            errors: []\n          });\n          const msg = self.get('intl').t('settings.transportTypes.settingsSaveSuccess');\n          self.set('successMessage', msg);\n          $('html, body').animate({\n            scrollTop: 0\n          }, 'slow');\n        }).catch(response => {\n          self.set('errors', response.errors);\n          $('html, body').animate({\n            scrollTop: 0\n          }, 'slow');\n        });\n      },\n\n      cancel() {\n        this.get('model.transportType').rollbackAttributes();\n        this.transitionToRoute('settings.index');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/settings/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_MANAGE_TRANSPORT_TYPE'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const transportType = this.store.peekRecord('transport-type', params.id);\n      return Ember.RSVP.hash({\n        transportType,\n        defaultLoadCompany: transportType.get('defaultLoadCompanyId') ? this.store.findRecord('company', transportType.get('defaultLoadCompanyId')) : null,\n        defaultUnloadCompany: transportType.get('defaultUnloadCompanyId') ? this.store.findRecord('company', transportType.get('defaultUnloadCompanyId')) : null,\n        defaultServicemanCompany: transportType.get('defaultServicemanCompanyId') ? this.store.findRecord('company', transportType.get('defaultServicemanCompanyId')) : null\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/settings/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"htcdhHhE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"result\\\",\\\"result\\\",\\\"result\\\",\\\"dateFilterProperty\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"transport-types-nav-header\\\",null,[[\\\"workflow\\\",\\\"transportType\\\"],[[23,[\\\"transportType\\\",\\\"workflow\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settings\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"transportType\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"info\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsGroup.general\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.transportTypeName\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"transport-type-name\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.transportTypeName\\\"],null],false],[0,\\\": \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"transportType\\\",\\\"name\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.transportTypeNameEn\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"transport-type-en-name\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.transportTypeNameEn\\\"],null],false],[0,\\\": \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"transportType\\\",\\\"englishName\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.idx\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"idx\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.idx\\\"],null],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"min\\\",\\\"class\\\"],[\\\"number\\\",[23,[\\\"transportType\\\",\\\"idx\\\"]],\\\"0\\\",\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"block \\\",[27,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"errors\\\",\\\"quantitySumCheckValue\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.quantitySumCheckValue\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"quantity-sum-check-value\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.quantitySumCheckValue\\\"],null],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"min\\\",\\\"class\\\"],[\\\"number\\\",[23,[\\\"transportType\\\",\\\"quantitySumCheckValue\\\"]],\\\"0\\\",\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"quantitySumCheckValue\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.dateFilterProperty\\\"],null],\\\" \\\",[27,\\\"t\\\",[\\\"dateFilterProperty.hint\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"date-filter-property\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.dateFilterProperty\\\"],null],false],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"transportType\\\",\\\"dateFilterProperty\\\"]],[23,[\\\"transportType\\\",\\\"DATE_FILTER_PROPERTIES\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"transportType\\\",\\\"dateFilterProperty\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"dateFilterProperty.\\\",[22,4,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"info\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsGroup.identifier\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.allowsErpIdentifier\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"allows-erp-identifier\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"allowsErpIdentifier\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.allowsErpIdentifier\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresErpIdentifier\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-erp-identifier\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresErpIdentifier\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresErpIdentifier\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresUniqueErpIdentifier\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-unique-erp-identifier\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresUniqueErpIdentifier\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresUniqueErpIdentifier\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresAltIdentifier\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-alt-identifier\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresAltIdentifier\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresAltIdentifier\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.allowsAltIdentifier\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"allows-alt-identifier\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"allowsAltIdentifier\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.allowsAltIdentifier\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.altIdentifierIsCreatedAutomatically\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"alt-identifier-is-created-automatically\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"altIdentifierIsCreatedAutomatically\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.altIdentifierIsCreatedAutomatically\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.altIdentifierRegex\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"alt-identifier-regex\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.altIdentifierRegex\\\"],null],false],[0,\\\": \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"transportType\\\",\\\"altIdentifierRegex\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.altIdentifierSequenceName\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"alt-identifier-sequence-name\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.altIdentifierSequenceName\\\"],null],false],[0,\\\": \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"transportType\\\",\\\"altIdentifierSequenceName\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"block \\\",[27,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"errors\\\",\\\"altIdentifierFormat\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.altIdentifierFormat\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"alt-identifier-format\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.altIdentifierFormat\\\"],null],false],[0,\\\": \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"transportType\\\",\\\"altIdentifierFormat\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"altIdentifierFormat\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"info\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsGroup.transport\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.allowsContractor\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"allows-contractor\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"allowsContractor\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.allowsContractor\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.supplierFieldTranslationKey\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"dimensions-translation-key\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.supplierFieldTranslationKey\\\"],null],false],[0,\\\": \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",[23,[\\\"transportType\\\",\\\"supplierFieldTranslationKey\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.allowsCarrier\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"allows-carrier\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"allowsCarrier\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.allowsCarrier\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.allowsService\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"allows-allowsService\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"allowsService\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.allowsService\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.generatingWeightReceiptEnabled\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"generating-weight-receipt-enabled\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"generatingWeightReceiptEnabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.generatingWeightReceiptEnabled\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.maximumPermissableVehicleWeight\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"maximum_permissable_vehicle_weight\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"maximumPermissableVehicleWeight\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.maximumPermissableVehicleWeight\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.randomTransportInspection\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"random_transport_inspection\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"randomTransportInspection\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.randomTransportInspection\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"info\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsGroup.transportForm\\\"],null],false],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.isWeightVisibleInContractorStep\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"is-weight-visible-in-contractor-step\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"isWeightVisibleInContractorStep\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.isWeightVisibleInContractorStep\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.isWeightVisibleInWarehouseStep\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"is-weight-visible-in-warehouse-step\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"isWeightVisibleInWarehouseStep\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.isWeightVisibleInWarehouseStep\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.isVolumeVisibleInContractorStep\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"is-volume-visible-in-contractor-step\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"isVolumeVisibleInContractorStep\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.isVolumeVisibleInContractorStep\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.isVolumeVisibleInWarehouseStep\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"is-volume-visible-in-warehouse-step\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"isVolumeVisibleInWarehouseStep\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.isVolumeVisibleInWarehouseStep\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.isInternalReleaseNumberVisibleInContractorStep\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"is-internal-release-number-visible-in-contractor-step\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"isInternalReleaseNumberVisibleInContractorStep\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.isInternalReleaseNumberVisibleInContractorStep\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.isInternalReleaseNumberVisibleInWarehouseStep\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"is-internal-release-number-visible-in-warehouse-step\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"isInternalReleaseNumberVisibleInWarehouseStep\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.isInternalReleaseNumberVisibleInWarehouseStep\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.documentIdentifierTranslationKey\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"alt-identifier-format\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.documentIdentifierTranslationKey\\\"],null],false],[0,\\\": \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"transportType\\\",\\\"documentIdentifierTranslationKey\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.purchaseOrderNumberTranslationKey\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"purchase-order-number-translation-key\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.purchaseOrderNumberTranslationKey\\\"],null],false],[0,\\\": \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"transportType\\\",\\\"purchaseOrderNumberTranslationKey\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.purchaseOrderNumberVisibleInContractorStep\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"is-purchase-order-number-visible-in-contractor-step\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"purchaseOrderNumberVisibleInContractorStep\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.purchaseOrderNumberVisibleInContractorStep\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.purchaseOrderNumberVisibleInWarehouseStep\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"is-purchase-order-number-visible-in-warehouse-step\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"purchaseOrderNumberVisibleInWarehouseStep\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.purchaseOrderNumberVisibleInWarehouseStep\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.dimensionsTranslationKey\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"dimensions-translation-key\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.dimensionsTranslationKey\\\"],null],false],[0,\\\": \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"transportType\\\",\\\"dimensionsTranslationKey\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.dimensionsVisibleInContractorStep\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"dimensions-visible-in-contractor-step\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"dimensionsVisibleInContractorStep\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.dimensionsVisibleInContractorStep\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.dimensionsVisibleInWarehouseStep\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"dimensions-visible-in-warehouse-step\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"dimensionsVisibleInWarehouseStep\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.dimensionsVisibleInWarehouseStep\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.alternativeStepsLayout\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"alternative-steps-layout\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"alternativeStepsLayout\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.alternativeStepsLayout\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresTransportSupervisor\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-transport-supervisor\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresTransportSupervisor\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresTransportSupervisor\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-6 no-horizontal-padding\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"block \\\",[27,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"errors\\\",\\\"transportSupervisor\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.transportSupervisorTranslationKey\\\"],null]],[11,\\\"data-field-name\\\",\\\"transport-supervisor-field-translation-key\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.transportSupervisorTranslationKey\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-6 no-left-padding\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control width-200 inline-block\\\",[23,[\\\"transportType\\\",\\\"transportSupervisorTranslationKey\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"transportSupervisorTranslationKey\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.isWarehouseZoneVisible\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"is-warehouse-zone-visible\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"isWarehouseZoneVisible\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.isWarehouseZoneVisible\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.isWarehouseLocationVisible\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"is-warehouse-location-visible\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"isWarehouseLocationVisible\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.isWarehouseLocationVisible\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.isWarehouseLocationObligatory\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"is-warehouse-location-obligatory\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"isWarehouseLocationObligatory\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.isWarehouseLocationObligatory\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresContractor\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-contractor\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresContractor\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresContractor\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresCarrier\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-carrier\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresCarrier\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresCarrier\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresService\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-requiresService\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresService\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresService\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresWorkers\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-worker\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"isChoosingWorkerObligatory\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresWorkers\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresContractorStepCompanyGroup\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-requires-contractor-step-company-group\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresContractorStepCompanyGroup\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresContractorStepCompanyGroup\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresStepsWeight\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-steps-weight\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresStepsWeight\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresStepsWeight\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresAdviceDateRestrictions\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-advice-date-restrictions\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresAdviceDateRestrictions\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresAdviceDateRestrictions\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresArrivalAndDepartureDate\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-arrival-and-departure-date\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresArrivalAndDepartureDate\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresArrivalAndDepartureDate\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresArrivalAndDepartureDateInWarehouseStep\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-arrival-and-departure-date-in-warehouse-step\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresArrivalAndDepartureDateInWarehouseStep\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresArrivalAndDepartureDateInWarehouseStep\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.showAddressFieldsInContractorSteps\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-address-fields-in-contractor-steps\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"showAddressFieldsInContractorSteps\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.showAddressFieldsInContractorSteps\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.adviceRestrictionInEveryStep\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"advice-restriction-in-every-step\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"adviceRestrictionInEveryStep\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.adviceRestrictionInEveryStep\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.hasDiscrepancyReportEnabled\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"has-discrepancy-report-enabled\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"hasDiscrepancyReportEnabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.hasDiscrepancyReportEnabled\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.isContactDetailsFieldsVisible\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"is-contact-details-fields-visible\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"isContactDetailsFieldsVisible\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.isContactDetailsFieldsVisible\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.isContactDetailsFieldsRequired\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"is-contact-details-fields-required\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"isContactDetailsFieldsRequired\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.isContactDetailsFieldsRequired\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"block \\\",[27,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"errors\\\",\\\"defaultArrivalDateHour\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.defaultArrivalDateHour\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"default-arrival-date-hour\\\\\\\"\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.defaultArrivalDateHour\\\"],null],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"min\\\",\\\"class\\\"],[\\\"text\\\",[23,[\\\"transportType\\\",\\\"defaultArrivalDateHour\\\"]],\\\"0\\\",\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"defaultArrivalDateHour\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"block \\\",[27,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"errors\\\",\\\"defaultLoadStepStartHour\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.defaultLoadStepStartHour\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"default-load-step-start-hour\\\\\\\"\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.defaultLoadStepStartHour\\\"],null],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"min\\\",\\\"class\\\"],[\\\"text\\\",[23,[\\\"transportType\\\",\\\"defaultLoadStepStartHour\\\"]],\\\"0\\\",\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"defaultLoadStepStartHour\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"block \\\",[27,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"errors\\\",\\\"defaultLoadStepEndHour\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.defaultLoadStepEndHour\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"default-load-step-end-hour\\\\\\\"\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.defaultLoadStepEndHour\\\"],null],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"min\\\",\\\"class\\\"],[\\\"text\\\",[23,[\\\"transportType\\\",\\\"defaultLoadStepEndHour\\\"]],\\\"0\\\",\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"defaultLoadStepEndHour\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"block \\\",[27,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"errors\\\",\\\"numberOfDaysAddedToFirstStep\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.numberOfDaysAddedToFirstStep\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"number-of-days-added-to-first-step\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.numberOfDaysAddedToFirstStep\\\"],null],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"min\\\",\\\"class\\\"],[\\\"number\\\",[23,[\\\"transportType\\\",\\\"numberOfDaysAddedToFirstStep\\\"]],\\\"0\\\",\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"numberOfDaysAddedToFirstStep\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"block \\\",[27,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"errors\\\",\\\"numberOfDaysAddedToFirstStepEnd\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.numberOfDaysAddedToFirstStepEnd\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"number-of-days-added-to-first-step\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.numberOfDaysAddedToFirstStepEnd\\\"],null],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"min\\\",\\\"class\\\"],[\\\"number\\\",[23,[\\\"transportType\\\",\\\"numberOfDaysAddedToFirstStepEnd\\\"]],\\\"0\\\",\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"numberOfDaysAddedToFirstStepEnd\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"block \\\",[27,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"errors\\\",\\\"numberOfDaysAddedToNextSteps\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.numberOfDaysAddedToNextSteps\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"number-of-days-added-to-next-steps\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.numberOfDaysAddedToNextSteps\\\"],null],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"min\\\",\\\"class\\\"],[\\\"number\\\",[23,[\\\"transportType\\\",\\\"numberOfDaysAddedToNextSteps\\\"]],\\\"0\\\",\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"numberOfDaysAddedToNextSteps\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"block \\\",[27,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"errors\\\",\\\"numberOfDaysAddedToNextStepsEnd\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.numberOfDaysAddedToNextStepsEnd\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"number-of-days-added-to-next-steps\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.numberOfDaysAddedToNextStepsEnd\\\"],null],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"min\\\",\\\"class\\\"],[\\\"number\\\",[23,[\\\"transportType\\\",\\\"numberOfDaysAddedToNextStepsEnd\\\"]],\\\"0\\\",\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"numberOfDaysAddedToNextStepsEnd\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-3 no-horizontal-padding\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"block \\\",[27,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"errors\\\",\\\"workerFieldTranslationKey\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.workerFieldTranslationKey\\\"],null]],[11,\\\"data-field-name\\\",\\\"worker-field-translation-key\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.workerFieldTranslationKey\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9 no-left-padding\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control width-200 inline-block\\\",[23,[\\\"transportType\\\",\\\"workerFieldTranslationKey\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"workerFieldTranslationKey\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-3 no-horizontal-padding\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"block \\\",[27,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"errors\\\",\\\"defaultServicemanCompany\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.defaultServicemanCompany\\\"],null]],[11,\\\"data-field-name\\\",\\\"default-serviceman-company\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.defaultServicemanCompany\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9 no-left-padding\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"company-auto-complete\\\",null,[[\\\"inputClass\\\",\\\"type\\\",\\\"selectedValue\\\",\\\"selectItem\\\",\\\"clearSelection\\\"],[\\\"width-200\\\",\\\"SERVICEMAN\\\",[27,\\\"readonly\\\",[[23,[\\\"defaultServicemanCompany\\\",\\\"name\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"setCompany\\\",\\\"defaultServicemanCompany\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"removeCompany\\\",\\\"defaultServicemanCompany\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,3,[\\\"shortName\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,3,[\\\"name\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"defaultServicemanCompany\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-3 no-horizontal-padding\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"block \\\",[27,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"errors\\\",\\\"defaultLoadCompanyId\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.defaultLoadCompanyId\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"default-load-company-id\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.defaultLoadCompanyId\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9 no-left-padding\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"company-auto-complete\\\",null,[[\\\"inputClass\\\",\\\"type\\\",\\\"selectedValue\\\",\\\"selectItem\\\",\\\"clearSelection\\\"],[\\\"width-200\\\",\\\"SUPPLIER\\\",[27,\\\"readonly\\\",[[23,[\\\"defaultLoadCompany\\\",\\\"name\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"setCompany\\\",\\\"defaultLoadCompany\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"removeCompany\\\",\\\"defaultLoadCompany\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,2,[\\\"shortName\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,2,[\\\"name\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"defaultLoadCompanyId\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-3 no-horizontal-padding\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"block \\\",[27,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"errors\\\",\\\"defaultUnloadCompanyId\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.defaultUnloadCompanyId\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"default-unload-company-id\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.defaultUnloadCompanyId\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-9 no-left-padding\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"company-auto-complete\\\",null,[[\\\"inputClass\\\",\\\"type\\\",\\\"selectedValue\\\",\\\"selectItem\\\",\\\"clearSelection\\\"],[\\\"width-200\\\",\\\"SUPPLIER\\\",[27,\\\"readonly\\\",[[23,[\\\"defaultUnloadCompany\\\",\\\"name\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"setCompany\\\",\\\"defaultUnloadCompany\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"removeCompany\\\",\\\"defaultUnloadCompany\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,1,[\\\"shortName\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"defaultUnloadCompanyId\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.isTruckTypeVisible\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"isTruckTypeVisible\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"isTruckTypeVisible\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.isTruckTypeVisible\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresTruckType\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requiresTruckType\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresTruckType\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresTruckType\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"block \\\",[27,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"errors\\\",\\\"additionalDescriptionTextAreaRows\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.additionalDescriptionTextAreaRows\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"additional-description-text-area-rows\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.additionalDescriptionTextAreaRows\\\"],null],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"min\\\",\\\"class\\\"],[\\\"number\\\",[23,[\\\"transportType\\\",\\\"additionalDescriptionTextAreaRows\\\"]],\\\"0\\\",\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"additionalDescriptionTextAreaRows\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.courierPackagesEnabled\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"courierPackagesEnabled\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"courierPackagesEnabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.courierPackagesEnabled\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.transportPackagesEnabled\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"transportPackagesEnabled\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"transportPackagesEnabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.transportPackagesEnabled\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.automaticallyAssignStepsInPackagingSection\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"automaticallyAssignStepsInPackagingSection\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"automaticallyAssignStepsInPackagingSection\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.automaticallyAssignStepsInPackagingSection\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"info\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsGroup.advice\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.adviceSavedWithTransport\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"advice-saved-with-transport\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"adviceSavedWithTransport\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.adviceSavedWithTransport\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresTimeWindow\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-time-window\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresTimeWindow\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresTimeWindow\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresWarehouse\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-warehouse\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresWarehouse\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresWarehouse\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresAdvice\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-advice\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresAdvice\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresAdvice\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.calculatingTimeWindowSizeFromAlgorithm\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"calculating-time-window-size-from-algorithm\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"calculatingTimeWindowSizeFromAlgorithm\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.calculatingTimeWindowSizeFromAlgorithm\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.calculatingTimeWindowSizeFromDelivery\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"calculating-time-window-size-from-delivery\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"calculatingTimeWindowSizeFromDelivery\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.calculatingTimeWindowSizeFromDelivery\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.carrierMustBeSelectedBeforeAdvice\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"carrier-must-be-selected-before-advice\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"carrierMustBeSelectedBeforeAdvice\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.carrierMustBeSelectedBeforeAdvice\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.allowsPeriodicTransport\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"allows-periodic-transport\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"allowsPeriodicTransport\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.allowsPeriodicTransport\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.adviceSeparatedFromWindow\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"advice-separated-from-window\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"adviceSeparatedFromWindow\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.adviceSeparatedFromWindow\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.isAvailableInSecondTabOfTimeWindowAdviceReport\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"is-available-in-second-tab-of-time-window-advice-report\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"isAvailableInSecondTabOfTimeWindowAdviceReport\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.isAvailableInSecondTabOfTimeWindowAdviceReport\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.selectionOfWindowBeforeAdvice\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"selection-of-window-before-advice\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"selectionOfWindowBeforeAdvice\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.selectionOfWindowBeforeAdvice\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.shouldCopyAdviceOnTransportCopy\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"should-copy-advice-on-transport-copy\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"shouldCopyAdviceOnTransportCopy\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.shouldCopyAdviceOnTransportCopy\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"info\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsGroup.adviceForm\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresDriverName\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-driver-name\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresDriverName\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresDriverName\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.allowsDriverName\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"allows_driver_name\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"allowsDriverName\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.allowsDriverName\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.adviceRequiresPhoneNumber\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"advice-requires-phone-number\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"adviceRequiresPhoneNumber\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.adviceRequiresPhoneNumber\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.allowsPhoneNumber\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"allows_phone_number\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"allowsPhoneNumber\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.allowsPhoneNumber\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresDriverDocumentNumber\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-driver-document-number\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresDriverDocumentNumber\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresDriverDocumentNumber\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.allowsDriverDocumentNumber\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"allows-driver-document-number\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"allowsDriverDocumentNumber\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.allowsDriverDocumentNumber\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresCarRegistrationNumber\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-car-registration-number\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresCarRegistrationNumber\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresCarRegistrationNumber\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.carRegistrationNumberTranslationKey\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"car-registration-number-translation-key\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.carRegistrationNumberTranslationKey\\\"],null],false],[0,\\\": \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",[23,[\\\"transportType\\\",\\\"carRegistrationNumberTranslationKey\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.allowsCarRegistrationNumber\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"allows-car-registration-number\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"allowsCarRegistrationNumber\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.allowsCarRegistrationNumber\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresTrailer\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-trailer\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresTrailer\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresTrailer\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.allowsTrailer\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"allows-trailer\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"allowsTrailer\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.allowsTrailer\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresDriverLanguage\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-driver-language\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresDriverLanguage\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresDriverLanguage\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.pastingFromExcelEnabled\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"pasting-from-excel-enabled\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"pastingFromExcelEnabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.pastingFromExcelEnabled\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.allowsRodoCheckbox\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"allows-Rodo-Checkbox\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"allowsRodoCheckbox\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.allowsRodoCheckbox\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.allowsSaveAsResourceCheckbox\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"allows-save-as-resource-checkbox\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"allowsSaveAsResourceCheckbox\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.allowsSaveAsResourceCheckbox\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"info\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsGroup.step\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.hasVisibleSteps\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"has-visible-steps\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"hasVisibleSteps\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.hasVisibleSteps\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.allowLoadStepTypeChange\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"allow-load-step-type-change\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"allowLoadStepTypeChange\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.allowLoadStepTypeChange\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.allowUnloadStepTypeChange\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"allow-unload-step-type-change\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"allowUnloadStepTypeChange\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.allowUnloadStepTypeChange\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.isLoadStepInWarehouseByDefault\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"is-load-step-in-warehouse-by-default\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"isLoadStepInWarehouseByDefault\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.isLoadStepInWarehouseByDefault\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.isUnloadStepInWarehouseByDefault\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"is-unload-step-in-warehouse-by-default\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"isUnloadStepInWarehouseByDefault\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.isUnloadStepInWarehouseByDefault\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresAddress\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-address\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresAddress\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresAddress\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.windowColorDependsOnWarehouse\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"window-color-depends-on-warehouse\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"windowColorDependsOnWarehouse\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.windowColorDependsOnWarehouse\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.newAddressAsDefaultInLoadStep\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"new_address_as_default_in_load_step\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"newAddressAsDefaultInLoadStep\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.newAddressAsDefaultInLoadStep\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.newAddressAsDefaultInUnloadStep\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"new_address_as_default_in_unload_step\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"newAddressAsDefaultInUnloadStep\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.newAddressAsDefaultInUnloadStep\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.newAddressCityAutocompleteEnabled\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"new_address_city_autocomplete_enabled\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"newAddressCityAutocompleteEnabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.newAddressCityAutocompleteEnabled\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.duplicateStepCountryFieldToNewSteps\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"duplicate-step-country-field-to-new-steps\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"duplicateStepCountryFieldToNewSteps\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.duplicateStepCountryFieldToNewSteps\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"info\\\"],[9],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsGroup.transportType\\\"],null],false],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.hasCmrDocumentEnabled\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"has-cmr-document-enabled\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"hasCmrDocumentEnabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.hasCmrDocumentEnabled\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.hasEntrancePassDocumentEnabled\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"has-entrance-pass-document-enabled\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"hasEntrancePassDocumentEnabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.hasEntrancePassDocumentEnabled\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.hasProductSpecificationDocumentEnabled\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"has_product_specification_document_enabled\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"hasProductSpecificationDocumentEnabled\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.hasProductSpecificationDocumentEnabled\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.requiresModeOfTransportationVerification\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires_mode_of_transportation_verification\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"requiresModeOfTransportationVerification\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.requiresModeOfTransportationVerification\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.participatesInCombiningTransports\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"participates_in_combining_transports\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"participatesInCombiningTransports\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.participatesInCombiningTransports\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.generatingTransportWeightReceiptEnabled\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"generating-transport-weight-receipt-enabled\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"shouldGenerateTransportWeightReceipt\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.generatingTransportWeightReceiptEnabled\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.guardCheckpointConfirmationSingleColumnLayout\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"guard-checkpoint-confirmation-single-column-layout\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"guardCheckpointConfirmationSingleColumnLayout\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.guardCheckpointConfirmationSingleColumnLayout\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.defaultTextForTransportAdditionalDescription\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"default-text-for-transport-additional-description\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.defaultTextForTransportAdditionalDescription\\\"],null],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"type\\\",\\\"placeholder\\\",\\\"class\\\",\\\"rows\\\",\\\"value\\\"],[\\\"textarea\\\",[27,\\\"t\\\",[\\\"transport.additionalDescription\\\"],null],\\\"form-control vertical-resizable-only textarea-resize\\\",\\\"3\\\",[23,[\\\"transportType\\\",\\\"defaultTextForTransportAdditionalDescription\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.checkAmountOfCover\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"check-amount-of-cover\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"checkAmountOfCover\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.checkAmountOfCover\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.isAmountOfCoverVisible\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"is-amount-of-cover-visible\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\",\\\"change\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"isAmountOfCoverVisible\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"defaultAocCheckAction\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.isAmountOfCoverVisible\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"isAmountOfCoverVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.isAmountOfCoverObligatory\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"is-amount-of-cover-obligatory\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"isAmountOfCoverObligatory\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.isAmountOfCoverObligatory\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.defaultAmountOfCover\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"default-amount-of-cover\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"components/amount-of-cover-section\\\",null,[[\\\"amountOfCover\\\",\\\"label\\\"],[[23,[\\\"transportType\\\",\\\"defaultAmountOfCover\\\"]],[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.defaultAmountOfCover\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.usedForDeliveries\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"used-for-deliveries\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"usedForDeliveries\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.usedForDeliveries\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.usedForMarcos\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"used-for-marcos\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"usedForMarcos\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.usedForMarcos\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.marcosTransportKind\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"used-for-marcos\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control width-200 inline-block\\\",[23,[\\\"transportType\\\",\\\"marcosTransportKind\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"marcosTransportKind\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.marcosTransportKind\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.generateTransportOrder\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"used-for-deliveries\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"generateTransportOrder\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.generateTransportOrder\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.shouldShowArrivalDatesInScheduleTooltip\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"should-copy-advice-on-transport-copy\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"shouldShowArrivalDatesInScheduleTooltip\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.shouldShowArrivalDatesInScheduleTooltip\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.useResourcesFromExternalSource\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"use-resources-from-external-source\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"useResourcesFromExternalSource\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.useResourcesFromExternalSource\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.deleteTransportStepsAfterDeliveryUnbind\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"delete-transport-steps-after-delivery-unbind\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"deleteTransportStepsAfterDeliveryUnbind\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.deleteTransportStepsAfterDeliveryUnbind\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.airTransports\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"air-transports\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"airTransports\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.airTransports\\\"],null],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"airTransports\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.seaTransports\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"sea-transports\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"seaTransports\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.seaTransports\\\"],null],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transportType\\\"]],\\\"seaTransports\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.enableTransportTableDaysLimit\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"enable-transport-table-days-limit\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"enableTransportTableDaysLimit\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.enableTransportTableDaysLimit\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.transportTableDaysLimit\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"transport-table-days-limit\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\"],[[23,[\\\"transportType\\\",\\\"transportTableDaysLimit\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.transportTableDaysLimit\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"settings.transportTypes.settingsDescription.countLdmForTransportPackaging\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"count-ldm-for-transport-packaging\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transportType\\\",\\\"countLdmForTransportPackaging\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.settingsLabel.countLdmForTransportPackaging\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transport-types/settings/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/transaction-settings/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    errors: [],\n    transportType: Ember.computed('model.transportType.id', function () {\n      return this.get('model.transportType');\n    }),\n    transactionSetting: Ember.computed('model.transactionSetting.id', function () {\n      return this.get('model.transactionSetting');\n    }),\n    currencies: Ember.computed('', function () {\n      return this.get('store').peekAll('currency').getEach('symbol');\n    }),\n    actions: {\n      save() {\n        const self = this;\n        self.set('errors', []);\n        const transactionSetting = self.get('store').createRecord(\"transactionSetting\", {\n          transportType: self.get('transportType')\n        });\n        transactionSetting.save().then(() => {\n          self.send('refreshModel');\n          let msg = self.get('intl').t('transactionSetting.saveSuccess');\n          self.set('successMessage', msg);\n          $(\"html, body\").animate({\n            scrollTop: 0\n          }, \"slow\");\n        }).catch(response => {\n          self.set('errors', response.errors);\n          $(\"html, body\").animate({\n            scrollTop: 0\n          }, \"slow\");\n        });\n      },\n\n      update() {\n        const self = this;\n        self.set('errors', []);\n        self.get('transactionSetting').save().then(() => {\n          self.send('refreshModel');\n          let msg = self.get('intl').t('transactionSetting.saveSuccess');\n          self.set('successMessage', msg);\n          $(\"html, body\").animate({\n            scrollTop: 0\n          }, \"slow\");\n        }).catch(response => {\n          self.set('errors', response.errors);\n          $(\"html, body\").animate({\n            scrollTop: 0\n          }, \"slow\");\n        });\n      },\n\n      cancel() {\n        this.get('transactionSetting').rollbackAttributes();\n        this.transitionToRoute('settings.index');\n      },\n\n      willTransition: function () {\n        this.get('controller').setProperties({\n          errors: [],\n          successMessage: null\n        });\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/transaction-settings/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_MANAGE_SETTINGS'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const transportTypeId = params.id;\n      const transportType = this.store.peekRecord('transport-type', transportTypeId);\n      const transactionSetting = this.store.queryRecord('transaction-setting', {\n        transportTypeId: transportTypeId\n      });\n      return Ember.RSVP.hash({\n        transportType: transportType,\n        transactionSetting: transactionSetting\n      });\n    },\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          errors: null,\n          successMessage: null\n        });\n      },\n\n      refreshModel() {\n        this.refresh();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/transaction-settings/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"9QDXGkgR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"currencySymbol\\\",\\\"currencySymbol\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"transport-types-nav-header\\\",null,[[\\\"workflow\\\",\\\"transportType\\\"],[[23,[\\\"transportType\\\",\\\"workflow\\\"]],[23,[\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.transactionSetting\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"transportType\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"transactionSetting\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"info bold\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.noTransactionSetting\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-right\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"settings.transportTypes.addTransactionSetting\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block margin-bottom-big\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transactionSetting.description.priceLabel\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"price-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transactionSetting.label.priceLabel\\\"],null],false],[0,\\\" (FREIGHT, RATE, FREIGHT_FOR_THE_CARRIER, PRICE):\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\"],[[23,[\\\"transactionSetting\\\",\\\"priceLabel\\\"]],\\\"form-control width-200 inline-block\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-bottom\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-2 no-padding\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transactionSetting.description.defaultCurrency\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"default-currency\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transactionSetting.label.defaultCurrency\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-1 col-sm-2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[true,[23,[\\\"transactionSetting\\\",\\\"defaultCurrency\\\"]],[23,[\\\"currencies\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"transactionSetting\\\",\\\"defaultCurrency\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,2,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-2 no-padding\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transactionSetting.description.defaultInvoiceCurrency\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"default-invoice-currency\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transactionSetting.label.defaultInvoiceCurrency\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-1 col-sm-2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[true,[23,[\\\"transactionSetting\\\",\\\"defaultInvoiceCurrency\\\"]],[23,[\\\"currencies\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"transactionSetting\\\",\\\"defaultInvoiceCurrency\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transactionSetting.description.showCarrierConfirmationCheckbox\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-carrier-confirmation-checkbox\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transactionSetting\\\",\\\"showCarrierConfirmationCheckbox\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"transactionSetting.label.showCarrierConfirmationCheckbox\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transactionSetting.description.requireCarrierConfirmation\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-carrier-confirmation\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transactionSetting\\\",\\\"requireCarrierConfirmation\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"transactionSetting.label.requireCarrierConfirmation\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transactionSetting\\\",\\\"requireCarrierConfirmation\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transactionSetting.description.carrierAutoAcceptsTransport\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"carrier-auto-accepts-transport\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transactionSetting\\\",\\\"carrierAutoAcceptsTransport\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"transactionSetting.label.carrierAutoAcceptsTransport\\\"],null],false],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transactionSetting.description.canChooseCarrierFromTransportTable\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"can-choose-carrier-from-transport-table\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transactionSetting\\\",\\\"canChooseCarrierFromTransportTable\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"transactionSetting.label.canChooseCarrierFromTransportTable\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transactionSetting.description.showReasonField\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-reason-field-checkbox\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transactionSetting\\\",\\\"showReasonField\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"transactionSetting.label.showReasonField\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transactionSetting.description.requiresReasonField\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"requires-reason-field-checkbox\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transactionSetting\\\",\\\"requiresReasonField\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"transactionSetting.label.requiresReasonField\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transactionSetting.description.showAndRequireReasonFieldIfPriceIsZero\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-and-require-reason-field-if-price-is-zero-checkbox\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transactionSetting\\\",\\\"showAndRequireReasonFieldIfPriceIsZero\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"transactionSetting.label.showAndRequireReasonFieldIfPriceIsZero\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transactionSetting.description.showPriceField\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-price-field-checkbox\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transactionSetting\\\",\\\"showPriceField\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"transactionSetting.label.showPriceField\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transactionSetting.description.showPriceFieldForDeliveries\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-price-field-for-deliveries-checkbox\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transactionSetting\\\",\\\"showPriceFieldForDeliveries\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"transactionSetting.label.showPriceFieldForDeliveries\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transactionSetting.description.requirePriceFieldForDeliveries\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-price-field-for-deliveries\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transactionSetting\\\",\\\"requirePriceFieldForDeliveries\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"transactionSetting.label.requirePriceFieldForDeliveries\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transactionSetting.description.showExpectedConfirmationDate\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-expected-date-field-checkbox\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transactionSetting\\\",\\\"showExpectedConfirmationDate\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"transactionSetting.label.showExpectedConfirmationDate\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transactionSetting.description.showUnitAmountType\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-unit-amount-type\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transactionSetting\\\",\\\"showUnitAmountType\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"transactionSetting.label.showUnitAmountType\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transactionSetting.description.requireUnitAmountType\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require-unit-amount-type\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transactionSetting\\\",\\\"requireUnitAmountType\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"transactionSetting.label.requireUnitAmountType\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transactionSetting.description.autoPassOnTransportCreation\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"auto-pass-on-transport-creation\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transactionSetting\\\",\\\"autoPassOnTransportCreation\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"transactionSetting.label.autoPassOnTransportCreation\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transactionSetting.description.requireCarrierAcceptationOnAutoPass\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"require_carrier_acceptation_on_auto_pass\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"transactionSetting\\\",\\\"requireCarrierAcceptationOnAutoPass\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"transactionSetting.label.requireCarrierAcceptationOnAutoPass\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"update\\\"]],[10],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transport-types/transaction-settings/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/transport-order-settings/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    actions: {\n      save() {\n        this.set('errors', []);\n        const transportOrderSettings = this.get('model.transportOrderSettings');\n        transportOrderSettings.set('transportType', this.get('model.transportType'));\n\n        if (!transportOrderSettings.validate()) {\n          return;\n        }\n\n        transportOrderSettings.save().then(() => {\n          this.send('refreshModel');\n          const msg = this.get('intl').t('common.saveSuccessMessage');\n          this.set('successMessage', msg);\n          window.scrollTo({\n            top: 0\n          });\n        }).catch(response => {\n          this.set('errors', response.errors);\n          window.scrollTo({\n            top: 0\n          });\n        });\n      },\n\n      cancel() {\n        this.get('model.transportOrderSettings').rollbackAttributes();\n        this.transitionToRoute('workflows.edit', this.get('transportType.workflow.id'));\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/transport-order-settings/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    store: Ember.inject.service(),\n    access: Ember.A(['ROLE_SUPER_USER']),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: async function (params) {\n      const transportTypeId = params.id;\n      const transportType = this.store.peekRecord('transport-type', transportTypeId);\n      const transportOrderSettings = await this.store.queryRecord('transport-order-setting', {\n        transportTypeId\n      });\n      return Ember.RSVP.hash({\n        transportType,\n        transportOrderSettings\n      });\n    },\n    actions: {\n      willTransition() {\n        // eslint-disable-next-line ember/no-controller-access-in-routes\n        this.get('controller').setProperties({\n          model: null,\n          errors: null,\n          successMessage: null\n        });\n      },\n\n      refreshModel() {\n        this.refresh();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport-types/transport-order-settings/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"LhRmZoDn\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"transport-types-nav-header\\\",null,[[\\\"workflow\\\",\\\"transportType\\\"],[[23,[\\\"model\\\",\\\"transportType\\\",\\\"workflow\\\"]],[23,[\\\"model\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"transportOrderSettings.label\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transportOrderSettings.fields.freightSufix\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"freight-sufix\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transportOrderSettings.fields.freightSufix\\\"],null],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"transportOrderSettings\\\",\\\"freightSufix\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transportOrderSettings.fields.showOnlyStartingDate\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-only-starting-date\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transportOrderSettings.fields.showOnlyStartingDate\\\"],null],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"transportOrderSettings\\\",\\\"showOnlyStartingDate\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transportOrderSettings.fields.shouldGenerateTransportOrder\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"show-only-starting-date\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transportOrderSettings.fields.shouldGenerateTransportOrder\\\"],null],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"model\\\",\\\"transportOrderSettings\\\",\\\"shouldGenerateTransportOrder\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"block\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transportOrderSettings.fields.availableCustomFields\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"available-custom-fields\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transportOrderSettings.fields.availableCustomFields\\\"],null],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"transportOrderSettings\\\",\\\"transportOrderCustomFields\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"block \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"transportOrderSettings\\\",\\\"errors\\\",\\\"additionalDetailsFontSize\\\"]],\\\"has-error\\\"],null]]]],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transportOrderSettings.fields.additionalDetailsFontSize\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"additional-details-font-size\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transportOrderSettings.fields.additionalDetailsFontSize\\\"],null],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"min\\\",\\\"max\\\",\\\"class\\\",\\\"value\\\"],[\\\"number\\\",1,32,\\\"form-control\\\",[23,[\\\"model\\\",\\\"transportOrderSettings\\\",\\\"additionalDetailsFontSize\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"transportOrderSettings\\\"]],\\\"additionalDetailsFontSize\\\"]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transport-types/transport-order-settings/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport/adapter\", [\"exports\", \"apollo/adapters/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _application.default.extend({\n    urlForQuery(query) {\n      if (query.planning) {\n        return `${this.urlPrefix()}/planning/transports`;\n      }\n\n      return this._super(...arguments);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport/model\", [\"exports\", \"ember-data/model\", \"ember-data\", \"apollo/mixins/model-validator\", \"ember-data-copyable\", \"jquery\", \"apollo/models/custom-field-pair\"], function (_exports, _model, _emberData, _modelValidator, _emberDataCopyable, _jquery, _customFieldPair) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    hasMany,\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, _emberDataCopyable.default, {\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    creator: belongsTo('user', {\n      async: true\n    }),\n    transportSupervisor: belongsTo('user', {\n      async: true\n    }),\n    principalCompany: belongsTo('company', {\n      async: true\n    }),\n    carrierCompany: belongsTo('company', {\n      async: true,\n      deepEmbedded: ['country']\n    }),\n    carrierCompanyChooser: belongsTo('user', {\n      async: true\n    }),\n    serviceCompany: belongsTo('company', {\n      async: true,\n      deepEmbedded: ['country', 'workers']\n    }),\n    workers: hasMany('worker', {\n      async: true\n    }),\n    advice: belongsTo('advice', {\n      async: true,\n      deepEmbedded: ['creator', 'driverLanguage', 'truck']\n    }),\n    truckType: belongsTo('truck-type', {\n      async: true\n    }),\n    truckTypes: hasMany('truck-type', {\n      async: true,\n      inverse: null\n    }),\n    transaction: belongsTo('transaction', {\n      async: true\n    }),\n    lastRejectedTransactionCarrierShortName: attr('string'),\n    discrepancyReport: belongsTo('discrepancyReport', {\n      async: true\n    }),\n    firstUnconfirmedCheckpoint: belongsTo('checkpoint', {\n      async: true\n    }),\n    transportType: belongsTo('transportType', {\n      async: true\n    }),\n    auctions: hasMany('auction', {\n      async: true\n    }),\n    offerCompanies: hasMany('company', {\n      async: true,\n      inverse: null\n    }),\n    steps: hasMany('step', {\n      async: true,\n      deepEmbedded: ['timeWindow', 'company', 'address', 'warehouse', 'assortmentGroup', 'companyGroup']\n    }),\n    checkpoints: hasMany('checkpoint', {\n      async: true\n    }),\n    notes: hasMany('note', {\n      async: true\n    }),\n    files: hasMany('file', {\n      async: true\n    }),\n    transportWeightReceipts: hasMany('file', {\n      async: true,\n      inverse: null\n    }),\n    discrepancyReports: hasMany('discrepancyReport', {\n      async: true,\n      inverse: null\n    }),\n    timeWindows: hasMany('timeWindow', {\n      async: true\n    }),\n    transportLogs: hasMany('transportLog', {\n      async: true\n    }),\n    apiIntegrationLogs: hasMany('apiIntegrationLog', {\n      async: true\n    }),\n    artrApiLogs: hasMany('artrApiLog', {\n      async: true\n    }),\n    notificationLogs: hasMany('notificationLog', {\n      async: true\n    }),\n    weightLogs: hasMany('weightLog', {\n      async: true\n    }),\n    customFields: hasMany('customFieldValue', {\n      async: true,\n      deepEmbedded: ['definition', 'option']\n    }),\n    indexes: hasMany('index', {\n      async: true,\n      deepEmbedded: ['step', 'product']\n    }),\n    courierPackages: hasMany('courierPackage', {\n      async: true,\n      deepEmbedded: ['packageType', 'loadStep', 'unloadStep']\n    }),\n    courierInvoice: belongsTo('courierInvoice', {\n      async: true\n    }),\n    courierPricings: hasMany('courierPricing', {\n      async: true,\n      deepEmbedded: ['courierPricingSuccess', 'courierPricingError']\n    }),\n    courierOrder: belongsTo('courierOrder', {\n      async: true\n    }),\n    courierOrderError: belongsTo('courierOrderError', {\n      async: true\n    }),\n    weights: hasMany('weight', {\n      async: true\n    }),\n    emailAdvices: hasMany('emailAdvice', {\n      async: true\n    }),\n    internalIndex: attr('number'),\n    erpIdentifier: attr('string'),\n    altIdentifier: attr('string'),\n    creatorName: attr('string'),\n    creatorCompanyId: attr('string'),\n    completed: attr('boolean'),\n    archived: attr('boolean'),\n    dateOfArchiving: attr('date'),\n    deleted: attr('boolean'),\n    dateOfDeletion: attr('date'),\n    earliestTimeWindowStart: attr('date'),\n    latestTimeWindowStop: attr('date'),\n    dateCreated: attr('date'),\n    lastUpdated: attr('date'),\n    description: attr('string'),\n    additionalDescription: attr('string'),\n    isLate: attr('boolean'),\n    incompleteLoading: attr('boolean'),\n    originalTransportId: attr('number'),\n    products: attr('list'),\n    periodicTransport: belongsTo('periodicTransport', {\n      async: true,\n      inverse: null\n    }),\n    periodicTransportInternalIndex: attr('number'),\n    // pola dla kurierów\n    goodsValue: attr('string'),\n    goodsValueCurrency: attr('string'),\n    incoterms: attr('string'),\n    getCouriersQuotes: attr('boolean'),\n    needExportDeclaration: attr('boolean'),\n    needPLT: attr('boolean'),\n    relatedTo: hasMany('transportTransportRelation', {\n      async: true,\n      inverse: null\n    }),\n    relatedToTransports: hasMany('transport', {\n      async: true,\n      inverse: null\n    }),\n    masterTransports: hasMany('transport', {\n      async: true,\n      inverse: null\n    }),\n    hasToWaitRelations: hasMany('transportTransportRelation', {\n      inverse: null\n    }),\n    relatedHasToWaitForTransports: hasMany('transport', {\n      async: true,\n      inverse: null\n    }),\n    relatedHasToWaitForNotCreatedTransports: attr(),\n    masterHasToWaitForTransports: hasMany('transport', {\n      async: true,\n      inverse: null\n    }),\n    combinedMasterTransport: belongsTo('transport', {\n      async: true,\n      inverse: null\n    }),\n    isRelatedTransportInTransportCombining: attr('boolean'),\n    isMasterTransportInTransportCombining: attr('boolean'),\n    isRelatedTransportInHasToWaitFor: attr('boolean'),\n    isMasterTransportInHasToWaitFor: attr('boolean'),\n    allCombinedTransports: hasMany('transport', {\n      async: true,\n      inverse: null\n    }),\n    transportRelationIdentifier: attr('string'),\n    readyToPlan: attr('boolean'),\n    color: attr('string'),\n    transportSupervisorName: attr('string'),\n    hasConfirmedRouteOffers: attr('boolean'),\n    lastTransactionAutoPassNotAccepted: attr('boolean'),\n    requiresInspection: attr('boolean'),\n    amountOfCover: belongsTo('amountOfCover', {\n      async: true,\n      deepEmbedded: ['currency']\n    }),\n    // wykorzystujemy tylko do zapisu ich w trakcie tworzenia i edycji transportu [A-14061]\n    transportPackages: hasMany('transportPackaging', {\n      deepEmbedded: ['packageType']\n    }),\n    isDuringAddingOfAdvice: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    periodicTransportActive: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    updateAllFuturePeriodicTransports: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    updateAllFuturePeriodicWindows: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    lockedInPlanning: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    customFieldValuesString: attr('string'),\n    hasCustomFieldsInitialized: false,\n    isHighlighted: false,\n    manualNotification: belongsTo('manualNotification', {\n      async: true\n    }),\n    route: belongsTo('route', {\n      async: true\n    }),\n    routeTemplate: belongsTo('route', {\n      async: true\n    }),\n    deliveries: hasMany('delivery', {\n      async: true,\n      deepEmbedded: ['loadStep', 'unloadStep', 'packaging', 'transportType']\n    }),\n    maxSegmentLdm: attr('number'),\n    maxSegmentWeight: attr('number'),\n    currentBidCount: attr('number'),\n    showLdmWarning: attr('boolean'),\n    serialTransport: belongsTo('serialTransport'),\n    serialTransportActive: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    surchargeValues: hasMany('surchargeValue', {\n      async: true,\n      inverse: 'transport'\n    }),\n    hasUnacceptedSurcharges: attr('boolean'),\n    validations: {\n      courierPackages: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.getCouriersQuotes) {\n              const pckgs = model.courierPackages.filterBy('enabled');\n\n              if (pckgs.length < 1) {\n                return false;\n              }\n\n              let valid = true;\n              pckgs.forEach(cp => {\n                if (!cp.validate()) {\n                  valid = false;\n                }\n              });\n              return valid;\n            }\n\n            return true;\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('courier.validation.minimumOnePackage');\n          }\n        }]\n      },\n      erpIdentifier: {\n        custom: [{\n          validation: function (key, value, model) {\n            // Można nie podać tej wartości w przypadku typów, które nie wymagają numeru zlecenia.\n            return value && value.length >= 3 || !model.get('transportType').get('requiresErpIdentifier');\n          },\n          message: 'minLength'\n        }]\n      },\n      altIdentifier: {\n        custom: [{\n          validation: function (key, value, model) {\n            return value || !model.get('transportType').get('requiresAltIdentifier');\n          },\n          message: 'blank'\n        }, {\n          validation: function (key, value, model) {\n            const regex = model.get('transportType').get('altIdentifierRegex');\n\n            if (regex === '' || regex === null || regex === undefined) {\n              return true;\n            } else {\n              if (value === undefined) {\n                value = '';\n              }\n\n              const matcher = new RegExp(regex);\n              return matcher.test(value);\n            }\n          },\n          message: 'regex'\n        }]\n      },\n      advice: {\n        relations: ['belongsTo'],\n        custom: [{\n          validation: async function (key, value, model) {\n            const master = await model.get('masterTransports.firstObject');\n\n            if (!master) {\n              const advice = await model.get('advice');\n\n              if (advice) {\n                return advice.validate();\n              }\n            }\n\n            const masterAdvice = await master.get('advice');\n            return masterAdvice.validate();\n          },\n          message: 'blank'\n        }]\n      },\n      customFields: {\n        relations: ['hasMany']\n      },\n      warehouse: {\n        custom: [{\n          validation: function (key, value, model) {\n            // Walidacja powinna obowiązywać tylko podczas tworzenia transportu.\n            if (model.get('id')) {\n              return true;\n            } // Można nie podać tej wartości w przypadku typów, które nie wymagają\n            // ani okna czasowego, ani magazynu.\n\n\n            return value && value.get('id') || !model.get('transportType').get('requiresTimeWindow') && !model.get('transportType').get('requiresWarehouse');\n          },\n          message: 'blank'\n        }]\n      },\n      carrierCompany: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('sessionAccount.currentUser.company.isPrincipal')) {\n              return true;\n            }\n\n            if (model.get('isMasterTransportInTransportCombining')) {\n              return true;\n            }\n\n            const transportType = model.get('transportType');\n            console.debug(`Transport type ${transportType.get('name')}, group ${transportType.get('typeGroup')} :: allows carrier: ${transportType.get('allowsCarrier')}, requires carrier: ${transportType.get('requiresCarrier')}.`); // walidacja nie może obowiązywać gdy pole nie jest widoczne w formularzu lub nie jest wymagane\n\n            if (!transportType.get('allowsCarrier') || !transportType.get('requiresCarrier')) {\n              return true;\n            }\n\n            return value.get('id');\n          },\n          message: 'info'\n        }]\n      },\n      serviceCompany: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('sessionAccount.currentUser.company.isPrincipal')) {\n              return true;\n            }\n\n            if (model.get('isMasterTransportInTransportCombining')) {\n              return true;\n            }\n\n            const transportType = model.get('transportType');\n            console.debug(`Transport type ${transportType.get('name')}, group ${transportType.get('typeGroup')} :: allows service: ${transportType.get('allowsService')}, requires service: ${transportType.get('requiresService')}.`);\n\n            if (!transportType.get('allowsService') || !transportType.get('requiresService')) {\n              return true;\n            }\n\n            return value.get('id');\n          },\n          message: 'info'\n        }]\n      },\n      firstContractor: {\n        custom: [{\n          validation: function (key, value, model) {\n            return value || !model.get('transportType.requiresContractor');\n          },\n          message: 'info'\n        }]\n      },\n      incoterms: {\n        custom: [{\n          validation: function (key, value, model) {\n            return !(!value && model.get('getCouriersQuotes'));\n          },\n          message: 'blank'\n        }]\n      },\n      goodsValue: {\n        custom: [{\n          validation: function (key, value, model) {\n            return !(!value && model.get('getCouriersQuotes'));\n          },\n          message: 'blank'\n        }]\n      },\n      goodsValueCurrency: {\n        custom: [{\n          validation: function (key, value, model) {\n            return !(!value && model.get('getCouriersQuotes'));\n          },\n          message: 'blank'\n        }]\n      },\n      requiresWorker: {\n        custom: [{\n          validation: function (key, value, model) {\n            const fieldObligatory = model.get('transportType.isChoosingWorkerObligatory');\n            return !(fieldObligatory && model.get('workers').length < 1);\n          },\n          message: 'info'\n        }]\n      },\n      transportSupervisor: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.actionCanBePerformed('ROLE_CAN_ACCESS_TRANSPORT_SUPERVISOR') || !model.get('transportType.requiresTransportSupervisor')) {\n              return true;\n            }\n\n            return model.get('transportSupervisor.id') !== undefined;\n          },\n          message: 'blankSelect'\n        }]\n      },\n      truckType: {\n        custom: [{\n          validation: function (key, value, model) {\n            const truckTypeRequiredOnCheckpoint = model.get('firstUnconfirmedCheckpoint.task.requiresTruckType');\n\n            if (truckTypeRequiredOnCheckpoint && !model.get('truckType.id')) {\n              return false;\n            }\n\n            if (!model.get('transportType.requiresTruckType')) {\n              return true;\n            }\n\n            return model.get('truckType.id') !== undefined;\n          },\n          message: 'blankSelect'\n        }, {\n          validation: function (key, value, model) {\n            const truckTypeRequiresPackages = model.get('truckType') && model.get('truckType.requireTransportPackaging');\n\n            if (!truckTypeRequiresPackages) {\n              return true;\n            }\n\n            return model.get('transportPackages.length') > 0;\n          },\n          message: 'requirePackages'\n        }]\n      },\n      routeTemplate: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('transportType.priceListSetting.requireRouteTemplate')) {\n              return value.get('id');\n            }\n\n            return true;\n          },\n          message: 'blankSelect'\n        }]\n      },\n      amountOfCover: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (model.get('transportType.isAmountOfCoverObligatory')) {\n              return !!model.get('amountOfCover.amount');\n            }\n\n            return true;\n          },\n          message: 'blank'\n        }]\n      }\n    },\n    STATE_DELETED_NAME: Ember.computed(function () {\n      return this.get('intl').t('statuses.deleted');\n    }).readOnly(),\n    STATE_FINISHED_NAME: Ember.computed(function () {\n      return this.get('intl').t('statuses.finished');\n    }).readOnly(),\n    STATE_MOVED_TO_ARCHIVE_DUE_DELAY: Ember.computed('', function () {\n      return this.get('intl').t('statuses.movedToArchiveDueDelay');\n    }),\n    name: Ember.computed('internalIndex', function () {\n      return this.get('internalIndex') ? 'Transport nr ' + this.get('internalIndex') : 'Nowy transport';\n    }).readOnly(),\n    identifier: Ember.computed('erpIdentifier', 'internalIndex', function () {\n      return this.get('erpIdentifier') || this.get('internalIndex');\n    }),\n    showAdviceDateRangeOnLoad: Ember.computed('advice.id', function () {\n      return !this.get('advice.id') && this.get('loadSteps').filterBy('minAdviceDate').get('length') > 0;\n    }),\n    showAdviceDateRangeOnUnload: Ember.computed('advice.id', function () {\n      return !this.get('advice.id') && this.get('unloadSteps').filterBy('minAdviceDate').get('length') > 0;\n    }),\n    backgroundColorStyle: Ember.computed('color', function () {\n      return Ember.String.htmlSafe('background-color: ' + this.get('color') + ';');\n    }).readOnly(),\n    textColorStyle: Ember.computed('color', function () {\n      return Ember.String.htmlSafe('color: ' + this.get('color') + ';');\n    }).readOnly(),\n    stageName: Ember.computed('firstUnconfirmedCheckpoint.stageName', 'transportType.workflow.localisedFinalStageName', function () {\n      if (this.get('deleted')) {\n        return this.get('STATE_DELETED_NAME');\n      } else if (this.get('archived')) {\n        if (this.get('completed')) {\n          return this.get('STATE_FINISHED_NAME');\n        } else {\n          return this.get('STATE_MOVED_TO_ARCHIVE_DUE_DELAY');\n        }\n      }\n\n      const point = this.get('firstUnconfirmedCheckpoint');\n      return point && point.get('id') ? point.get('stageName') : this.get('transportType.workflow.localisedFinalStageName');\n    }).readOnly(),\n    stageNameEnTrimmed: Ember.computed('firstUnconfirmedCheckpoint.stageNameEnTrimmed', function () {\n      if (this.get('deleted')) {\n        return 'deleted';\n      }\n\n      const point = this.get('firstUnconfirmedCheckpoint');\n\n      if (point && point.get('id')) {\n        return point.get('stageNameEnTrimmed').toLowerCase();\n      }\n\n      return this.get('transportType.workflow.finalStageNameEn') ? this.get('transportType.workflow.finalStageNameEn').replace(/ /g, '-').toLowerCase() : 'process-ended';\n    }),\n    sortProperty: Ember.computed('earliestTimeWindowStart', 'dateOfArchiving', function () {\n      if (this.get('archived')) {\n        return this.get('dateOfArchiving');\n      } else {\n        return this.get('earliestTimeWindowStart');\n      }\n    }).readOnly(),\n    firstStep: Ember.computed('steps.{@each.id,@each.orderInTransport}', function () {\n      return this.get('sortedSteps').get('firstObject');\n    }).readOnly(),\n    lastStep: Ember.computed('steps.{@each.id,@each.orderInTransport}', function () {\n      return this.get('sortedSteps').get('lastObject');\n    }).readOnly(),\n    minAdviceDate: Ember.computed('steps.@each.minAdviceDate', function () {\n      return this.get('steps').filterBy('minAdviceDate').sortBy('minAdviceDate').get('firstObject.minAdviceDate');\n    }),\n    maxAdviceDate: Ember.computed('steps.@each.maxAdviceDate', function () {\n      return this.get('steps').filterBy('maxAdviceDate').sortBy('maxAdviceDate').reverse().get('firstObject.maxAdviceDate');\n    }),\n    entryWeight: Ember.computed('weights.@each.{readOut,enabled}', function () {\n      // TODO do ewentualnego wywalenia\n      return this.get('weights').filter(weight => {\n        return weight.get('enabled') && !weight.get('task.isLastWeighingTask');\n      }).sortBy('dateCreated').get('firstObject');\n    }),\n    netWeight: Ember.computed('weights.@each.enabled', function () {\n      const weights = this.get('weights').filterBy('enabled');\n\n      if (weights.length > 1) {\n        const firstWeight = weights.shift();\n        return Math.abs(firstWeight.get('readOut') - weights.getEach('readOut').reduce((a, b) => a + b, 0));\n      }\n\n      return null;\n    }),\n    enabledWeights: Ember.computed('isRelatedTransportInTransportCombining', 'weights', 'weights.@each.enabled', 'masterTransports.firstObject.weights.@each.enabled', function () {\n      if (!this.get('isRelatedTransportInTransportCombining')) {\n        return this.get('weights').filterBy('enabled');\n      }\n\n      const enabledRelatedWeights = Ember.A();\n      this.get('masterTransports.firstObject.weights').forEach(w => {\n        if (w.get('id') && w.get('enabled')) {\n          enabledRelatedWeights.pushObject(w);\n        }\n      });\n      return enabledRelatedWeights;\n    }),\n    hasAutoWeight: Ember.computed('', function () {\n      const weightAccess = this.get('sessionAccount').getSettingValue('AUTOMATIC_WEIGHING') === 'true';\n      const weightUrl = !!this.get('sessionAccount').getSettingValue('WEIGHT_URL');\n      const weightElement = !!this.get('sessionAccount').getSettingValue('WEIGHT_SELECTOR');\n      return weightAccess && weightUrl && weightElement;\n    }),\n\n    /**\n     * Zwraca etap, do którego powinien być przypisany magazyn - o ile jest tylko jeden w zleceniu (a prawie zawsze jest).\n     *\n     * W przypadku dostaw, serwisów, itp. będzie to ostatni etap - proces kończy się przyjazdem do magazynu klienta.\n     * W przypadku pozostałych odbiorów będzie to pierwszy etap - proces rozpoczyna się załadunkiem w magazynie.\n     */\n    warehouseStep: Ember.computed('firstStep', 'lastStep', 'transportType.typeGroup', function () {\n      const transportType = this.get('transportType');\n\n      if (transportType.get('typeGroup') === transportType.get('TYPE_GROUPS.SIMPLIFIED_DELIVERY') || transportType.get('typeGroup') === transportType.get('TYPE_GROUPS.DELIVERY')) {\n        return this.get('lastStep.belongsToWarehouse') ? this.get('lastStep') : null;\n      } else {\n        return this.get('firstStep.belongsToWarehouse') ? this.get('firstStep') : null;\n      }\n    }),\n    stepsWithWindow: Ember.computed('steps.@each.timeWindow', function () {\n      return this.get('steps').filterBy('timeWindow.ramp');\n    }).readOnly(),\n    stepsWithWarehouse: Ember.computed('sortedSteps.@each.belongsToWarehouse', function () {\n      return this.get('sortedSteps').filterBy('belongsToWarehouse');\n    }),\n    stepWarehouses: Ember.computed('stepsWithWarehouse.@each.warehouse', function () {\n      return this.get('stepsWithWarehouse').getEach('warehouse');\n    }),\n    warehousesWithWeighingIncluded: Ember.computed('stepWarehouses.@each.weighingIncluded', function () {\n      return this.get('stepWarehouses').filterBy('weighingIncluded', true);\n    }).readOnly(),\n    weighingTasks: Ember.computed('checkpoints.@each.task', function () {\n      return this.get('checkpoints').filterBy('task.weighingIncluded');\n    }),\n    firstWarehouseStepWithoutWindow: Ember.computed('stepsWithWarehouse.{[],@each.timeWindow}', function () {\n      return this.get('stepsWithWarehouse').filter(s => !s.get('timeWindow.start')).get('firstObject');\n    }).readOnly(),\n    firstChangedWarehouseStep: Ember.computed('stepsWithWarehouse.{[],@each.didWarehouseChange}', function () {\n      return this.get('stepsWithWarehouse').filter(step => step.get('didWarehouseChange')).get('firstObject');\n    }).readOnly(),\n    contractorSteps: Ember.computed('steps.{@each.shouldHaveContractor,@each.company}', function () {\n      return this.get('steps').filter(step => step.get('shouldHaveContractor') || step.get('company.id'));\n    }),\n    contractorIds: Ember.computed('steps.@each.company', function () {\n      return this.get('contractors').getEach('id');\n    }),\n    contractors: Ember.computed('steps.{length,@each.company,@each.warehouse}', function () {\n      // w typie SIMPLE_DELIVERY mamy jeden step, który zawiera i firmę i magazyn\n      if (this.get('steps.length') === 1) {\n        return this.get('steps').filterBy('company.id').getEach('company').uniqBy('id');\n      } // musimy odfiltrować stepy z magazynem ponieważ w nich uzupełniamy company pryncypałem\n      // nie możemy zrobić isPrincipal == false ponieważ contractorem może być też pryncypal np aflofarm\n\n\n      return this.get('steps').filterBy('company.id').filterBy('warehouse.id', undefined).getEach('company').uniqBy('id');\n    }).readOnly(),\n    firstContractor: Ember.computed('contractors.firstObject', function () {\n      return this.get('contractors').get('firstObject');\n    }),\n    contractorNames: Ember.computed('contractors.@each.name', function () {\n      return this.get('contractors').filterBy('name').getEach('name');\n    }).readOnly(),\n    sortedSteps: Ember.computed('steps.{[],@each.orderInTransport}', function () {\n      const company = this.get('sessionAccount.currentUser.company'); // Jeśli firma jest i dostawcą i przewoźnikiem tzn. że jest operatorem, więc pomijamy ten węzeł.\n      // Dzięki temu operator widzi wszystkie stepy w transporcie, a nie tylko te przypisane do jego firmy\n\n      if (company.get('isSupplier') && !company.get('isCarrier')) {\n        return this.get('steps').filter(s => {\n          return s.get('enabled') && (s.get('company.id') === company.get('id') || s.get('belongsToWarehouse'));\n        }).sortBy('orderInTransport');\n      }\n\n      return this.get('steps').sortBy('orderInTransport');\n    }),\n    loadSteps: Ember.computed('sortedSteps.{[],@each.isLoad}', function () {\n      return this.get('sortedSteps').filterBy('isLoad');\n    }).readOnly(),\n    loadWarehouses: Ember.computed('stepsWithWarehouse.@each.{isLoad,warehouse}', function () {\n      return this.get('stepsWithWarehouse').filterBy('isLoad').getEach('warehouse').uniqBy('id');\n    }),\n    loadTimeWindows: Ember.computed('timeWindows.@each.isLoad', function () {\n      return this.get('timeWindows').filterBy('isLoad');\n    }),\n    unloadSteps: Ember.computed('sortedSteps.{[],@each.isUnload}', function () {\n      return this.get('sortedSteps').filterBy('isUnload');\n    }).readOnly(),\n    unloadWarehouses: Ember.computed('stepsWithWarehouse.{@each.isUnload,@each.warehouse}', function () {\n      return this.get('stepsWithWarehouse').filterBy('isUnload').getEach('warehouse').uniqBy('id');\n    }),\n    unloadTimeWindows: Ember.computed('timeWindows.@each.isUnload', function () {\n      return this.get('timeWindows').filterBy('isUnload');\n    }),\n    warehouse: Ember.computed('stepsWithWarehouse.firstObject.warehouse', function () {\n      return this.get('stepsWithWarehouse.firstObject.warehouse');\n    }),\n    customFieldPairs: Ember.computed('customFields.@each.definition', 'transportType.customFieldDefinitions.@each.id', function () {\n      const definitions = this.get('transportType.customFieldDefinitions').filterBy('id').filterBy('enabled').filterBy('canBeViewed').rejectBy('visibleInDelivery').sortBy('idx');\n      const values = this.get('customFields');\n      return definitions.map(definition => {\n        const value = values.findBy('definition.id', definition.get('id'));\n        return _customFieldPair.default.create({\n          definition,\n          value\n        });\n      }).sortBy('definition.idx');\n    }).readOnly(),\n    deliveryCustomFieldValuesValues: Ember.computed('deliveryCustomFieldValues.@each.value', function () {\n      return this.get('deliveryCustomFieldValues').map(function (d) {\n        return d.get('value');\n      });\n    }),\n    deliveryCustomFieldValues: Ember.computed('deliveries.@each.deliveryCustomFieldValues', function () {\n      return this.get('transportDeliveries').map(function (d) {\n        return d.get('deliveryCustomFieldValue');\n      });\n    }),\n    deliveryCustomFieldPairs: Ember.computed('deliveryCustomFields.@each.definition', 'transportType.customFieldDefinitions.@each.id', function () {\n      const definitions = this.get('transportType.customFieldDefinitions').filterBy('id').filterBy('enabled').filterBy('visibleInDelivery').sortBy('idx');\n      const self = this;\n      const pairs = [];\n\n      for (let i = 0; i < definitions.get('length'); i++) {\n        const definition = definitions.objectAt(i);\n        const value = self.store.peekAll('deliveryCustomFieldValue').find(cf => {\n          return cf.get('definition.id') === definition.id;\n        });\n        pairs[i] = {\n          value,\n          definition\n        };\n      }\n\n      return pairs.sortBy('definition.idx');\n    }).readOnly(),\n    customFieldOptions: Ember.computed('customFields.@each.option', function () {\n      return this.get('customFields').getEach('option');\n    }),\n    hasDiscrepancyOptionsActive: Ember.computed('customFieldOptions.@each.allowsDiscrepancyReport', function () {\n      return this.get('customFieldOptions').filterBy('allowsDiscrepancyReport').length > 0;\n    }),\n    hasInspectionPanelActive: Ember.computed('customFieldOptions.@each.allowsDiscrepancyReport', function () {\n      return this.get('customFieldOptions').filterBy('allowsInspectionPanel').length > 0;\n    }),\n    browserOld: Ember.computed(function () {\n      return (0, _jquery.default)('html').is('.old');\n    }).readOnly(),\n\n    belongsToContractors(company) {\n      return !!this.get('contractors').findBy('id', company.get('id'));\n    },\n\n    lastConfirmedCheckpoint: Ember.computed('checkpoints.@each.executionDate', function () {\n      return this.get('checkpoints').filterBy('executionDate').sortBy('idx').get('lastObject');\n    }),\n    lastConfirmedCheckpointWithWeighingIncluded: Ember.computed('checkpoints.@each.executionDate', function () {\n      const self = this;\n      const weighingCheckpoints = this.get('store').peekAll('checkpoint').filter(checkpoint => {\n        return checkpoint.get('transport.id') === self.get('id') && checkpoint.get('task.weighingIncluded');\n      }).filterBy('executionDate').sortBy('idx');\n\n      if (weighingCheckpoints.get('length') === 0) {\n        return null;\n      }\n\n      return weighingCheckpoints.get('lastObject');\n    }),\n    title: Ember.computed('archived', function () {\n      return this.get('transportType').get('label');\n    }).readOnly(),\n    formattedCities: Ember.computed('sortedSteps.@each.city', function () {\n      return this.get('sortedSteps').getEach('city').join(' - ');\n    }),\n    sortedCheckpoints: Ember.computed('checkpoints.@each.{idx,isRejected}', function () {\n      return this.get('checkpoints').sortBy('idx');\n    }).readOnly(),\n    checkpointsThatCanBeConfirmedByGuard: Ember.computed('sortedCheckpoints.{[],@each.step}', function () {\n      const warehouseIds = this.get('sessionAccount.currentUser.warehouses').map(w => w.get('id'));\n      return this.get('sortedCheckpoints').filterBy('task.canBeConfirmedByGuard').filter(c => {\n        return warehouseIds.includes(c.get('step.warehouse.id'));\n      });\n    }).readOnly(),\n    checkpointsThatCanBeConfirmedByGuardRole: Ember.computed('sortedCheckpoints.{[],@each.step}', function () {\n      return this.get('sortedCheckpoints').filterBy('task.canBeConfirmedByGuard');\n    }).readOnly(),\n\n    /**\n     * Numery WZ\n     */\n    documentIdentifiers: Ember.computed('steps.@each.documentIdentifier', function () {\n      return this.get('steps').filterBy('documentIdentifier').getEach('documentIdentifier').join(', ');\n    }).readOnly(),\n    creatorNameToDisplay: Ember.computed('creatorName', 'creator.name', function () {\n      return this.get('creatorName') || this.get('creator.name');\n    }).readOnly(),\n    hasDiscrepancyReportCustomFieldsErrors: Ember.computed('customFields.@each.numberOfErrors', function () {\n      const customFields = this.get('customFields').filter(field => {\n        return field.definition.get('visibleInDiscrepancyReportSection') === true;\n      });\n      return customFields.filterBy('numberOfErrors').get('length') > 0;\n    }),\n    hasErrors: Ember.computed('errors.length', 'advice.errors.length', 'customFields.@each.numberOfErrors', 'indexes.@each.hasErrors', 'courierPackages.@each.hasErrors', 'steps.@each.numberOfErrors', 'timeWindows.@each.numberOfErrors', function () {\n      if (this.get('errors.length') > 0 || this.get('advice.errors.length') > 0) {\n        return true;\n      }\n\n      this.get('customFields').filterBy('numberOfErrors').forEach(f => {\n        console.debug(`Custom field \"${f.get('definition.name')}\" has validation errors.`);\n      });\n\n      if (this.get('customFields').filterBy('numberOfErrors').get('length') > 0) {\n        return true;\n      }\n\n      if (this.get('indexes').filterBy('hasErrors').get('length') > 0) {\n        return true;\n      }\n\n      if (this.get('courierPackages').filterBy('enabled').filterBy('hasErrors').get('length') > 0) {\n        return true;\n      }\n\n      if (this.get('steps').filterBy('numberOfErrors').get('length') > 0) {\n        return true;\n      }\n\n      const stepPackageTypes = this.get('steps').getEach('stepPackageTypes').reduce((a, b) => a.concat(b), []);\n\n      if (stepPackageTypes.filterBy('numberOfErrors').get('length') > 0) {\n        return true;\n      }\n\n      return this.get('timeWindows').filterBy('numberOfErrors').get('length') > 0;\n    }).readOnly(),\n    activeAuction: Ember.computed('auctions.@each.finished', function () {\n      return this.get('auctions').filterBy('finished', false).sortBy('id').get('lastObject');\n    }),\n    previouslyActiveAuction: Ember.computed('auctions.@each.finished', function () {\n      const activeAuction = this.get('activeAuction');\n      return this.get('auctions').filterBy('finished', false).filter(a => a.get('id') !== activeAuction.get('id')).sortBy('id').get('lastObject');\n    }),\n    showPrice: Ember.computed('transaction.{id,carrier,isRejected,price}', 'sessionAccount.currentUser.company', function () {\n      const company = this.get('sessionAccount.currentUser.company');\n      const transactionCreated = !!this.get('transaction.id');\n      const price = this.get('transaction.price'); // jeśli price jest nullem to znaczy, że użytkownik nie ma uprawnienia\n      // `ROLE_ACCESS_FREIGHT_DATA` więc nie wyświetlamy pola\n\n      if (this.get('transaction.isRejected') || price === null || price === undefined) {\n        return false;\n      }\n\n      if (company.get('isPrincipal') || this.get('transaction.carrier.id') === company.get('id')) {\n        return transactionCreated;\n      }\n\n      return false;\n    }),\n    // TODO: dodawać transakcję przy kończeniu aukcji?\n    priceWithCurrency: Ember.computed('transaction.{price,currency.symbol}', function () {\n      const price = this.get('transaction.price');\n      const currency = this.get('transaction.currency.symbol');\n\n      if (price === undefined || price === null) {\n        return '';\n      }\n\n      return price + ' ' + currency;\n    }),\n    active: Ember.computed('archived', 'deleted', function () {\n      return !this.get('archived') && !this.get('deleted');\n    }),\n    summaryQuantity: Ember.computed('steps.@each.quantity', function () {\n      return this.get('steps').filterBy('quantity').getEach('quantity').reduce((acc, q) => acc + q, 0);\n    }),\n    enabledIndexes: Ember.computed('indexes.@each.{enabled,sortValue}', function () {\n      return this.get('indexes').filterBy('enabled').sortBy('sortValue');\n    }),\n    enabledPackages: Ember.computed('courierPackages.@each.enabled', 'packages.@each.sortValue', function () {\n      return this.get('courierPackages').filterBy('enabled').sortBy('sortValue');\n    }),\n    enabledPackagesCount: Ember.computed('courierPackages.@each.{enabled,quantity}', function () {\n      const pckgs = this.get('courierPackages').filterBy('enabled');\n      let count = 0;\n      pckgs.forEach(it => {\n        count += Number(it.quantity);\n      });\n\n      if (count === 0) {\n        return '-';\n      } else {\n        return count;\n      }\n    }),\n    enabledPackagesWeight: Ember.computed('courierPackages.@each.{enabled,weight,quantity}', function () {\n      const pckgs = this.get('courierPackages').filterBy('enabled');\n      let count = 0.0;\n      pckgs.forEach(it => {\n        count += Number(Number(it.weight) * Number(it.quantity));\n      });\n\n      if (count === 0) {\n        return '-';\n      } else {\n        return count;\n      }\n    }),\n    enabledPackagesValue: Ember.computed('enabledPackages.@each.totalValue', function () {\n      const totalValue = this.get('enabledPackages').getEach('totalValue').reduce((a, b) => parseFloat(a) + parseFloat(b), 0);\n      return totalValue.toFixed(2) || 0;\n    }),\n    indexesTransportNumbersAsString: Ember.computed('indexes.@each.{transportNumber,enabled}', function () {\n      return this.get('indexes').filterBy('transportNumber').getEach('transportNumber').uniq().join(', ');\n    }),\n    indexesDocumentNumbersAsString: Ember.computed('indexes.@each.{documentNumber,enabled}', function () {\n      return this.get('indexes').filterBy('documentNumber').getEach('documentNumber').uniq().join(', ');\n    }),\n    numberOfNotes: Ember.computed('notes.length', function () {\n      return this.hasMany('notes').ids().length;\n    }),\n    numberOfFiles: Ember.computed('files.length', function () {\n      return this.hasMany('files').ids().length;\n    }),\n    numberOfDiscrepancyReports: Ember.computed('discrepancyReports.length', function () {\n      return this.hasMany('discrepancyReports').ids().length;\n    }),\n    numberOfAllDocuments: Ember.computed('numberOfFiles', 'numberOfDiscrepancyReports', function () {\n      return this.get('numberOfFiles') + this.get('numberOfDiscrepancyReports');\n    }),\n    showQuantitySection: Ember.computed('transportType.{hasVisibleSteps,isQuantityVisibleInContractorStep}', 'steps.@each.id', function () {\n      if (this.get('transportType.hasVisibleSteps')) {\n        return false;\n      }\n\n      return this.get('store').peekAll('packageTypeTransportType').filter(pttt => pttt.get('transportType.id') === this.get('transportType.id')).some(pttt => pttt.get('visibleInContractorStep') || pttt.get('visibleInWarehouseStep'));\n    }),\n    showWeightField: Ember.computed('transportType.{hasVisibleSteps,isWeightVisibleInContractorStep}', 'steps.@each.id', function () {\n      if (this.get('transportType.hasVisibleSteps')) {\n        return false;\n      }\n\n      return this.get('transportType.isWeightVisibleInContractorStep');\n    }),\n    showClientInWindowDetailsDialog: Ember.computed('sortedSteps.@each.company', 'customFieldPairs.@each.definition', function () {\n      return this.get('sortedSteps').some(step => step.get('company.id')) || this.get('customFieldPairs').some(customField => customField.definition.get('name') === 'Incoterms');\n    }),\n    hasAnyWzNumbers: Ember.computed('', function () {\n      return this.get('unloadSteps').some(step => step.get('documentIdentifier'));\n    }),\n    canBeDeleted: Ember.computed('transportType.authorityRestrictions.@each.authorityRange', 'earliestTimeWindowStart', 'firstUnconfirmedCheckpoint', function () {\n      return this.actionCanBePerformed('DELETE_TRANSPORT');\n    }),\n    canBeUpdated: Ember.computed('id', 'transportType.authorityRestrictions.@each.authorityRange', 'earliestTimeWindowStart', 'firstUnconfirmedCheckpoint', 'activeAuction', function () {\n      if (!this.get('id')) {\n        return true;\n      }\n\n      return this.actionCanBePerformed('UPDATE_MAIN_DATA_SECTION');\n    }),\n    disabled: Ember.computed('canBeUpdated', function () {\n      return !this.get('canBeUpdated');\n    }),\n    // TODO: Kod został przeniesiony do serwisu, w ramach tego todo trzeba podmienić wszystkie wywołania tej metody na wywołania z serwisu i\n    // ostatecznie usunąć te metodę z modelu\n    actionCanBePerformed: function (actionType) {\n      return this.get('authorityCheckerService').actionCanBePerformed(actionType, this);\n    },\n    logString: Ember.computed('id', 'internalIndex', 'erpIdentifier', function () {\n      return `#${this.get('id')} / ${this.get('internalIndex')} / ERP ${this.get('erpIdentifier')}`;\n    }),\n    relatedToLabel: Ember.computed('internalIndex', 'erpIdentifier', function () {\n      if (!this.get('internalIndex')) {\n        return '';\n      }\n\n      return this.get('erpIdentifier') ? `${this.get('internalIndex')} (${this.get('erpIdentifier')})` : `${this.get('internalIndex')}`;\n    }),\n    timeWindowLoadSortProperty: Ember.computed('earliestTimeWindowStart', 'showAdviceDateRangeOnLoad', 'minAdviceDate', function () {\n      return this.timeWindowSortProperty('load');\n    }),\n    timeWindowUnloadSortProperty: Ember.computed('earliestTimeWindowStart', 'showAdviceDateRangeOnUnload', 'minAdviceDate', function () {\n      return this.timeWindowSortProperty('unload');\n    }),\n    timeWindowSortProperty: function (stepType) {\n      const showAdviceDatePropertyName = stepType === 'load' ? 'showAdviceDateRangeOnLoad' : 'showAdviceDateRangeOnUnload';\n\n      if (this.get(showAdviceDatePropertyName)) {\n        return this.get('minAdviceDate');\n      }\n\n      const steps = stepType === 'load' ? this.get('loadSteps') : this.get('unloadSteps');\n      return steps.map(s => s.get('isInWarehouse') ? this.get('earliestTimeWindowStart') : s.get('arrivalDate')).filter(date => date !== null).sort((a, b) => a.date - b.date)[0];\n    },\n    transportWithoutWarehouses: Ember.computed('warehouse', 'unloadWarehouses', 'loadWarehouses', function () {\n      return Ember.isNone(this.warehouse) && Ember.isEmpty(this.unloadWarehouses) && Ember.isEmpty(this.loadWarehouses);\n    }).readOnly(),\n    findAllRelatedCompanies: function () {\n      return [this.get('carrierCompany'), ...this.get('contractors')];\n    },\n    checkIfEditionViolatesPeriodicTransportRules: function (oldCompany, newCompany) {\n      if (!this.get('periodicTransportActive')) {\n        return false;\n      }\n\n      if (newCompany && newCompany.get('allowsPeriodicTransport') || !oldCompany || !oldCompany.get('allowsPeriodicTransport')) {\n        return false;\n      }\n\n      const allRelatedCompanies = this.findAllRelatedCompanies();\n      const removedCompanyIndex = allRelatedCompanies.findIndex(c => c.get('id') === oldCompany.get('id'));\n      allRelatedCompanies.splice(removedCompanyIndex, 1);\n      return allRelatedCompanies.every(c => !c.get('allowsPeriodicTransport'));\n    },\n    stepCssClass: Ember.computed('steps.length', function () {\n      if (this.get('transportType.alternativeStepsLayout')) {\n        return;\n      }\n\n      const suffix = this.get('sortedSteps.length') < 4 ? this.get('sortedSteps.length') : 'more';\n      return `step-columns-${suffix}`;\n    }),\n    maxTransportDate: Ember.computed('timeWindows.@each.stop', 'steps.@each.{arrivalDate,maxAdviceDate}', function () {\n      const maxArrivalDate = this.get('steps').filter(s => s.get('arrivalDate')).sortBy('arrivalDate').get('lastObject.arrivalDate');\n      const maxNoWindowRange = this.get('steps').filter(s => !s.get('isInWarehouse') && s.get('maxAdviceDate')).sortBy('maxAdviceDate').get('lastObject.maxAdviceDate');\n      const maxTimeWindowStop = this.get('timeWindows').filterBy('stop').sortBy('stop').reverse().get('firstObject.stop');\n      const dates = [maxArrivalDate, maxTimeWindowStop, maxNoWindowRange].filter(d => d);\n      return new Date(Math.max(...dates));\n    }),\n    firstMandatoryCheckpoint: Ember.computed('checkpoints.[]', function () {\n      const checkpointsSortedByIdx = this.get('sortedCheckpoints');\n      const firstUnconfirmedCheckpointIdx = this.get('firstUnconfirmedCheckpoint.idx');\n      return checkpointsSortedByIdx.find(checkpoint => {\n        return checkpoint.get('canBeSkipped') === false && checkpoint.get('idx') > firstUnconfirmedCheckpointIdx;\n      });\n    }),\n    carrierSortProperty: Ember.computed('carrierCompany.shortName', function () {\n      return this.get('carrierCompany.shortName');\n    }),\n    stepTypePackageTypeQuantities: function (stepType) {\n      const result = {};\n      stepType.map(step => step.get('stepPackageTypes').reduce((countMap, spt) => {\n        const packageName = spt.get('packageType.name');\n        const quantity = spt.get('quantity') || 0;\n        countMap[packageName] = (countMap[packageName] || 0) + Number(quantity);\n        result[packageName] = (result[packageName] || 0) + Number(quantity);\n        return countMap;\n      }, {}), {});\n      return result;\n    },\n    loadPackageTypeQuantities: Ember.computed('stepPackageTypes.@each.quantity', function () {\n      const loadSteps = this.get('loadSteps');\n      return this.stepTypePackageTypeQuantities(loadSteps);\n    }),\n    unloadPackageTypeQuantities: Ember.computed('stepPackageTypes.@each.quantity', function () {\n      const unloadSteps = this.get('unloadSteps');\n      return this.stepTypePackageTypeQuantities(unloadSteps);\n    }),\n    isCombinedTransport: Ember.computed('isMasterTransportInTransportCombining', 'isRelatedTransportInTransportCombining', function () {\n      return this.get('isMasterTransportInTransportCombining') || this.get('isRelatedTransportInTransportCombining');\n    }),\n    totalWeight: Ember.computed('steps.@each.weight', function () {\n      const unloadSteps = this.get('unloadSteps');\n      let summedWeight = 0;\n      unloadSteps.forEach(step => {\n        if (!step || !step.get('weight')) {\n          return;\n        }\n\n        summedWeight += step.get('weight');\n      });\n      return summedWeight;\n    }),\n    masterTransportInTransportCombining: Ember.computed('masterTransports.[]', function () {\n      return this.get('masterTransports').filter(t => t.get('isMasterTransportInTransportCombining')).get('firstObject');\n    }),\n    masterTransportsAdvices: Ember.computed('masterTransports.@each.advice', function () {\n      return this.get('masterTransports').map(function (mt) {\n        return mt.get('advice');\n      }) || Ember.A([]);\n    }),\n    hasAdvice: Ember.computed('masterTransportsAdvices', 'advice.id', function () {\n      return this.get('advice.id') || this.get('masterTransportsAdvices').some(function (a) {\n        return a.get('id');\n      });\n    }),\n    hasTimeWindow: Ember.computed('timeWindows.length', function () {\n      return this.get('timeWindows.length') > 0;\n    }),\n\n    _createAmountOfCover() {\n      if (!this.get('transportType.isAmountOfCoverVisible') || this.get('amountOfCover.id')) {\n        return;\n      }\n\n      const defaultAoc = this.get('transportType').get('defaultAmountOfCover');\n      const aoc = this.get('store').createRecord('amountOfCover', {\n        amount: defaultAoc ? defaultAoc.get('amount') : 0.0,\n        currency: defaultAoc ? defaultAoc.get('currency') : null\n      });\n      this.set('amountOfCover', aoc);\n    },\n\n    hasAnyHasToWaitForRelation: Ember.computed('isRelatedTransportInHasToWaitFor', 'isMasterTransportInHasToWaitFor', function () {\n      return this.get('isRelatedTransportInHasToWaitFor') || this.get('isMasterTransportInHasToWaitFor');\n    }),\n    showTruckTypeHelper: Ember.computed('maxSegmentLdm', 'maxSegmentWeight', function () {\n      return !!this.get('maxSegmentLdm') && !!this.get('maxSegmentLdm');\n    }),\n    createSerialTransport: function () {\n      this.set('serialTransport', this.get('store').createRecord('serialTransport', {\n        frequency: 'DAILY',\n        startDate: moment().startOf('day').toDate()\n      }));\n    },\n    firstLoadStep: Ember.computed('loadSteps.{@each.orderInTransport,firstObject}', function () {\n      return this.get('loadSteps.firstObject');\n    }),\n    firstUnloadStep: Ember.computed('loadSteps{.@each.orderInTransport,firstObject}', function () {\n      return this.get('unloadSteps.firstObject');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transport/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, {\n    attrs: Object.freeze({\n      steps: {\n        embedded: 'save'\n      },\n      advice: {\n        embedded: 'save'\n      },\n      customFields: {\n        embedded: 'save'\n      },\n      indexes: {\n        embedded: 'save'\n      },\n      courierPackages: {\n        embedded: 'save'\n      },\n      periodicTransport: {\n        embedded: 'save'\n      },\n      courierInvoice: {\n        embedded: 'save'\n      },\n      weights: {\n        embedded: 'save'\n      },\n      amountOfCover: {\n        embedded: 'save'\n      },\n      deliveries: {\n        embedded: 'save'\n      },\n      truckTypes: {\n        serialize: 'none',\n        deserialize: 'records'\n      },\n      transportPackages: {\n        embedded: 'save'\n      },\n      serialTransport: {\n        serialize: 'false',\n        deserialize: 'false'\n      },\n      serialTransportActive: {\n        serialize: 'false',\n        deserialize: 'false'\n      },\n      surchargeValues: {\n        serialize: 'false',\n        deserialize: 'ids'\n      }\n    }),\n    serializeIntoHash: function (data, type, record, options) {\n      const object = this.serialize(record, options);\n\n      for (const key in object) {\n        data[key] = object[key];\n      }\n    },\n    serializeHasMany: function (record, json, relationship) {\n      const key = relationship.key;\n      const hasManyRecords = record.hasMany(key);\n\n      if (hasManyRecords && this.attrs[key] && this.attrs[key].embedded === 'save') {\n        json[key] = [];\n        hasManyRecords.forEach(function (item) {\n          let data;\n\n          if (key === 'deliveries') {\n            data = item.serialize();\n            data.id = item.id;\n            json[key].push(data);\n            return;\n          }\n\n          data = item.attributes();\n          data.id = item.id;\n\n          if (relationship.options.deepEmbedded) {\n            relationship.options.deepEmbedded.forEach(function (deepKey) {\n              if (item.belongsTo(deepKey)) {\n                const deepRecord = item.belongsTo(deepKey);\n\n                if (deepKey === 'company' && !deepRecord.attr('name')) {\n                  return true;\n                }\n\n                const deepRecordIsUnsaved = !deepRecord.id;\n\n                if (deepRecordIsUnsaved) {\n                  data[deepKey] = deepRecord.attributes();\n                  data[deepKey].id = deepRecord.id;\n                } else {\n                  data[deepKey] = {\n                    id: deepRecord.id\n                  };\n                }\n\n                if (deepKey === 'timeWindow') {\n                  data[deepKey].start = deepRecord.attr('start');\n                  data[deepKey].stop = deepRecord.attr('stop');\n                  data[deepKey].initialStart = deepRecord.attr('initialStart');\n                  data[deepKey].ramp = deepRecord.belongsTo('ramp') ? {\n                    id: deepRecord.belongsTo('ramp').id\n                  } : null;\n                } else if (deepKey === 'company' && deepRecordIsUnsaved) {\n                  data[deepKey].country = deepRecord.belongsTo('country') ? {\n                    id: deepRecord.belongsTo('country').id\n                  } : null;\n                } else if (deepKey === 'address' && deepRecordIsUnsaved) {\n                  data[deepKey].country = deepRecord.belongsTo('country') ? deepRecord.belongsTo('country').id : null;\n                  const companyId = deepRecord.belongsTo('company') ? deepRecord.belongsTo('company').id : data.company.id;\n                  data[deepKey].company = companyId ? {\n                    id: companyId\n                  } : null;\n                }\n              }\n            });\n          }\n\n          if (item.modelName === 'step') {\n            if (item.hasMany('stepWarehouseLocations')) {\n              data.stepWarehouseLocations = [];\n              item.hasMany('stepWarehouseLocations').forEach(wl => {\n                const d = wl.serialize();\n                d.id = wl.id;\n                d.step = item.id;\n                data.stepWarehouseLocations.push(d);\n              });\n            }\n\n            if (item.belongsTo('warehouseZone') && item.belongsTo('warehouseZone').id) {\n              data.warehouseZone = {\n                id: item.belongsTo('warehouseZone').id\n              };\n            }\n\n            if (item.hasMany('stepPackageTypes')) {\n              data.stepPackageTypes = [];\n              item.hasMany('stepPackageTypes').forEach(spt => {\n                const d = spt.attributes();\n                d.id = spt.id;\n                d.packageType = {\n                  id: spt.belongsTo('packageType').id\n                };\n                d.step = {\n                  id: spt.belongsTo('step').id\n                };\n                data.stepPackageTypes.push(d);\n              });\n            }\n          }\n\n          if (item.modelName === 'index' && item.hasMany('quantities')) {\n            const relatedStep = item.belongsTo('step');\n\n            if (relatedStep && relatedStep.attributes()) {\n              data.stepOrderInTransport = relatedStep.attributes().orderInTransport;\n            }\n\n            data.quantities = [];\n            item.hasMany('quantities').forEach(quantity => {\n              const d = quantity.attributes();\n              d.id = quantity.id;\n              d.indexQuantityType = {\n                id: quantity.belongsTo('indexQuantityType').id\n              };\n              data.quantities.push(d);\n            });\n          }\n\n          if (item.modelName === 'weight') {\n            if (data.enabled) {\n              data = item.serialize();\n            } else {\n              return;\n            }\n          }\n\n          json[key].push(data);\n        });\n      } else {\n        this._super(record, json, relationship);\n      }\n    },\n    serializeBelongsTo: function (record, json, relationship) {\n      const key = relationship.key;\n      const embeddedRecord = record.belongsTo(key);\n\n      if (embeddedRecord && this.attrs[key] && this.attrs[key].embedded === 'save') {\n        const data = embeddedRecord.attributes();\n        data.id = embeddedRecord.id;\n\n        if (relationship.options.deepEmbedded) {\n          relationship.options.deepEmbedded.forEach(function (deepKey) {\n            if (embeddedRecord.belongsTo(deepKey)) {\n              data[deepKey] = {\n                id: embeddedRecord.belongsTo(deepKey).id\n              };\n            }\n          });\n        }\n\n        json[key] = data;\n      } else {\n        this._super(record, json, relationship);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/archive/controller\", [\"exports\", \"apollo/mixins/transports-mixin\"], function (_exports, _transportsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend(_transportsMixin.default, {\n    store: service(),\n    sessionAccount: service('session-account'),\n    queryParams: ['query', 'start', 'stop', 'dateFilterProperty', 'page'],\n    searchParams: function () {\n      const query = this.get('query') || '';\n      const start = this.get('start') || '';\n      const stop = this.get('stop') || '';\n      const dateFilterProperty = this.get('dateFilterProperty');\n\n      if (this.get('sessionAccount').isGroupFilterEnabled()) {\n        return {\n          filterMode: this.get('filterMode') ? this.get('filterMode') : 'user',\n          query,\n          start,\n          stop,\n          dateFilterProperty,\n          filters: Ember.A()\n        };\n      }\n\n      return {\n        query,\n        start,\n        stop,\n        dateFilterProperty,\n        filters: Ember.A()\n      };\n    }.property('model', 'query', 'start', 'stop', 'filterMode', 'dateFilterProperty'),\n    availableTransportTypes: function () {\n      return [this.get('model')];\n    }.property('model.id'),\n    allAvailableTransportTypes: function () {\n      const principalId = localStorage.getItem('principalId');\n      const company = this.store.peekRecord('company', principalId);\n      return company.get('transportTypes').filterBy('canBeSeenInArchiveByRoleGroup');\n    }.property('sessionAccount.currentUser.transportTypes.@each'),\n    actions: {\n      setTransportTypeMode(mode) {\n        const transportTypeId = this.get('store').peekAll('transportType').filter(type => {\n          return type.get('alias') === mode;\n        }).get('firstObject.id');\n        this.transitionToRoute('transports.archive', transportTypeId);\n      },\n\n      setQueryParams(query, queryOpts, start, stop, dateFilterProperty) {\n        this.setProperties({\n          query,\n          queryOpts,\n          start,\n          stop,\n          dateFilterProperty\n        });\n      },\n\n      clearQueryParams(dateFilterProperty) {\n        this.setProperties({\n          query: undefined,\n          start: undefined,\n          stop: undefined,\n          dateFilterProperty\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/archive/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"apollo/mixins/menu-mixin\"], function (_exports, _authenticatedRouteMixin, _menuMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _menuMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_ARCHIVE_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      params.page = params.page || 1;\n      return this.store.findRecord('transportType', params.type);\n    },\n    setupController: function (controller, model) {\n      this._super.apply(this, arguments);\n\n      controller.setProperties({\n        model: model,\n        archive: true\n      });\n    },\n\n    activate() {\n      this.activateCurrentTab('ARCHIVE_TAB');\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/archive/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"vimqWJSx\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container-fluid\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"transport-table-nav\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"transports/search-transports\\\",null,[[\\\"archive\\\",\\\"query\\\",\\\"start\\\",\\\"stop\\\",\\\"transportType\\\"],[true,[23,[\\\"query\\\"]],[23,[\\\"start\\\"]],[23,[\\\"stop\\\"]],[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"allAvailableTransportTypes\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"transports/choose-type\\\",null,[[\\\"archive\\\",\\\"transportTypes\\\",\\\"query\\\",\\\"start\\\",\\\"stop\\\"],[true,[23,[\\\"allAvailableTransportTypes\\\"]],[23,[\\\"query\\\"]],[23,[\\\"start\\\"]],[23,[\\\"stop\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row transport-tables-container\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"transports/transports-table\\\",null,[[\\\"transportType\\\",\\\"archive\\\",\\\"searchParams\\\",\\\"goToWarehouse\\\"],[[23,[\\\"model\\\"]],[23,[\\\"archive\\\"]],[23,[\\\"searchParams\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"goToWarehouse\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"outlet\\\",[\\\"modal\\\"],null],false],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transports/archive/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/index/controller\", [\"exports\", \"apollo/mixins/transports-mixin\"], function (_exports, _transportsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_transportsMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    relationsTrackerService: Ember.inject.service('transport-relations.relations-tracker'),\n    relationsCombiner: Ember.inject.service('transport-relations.relations-combiner'),\n    queryParams: Ember.A(['query']),\n    canCombineTransports: Ember.computed('canAddCombiningTransportsRelation', 'canAddHasToWaitForRelation', function () {\n      return this.get('canAddCombiningTransportsRelation') || this.get('canAddHasToWaitForRelation');\n    }),\n    canAddCombiningTransportsRelation: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_CAN_ADD_TRANSPORT_COMBINING_RELATION');\n    }),\n    canAddHasToWaitForRelation: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_CAN_ADD_HAS_TO_WAIT_FOR_RELATION');\n    }),\n    searchParams: Ember.computed('model', 'query', 'filterMode', 'daysLimitEnabled', 'daysLimitEnabledFromButton', function () {\n      const query = this.get('query') || '';\n      const filterMode = this.get('filterMode') || 'user';\n      const queryOpts = this.get('queryOpts');\n      const params = {\n        query,\n        queryOpts,\n        filters: Ember.A(),\n        daysLimitEnabled: this._getDaysLimitEnabled()\n      };\n\n      if (this.get('sessionAccount').isGroupFilterEnabled()) {\n        params.filterMode = filterMode;\n        return params;\n      }\n\n      return params;\n    }),\n    userAndGroupFilterEnabled: Ember.computed('', function () {\n      return this.get('sessionAccount').isGroupFilterEnabled();\n    }),\n    availableTransportTypes: Ember.computed('model.availableTransportTypes', function () {\n      return this.get('model.availableTransportTypes').sortBy('idx');\n    }).readOnly(),\n\n    /**\n     *  - ALL - jeśli trzeba wyświetlić wszystkie typy,\n     *  - alias typu (TRANSPORT_ORDER, CONTAINER, itp) - w przypadku wyświetlania wybranego typu.\n     */\n    transportTypeMode: Ember.computed('model.transportTypeMode', function () {\n      return this.get('model.transportTypeMode');\n    }).readOnly(),\n    transportTypesToRender: Ember.computed('availableTransportTypes', 'query', function () {\n      if (this.get('transportTypeMode') === 'ALL' || this.get('query')) {\n        return this.get('availableTransportTypes');\n      }\n\n      return this.get('availableTransportTypes').filterBy('alias', this.get('transportTypeMode'));\n    }).readOnly(),\n    transportTypesReadyToLoad: Ember.computed('transportTypesToRender.@each.loadingCompleted', function () {\n      if (!this.get('transportTypesToRender').filterBy('loadingCompleted').get('length')) {\n        return [this.get('transportTypesToRender').get('firstObject')];\n      }\n\n      const loadedTypes = this.get('transportTypesToRender').filterBy('loadingCompleted');\n      const firstUnloadedType = this.get('transportTypesToRender').filterBy('loadingCompleted', false).get('firstObject');\n\n      if (firstUnloadedType) {\n        return [...loadedTypes, firstUnloadedType];\n      }\n\n      return loadedTypes;\n    }),\n    // eslint-disable-next-line ember/no-observers\n    notifyAboutTransportTypeModeSelection: Ember.observer('model.transportTypeMode', function () {\n      this.send('setTransportTypeModeSelection', this.get('model.transportTypeMode'));\n    }),\n    hasFiltersEnabled: Ember.computed('daysLimitSettingEnabled', 'userAndGroupFilterEnabled', function () {\n      return this.get('daysLimitSettingEnabled') || this.get('userAndGroupFilterEnabled');\n    }),\n    _getDaysLimitEnabled: function () {\n      if (this.get('daysLimitEnabledFromButton') === false) {\n        return false;\n      }\n\n      const tt = this.get('model.availableTransportTypes').find(tt => {\n        return tt.get('alias') === this.get('model.transportTypeMode');\n      });\n\n      if (!tt) {\n        return this.get('daysLimitEnabled');\n      } else {\n        return tt.get('enableTransportTableDaysLimit');\n      }\n    },\n    actions: {\n      setTransportTypeMode(mode) {\n        this.transitionToRoute('transports.index', mode);\n      },\n\n      setQueryParams(query, queryOpts) {\n        this.setProperties({\n          query,\n          queryOpts\n        });\n      },\n\n      setDaysLimitEnabled(daysLimitEnabled) {\n        this.setProperties({\n          daysLimitEnabledFromButton: daysLimitEnabled\n        });\n      },\n\n      clearQueryParams() {\n        this.setProperties({\n          query: undefined,\n          queryOpts: undefined\n        });\n        this.get('availableTransportTypes').forEach(tt => tt.set('transportsTabVisited', false));\n      },\n\n      // TODO [A-12940] Refaktor!!\n      openRelationsModal() {\n        const transports = this.get('relationsTrackerService.currentTransports');\n        const allRelations = this.get('availableRelations');\n        const firstTransport = this.get('relationsTrackerService.currentTransports.firstObject');\n        const firstTransportType = firstTransport.get('transportType');\n        const firstTypeTransports = transports.filter(transport => {\n          return transport.get('transportType.id') === firstTransportType.get('id');\n        });\n        const secondTypeTransports = transports.filter(transport => {\n          return transport.get('transportType.id') !== firstTransportType.get('id');\n        });\n        const currentPossibleRelations = Ember.A([]);\n        const chosenTransportsAreTheSameTransportTypes = !secondTypeTransports || secondTypeTransports.length < 1; // Ustalamy dostepne relacje\n\n        if (chosenTransportsAreTheSameTransportTypes) {\n          const allTransports = firstTypeTransports.concat(secondTypeTransports);\n          allRelations.forEach(relation => {\n            if (!(relation.get('primaryTransportType.id') === firstTransportType.get('id') && relation.get('subordinateTransportType.id') === firstTransportType.get('id'))) {\n              // Wszystkie transporty mają ten sam typ, wiec relacje musza miec te same typy w obu parametrach\n              return;\n            } // TODO walidacja na istnienie super typu transportu\n\n\n            if (relation.get('alias') === 'TRANSPORT_COMBINING') {\n              if (relation.get('requiresTheSameWarehouseInTheSameStepType')) {\n                const loadWhId = allTransports.get('firstObject.loadWarehouses.firstObject.id');\n                const unloadWhId = allTransports.get('firstObject.unloadWarehouses.firstObject.id');\n                const isTheSameWarehouseInTheSameStepType = allTransports.every(transport => {\n                  const loadWhs = transport.get('loadWarehouses');\n                  const unloadWhs = transport.get('unloadWarehouses');\n                  return loadWhs.some(lwh => lwh.get('id') === loadWhId) || unloadWhs.some(uwh => uwh.get('id') === unloadWhId);\n                });\n\n                if (!isTheSameWarehouseInTheSameStepType) {\n                  return;\n                }\n              }\n            }\n\n            const possibleRelation = {\n              masters: [allTransports.shift()],\n              slaves: allTransports,\n              type: relation.get('alias'),\n              relation\n            };\n            currentPossibleRelations.pushObject(possibleRelation);\n          });\n        } else {\n          // Różne typy transportów, mamy je podzielone na 2 grupy i sprawdzamy, czy są dostępne jakieś relacje w każdej konfiguracji\n          allRelations.forEach(relation => {\n            let masters = Ember.A([]);\n            let slaves = Ember.A([]);\n\n            if (firstTypeTransports.every(t => {\n              return relation.get('primaryTransportType.id') === t.get('transportType.id');\n            }) && secondTypeTransports.every(t => {\n              return relation.get('subordinateTransportType.id') === t.get('transportType.id');\n            })) {\n              masters = firstTypeTransports;\n              slaves = secondTypeTransports;\n            } else if (secondTypeTransports.every(t => {\n              return relation.get('primaryTransportType.id') === t.get('transportType.id');\n            }) && firstTypeTransports.every(t => {\n              return relation.get('subordinateTransportType.id') === t.get('transportType.id');\n            })) {\n              slaves = firstTypeTransports;\n              masters = secondTypeTransports;\n            } else {\n              return;\n            }\n\n            if (relation.get('alias') === 'TRANSPORT_COMBINING') {\n              if (relation.get('requiresTheSameWarehouseInTheSameStepType')) {\n                if (!masters.every(master => {\n                  const masterLoadWhIds = master.get('loadWarehouses').map(wh => wh.get('id'));\n                  const masterUnloadWhIds = master.get('unloadWarehouses').map(wh => wh.get('id'));\n                  return slaves.every(slave => {\n                    const slaveLoadWhIds = slave.get('loadWarehouses').map(wh => wh.get('id'));\n                    const slaveUnloadWhIds = slave.get('unloadWarehouses').map(wh => wh.get('id'));\n                    return slaveLoadWhIds.some(swh => masterLoadWhIds.includes(swh)) || slaveUnloadWhIds.some(swh => masterUnloadWhIds.includes(swh));\n                  });\n                })) {\n                  return;\n                }\n              }\n            }\n\n            if (relation.get('alias') === 'HAS_TO_WAIT_FOR') {\n              if (relation.get('requiresTheSameWarehouseInDifferentStepType')) {\n                if (!masters.every(master => {\n                  const masterLoadWhIds = master.get('loadWarehouses').map(wh => wh.get('id'));\n                  const masterUnloadWhIds = master.get('unloadWarehouses').map(wh => wh.get('id'));\n                  return slaves.every(slave => {\n                    const slaveLoadWhIds = slave.get('loadWarehouses').map(wh => wh.get('id'));\n                    const slaveUnloadWhIds = slave.get('unloadWarehouses').map(wh => wh.get('id'));\n                    return slaveLoadWhIds.some(swh => masterUnloadWhIds.includes(swh)) || slaveUnloadWhIds.some(swh => masterLoadWhIds.includes(swh));\n                  });\n                })) {\n                  return;\n                }\n              }\n            }\n\n            const possibleRelation = {\n              masters,\n              slaves,\n              type: relation.get('alias'),\n              relation\n            };\n            currentPossibleRelations.pushObject(possibleRelation);\n          });\n        }\n\n        if (!currentPossibleRelations) {\n          return;\n        }\n\n        if (currentPossibleRelations.length === 1 && this.get('sessionAccount').getSettingValue('SHOW_TRANSPORT_COMBINING_MODAL_ON_SINGLE_OPTION') !== 'true') {\n          console.debug('Jest tylko jedna możliwość łączenia oraz ' + 'SHOW_TRANSPORT_COMBINING_MODAL_ON_SINGLE_OPTION jest false, ' + 'nie otwieramy modalu łączenia transportów');\n          this.get('relationsCombiner').combine(currentPossibleRelations.get('firstObject'));\n          return;\n        }\n\n        const model = {\n          currentPossibleRelations\n        };\n        console.debug('Otwieramy modal łączenia transportów');\n        this.send('showModal', 'transports.modals.transport-relations', model);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"apollo/mixins/menu-mixin\"], function (_exports, _authenticatedRouteMixin, _menuMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _menuMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: Ember.A(['ROLE_TRANSPORT_TABLE']),\n    queryParams: Object.freeze({\n      query: {\n        refreshModel: true\n      },\n      start: {\n        refreshModel: true\n      },\n      stop: {\n        refreshModel: true\n      },\n      page: {\n        refreshModel: true\n      },\n      max: {\n        refreshModel: true\n      }\n    }),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n\n      const userTransportTypes = this.get('sessionAccount.currentUser.transportTypes');\n      const enteredTypeName = transition.params['transports.index'].type;\n\n      if (enteredTypeName !== 'ALL' && !userTransportTypes.getEach('alias').includes(enteredTypeName)) {\n        console.error(`User entered ${enteredTypeName} in params, but doesn't have access to it (or the type doesn't exist).`);\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    // eslint-disable-next-method ember/no-controller-access-in-routes\n    model: function (params) {\n      const transportTypeMode = params.type; // eslint-disable-next-line ember/no-controller-access-in-routes\n\n      const previousTypeName = this.controller ? this.controller.model.transportTypeMode : null; // if the controller has content already, just return that\n      // eslint-disable-next-line ember/no-controller-access-in-routes\n\n      if (this.controller && !this.controller.archive && this.controller.get('content') && transportTypeMode === previousTypeName) {\n        // eslint-disable-next-line ember/no-controller-access-in-routes\n        return this.controller.get('content');\n      }\n\n      return Ember.RSVP.hash({\n        availableTransportTypes: this.get('store').peekAll('transportType').filter(transportType => {\n          return transportType.canBeSeenByRoleGroup;\n        }),\n        transportTypeMode\n      });\n    },\n    setupController: function (controller, model) {\n      model.availableTransportTypes.some(function (tt) {\n        return tt.get('enableTransportTableDaysLimit');\n      });\n      const daysLimitSettingEnabled = model.transportTypeMode === 'ALL' ? model.availableTransportTypes.some(function (tt) {\n        return tt.get('enableTransportTableDaysLimit');\n      }) : model.availableTransportTypes.find(function (tt) {\n        return tt.get('alias') === model.transportTypeMode;\n      }).enableTransportTableDaysLimit;\n      const availableRelations = this.get('store').peekAll('transportRelation');\n      controller.setProperties({\n        model,\n        archive: false,\n        daysLimitSettingEnabled,\n        daysLimitEnabled: daysLimitSettingEnabled,\n        availableRelations,\n        page: controller.page,\n        max: controller.max\n      });\n    },\n\n    activate() {\n      this.activateCurrentTab('TRANSPORT_TAB');\n    },\n\n    actions: {\n      refreshRoute: function () {\n        this.refresh();\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"qpqWYNf+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"transportType\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container-fluid\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[21,\\\"transports/transports-table/add-relations-button\\\"],false],[0,\\\"\\\\n    \\\"],[1,[21,\\\"transports/transports-table/multi-archive-button\\\"],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"transport-table-nav\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"availableTransportTypes\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"transports/choose-type\\\",null,[[\\\"archive\\\",\\\"transportTypes\\\",\\\"transportTypeMode\\\",\\\"query\\\"],[false,[23,[\\\"availableTransportTypes\\\"]],[23,[\\\"transportTypeMode\\\"]],[23,[\\\"query\\\"]]]]],false],[0,\\\"\\\\n\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"         \\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"transports/search-transports\\\",null,[[\\\"archive\\\",\\\"query\\\",\\\"searchParams\\\",\\\"daysLimitSettingEnabled\\\",\\\"transportTypeMode\\\"],[false,[23,[\\\"query\\\"]],[23,[\\\"searchParams\\\"]],[23,[\\\"daysLimitSettingEnabled\\\"]],[23,[\\\"transportTypeMode\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"clearfix\\\"],[9],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"transport-tables-container\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transportTypesReadyToLoad\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"transports/transports-table\\\",null,[[\\\"transportType\\\",\\\"max\\\",\\\"archive\\\",\\\"searchParams\\\",\\\"availableRelations\\\",\\\"transportTypeMode\\\",\\\"canCombineTransports\\\",\\\"goToWarehouse\\\",\\\"openCreateAdviceModal\\\",\\\"daysLimitSettingEnabled\\\",\\\"confirm\\\",\\\"revoke\\\",\\\"reject\\\"],[[22,1,[]],[23,[\\\"max\\\"]],[23,[\\\"archive\\\"]],[23,[\\\"searchParams\\\"]],[23,[\\\"availableRelations\\\"]],[23,[\\\"transportTypeMode\\\"]],[23,[\\\"canCombineTransports\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"goToWarehouse\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"openCreateAdviceModal\\\"],null],[23,[\\\"daysLimitSettingEnabled\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"confirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"revoke\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"reject\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n    \\\"],[1,[27,\\\"outlet\\\",[\\\"modal\\\"],null],false],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transports/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/modals/create-similar-multiple/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    DEFAULT_MAXIMUM_NUMBER_OF_ORDERS_TO_COPY: '30',\n    saving: Ember.computed('model.saving', function () {\n      return this.get('model.saving');\n    }),\n    title: Ember.computed('', function () {\n      return this.get('intl').t('transport.createSimilarMultiple');\n    }),\n    actions: {\n      createCopies: async function () {\n        const maxValue = this.get('sessionAccount').getSettingValue('MAXIMUM_NUMBER_OF_ORDERS_TO_COPY') ? this.get('sessionAccount').getSettingValue('MAXIMUM_NUMBER_OF_ORDERS_TO_COPY') : this.get('DEFAULT_MAXIMUM_NUMBER_OF_ORDERS_TO_COPY');\n        const transport = this.get('model.transport');\n        const count = this.get('model.count');\n\n        if (count === '' || Number(count) > Number(maxValue)) {\n          const msg = this.get('intl').t('transport.tooManyCopies', {\n            maxValue\n          });\n          this.set('errors', [msg]);\n          return;\n        } else {\n          this.set('errors', []);\n        }\n\n        const params = JSON.stringify({\n          count,\n          id: transport.get('id')\n        });\n        this.set('model.saving', true);\n        const path = this.get('apolloApiService').APOLLO_API.TRANSPORTS.CREATE_MULTIPLE_COPIES;\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, null, {\n            body: params\n          });\n\n          if (response.ok) {\n            this.set('model.saving', false);\n            this.send('hideModal');\n          } else {\n            const error = await response.json();\n            this.set('model.saving', false);\n            this.set('errors', error.errors);\n          }\n        } catch (error) {\n          this.set('model.saving', false);\n          this.set('errors', [this.get('intl').t('common.defaultError')]);\n          console.error(error);\n        }\n      },\n      close: function () {\n        this.send('hideModal');\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/modals/create-similar-multiple/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"lC6x8lor\",\n    \"block\": \"{\\\"symbols\\\":[\\\"error\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"cancel\\\"],[[23,[\\\"title\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"close\\\"],null]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.createSimilarMultiple\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"create-similar-multiple-count\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-6 form-group-padding\\\\n                                \\\",[27,\\\"if\\\",[[23,[\\\"errors\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"min\\\",\\\"max\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",\\\"number\\\",\\\"1\\\",\\\"100\\\",[23,[\\\"model\\\",\\\"count\\\"]],[27,\\\"t\\\",[\\\"transport.createSimilarMultiplePlaceholder\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"saving\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"t\\\",[\\\"transport.createSimilarMultipleInProgress\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"button\\\"],[12,\\\"data-loading-text\\\",[28,[[27,\\\"t\\\",[\\\"common.pleaseWait\\\"],null]]]],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"create-similar-multiple-createCopies\\\"],[12,\\\"disabled\\\",[21,\\\"saving\\\"]],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"createCopies\\\"]],[10],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"create-similar-multiple-close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.close\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transports/modals/create-similar-multiple/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/modals/create-transport/controller\", [\"exports\", \"apollo/config/environment\", \"apollo/mixins/attachment-mixin\", \"apollo/mixins/advice-utils-mixin\", \"apollo/mixins/form-utils-mixin\", \"apollo/mixins/transports-mixin\", \"apollo/mixins/transport-form-mixin\", \"apollo/mixins/persistence-mixin\", \"apollo/mixins/checkpoint-mixin\", \"jquery\", \"apollo/utils/parsers/numberParsers\"], function (_exports, _environment, _attachmentMixin, _adviceUtilsMixin, _formUtilsMixin, _transportsMixin, _transportFormMixin, _persistenceMixin, _checkpointMixin, _jquery, _numberParsers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_attachmentMixin.default, _adviceUtilsMixin.default, _checkpointMixin.default, _formUtilsMixin.default, _transportsMixin.default, _transportFormMixin.default, _persistenceMixin.default, {\n    // eslint-disable-next-line ember/no-observers\n    resetProperties: Ember.observer('model.modelOpenTime', function () {\n      console.debug(`Resetujemy ustawienia transportu ${this.get('model.id') ? this.get('model.logString') : '(niezapisanego)'} po otwarciu/zamknięciu okienka z formularzem...`);\n      const transport = this.get('model');\n\n      if (transport && transport.set) {\n        transport.set('hasCustomFieldsInitialized', false);\n      }\n    }),\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    transportCopyService: Ember.inject.service('transport-copy-service'),\n    dateUtils: Ember.inject.service('date-utils'),\n    // TODO: Zastąpić przez apolloApiService\n    ajaxService: Ember.inject.service('ajax-service'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    errorService: Ember.inject.service('error-service'),\n    languageService: Ember.inject.service('language-service'),\n    deliveryService: Ember.inject.service('delivery-service'),\n    modalService: Ember.inject.service('modal-service'),\n    transportTypeSettingService: Ember.inject.service('transport-type-settings-service'),\n    store: Ember.inject.service(),\n    addressUnloadTimeService: Ember.inject.service('address-unload-time-service'),\n    actionProgressToast: Ember.inject.service('action-progress-service'),\n    transportService: Ember.inject.service('transport-service'),\n    surchargeValueService: Ember.inject.service('surcharge-value-service'),\n    scheduleController: Ember.inject.controller('warehouses/schedule'),\n    transportController: Ember.inject.controller('transports/index'),\n    routeTransportMapperService: Ember.inject.service(),\n    emberDataRecordManager: Ember.inject.service('ember-data.record-manager'),\n    truckTypeService: Ember.inject.service('truck-type-service'),\n    init: async function () {\n      this._super(...arguments);\n\n      if (this.get('transport.carrierCompanyChooser')) {\n        await this.get('transport.carrierCompanyChooser.company');\n      }\n\n      Ember.run.schedule('afterRender', this, function () {\n        this.send('resizeTextArea');\n      });\n    },\n    errors: Ember.A(),\n    excludedLogNames: Ember.A(['transportId', 'stepId']),\n    attachments: Ember.A(),\n    existingFilesToRemove: Ember.A(),\n    showSearchSpotsButton: false,\n    showRouteTemplateSelect: Ember.computed('transportType.priceListSetting.showRouteTemplate', function () {\n      return this.get('transportType.priceListSetting.showRouteTemplate');\n    }),\n    truckTypes: Ember.computed('transport.{id,truckTypes.@each.[]}', function () {\n      return this.get('transport.truckTypes');\n    }),\n    canDetachDeliveries: Ember.computed('transport.deliveries.length', function () {\n      const canDetachDelivery = this.get('transport').actionCanBePerformed('ROLE_DETACH_DELIVERY');\n      return (this.get('transport.deliveries.length') || 0) > 0 && canDetachDelivery;\n    }),\n    canAddDeliveryInTransport: Ember.computed('model.id', function () {\n      if (!this.get('transport')) {\n        return false;\n      }\n\n      return this.get('transport').actionCanBePerformed('ROLE_ADD_DELIVERY_IN_TRANSPORT') && this.get('model.id');\n    }),\n    packageTypes: Ember.computed(function () {\n      return this.get('store').peekAll('packageType');\n    }),\n    showExpandedIndexSection: Ember.computed(function () {\n      return this.get('asPlainTemplate') && this.get('transport.indexes.length') > 0;\n    }),\n    showExpandedCourierPackageSection: Ember.computed(function () {\n      return this.get('asPlainTemplate') && this.get('transport.courier-packages.length') > 0;\n    }),\n    columnsInIndexSection: Ember.computed('showCarriersTable', function () {\n      return ['index', 'shortName', 'globalNumber', 'localNumber', 'documentNumber', 'transportNumber', 'quantities', 'company', 'productName', 'indexName', 'notes', 'editionOrDeletion'];\n    }),\n    canCreateSimilar: Ember.computed('model.id', function () {\n      if (!this.get('transport')) {\n        return false;\n      }\n\n      return this.get('transport').actionCanBePerformed('ROLE_CREATE_SIMILAR') && this.get('model.id');\n    }),\n    canGenerateLOPReport: Ember.computed('transport.id', function () {\n      return this.get('transport.id') && this.get('sessionAccount').hasRole('ROLE_CAN_GENERATE_LIST_OF_POINTS_REPORT');\n    }),\n    canRestoreOrderFromArchive: Ember.computed('transport.{archived,completed,deleted}', function () {\n      return this.get('transport.archived') && !this.get('transport.completed') && !this.get('transport.deleted') && this.get('sessionAccount').hasRole('ROLE_RESTORE_ORDER_FROM_ARCHIVE') && !this.restoreFromArchiveTimePassed();\n    }),\n    restoreFromArchiveTimePassed: function () {\n      const interval = this.get('sessionAccount').getSettingValue('TIME_TO_RESTORE_ORDER_FROM_ARCHIVE');\n\n      if (!interval) {\n        return false;\n      }\n\n      const archiveDate = this.get('transport.dateOfArchiving');\n      const deadline = this.get('dateUtils').calculateDateFromInterval(new Date(archiveDate), interval);\n      return moment().isAfter(moment(deadline));\n    },\n    principalCompanyId: Ember.computed('', function () {\n      return localStorage.getItem('principalId');\n    }),\n    browserOld: Ember.computed('', function () {\n      return (0, _jquery.default)('html').is('.old');\n    }),\n    dateOfAdvice: Ember.computed('transport.transportType.numberOfDaysAddedToFirstStep', function () {\n      const numberOfDaysAddedToFirstStep = this.get('transport.transportType.numberOfDaysAddedToFirstStep');\n      const numberOfDaysForFirstStep = numberOfDaysAddedToFirstStep || 0;\n      return moment().startOf('day').add(numberOfDaysForFirstStep, 'day').format('YYYY-MM-DD');\n    }),\n    transport: Ember.computed('model', function () {\n      return this.get('model');\n    }),\n    firstStepWithWarehouse: Ember.computed('transport.stepsWithWarehouse.firstObject', function () {\n      return this.get('transport.stepsWithWarehouse.firstObject');\n    }),\n    warehouseLocationDropdownHidden: Ember.computed('firstStepWithWarehouse.warehouseLocations.length', function () {\n      const role = this.get('sessionAccount').hasRole('ROLE_CAN_CHOOSE_MORE_THAN_ONE_LOCATION');\n\n      if (role) {\n        return false;\n      }\n\n      return this.get('firstStepWithWarehouse.warehouseLocations.length') >= 1;\n    }),\n    shouldSelectWindow: Ember.computed('transport.{id,steps.[]}', 'transportType.requiresTimeWindow', function () {\n      if (!this.get('transport.id')) {\n        const windowAlreadySelected = this.get('transport.stepsWithWindow.length') ? this.get('transport.stepsWithWindow').every(step => !!step.get('timeWindow')) : false;\n\n        if (windowAlreadySelected) {\n          return false;\n        }\n\n        return this.get('transportType.requiresTimeWindow');\n      }\n\n      const newStepsArr = this.get('transport.steps').filter(step => {\n        return !step.get('id') && step.get('ownedByPrincipal');\n      }); // Klawisz `Dalej` pokazujemy tylko gdy transport posiada już okno czasowe i dodamy nowy etap w magazynie\n\n      return newStepsArr.get('length') > 0 && this.get('transport.advice');\n    }),\n    shouldChangeStepWindow: Ember.computed('transport.stepsWithWarehouse.[]', function () {\n      return this.get('transport.stepsWithWarehouse').some(step => step.get('didWarehouseChange'));\n    }),\n    warehouse: Ember.computed('transport.warehouse', function () {\n      return this.get('transport.warehouse');\n    }),\n    transportType: Ember.computed('transport.transportType', function () {\n      return this.get('transport.transportType');\n    }),\n    transportOrMasterTransport: Ember.computed('transport.{advice,transport.masterTransports.firstObject.advice.[]}', function () {\n      if (this.get('transport.masterTransports.firstObject.advice.id')) {\n        return this.get('transport.masterTransports.firstObject');\n      }\n\n      return this.get('transport');\n    }),\n    showAdviceSectionAsPanel: Ember.computed('transport.advice.id', 'transportType.{adviceSavedWithTransport,requiresTimeWindow}', function () {\n      if (this.get('transport.masterTransports.firstObject.advice.id')) {\n        return true;\n      }\n\n      if (this.get('transportType.adviceSavedWithTransport')) {\n        return false;\n      }\n\n      return this.get('transport.advice.id') || this.get('transportType.requiresTimeWindow') && !this.get('transportType.adviceSeparatedFromWindow');\n    }),\n    showWeightSection: Ember.computed('transport.{id,enabledWeights,transportType.authorityRestrictions.@each.authorityRange}', function () {\n      return this.get('transport').actionCanBePerformed('ROLE_ACCESS_WEIGHT_SECTION') && this.get('transport.enabledWeights').length > 0;\n    }),\n    showDiscrepancyReportSection: Ember.computed('transportType.hasDiscrepancyReportEnabled', 'transport.id', function () {\n      return this.get('transport.id') && this.get('transportType.hasDiscrepancyReportEnabled');\n    }),\n    showInspectionSection: Ember.computed('', function () {\n      return this.get('transport').actionCanBePerformed('ROLE_ACCESS_TO_INSPECTION_PANEL');\n    }),\n    showWarehouseSection: Ember.computed('transportType.{hasVisibleSteps,requiresWarehouse,requiresTimeWindow}', function () {\n      if (this.get('transportType.requiresWarehouse')) {\n        return true;\n      }\n\n      return this.get('transportType.requiresTimeWindow') && !this.get('transportType.hasVisibleSteps');\n    }),\n    showCarrierSection: Ember.computed('transport.transportType', function () {\n      if (!this.get('transport')) {\n        return false;\n      }\n\n      return this.get('transport').actionCanBePerformed('ACCESS_CARRIER_COMPANY_FIELD');\n    }),\n    showCarrierChooserSection: Ember.computed('transport.carrierCompany.{id,company.id}', function () {\n      if (!this.get('sessionAccount.currentCompany.isPrincipal')) {\n        return false;\n      }\n\n      return this.get('transport.carrierCompany.id') && this.get('transport.carrierCompanyChooser.company.id') !== this.get('principalCompanyId');\n    }),\n    showServiceSection: Ember.computed('transport.transportType', function () {\n      if (!this.get('transportType.allowsService')) {\n        return false;\n      }\n\n      return this.get('transport').actionCanBePerformed('ACCESS_SERVICE_COMPANY_FIELD');\n    }),\n    showWorkerSection: Ember.computed('transport.serviceCompany', function () {\n      const transport = this.get('transport');\n      return !!this.get('transport').get('serviceCompany.id') && transport.actionCanBePerformed('ROLE_ACCESS_WORKER_FIELD');\n    }),\n    indexSetting: Ember.computed('transport.transportType.indexSetting', function () {\n      return this.get('transport.transportType.indexSetting');\n    }),\n    shouldShowIndexesSection: Ember.computed('transport.transportType', function () {\n      if (!this.get('transport')) {\n        return false;\n      }\n\n      const transport = this.get('transport').actionCanBePerformed ? this.get('transport') : this.get('transport.content');\n      return transport.actionCanBePerformed('ACCESS_INDEX');\n    }),\n    shouldShowTransportPackagesSection: Ember.computed('transport.transportType', function () {\n      if (!this.get('transport')) {\n        return false;\n      }\n\n      const transport = this.get('transport');\n      return transport.actionCanBePerformed('ACCESS_PACKAGES') && transport.get('transportType.transportPackagesEnabled');\n    }),\n    shouldShowCourierPackagesSection: Ember.computed('transport.transportType', function () {\n      if (!this.get('transport')) {\n        return false;\n      }\n\n      const transport = this.get('transport').actionCanBePerformed ? this.get('transport') : this.get('transport.content');\n      return transport.actionCanBePerformed('ACCESS_PACKAGES') && transport.get('transportType.courierPackagesEnabled');\n    }),\n    shouldDisabledAdditionalDescription: Ember.computed('transport', function () {\n      return this.get('transport') && !this.get('transport').actionCanBePerformed('ROLE_EDIT_TRANSPORT_ADDITIONAL_DESCRIPTION');\n    }),\n    shouldDisabledDescription: Ember.computed('transport.transportType', 'asPlainTemplate', function () {\n      if (this.get('asPlainTemplate') || !this.get('transport')) {\n        return true;\n      }\n\n      return !this.get('transport').actionCanBePerformed('EDIT_DESCRIPTION_FIELD');\n    }),\n    showDescriptionField: Ember.computed('transport.transportType', 'asPlainTemplate', function () {\n      if (!this.get('transport')) {\n        return false;\n      }\n\n      return this.get('transport').actionCanBePerformed('ACCESS_DESCRIPTION_FIELD');\n    }),\n    showAdditionalDescriptionField: Ember.computed('transport', function () {\n      return this.get('transport') && this.get('transport').actionCanBePerformed('ROLE_ACCESS_TRANSPORT_ADDITIONAL_DESCRIPTION');\n    }),\n    additionalDescriptionValue: Ember.computed('transport.{additionalDescription,transportType.defaultTextForTransportAdditionalDescription}', {\n      get() {\n        if (this.get('transport.additionalDescription')) {\n          return this.get('transport.additionalDescription');\n        }\n\n        if (this.get('transport.transportType.defaultTextForTransportAdditionalDescription')) {\n          return this.get('transport.transportType.defaultTextForTransportAdditionalDescription');\n        }\n\n        return '';\n      },\n\n      set(key, value) {\n        this.set('transport.additionalDescription', value);\n        return value;\n      }\n\n    }),\n\n    /**\n     * Sekcję kontrahenta trzeba pokazać, jeśli transport go wymaga, ale w formularzu nie są widoczne stepy,\n     * albo są widoczne tylko stepy związane z magazynem.\n     */\n    showContractorSection: Ember.computed('transportType.{hasVisibleSteps,requiresContractor,requiresTimeWindow}', 'transport.contractorSteps.length', function () {\n      if (!this.get('transportType.allowsContractor')) {\n        return false;\n      }\n\n      const hasVisibleContractorSteps = this.get('transport.contractorSteps.length') > 0;\n      const hasVisibleSteps = hasVisibleContractorSteps && this.get('transportType.hasVisibleSteps');\n\n      if (this.get('transportType.requiresContractor') && !hasVisibleSteps) {\n        return true;\n      }\n\n      if (this.get('transportType.requiresTimeWindow') && !hasVisibleSteps) {\n        return true;\n      }\n\n      return !hasVisibleSteps;\n    }),\n    shouldShowSurchargesSection: Ember.computed('transport.transportType', function () {\n      return this.get('transport').actionCanBePerformed('ROLE_CAN_ACCESS_SURCHARGES_SECTION');\n    }),\n    shouldShowCouriersSection: Ember.computed('transport.transportType', function () {\n      return this.get('transport').actionCanBePerformed('ROLE_CAN_ACCESS_COURIERS_SECTION');\n    }),\n    shouldShowCourierInvoiceSection: Ember.computed('transport.transportType', function () {\n      return this.get('transport').actionCanBePerformed('ROLE_CAN_ACCESS_COURIERS_SECTION');\n    }),\n    showErpIdentifier: Ember.computed('transportType.{requiresErpIdentifier,allowsErpIdentifier}', function () {\n      return this.get('transportType.requiresErpIdentifier') || this.get('transportType.allowsErpIdentifier');\n    }),\n    showAltIdentifier: Ember.computed('transportType.{allowsAltIdentifier,requiresAltIdentifier}', function () {\n      return this.get('transportType.allowsAltIdentifier') || this.get('transportType.requiresAltIdentifier');\n    }),\n    disabledAltIdentifier: Ember.computed('transport.canBeUpdated', 'transportType.altIdentifierIsCreatedAutomatically', function () {\n      return !this.get('transport.canBeUpdated') || this.get('transportType.altIdentifierIsCreatedAutomatically');\n    }),\n    showPrintIcon: Ember.computed('transport.id', function () {\n      return this.get('sessionAccount').getSettingValue('ORDER_FORM_PRINTING_ENABLED') === 'true' && this.get('transport.id');\n    }),\n    showDocumentSection: Ember.computed('', function () {\n      return this.get('sessionAccount').getSettingValue('DOCUMENT_SECTION_VISIBLE_IN_TRANSPORT_FORM') === 'true';\n    }),\n    showAdditionalAddFileButton: Ember.computed('', function () {\n      return this.get('showDocumentSection') && this.get('sessionAccount').getSettingValue('ADDITIONAL_ADD_FILE_BUTTON') === 'true';\n    }),\n    warehouseLabel: Ember.computed('', function () {\n      const settingName = this.get('languageService').findProperLanguageVersion('WAREHOUSE_LABEL', 'WAREHOUSE_LABEL_EN');\n      const setting = this.get('sessionAccount').getSettingValue(settingName);\n      return setting || this.get('intl').t('transport.warehouse');\n    }).readOnly(),\n    assortmentGroupLabel: Ember.computed('', function () {\n      this.get('languageService').findProperLanguageVersion('name', 'englishName');\n      const key = this.get('languageService').findProperLanguageVersion('ASSORTMENT_GROUP_LABEL', 'ASSORTMENT_GROUP_LABEL_EN');\n      return this.get('sessionAccount').getSettingValue(key);\n    }),\n    assortmentGroups: Ember.computed('transportType', 'transport.warehouse.id', function () {\n      const self = this;\n      return this.get('store').peekAll('assortmentGroup').filter(ag => {\n        return ag.get('transportTypeIds').includes(self.get('transportType.id')) && ag.get('warehouse.id') === self.get('transport.warehouse.id') && ag.get('enabled') === true;\n      });\n    }),\n    showAssortmentGroupSection: Ember.computed('assortmentGroups.[]', function () {\n      return this.get('assortmentGroups.length') > 0 && this.get('transport.warehouse.id');\n    }),\n    hideSaveTransportButton: true,\n    // eslint-disable-next-line ember/no-observers\n    setHideSaveTransportButton: Ember.observer('model', function () {\n      if (this.get('canNotEditBecauseOfOtherContractors')) {\n        this.set('hideSaveTransportButton', true);\n        return;\n      }\n\n      this.set('hideSaveTransportButton', false);\n    }),\n    // eslint-disable-next-line ember/no-observers\n    setRequiresAcceptanceOfTermsOfCondition: Ember.observer('model.advice', function () {\n      if (!this.get('model.advice.content')) {\n        return;\n      }\n\n      const s = this.get('sessionAccount').getSettingValue('SHOW_TERMS_OF_CONDITIONS_ACCEPTED');\n      this.get('model.advice').set('requiresAcceptanceOfTermsOfCondition', s === 'true');\n    }),\n    // eslint-disable-next-line ember/no-observers\n    scheduleOpenPanelsAssociatedWithCustomFields: Ember.observer('model.customFields.@each.isAssociatedWithPanel', function () {\n      Ember.run.once(this, 'openPanelsAssociatedWithCustomFields');\n    }),\n\n    openPanelsAssociatedWithCustomFields() {\n      if (!this.get('model')) {\n        return;\n      }\n\n      const self = this;\n      this.get('model.customFields').filterBy('isAssociatedWithPanel').forEach(cf => {\n        const transportPanelClass = cf.get('definition.TRANSPORT_PANEL_CLASS')[cf.get('option.transportPanel')];\n        self.openPanel(transportPanelClass);\n      });\n    },\n\n    canNotEditAfterProcessStarts: Ember.computed('model.{id,canBeUpdated}', 'hideSaveTransportButton', 'canNotEditBecauseOfOtherContractors', function () {\n      return this.get('hideSaveTransportButton') || this.get('canNotEditBecauseOfOtherContractors') || this.get('model.id') && !this.get('model').get('canBeUpdated');\n    }),\n    canNotEditBecauseOfOtherContractors: Ember.computed('model.contractors.length', function () {\n      const partnershipName = this.get('sessionAccount.currentUser.company.partnershipWithPrincipal.partnershipType.name');\n      const isCurrentUserContractor = partnershipName === 'SUPPLIER' || partnershipName === 'OPERATOR';\n\n      if (!isCurrentUserContractor) {\n        return false;\n      }\n\n      return this.get('model.contractors.length') > 1;\n    }),\n    principalCompany: Ember.computed('', function () {\n      return this.store.peekRecord('company', localStorage.getItem('principalId'));\n    }),\n    // eslint-disable-next-line ember/no-observers\n    carrierChanged: Ember.observer('transport.carrierCompany.id', function () {\n      const advice = this.get('transport.advice');\n\n      if (advice === undefined || advice.get('content') === null || advice.get('id') || !this.get('transport.carrierCompany.id')) {\n        return;\n      }\n\n      advice.setProperties({\n        driverLanguage: null,\n        driverName: null,\n        driverMobilePhoneNumber: null,\n        driverMobilePhonePrefix: '48',\n        carRegistrationNumber: null,\n        trailerRegistrationNumber: null,\n        documentNumber: null,\n        documentType: 'ID_CARD',\n        termsOfConditionsAccepted: false\n      });\n    }),\n    logsProxy: Ember.computed('transport.{notificationLogs.[],transportLogs.[]}', function () {\n      const logs = Ember.A();\n      this.get('transport.transportLogs').forEach(tL => logs.pushObject(tL));\n      this.get('transport.notificationLogs').forEach(nL => logs.pushObject(nL));\n      this.get('transport.weightLogs').forEach(wL => logs.pushObject(wL));\n      return logs.filter(log => !this.get('excludedLogNames').includes(log.get('propertyName')));\n    }),\n    integrationLogsProxy: Ember.computed('transport.apiIntegrationLogs.[]', function () {\n      const logs = Ember.A();\n      this.get('transport.apiIntegrationLogs').forEach(log => logs.pushObject(log));\n      return logs;\n    }),\n    artrLogsProxy: Ember.computed('transport.artrApiLogs.[]', function () {\n      const logs = Ember.A();\n      this.get('transport.artrApiLogs').forEach(log => {\n        logs.pushObject(log);\n      });\n      return logs;\n    }),\n    saveAndCloseButtonLabel: Ember.computed('transport.transportType.weighingOnSave', function () {\n      return this.get('transport.transportType.weighingOnSave') && !this.get('transport.id') ? this.get('intl').t('common.weightAndSave') : this.get('intl').t('common.saveAndClose');\n    }),\n    saveButtonLabel: Ember.computed('transport.transportType.weighingOnSave', function () {\n      return this.get('transport.transportType.weighingOnSave') && !this.get('transport.id') ? this.get('intl').t('common.weightAndSave') : this.get('intl').t('common.save');\n    }),\n    showAdditionalInformation: Ember.computed('asPlainTemplate', 'additionalInformationInAppropriateLanguage', function () {\n      return this.get('asPlainTemplate') && this.get('additionalInformationInAppropriateLanguage');\n    }),\n    additionalInformationInAppropriateLanguage: Ember.computed('', function () {\n      const settingName = this.get('languageService').findProperLanguageVersion('ADDITIONAL_INFO_ON_PLAIN_TEMPLATE_VIEW', 'ADDITIONAL_INFO_ON_PLAIN_TEMPLATE_VIEW_EN');\n      return this.get('sessionAccount').getSettingValue(settingName);\n    }),\n    showTransactionPriceSection: Ember.computed('asPlainTemplate', 'transport.{id,transaction}', function () {\n      if (this.get('transport.id') && this.get('transport').actionCanBePerformed('ROLE_ACCESS_FREIGHT_DATA') && this.get('transport.carrierCompany.id')) {\n        return true;\n      }\n\n      return this.get('asPlainTemplate') && this.get('transport.transaction');\n    }),\n    transactionPriceLabel: Ember.computed('transport.transportType.{id,priceLabelTranslation}', function () {\n      return this.get('transportType.priceLabelTranslation');\n    }),\n    showAmountOfCover: Ember.computed('transport.transportType.isAmountOfCoverVisible', function () {\n      return this.get('transport.transportType.isAmountOfCoverVisible');\n    }),\n\n    _handleCustomFieldsDependencies(transport) {\n      const customFields = transport.get('customFields'); // Lista cfów, których widoczność zależy od innego cfa\n\n      const customFieldsWithDependencies = customFields.filterBy('definition.visibilityDependsOnDefinition.id'); // Sprawdzamy czy istnieje w transporcie cf, od którego zależy widoczność cfów z customFieldsWithDependencies\n\n      customFieldsWithDependencies.forEach(cfwd => {\n        const dependentCfIsPresent = customFields.find(cf => {\n          return cf.get('definition.id') === cfwd.get('definition.visibilityDependsOnDefinition.id') && cf.get('option.name') === cfwd.get('definition.visibilityDependsOnOption.name');\n        }); // jeśli nie znajdziemy zależnego cfa to usuwamy cfa, którego widoczność jemu podlega\n\n        if (!dependentCfIsPresent) {\n          customFields.removeObject(cfwd);\n        }\n      });\n    },\n\n    async _updateSerialTransportDates(transport) {\n      const serialTransport = await transport.get('serialTransport');\n\n      if (!serialTransport) {\n        return;\n      }\n\n      const startDate = await transport.get('firstStep.startDate');\n      const endDate = await serialTransport.get('endDate');\n\n      if (startDate && serialTransport.startDate !== startDate) {\n        serialTransport.set('startDate', startDate);\n      }\n\n      if (startDate && endDate) {\n        // When changing step startDate we want to rewrite hour to the endDate\n        const newEndDate = new Date(endDate);\n        newEndDate.setHours(startDate.getHours());\n        serialTransport.set('endDate', newEndDate);\n      }\n    },\n\n    _setGoodsValueFromCourierPackages(transport) {\n      const enabledPackages = transport.get('courierPackages').filter(cp => {\n        return cp.enabled;\n      });\n\n      if (enabledPackages && enabledPackages.length > 0) {\n        let price = 0.0;\n        enabledPackages.forEach(cp => {\n          const totalPrice = Number(cp.get('quantity')) * Number(cp.get('packageValue'));\n          price += totalPrice;\n        });\n        transport.set('goodsValue', price);\n      }\n    },\n\n    _setDefaultAdditionalDescription(transport) {\n      const defaultAdditionalDesc = transport.get('transportType.defaultTextForTransportAdditionalDescription');\n\n      if (!defaultAdditionalDesc || transport.get('additionalDescription')) {\n        return;\n      }\n\n      transport.set('additionalDescription', defaultAdditionalDesc);\n    },\n\n    _clearDuplicatedCustomFieldValues(transport) {\n      if (transport.get('customFields.length') < 1) {\n        return;\n      }\n\n      const clearedCustomFields = Ember.A([]);\n      transport.get('customFields').sortBy('lastUpdated').forEach(cf => {\n        if (clearedCustomFields.some(it => {\n          return it.get('definition.id') === cf.get('definition.id');\n        })) {\n          return;\n        }\n\n        clearedCustomFields.pushObject(cf);\n      });\n      transport.set('customFields', clearedCustomFields);\n    },\n\n    _handleAddressesFromSteps(transport) {\n      // Poniższe zostało dodane w ramach zadania A-8354.\n      // Gdy step posiada atrybut newAddressAsDefault, po otwarciu modala transportu adres nie resetuje się.\n      // Przy zapisie transportu, zmiany w jakichkolwiek polach adresu stepów, nie zapisywały się do bazy.\n      // W ten sposób wymuszamy, aby przy jakiejkolwiek zmianie, tworzyć nowy rekord adresu z odpowiednimi danymi i podstawiać w miejsce starego.\n      transport.get('steps').forEach(step => {\n        if (step.get('address').get('hasDirtyAttributes') || step.get('address').get('isDirty')) {\n          const oldAddress = step.get('address');\n          const newAddress = this.get('store').createRecord('address', {\n            country: oldAddress.get('country'),\n            company: oldAddress.get('company'),\n            recipient: oldAddress.get('recipient'),\n            city: oldAddress.get('city'),\n            postal: oldAddress.get('postal'),\n            street: oldAddress.get('street'),\n            province: oldAddress.get('province'),\n            isHeadquarters: oldAddress.get('isHeadquarters'),\n            enabled: oldAddress.get('enabled')\n          });\n          step.set('address', newAddress);\n        }\n\n        if (step.get('shouldAutoSaveCompanyGroup')) {\n          step.set('companyGroup', step.get('company.nonDefaultUserGroups').get('firstObject'));\n        }\n      });\n    },\n\n    async prepareTransportForSaving(transport) {\n      const self = this;\n      const saveTransportButton = (0, _jquery.default)('.save-transport-button');\n      saveTransportButton.button('loading');\n      transport.set('principalCompany', self.get('principalCompany'));\n      transport.set('advice', self.removeWhiteSpacesAndSetUpperCase(transport.get('advice')));\n      transport.get('customFields').filterBy('definition.isNumberType').forEach(pair => {\n        if (pair.get('value')) {\n          pair.set('value', _numberParsers.default.getParsableNumber(pair.get('value')));\n        }\n      });\n\n      self._handleAddressesFromSteps(transport);\n\n      self._setGoodsValueFromCourierPackages(transport);\n\n      await self._updateSerialTransportDates(transport);\n\n      self._handleCustomFieldsDependencies(transport);\n\n      transport.validate();\n      const transportIsValidate = await self.customValidate();\n\n      self._clearDuplicatedCustomFieldValues(transport);\n\n      self._setDefaultAdditionalDescription(transport);\n\n      if (transport.get('hasErrors') || !transportIsValidate) {\n        self.printErrors(transport);\n        self.createMissingCustomFieldValues(transport);\n        self.get('errorService').scrollToFirstError();\n        saveTransportButton.button('reset');\n        return false;\n      }\n\n      if (transport.get('id')) {\n        console.debug(`Updating transport #${transport.get('id')}..`);\n        this.set('newTransport', false);\n      } else {\n        console.debug('Saving new transport..');\n        this.set('newTransport', true);\n      }\n\n      const warehouse = transport.get('warehouse');\n      const warehouseStep = this.get('transport.warehouseStep');\n\n      if (warehouseStep && warehouse && transport.get('transportType.typeGroup') !== transport.get('transportType.TYPE_GROUPS.TRANSPORT')) {\n        warehouseStep.set('warehouse', warehouse);\n      }\n\n      if (transport.get('sureToSaveMessage')) {\n        return confirm(this.get('intl').t('transport.sureToSaveMessage'));\n      }\n\n      return true;\n    },\n\n    handleSavedTransport(transport, self, saveAndCloseModal) {\n      const transportId = transport.get('id');\n      console.log(`We successfully saved transport ${transport.get('logString')}!`);\n\n      if (self.get('newTransport') && transport.get('transportType.weighingOnSave')) {\n        transport.get('checkpoints').then(checkpoints => {\n          const weighingCheckpoints = checkpoints.filterBy('executionDate').filter(checkpoint => {\n            return checkpoint.get('task.weighingIncluded');\n          });\n\n          if (weighingCheckpoints.get('length') === 0) {\n            console.debug('Brak checkpointów do zważenia');\n          } else {\n            console.debug('Wykonujemy ważenie dla nowego transportu przy zapisie');\n            self.get('transportController').send('weigh', weighingCheckpoints.get('firstObject'));\n          }\n        });\n      }\n\n      self.existingFilesToRemove.forEach(function (fileId) {\n        console.log('self.existingFilesToRemove..');\n        self.deleteFile(fileId);\n      });\n      self.existingFilesToRemove.clear();\n      const token = self.get('sessionAccount').get('token');\n\n      if (self.attachments) {\n        self.uploadAttachment(transport.id, token);\n        self.attachments.clear();\n      }\n\n      self.handleTransportReload(transport, self.get('scheduleController'));\n      transport.get('customFields').then(customFields => {\n        customFields.forEach(cf => cf.set('changeMessage', null));\n        const customFieldsCopy = customFields.slice(0);\n        customFieldsCopy.forEach(cs => {\n          if (cs !== undefined && !cs.get('id') && !cs.get('isFilled') && cs.unloadRecord) {\n            console.debug(`Unloading redundant custom field: ${cs.get('definition.name')} for newly saved transport ${transportId}..`);\n            transport.get('customFields').removeObject(cs);\n            cs.unloadRecord();\n          }\n        });\n      });\n      transport.get('timeWindows').then(timeWindows => {\n        const timeWindowsCopy = timeWindows.slice(0);\n        timeWindowsCopy.forEach(tw => {\n          if (tw !== undefined && !tw.get('id') && tw.unloadRecord) {\n            console.debug(`Unloading redundant time window for newly saved transport ${transportId}..`);\n            transport.get('timeWindows').removeObject(tw);\n            tw.unloadRecord();\n          }\n        });\n      });\n      self.send('handleUpdatedIndexes', transport);\n      self.send('handleUpdatedCourierPackages', transport);\n\n      if (transport.get('deliveries')) {\n        transport.get('deliveries').forEach(d => {\n          self.get('deliveryService').handleUpdatedDeliveryPackaging(d);\n        });\n      }\n\n      self.transportService.handleUpdatedTransportPackages(transport);\n      self.get('transportType').set('forcedPollRequestTime', new Date().getTime());\n      transport.surchargeValues.reload();\n      self.set('errors', []);\n\n      if (saveAndCloseModal) {\n        self.send('hideModal');\n      } else if (transport.get('id')) {\n        self.refreshTransport(transport);\n      }\n\n      self.get('scheduleController').setProperties({\n        warehouseStepToHandle: null\n      });\n    },\n\n    // eslint-disable-next-line ember/no-observers\n    periodicTransportActiveObserver: Ember.observer('transport.periodicTransportActive', function () {\n      // jeśli włączamy awizacje okresową, korygujemy datę żeby była spójna z planowaną datą awizacji\n      if (this.get('transport.periodicTransportActive')) {\n        this.set('transport.periodicTransport.startDate', this.get('dateOfAdvice'));\n      }\n    }),\n\n    _generateLopReport() {\n      const transportId = this.get('transport.id');\n      const token = this.get('sessionAccount').get('token');\n      const url = _environment.default.serverURL + '/reports/' + transportId + '/generateLopReport?token=' + token;\n      return window.open(url, '_blank');\n    },\n\n    showWarehouseLocation: Ember.computed('firstStepWithWarehouse', 'transport.steps.[]', function () {\n      const stepWithWarehouse = !!this.get('transport.steps.firstObject').get('warehouse.id');\n      return this.get('transport.transportType.isWarehouseLocationVisible') && stepWithWarehouse;\n    }),\n    transportTypeHasVisibleSteps: Ember.computed('transport.transportType', function () {\n      return this.get('transportType.hasVisibleSteps');\n    }),\n    warehouseLocationLabel: Ember.computed('transport', function () {\n      return this.get('intl').t('warehouse.warehouseLocationLabel');\n    }),\n    canRemoveTransportRelation: Ember.computed('transport.{masterTransports.length,relatedToTransports.length}', function () {\n      const canRemove = this.get('transport').actionCanBePerformed('ROLE_CAN_DELETE_RELATION');\n      const isMaster = this.get('transport.relatedToTransports.length') > 0;\n      const isRelatedTo = this.get('transport.masterTransports.length') > 0;\n      return canRemove && (isRelatedTo || isMaster);\n    }),\n    warehouseLocationDisabled: Ember.computed('transport.transportType.authorityRestrictions.@each.authorityRange', function () {\n      const transport = this.get('transport');\n\n      if (transport) {\n        return !transport.actionCanBePerformed('ROLE_EDIT_WAREHOUSE_LOCATION');\n      } else return false;\n    }),\n    showLocationField: Ember.computed('transport', 'transport.transportType', 'showWarehouseSection', function () {\n      const transport = this.get('transport');\n      return transport.actionCanBePerformed('ROLE_ACCESS_TO_LOCATION');\n    }),\n    getWorkersList: Ember.computed('transport.serviceCompany', function () {\n      return this.get('transport.serviceCompany').get('workers');\n    }),\n    editWorkerField: Ember.computed('transport.serviceCompany', function () {\n      const transport = this.get('transport');\n      return !transport.actionCanBePerformed('ROLE_EDIT_WORKER_FIELD');\n    }),\n    workerFieldLabel: Ember.computed('transport.serviceCompany', function () {\n      const translationKey = this.get('transport').get('transportType.workerFieldTranslationKey');\n      return translationKey || 'WORKERS';\n    }),\n    transportSupervisorLabel: Ember.computed('transport.transportType.transportSupervisorTranslationKey', function () {\n      const translationKey = this.get('transport').get('transportType.transportSupervisorTranslationKey');\n      return translationKey || 'transportSupervisor';\n    }),\n    transportSupervisorList: Ember.computed('principalCompany', function () {\n      const currentPrincipalCompany = this.get('sessionAccount.principalCompany.id');\n      return this.get('ajaxService').send(`/users/supervisors/${currentPrincipalCompany}`, 'GET').then(({\n        transportSupervisors\n      }) => {\n        return transportSupervisors;\n      }).catch(response => {\n        console.error(response);\n        return [];\n      });\n    }),\n    addWorkerButtonLabel: Ember.computed('transport.serviceCompany', function () {\n      const translationKey = this.get('transport').get('transportType.workerFieldTranslationKey');\n\n      if (translationKey === 'GUESTS') {\n        return 'addGuest';\n      } else if (translationKey === 'SERVICEMEN') {\n        return 'addServiceman';\n      } else return 'addWorker';\n    }),\n    tasksArray: Ember.computed('model.transportType', function () {\n      return Ember.A([...this.get('model.transportType.workflow.sortedTasks')]);\n    }),\n    refreshRelatedHasToWaitTransports: function (transport) {\n      if (!transport.get('isMasterTransportInHasToWaitFor')) {\n        return;\n      }\n\n      transport.get('relatedHasToWaitForTransports').forEach(t => {\n        if (!t.get('id')) {\n          return;\n        }\n\n        t.get('transportType').set('transportsTabVisited', false);\n        t.reload();\n      });\n    },\n    showTransportSupervisorField: Ember.computed('model.transportType', 'transport', function () {\n      const transport = this.get('transport');\n      return transport.actionCanBePerformed('ROLE_CAN_ACCESS_TRANSPORT_SUPERVISOR');\n    }),\n    canNotEditTransportSupervisor: Ember.computed('model.transportType', 'transport', 'showTransportSupervisorField', function () {\n      const transport = this.get('transport');\n\n      if (transport.get('disabled')) {\n        return true;\n      }\n\n      return !transport.actionCanBePerformed('ROLE_CAN_EDIT_TRANSPORT_SUPERVISOR');\n    }),\n    // Do refaktoru. Czemu kopiujemy w ten sposób awizacje?\n    _setAdviceAndTwsFromMaster: async function (transport) {\n      const master = transport.get('masterTransports.firstObject');\n      const inHasToWaitForRelation = transport.get('hasAnyHasToWaitForRelation'); // Nie zmieniamy awizacji w relacji has to wait for, każdy transport ma swoją awizację\n\n      if (!master || inHasToWaitForRelation) {\n        return;\n      }\n\n      const masterAdviceId = await master.get('advice.id');\n      const masterAdvice = this.store.peekRecord('advice', masterAdviceId);\n      transport.set('advice', masterAdvice);\n      transport.get('advice').set('rodoAccepted', masterAdvice.get('rodoAccepted'));\n      transport.set('timeWindows', []);\n      transport.get('steps').forEach(s => {\n        s.set('timeWindow', null);\n      });\n    },\n    customValidate: async function () {\n      let validates = true;\n\n      if (!this.get('dateOfAdvice')) {\n        this.get('transport').get('errors').add('dateOfAdvice', 'blank');\n        validates = false;\n      }\n\n      if (this.get('transport.amountOfCover.amount')) {\n        validates &= this.get('transport.amountOfCover.content').validate();\n      }\n\n      if (this.get('transport.weights')) {\n        // eslint-disable-next-line no-return-assign\n        this.get('transport.weights').forEach(w => validates &= w.validate());\n      }\n\n      this.get('transport.steps').forEach(s => {\n        let errors = 0;\n        s.validate();\n        s.get('stepPackageTypes').forEach(spt => {\n          if (!spt.validate()) errors++;\n        });\n        if (errors > 0) validates = false;\n      });\n      this.get('transport.timeWindows').forEach(tw => {\n        if (tw.get('isDirty')) {\n          tw.validate();\n        }\n      });\n      this.get('transport.indexes').forEach(i => {\n        i.validate();\n        i.get('quantities').forEach(q => q.validate());\n      }); // eslint-disable-next-line no-return-assign\n\n      this.get('transport.courierPackages').filterBy('enabled').forEach(cp => validates &= cp.validate());\n      this.get('transport.customFields').forEach(f => f.validate());\n\n      if (!this.get('transport.id') && this.get('transport.periodicTransportActive')) {\n        const periodicTransport = this.get('transport.periodicTransport').validate ? this.get('transport.periodicTransport') : this.get('transport.periodicTransport.content');\n        periodicTransport.set('dateOfAdvice', this.get('dateOfAdvice'));\n        const periodicTransportValid = periodicTransport.validate();\n        validates &= periodicTransportValid;\n      }\n\n      const attachments = this.get('attachments');\n\n      if (attachments) {\n        const maxCountString = this.get('sessionAccount').getSettingValue('MAX_SIMULTANEOUSLY_ADDED_FILES_COUNT');\n        const maxCount = maxCountString ? Number(maxCountString) : null;\n\n        if (maxCount && maxCount < attachments.length) {\n          alert(this.get('intl').t('document.maxCountExceeded', {\n            maxCount\n          }));\n          validates &= false;\n        }\n      }\n\n      if (!this.get('transport.id') && this.get('transport.serialTransportActive')) {\n        const serialTransport = await this.get('transport.serialTransport');\n        const valid = serialTransport.validate();\n        validates &= valid;\n      }\n\n      return validates;\n    },\n\n    rollbackTransportChanges(transportModel) {\n      transportModel.rollbackAttributes();\n      transportModel.get('customFields').then(cFs => {\n        if (cFs) {\n          cFs.forEach(c => {\n            if (c) {\n              c.rollback();\n            }\n          });\n        }\n      });\n      transportModel.get('advice').then(a => {\n        if (a) {\n          a.rollback();\n        }\n      });\n\n      if (transportModel.get('indexes.length')) {\n        transportModel.get('indexes').forEach(index => {\n          if (index) {\n            index.rollback();\n            index.get('quantities').forEach(q => q.rollback());\n          }\n        });\n      }\n\n      if (transportModel.get('carrierCompany.name')) {\n        transportModel.get('carrierCompany').then(c => {\n          if (c.id) {\n            c.rollbackAttributes();\n          } else {\n            c.unloadRecord();\n\n            if (transportModel.get('oldCarrierCompany')) {\n              transportModel.setProperties({\n                company: transportModel.get('oldCarrierCompany'),\n                oldCarrierCompany: null\n              });\n            }\n          }\n        });\n      }\n\n      transportModel.get('steps').then(steps => {\n        steps.forEach(s => {\n          if (s === undefined) {\n            return true;\n          }\n\n          s.rollbackAttributes();\n\n          if (s.get('company.name')) {\n            s.get('company').then(comp => {\n              if (comp.get('id')) {\n                comp.rollbackAttributes();\n              } else {\n                comp.unloadRecord();\n\n                if (s.get('oldCompany')) {\n                  s.setProperties({\n                    company: s.get('oldCompany'),\n                    oldCompany: null\n                  });\n                }\n              }\n            });\n          }\n\n          if (s.get('timeWindow.id')) {\n            s.get('timeWindow').then(timeWindow => {\n              timeWindow.rollbackAttributes();\n            });\n          }\n\n          if (s.get('stepPackageTypes')) {\n            s.get('stepPackageTypes').then(packageTypes => {\n              packageTypes.forEach(pt => {\n                pt.rollbackAttributes();\n              });\n            });\n          }\n        });\n      });\n      this.get('attachments').clear();\n    },\n\n    refreshTransport(transport) {\n      this.initializeDiscrepancyReport(transport);\n      this.initializeCustomFields(transport);\n    },\n\n    deleteAllFuturePeriodicTransports: function (transport) {\n      return transport.get('id') && transport.get('periodicTransport.id') && this.get('sessionAccount').hasRole('ROLE_DELETE_MULTIPLE_PERIODIC_TRANSPORTS') && confirm(this.get('intl').t('periodicTransport.deleteAllConfirmMsg'));\n    },\n    serialTransportAllowed: Ember.computed('transport', function () {\n      return !this.get('transport.id') && this.get('transport').actionCanBePerformed('ROLE_CAN_CREATE_SERIAL_TRANSPORTS');\n    }),\n    handleSerialTransports: async function (transport, saveSerialTransports) {\n      const serialTransport = await transport.get('serialTransport');\n\n      if (!serialTransport) {\n        return;\n      }\n\n      if (saveSerialTransports) {\n        await this.saveSerialTransports(transport);\n      }\n\n      serialTransport.deleteRecord();\n    },\n    saveSerialTransports: async function (transport) {\n      const serialTransport = await transport.get('serialTransport');\n\n      if (!serialTransport) {\n        return;\n      }\n\n      serialTransport.set('transportId', transport.get('id'));\n      const response = await this.apolloApiService.callApolloApi(this.apolloApiService.APOLLO_API.TRANSPORTS.SAVE_SERIAL_TRANSPORTS, null, {\n        body: JSON.stringify(serialTransport)\n      });\n\n      if (!response.ok) {\n        console.error('Błąd podczas tworzenia serii transportow dla transportu: ' + transport.id + ' :: transport zostanie usuniety.');\n        const err = await response.json();\n        this.actionProgressToast.showErrorToast(this.intl.t('serialTransport.errors.rollback', {\n          id: transport.id\n        }), err.errors);\n      }\n    },\n    canNotEditMainData: Ember.computed('sessionAccount', function () {\n      return !this.get('transport').actionCanBePerformed('UPDATE_MAIN_DATA_SECTION');\n    }),\n    actions: {\n      onRouteTemplateSelect: async function (route) {\n        const transport = this.get('transport');\n        transport.set('routeTemplate', route);\n        const priceListSetting = this.get('transportType.priceListSetting');\n        const shouldMapRouteToTransport = priceListSetting.get('overrideStepAndCustomFieldData');\n\n        if (shouldMapRouteToTransport) {\n          this.routeTransportMapperService.mapRouteToTransport(route, transport);\n        }\n\n        if (priceListSetting.get('truckTypeRouteOfferRestriction')) {\n          await this.truckTypeService.setTruckTypes(this.truckTypeService.clearTruckTypes(transport));\n        }\n      },\n      detachAllDeliveries: function (transport) {\n        const model = {\n          transport\n        };\n        this.get('modalService').showModal(this.get('modalService').MODALS.TRANSPORT.DETACH_ALL_DELIVERIES, model, 'sub-modal');\n      },\n      generateLOPReport: function () {\n        console.log('Generujemy raport LOP');\n        Ember.run.once(this, '_generateLopReport');\n      },\n      setTransportSupervisorOnSelect: async function (transportSupervisorDto) {\n        const personId = transportSupervisorDto.id;\n        const person = await this.get('store').findRecord('user', personId);\n        this.set('transport.transportSupervisor', person);\n      },\n      resizeTextArea: function () {\n        if (this.get('asPlainTemplate')) {\n          const element = (0, _jquery.default)('.textarea-resize');\n          const height = 5 + element.prop('scrollHeight') + 'px';\n          element.css('height', height);\n        }\n      },\n\n      /**\n       * Metoda planująca zapisanie transportu.\n       *\n       * W przypadku dodawania opcji za pośrednictwem pola z podpowiadaniem, musimy trochę\n       * poczekać na wykonanie wszystkich procesów.\n       */\n      save: function (saveAndCloseModal = true) {\n        const saveTransportButton = (0, _jquery.default)('.save-transport-button');\n        saveTransportButton.button('loading');\n        const self = this;\n        const transportModel = this.get('model');\n        Ember.run.later(this, function () {\n          if (transportModel.then !== undefined) {\n            transportModel.then(transport => self.send('saveOrUpdateTransport', transport, saveAndCloseModal));\n          } else {\n            self.send('saveOrUpdateTransport', transportModel, saveAndCloseModal);\n          }\n        }, 250);\n      },\n      createSimilar: function (transportId) {\n        const self = this;\n        const multiple = this.get('transport').actionCanBePerformed('ROLE_CREATE_SIMILAR_MULTIPLE');\n\n        if (multiple) {\n          const model = {\n            transport: self.get('transport'),\n            count: 1,\n            saving: false\n          };\n          this.send('showModal', 'transports.modals.create-similar-multiple', model);\n        } else {\n          this.send('hideModal');\n          const transportModel = this.get('store').peekRecord('transport', transportId);\n          this.get('transportCopyService').copyTransport(transportModel).then(t => {\n            setTimeout(function () {\n              console.log('Pokazujemy modal po wybraniu opcji \"Utwórz podobne\"...');\n              self.send('showModal', 'transports.modals.create-transport', t);\n            }, 1000);\n          });\n        }\n      },\n      restoreFromArchive: function (transportId) {\n        this.get('ajaxService').send(`/transports/${transportId}/restore`, 'PUT').then(() => {\n          alert(this.get('intl').t('transport.restoredSuccessfully'));\n          this.send('hideModal');\n        }).catch(response => {\n          (0, _jquery.default)('.transport-modal').scrollTop(0);\n          this.set('errors', response.responseJSON.errors);\n        });\n      },\n      saveOrUpdateTransport: async function (transport, saveAndCloseModal = true) {\n        const self = this;\n\n        this._setAdviceAndTwsFromMaster(transport);\n\n        const valid = await self.prepareTransportForSaving(transport);\n\n        if (!valid) {\n          (0, _jquery.default)('.save-transport-button').button('reset');\n          return false;\n        }\n\n        transport.set('updateAllFuturePeriodicTransports', this.updateAllFuturePeriodicTransports(transport));\n        const saveSerialTransports = !this.get('transport.id') && this.get('transport.serialTransportActive');\n        transport.save().then(() => self.handleSavedTransport(transport, self, saveAndCloseModal)).then(() => {\n          self.surchargeValueService.saveSurcharges(transport.surchargeValues).then(promise => {\n            if (promise) console.debug(`Saved surcharge values :: ${promise}`);\n          }).catch(error => {\n            console.warn(`Surcharges not saved ! :: ${error.errors}`);\n          });\n        }).then(() => {\n          self.handleSerialTransports(transport, saveSerialTransports);\n        }).catch(response => {\n          const errors = response.errors;\n          self.send('handleSpotSearchingException', errors, transport);\n          window.scrollTo({\n            top: 0\n          });\n          self.set('errors', errors);\n        }).finally(() => {\n          (0, _jquery.default)('.save-transport-button').button('reset');\n          transport.reload();\n\n          if (transport.get('masterTransports.length')) {\n            transport.get('masterTransports.firstObject').reload();\n            transport.get('masterTransports.firstObject.advice').reload();\n          }\n\n          transport.get('deliveries').forEach(d => {\n            d.reload();\n            d.get('packaging').reload();\n          });\n        });\n      },\n\n      handleSpotSearchingException(errors, transport) {\n        const hasErrors = errors && errors.length >= 1;\n        let exceptionType = null;\n\n        if (hasErrors) {\n          if (errors[0].meta) {\n            exceptionType = errors[0].meta.exceptionType;\n          }\n        }\n\n        if (this.EXCEPTIONS_THAT_ALLOWS_SPOTS_SEARCHING.includes(exceptionType)) {\n          const responseMeta = errors.get('firstObject.meta');\n\n          if (responseMeta) {\n            const exceptionInformation = Ember.ObjectProxy.create({\n              initialStart: responseMeta.initialStart,\n              windowSizeInMinutes: responseMeta.windowSizeInMinutes,\n              rampName: responseMeta.rampName,\n              whId: responseMeta.warehouseId\n            });\n            transport.set('exceptionInformation', exceptionInformation);\n          }\n\n          this.set('showSearchSpotsButton', true);\n        }\n      },\n\n      async handleFreeSubsequentSpotChoice(timeWindowCandidate) {\n        const transport = this.get('transport');\n        const loadStep = await transport.get('steps').filterBy('isLoad').get('firstObject');\n\n        if (loadStep) {\n          const timeWindow = await loadStep.get('timeWindow');\n\n          if (!timeWindow) {\n            this.send('selectWindow', timeWindowCandidate);\n            return;\n          }\n\n          const ramp = this.store.peekRecord('ramp', timeWindowCandidate.ramp.id);\n          timeWindow.set('start', timeWindowCandidate.start);\n          timeWindow.set('stop', timeWindowCandidate.stop);\n          timeWindow.set('ramp', ramp);\n          timeWindow.set('initialStart', timeWindowCandidate.start);\n          this.send('saveOrUpdateTransport', transport);\n          return;\n        }\n\n        this.send('selectWindow', timeWindowCandidate);\n      },\n\n      handleClickWithSpot(timeWindowCandidate) {\n        const self = this;\n        self.set('errors', []);\n        self.send('selectWindow', timeWindowCandidate);\n      },\n\n      handleUpdatedIndexes(transport) {\n        if (!transport.get('indexes.length')) {\n          return;\n        }\n\n        transport.get('indexes').then(indexes => {\n          const indexesCopy = indexes.slice(0);\n          indexesCopy.forEach(index => {\n            if (index !== undefined && !index.get('id')) {\n              console.debug(`Unloading redundant index for newly saved transport ${transport.get('id')}..`);\n              transport.get('indexes').removeObject(index);\n              index.unloadRecord();\n            } else if (index !== undefined) {\n              // W wyniku bugu (z 2013 roku) ember-data [https://github.com/emberjs/data/issues/1540],\n              // określanie `hasDirtyAttributes` nie działa w przypadku numerów ponieważ zaktualizowane\n              // pola są zapisywane w modelu jako `string`, a przychodzące z serwera jako `number`.\n              //\n              // Na razie nie używam zbyt często `hasDirtyAttributes`, dlatego nie próbuję pisać jakiegoś\n              // mixina albo serwisu, ale w przyszłości można się nad tym zastanowić.\n              index.get('quantities').forEach(q => {\n                if (typeof q.get('quantity') === 'string') {\n                  q.set('quantity', parseFloat(q.get('quantity')));\n                }\n              });\n            }\n          });\n        });\n      },\n\n      handleUpdatedCourierPackages(transport) {\n        if (!transport.get('courierPackages.length')) {\n          return;\n        }\n\n        transport.get('courierPackages').then(cps => {\n          const cpCopy = cps.slice(0);\n          cpCopy.forEach(cp => {\n            if (cp !== undefined && !cp.get('id')) {\n              console.debug(`Unloading redundant courierPackages for newly saved transport ${transport.get('id')}..`);\n              transport.get('courierPackages').removeObject(cp);\n              cp.unloadRecord();\n            }\n          });\n        });\n      },\n\n      /**\n       * Metoda planująca przeniesienie użytkownika do harmonogramu.\n       *\n       * W przypadku dodawania opcji za pośrednictwem pola z podpowiadaniem, musimy trochę\n       * poczekać na wykonanie wszystkich procesów.\n       */\n      planSelectWindow() {\n        Ember.run.later(this, function () {\n          this.send('selectWindow');\n        }, 250);\n      },\n\n      async selectWindow(timeWindowCandidate) {\n        const self = this;\n        const transport = self.get('transport');\n        transport.get('customFields').filterBy('definition.isNumberType').forEach(pair => {\n          if (pair.get('value')) {\n            pair.set('value', _numberParsers.default.getParsableNumber(pair.get('value')));\n          }\n        });\n        transport.get('steps').forEach(step => {\n          if (step.get('shouldAutoSaveCompanyGroup')) {\n            step.set('companyGroup', step.get('company.nonDefaultUserGroups').get('firstObject'));\n          }\n        });\n        const attachments = this.get('attachments'); // `taskGroupIdentifier === 0` to grupa tasków o nazwie \"Prace przygotowawcze\", pierwszym taskiem\n        // z tej grupy zawsze jest utworzenie zlecenia dlatego `idxInGroup === 0` zawsze powinien być taskiem tworzącym zlecenie\n\n        const orderCreationTask = Ember.A(this.get('tasksArray').filter(t => t.taskGroupIdentifier === 0 && t.idxInGroup === 0)).get('firstObject');\n\n        if (orderCreationTask.canBeConfirmAfterAddingDocumentsForTransport && attachments.length === 0) {\n          self.setProperties({\n            errors: Ember.A([`Etap '${orderCreationTask.checkpointName}' wymaga dodania dokumentów do transportu przed jego utworzeniem`])\n          });\n          return;\n        }\n\n        transport.validate();\n        const transportIsValidate = await self.customValidate();\n\n        if (transport.get('hasErrors') || !transportIsValidate) {\n          self.get('errorService').scrollToFirstError();\n          self.printErrors(transport);\n          return;\n        }\n\n        const transportType = transport.get('transportType');\n        const warehouse = transport.get('warehouse');\n        const warehouseStep = this.get('transport.warehouseStep');\n\n        if (warehouseStep && warehouse && transport.get('transportType.typeGroup') !== transport.get('transportType.TYPE_GROUPS.TRANSPORT')) {\n          warehouseStep.set('warehouse', warehouse);\n        }\n\n        if (transportType.get('typeGroup') === transportType.get('TYPE_GROUPS').SIMPLIFIED_DELIVERY) {\n          transport.get('lastStep').setProperties({\n            warehouse,\n            company: transport.get('firstContractor')\n          });\n        }\n\n        const warehouseStepToHandle = transport.get('firstWarehouseStepWithoutWindow') ? transport.get('firstWarehouseStepWithoutWindow') : transport.get('firstChangedWarehouseStep');\n\n        if (transport.get('firstChangedWarehouseStep')) {\n          warehouseStepToHandle.set('didWarehouseChange', false);\n        }\n\n        (0, _jquery.default)('#main-modal').data('skip-cancel-action', true);\n\n        if (timeWindowCandidate) {\n          console.debug(`Wybrana data awizacji: ${timeWindowCandidate.start}`);\n          self.set('dateOfAdvice', timeWindowCandidate.start);\n          self.send('hideModal');\n          self.get('scheduleController').send('handleClickWithTransport', timeWindowCandidate.start, timeWindowCandidate.stop, timeWindowCandidate.ramp.id, timeWindowCandidate.start);\n          self.send('makeTransitionToWarehouse', warehouseStepToHandle);\n        } else {\n          console.debug('Szukamy wolnego miejsca w harmonogramie..');\n          this.getFirstPossibleWindowStart(warehouseStepToHandle, transport, this.get('dateOfAdvice')).then(response => {\n            const expectedAdviceDate = this.get('dateOfAdvice') ? moment(this.get('dateOfAdvice')).format('YYYY-MM-DD') : null;\n            const firstAvailable = response.firstPossibleStart ? moment(response.firstPossibleStart).format('YYYY-MM-DD') : null;\n\n            if (!response.firstPossibleStart) {\n              self.setProperties({\n                errors: [response.error]\n              });\n              return;\n            }\n\n            const errorMessage = self.get('intl').t('timeWindow.errors.warehouseHasNoSpaceThisDay', {\n              expectedAdviceDate\n            });\n\n            if (expectedAdviceDate && firstAvailable && expectedAdviceDate < firstAvailable) {\n              self.setProperties({\n                errors: [errorMessage]\n              });\n              return;\n            }\n\n            self.send('hideModal');\n            self.send('makeTransitionToWarehouse', warehouseStepToHandle);\n          });\n        }\n      },\n\n      makeTransitionToWarehouse(warehouseStepToHandle) {\n        const self = this;\n        const transport = self.get('transport');\n        const dateString = moment(self.get('dateOfAdvice')).format('YYYY-MM-DD');\n        const formattedStart = moment(self.get('dateOfAdvice')).format('DD.MM.YYYY HH:mm');\n        const controller = self.get('scheduleController');\n\n        if (controller.get('warehouse.loadedDays') && controller.get('warehouse.loadedDays').includes(formattedStart)) {\n          controller.get('warehouse.loadedDays').removeObject(formattedStart);\n        }\n\n        controller.setProperties({\n          attachments: self.get('attachments'),\n          errors: null,\n          transportToSave: transport,\n          warehouseStepToHandle\n        });\n        console.debug(`Przechodzimy do harmonogramu w magazynie: ${warehouseStepToHandle.get('warehouse.name')} w dniu: ${dateString}`);\n        self.transitionToRoute('warehouses.schedule', warehouseStepToHandle.get('warehouse.id'), dateString, '1');\n      },\n\n      cancelCreateWindow() {\n        this.set('selectedWarehouse', null);\n        const model = this.get('transport');\n        const transportTypeAlias = model.get('transportType.alias');\n\n        if (model) {\n          if (model.rollbackAttributes) {\n            this.rollbackTransportChanges(model);\n          } else {\n            model.then(transportModel => {\n              this.rollbackTransportChanges(transportModel);\n            });\n          }\n        }\n\n        this.setProperties({\n          errors: [],\n          model: null\n        });\n\n        if (this.get('scheduleController').get('warehouseStepToHandle')) {\n          this.get('scheduleController').setProperties({\n            transportToSave: null,\n            warehouseStepToHandle: null,\n            warningMessage: null\n          });\n          this.transitionToRoute('transports.index', transportTypeAlias);\n        }\n      },\n\n      confirmCheckpoint: function (checkpoint) {\n        this.get('transportController').send('confirm', checkpoint);\n      },\n      weigh: function (checkpoint) {\n        this.get('transportController').send('weigh', checkpoint);\n      },\n      deleteTransport: function (transport) {\n        const deleteAllFuturePeriodicTransports = this.deleteAllFuturePeriodicTransports(transport);\n        const self = this;\n        (0, _jquery.default)('.delete-progress').show();\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        _jquery.default.ajax({\n          type: 'PUT',\n          url: _environment.default.serverURL + '/transports/' + transport.get('id') + '/delete?deleteAllFuturePeriodicTransports=' + deleteAllFuturePeriodicTransports,\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(function () {\n          self.setProperties({\n            model: null,\n            errors: []\n          });\n\n          if (transport.get('timeWindows')) {\n            console.debug(`Transport ${transport.id} został usunięty -- usuwamy okna z harmonogramu..`);\n            self.get('scheduleController').get('windows').removeObjects(transport.get('timeWindows'));\n          }\n\n          transport.set('deleted', true);\n\n          if (self.get('target.currentRouteName') === 'warehouses.schedule') {\n            self.get('scheduleController').send('onPoll');\n          }\n\n          self.refreshRelatedHasToWaitTransports(transport);\n          self.send('hideModal');\n          transport.set('transportType.forcedPollRequestTime', new Date().getTime());\n        });\n      },\n      getTransportLogs: function (transport) {\n        const self = this;\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        _jquery.default.ajax({\n          url: _environment.default.serverURL + '/transports/' + transport.get('id') + '/getTransportLogs',\n          type: 'GET',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(function (json) {\n          self.get('store').pushPayload(json);\n          json.transportLogs.sortBy('dateCreated').reverse().forEach(function (transportLog) {\n            const log = self.get('store').peekRecord('transportLog', transportLog.id);\n            transport.get('transportLogs').pushObject(log);\n          });\n        });\n\n        this.send('getNotificationLogs', transport);\n        this.send('getWeightLogs', transport);\n      },\n      getIntegrationLogs: function (transport) {\n        const self = this;\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        _jquery.default.ajax({\n          url: _environment.default.serverURL + '/transports/' + transport.get('id') + '/getIntegrationLogs',\n          type: 'GET',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(function (json) {\n          self.get('store').pushPayload(json);\n          json.apiIntegrationLogs.sortBy('dateCreated').reverse().forEach(function (apiIntegrationLog) {\n            const log = self.get('store').peekRecord('apiIntegrationLog', apiIntegrationLog.id);\n            transport.get('apiIntegrationLogs').pushObject(log);\n          });\n        });\n      },\n      getIntegrationRequestLog: function (log) {\n        const self = this;\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        _jquery.default.ajax({\n          url: _environment.default.serverURL + '/transports/getIntegrationLog/' + log.get('id'),\n          type: 'GET',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(json => {\n          const apiIntegrationLog = json.apiIntegrationLog;\n          const log = self.get('store').peekRecord('apiIntegrationLog', apiIntegrationLog.id);\n          log.set('request', apiIntegrationLog.request);\n        });\n      },\n      getNotificationLogs: function (transport) {\n        const self = this;\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        _jquery.default.ajax({\n          url: _environment.default.serverURL + '/transports/' + transport.get('id') + '/getNotificationLogs',\n          type: 'GET',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(function (json) {\n          self.get('store').pushPayload(json);\n          json.notificationLogs.sortBy('dateCreated').reverse().forEach(function (notificationLog) {\n            const log = self.get('store').peekRecord('notificationLog', notificationLog.id);\n            transport.get('notificationLogs').pushObject(log);\n          });\n        });\n      },\n      getWeightLogs: function (transport) {\n        const self = this;\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        _jquery.default.ajax({\n          url: _environment.default.serverURL + '/transports/' + transport.get('id') + '/getWeightLogs',\n          type: 'GET',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(function (json) {\n          self.get('store').pushPayload(json);\n          json.weightLogs.sortBy('dateCreated').reverse().forEach(function (weightLog) {\n            const log = self.get('store').peekRecord('weightLog', weightLog.id);\n            transport.get('weightLogs').pushObject(log);\n          });\n        });\n      },\n      getArtrLogs: function (transport) {\n        const self = this;\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        _jquery.default.ajax({\n          url: _environment.default.serverURL + '/transports/' + transport.get('id') + '/getArtrLogs',\n          type: 'GET',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(function (json) {\n          self.get('store').pushPayload(json);\n          json.artrApiLog.sortBy('dateCreated').reverse().forEach(function (artrApiLog) {\n            const log = self.get('store').peekRecord('artrApiLog', artrApiLog.id);\n            transport.get('artrApiLogs').pushObject(log);\n          });\n        });\n      },\n\n      setWarehouse(warehouse, object) {\n        const stepForWarehouse = this.get('firstStepWithWarehouse') || this.get('transport.steps.firstObject');\n        stepForWarehouse.set('warehouse', warehouse);\n        console.debug(`Selected warehouse: ${warehouse.get('name')}`);\n        this.clearBootstrapError((0, _jquery.default)('#' + object.uniqueId));\n      },\n\n      setAssortmentGroup(ag, object) {\n        this.get('firstStepWithWarehouse').set('assortmentGroup', ag);\n        this.clearBootstrapError((0, _jquery.default)('#' + object.uniqueId));\n      },\n\n      showSubModal(templateName, model) {\n        this.send('showModal', templateName, model, 'sub-modal');\n      },\n\n      setDateOfAdvice(propertyName, date) {\n        this.setDateOfPeriodicAdvice(date, propertyName);\n        this.set('dateOfAdvice', moment(date[0]).local().format('YYYY-MM-DD'));\n      },\n\n      close: function () {\n        this.send('hideModal');\n      },\n      openAddWorkerModal: function (transportModel, worker) {\n        const self = this;\n        const principalCompanyId = localStorage.getItem('principalId');\n        const principalCompany = this.get('store').peekRecord('company', principalCompanyId);\n\n        if (!worker) {\n          worker = this.get('store').createRecord('worker', {\n            company: self.get('model.serviceCompany'),\n            enabled: true,\n            principalCompany\n          });\n        }\n\n        const model = {\n          worker,\n          transport: transportModel\n        };\n        this.send('showModal', 'companies.modals.add-worker', model);\n      },\n      openCreateDeliveryModal: async function () {\n        const self = this;\n        const transport = this.get('transport');\n        const transportType = transport.get('transportType');\n        const customFields = await this.store.query('customFieldDefinition', {\n          planning: true,\n          transportTypeId: transportType.get('id')\n        });\n        const delivery = this.store.createRecord('delivery', {\n          deliverySetting: await this.transportTypeSettingService.getDeliverySettings(transportType),\n          transportType,\n          transport\n        });\n        await this.deliveryService.autoGenerateDeliveryNumber(delivery);\n        const isLoadStepInWarehouse = transport.get('steps').filterBy('isLoad').get('firstObject').get('isInWarehouse');\n        const isUnloadStepInWarehouse = transport.get('steps').filterBy('isUnload').get('firstObject').get('isInWarehouse');\n        delivery.set('loadStep', self.get('store').createRecord('step', {\n          ownedByPrincipal: isLoadStepInWarehouse,\n          stepTypeName: 'load',\n          orderInTransport: 0\n        }));\n        delivery.set('unloadStep', self.get('store').createRecord('step', {\n          ownedByPrincipal: isUnloadStepInWarehouse,\n          stepTypeName: 'unload',\n          orderInTransport: 1\n        }));\n        const transportSteps = [];\n        transport.get('steps').forEach(s => {\n          const defaultMinAdviceDate = moment().startOf('day');\n          const defaultMaxAdviceDate = moment().startOf('day').add(1, 'day');\n          const stepCopyPromise = s.copy(true, {\n            ignoreAttributes: ['address', 'transport', 'timeWindow', 'minAdviceDate', 'maxAdviceDate', 'arrivalDate', 'stepWarehouseLocations']\n          });\n          stepCopyPromise.then(async stepCopy => {\n            stepCopy.setProperties({\n              ownedByPrincipal: stepCopy.get('isInWarehouse'),\n              address: await s.get('address')\n            });\n\n            if (stepCopy.get('isInWarehouse')) {\n              if (s.get('minAdviceDate') || s.get('maxAdviceDate')) {\n                const defaultMinHour = s.get('minAdviceDate') ? s.get('minAdviceDate').getHours() : 0;\n                const defaultMaxHour = s.get('maxAdviceDate') ? s.get('maxAdviceDate').getHours() : 0;\n                stepCopy.setProperties({\n                  minAdviceDate: defaultMinAdviceDate.add(defaultMinHour, 'hours').toDate(),\n                  maxAdviceDate: defaultMaxAdviceDate.add(defaultMaxHour, 'hours').toDate()\n                });\n              }\n            } else {\n              const arrivalDate = await this.get('addressUnloadTimeService').findArrivalDate(stepCopy.get('address'), transportType);\n              stepCopy.setProperties({\n                arrivalDate\n              });\n            }\n          });\n          transportSteps.push(s);\n        });\n        delivery.set('packaging', Ember.A([]));\n        this.deliveryService.createSimplePackaging(delivery);\n        const model = {\n          delivery,\n          transportSteps,\n          transportType,\n          packageTypes: this.get('packageTypes'),\n          customFields\n        };\n        const modalPath = this.get('modalService').MODALS.DELIVERIES.CREATE_DELIVERY_FROM_TRANSPORT;\n        this.send('showModal', modalPath, model);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/modals/create-transport/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"tSBhfTTz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"delivery\\\",\\\"step\\\",\\\"step\\\",\\\"transportSupervisor\\\",\\\"worker\\\",\\\"ag\\\",\\\"w\\\"],\\\"statements\\\":[[4,\\\"transport-modal\\\",null,[[\\\"transport\\\",\\\"actionAfterClickCancelButton\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"transport\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"cancelCreateWindow\\\"],null],[23,[\\\"asPlainTemplate\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"transport/messages-section\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"free-subsequent-spots\\\",null,[[\\\"transport\\\",\\\"showSearchSpotsButton\\\",\\\"freeSubsequentSpots\\\",\\\"searchForFreeSubsequentSpots\\\",\\\"handleClickWithSpot\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"showSearchSpotsButton\\\"]],[23,[\\\"freeSubsequentSpots\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"searchForFreeSubsequentSpots\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"handleFreeSubsequentSpotChoice\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[12,\\\"class\\\",[28,[\\\"form-horizontal \\\",[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"as-plain-template\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showRouteTemplateSelect\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"components/route/route-template-select\\\",null,[[\\\"transport\\\",\\\"availableRoutes\\\",\\\"onSelect\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"transport\\\",\\\"availableRoutes\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"onRouteTemplateSelect\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-lg-12\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showWarehouseSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"errors\\\",\\\"warehouse\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"warehouse-select\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[1,[21,\\\"warehouseLabel\\\"],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"warehouse\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"transport\\\",\\\"id\\\"]],[23,[\\\"transport\\\",\\\"warehouse\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[23,[\\\"transport\\\",\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"warehouse\\\",\\\"address\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"small\\\"],[9],[0,\\\"\\\\n                                            \\\"],[1,[23,[\\\"transport\\\",\\\"warehouse\\\",\\\"address\\\",\\\"street\\\"]],false],[0,\\\", \\\"],[1,[23,[\\\"transport\\\",\\\"warehouse\\\",\\\"address\\\",\\\"city\\\"]],false],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"warehouse-select\\\",\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"firstStepWithWarehouse\\\",\\\"warehouse\\\"]]],null],[23,[\\\"transport\\\",\\\"transportType\\\",\\\"warehousesForCurrentUser\\\"]],true,\\\"name\\\",[23,[\\\"warehouseLabel\\\"]],[23,[\\\"transport\\\",\\\"disabled\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setWarehouse\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[22,7,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"isWarehouseZoneVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"warehouse-select\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                                \\\"],[1,[21,\\\"warehouseZoneLabel\\\"],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"transport/warehouse-zone-section\\\",null,[[\\\"step\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"firstStepWithWarehouse\\\"]],[23,[\\\"asPlainTemplate\\\"]]]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"showLocationField\\\"]],[27,\\\"and\\\",[[27,\\\"not\\\",[[23,[\\\"transportTypeHasVisibleSteps\\\"]]],null],[23,[\\\"showWarehouseLocation\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\" \\\",[27,\\\"if\\\",[[23,[\\\"firstStepWithWarehouse\\\",\\\"errors\\\",\\\"stepWarehouseLocations\\\"]],\\\"has-error\\\"],null],\\\" form-group\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"warehouse-location\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                                \\\"],[1,[21,\\\"warehouseLocationLabel\\\"],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"warehouse/warehouse-location-multi-select\\\",null,[[\\\"step\\\",\\\"disabled\\\"],[[23,[\\\"firstStepWithWarehouse\\\"]],[23,[\\\"warehouseLocationDisabled\\\"]]]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showAssortmentGroupSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[23,[\\\"firstStepWithWarehouse\\\",\\\"errors\\\",\\\"assortmentGroup\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                                \\\"],[1,[21,\\\"assortmentGroupLabel\\\"],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"assortment-group\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"assortment-group-select\\\",\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"firstStepWithWarehouse\\\",\\\"assortmentGroup\\\"]]],null],[23,[\\\"assortmentGroups\\\"]],true,[27,\\\"t\\\",[\\\"assortmentGroup.label\\\"],null],[23,[\\\"transport\\\",\\\"id\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setAssortmentGroup\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[22,6,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"firstStepWithWarehouse\\\"]],\\\"assortmentGroup\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showErpIdentifier\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"errors\\\",\\\"erpIdentifier\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[1,[21,\\\"erpIdentifierColumnLabel\\\"],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"erp-identifier\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"required\\\",\\\"placeholder\\\"],[\\\"form-control \\\",[23,[\\\"transport\\\",\\\"disabled\\\"]],[23,[\\\"transport\\\",\\\"erpIdentifier\\\"]],\\\"required\\\",[27,\\\"t\\\",[\\\"transport.erpIdentifier.placeholder\\\"],null]]]],false],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transport\\\"]],\\\"erpIdentifier\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showAltIdentifier\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"errors\\\",\\\"altIdentifier\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[1,[21,\\\"altIdentifierColumnLabel\\\"],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"alt-identifier\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"required\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"disabledAltIdentifier\\\"]],[23,[\\\"transport\\\",\\\"altIdentifier\\\"]],\\\"required\\\",[27,\\\"t\\\",[\\\"transport.erpIdentifier.placeholder\\\"],null]]]],false],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transport\\\"]],\\\"altIdentifier\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showContractorSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"transport/contractor-section\\\",null,[[\\\"transport\\\",\\\"companyType\\\",\\\"propertyName\\\",\\\"propertyNameForError\\\",\\\"principalCompanyId\\\",\\\"currentUser\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"transport\\\"]],\\\"SUPPLIER\\\",\\\"contractorSteps.firstObject.company\\\",\\\"firstContractor\\\",[23,[\\\"principalCompanyId\\\"]],[23,[\\\"sessionAccount\\\",\\\"currentUser\\\"]],[23,[\\\"asPlainTemplate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"not\\\",[[23,[\\\"transport\\\",\\\"id\\\"]]],null],[23,[\\\"transport\\\",\\\"transportType\\\",\\\"requiresTimeWindow\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"transport.scheduledDateOfAdvice\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-control-static no-padding\\\"],[11,\\\"data-field-name\\\",\\\"scheduled-date-of-advice\\\"],[9],[0,\\\"\\\\n\\\\n                                \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"formatType\\\",\\\"placeholder\\\",\\\"class\\\",\\\"nativeFlatpickrOptions\\\"],[[27,\\\"if\\\",[[23,[\\\"dateOfAdvice\\\"]],[23,[\\\"dateOfAdvice\\\"]],null],null],[27,\\\"action\\\",[[22,0,[]],\\\"setDateOfAdvice\\\",\\\"transport.periodicTransport.startDate\\\"],null],\\\"shortDate\\\",\\\"Select a date...\\\",\\\"form-control date-chooser\\\",[27,\\\"hash\\\",null,[[\\\"altInput\\\"],[true]]]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showCarrierSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"transport/contractor-section\\\",null,[[\\\"transport\\\",\\\"principalCompanyId\\\",\\\"currentUser\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"company\\\",\\\"id\\\"]],[23,[\\\"sessionAccount\\\",\\\"currentUser\\\"]],[23,[\\\"asPlainTemplate\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showCarrierChooserSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7 col-xs-offset-5\\\",\\\"col-md-7 col-md-offset-5 col-xs-12\\\"],null],\\\" small\\\"]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"carrierCompanyChooser\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"transport.carrierCompanySelectedBy\\\"],[[\\\"companyName\\\"],[[23,[\\\"transport\\\",\\\"carrierCompanyChooser\\\",\\\"company\\\",\\\"shortName\\\"]]]]],false],[0,\\\".\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"transport\\\",\\\"auctions\\\"]],[27,\\\"not\\\",[[23,[\\\"transport\\\",\\\"carrierCompanyChooser\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"transport.carrierCompanySelectedByAuction\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showServiceSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"transport/contractor-section\\\",null,[[\\\"transport\\\",\\\"companyType\\\",\\\"propertyName\\\",\\\"propertyNameForError\\\",\\\"principalCompanyId\\\",\\\"currentUser\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"transport\\\"]],\\\"SERVICEMAN\\\",\\\"serviceCompany\\\",\\\"serviceCompany\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"company\\\",\\\"id\\\"]],[23,[\\\"sessionAccount\\\",\\\"currentUser\\\"]],[23,[\\\"asPlainTemplate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showWorkerSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\" \\\",[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"errors\\\",\\\"requiresWorker\\\"]],\\\"has-error\\\"],null],\\\" form-group\\\"]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"workers\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"worker.\\\",[23,[\\\"workerFieldLabel\\\"]]],null]],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"workers\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-9 no-padding\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select-multiple\\\",null,[[\\\"id\\\",\\\"placeholder\\\",\\\"selected\\\",\\\"options\\\",\\\"disabled\\\",\\\"searchEnabled\\\",\\\"searchField\\\",\\\"renderInPlace\\\",\\\"onchange\\\"],[\\\"workers\\\",[27,\\\"t\\\",[\\\"worker.autoCompletePlaceholder\\\"],null],[23,[\\\"transport\\\",\\\"workers\\\"]],[23,[\\\"getWorkersList\\\"]],[23,[\\\"editWorkerField\\\"]],true,\\\"name\\\",true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"transport\\\",\\\"workers\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"span\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[22,5,[\\\"trained\\\"]],\\\"trained-worker-color\\\"],null]]]],[9],[0,\\\"\\\\n                                        \\\"],[1,[22,5,[\\\"name\\\"]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_EDIT_WORKER\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"openAddWorkerModal\\\",[23,[\\\"transport\\\"]],[22,5,[]]],null]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transport\\\"]],\\\"requiresWorker\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_WORKER\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-3\\\"],[9],[0,\\\"\\\\n                                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn-add-new btn btn-default\\\"],[9],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\"\\\\n                                        \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"worker.\\\",[23,[\\\"addWorkerButtonLabel\\\"]]],null]],null],false],[0,\\\" \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"openAddWorkerModal\\\",[23,[\\\"transport\\\"]]]],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showTransactionPriceSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[1,[21,\\\"transactionPriceLabel\\\"],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-3\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-9 no-padding padding-right-small\\\"],[11,\\\"data-field-name\\\",\\\"transaction-price\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"input\\\"],[11,\\\"class\\\",\\\"form-control\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transaction.price\\\"],null]]]],[12,\\\"value\\\",[28,[[23,[\\\"transport\\\",\\\"transaction\\\",\\\"price\\\"]]]]],[11,\\\"disabled\\\",\\\"\\\"],[11,\\\"type\\\",\\\"text\\\"],[9],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-3 no-padding\\\"],[11,\\\"data-field-name\\\",\\\"transaction-currency\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"input\\\"],[11,\\\"class\\\",\\\"form-control\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transaction.currency\\\"],null]]]],[12,\\\"value\\\",[28,[[23,[\\\"transport\\\",\\\"transaction\\\",\\\"currency\\\",\\\"symbol\\\"]]]]],[11,\\\"disabled\\\",\\\"\\\"],[11,\\\"type\\\",\\\"text\\\"],[9],[10],[0,\\\"\\\\n\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showAmountOfCover\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"components/amount-of-cover-section\\\",null,[[\\\"amountOfCover\\\",\\\"transport\\\",\\\"disabled\\\",\\\"label\\\"],[[23,[\\\"transport\\\",\\\"amountOfCover\\\"]],[23,[\\\"transport\\\"]],[23,[\\\"canNotEditMainData\\\"]],[27,\\\"t\\\",[\\\"transport.amountOfCover\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"indexSetting\\\",\\\"showTransportNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"transport.indicesTransportNumbers.label\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"indexes-transport-numbers\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"input\\\"],[11,\\\"class\\\",\\\"form-control\\\"],[12,\\\"value\\\",[28,[[23,[\\\"transport\\\",\\\"indexesTransportNumbersAsString\\\"]]]]],[11,\\\"disabled\\\",\\\"\\\"],[11,\\\"type\\\",\\\"text\\\"],[9],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"indexSetting\\\",\\\"showDocumentNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group small-margin-form-group\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"index.documentNumber.abbr\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"indexes-document-numbers\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"input\\\"],[11,\\\"class\\\",\\\"form-control\\\"],[12,\\\"value\\\",[28,[[23,[\\\"transport\\\",\\\"indexesDocumentNumbersAsString\\\"]]]]],[11,\\\"disabled\\\",\\\"\\\"],[11,\\\"type\\\",\\\"text\\\"],[9],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showTransportSupervisorField\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group small-margin-form-group \\\",[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"errors\\\",\\\"transportSupervisor\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"transportSupervisorTranslationKeys.\\\",[23,[\\\"transportSupervisorLabel\\\"]]],null]],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"transportSupervisor\\\"],[11,\\\"class\\\",\\\"col-xs-9 no-padding\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"disabled\\\",\\\"renderInPlace\\\",\\\"searchEnabled\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"transport\\\",\\\"transportSupervisor\\\"]],[23,[\\\"transportSupervisorList\\\"]],[23,[\\\"canNotEditTransportSupervisor\\\"]],true,true,\\\"name\\\",[27,\\\"t\\\",[\\\"transport.transportSupervisor.autoCompletePlaceholder\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setTransportSupervisorOnSelect\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[22,4,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"                                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transport\\\"]],\\\"transportSupervisor\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"adviceSavedWithTransport\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-lg-12 driver-section\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"transport/driver-section\\\",null,[[\\\"transport\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"asPlainTemplate\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"showQuantitySection\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"transport/step-package-type-data\\\",null,[[\\\"transport\\\",\\\"step\\\",\\\"separateLabel\\\",\\\"asPlainTemplate\\\",\\\"adviceDisabled\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"transport\\\",\\\"firstStep\\\"]],true,[23,[\\\"asPlainTemplate\\\"]],[27,\\\"and\\\",[[23,[\\\"transport\\\",\\\"advice\\\",\\\"id\\\"]],[23,[\\\"transport\\\",\\\"advice\\\",\\\"disabled\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"showWeightField\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-lg-12\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"firstStep\\\",\\\"errors\\\",\\\"weight\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"transport.weight\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"weight\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"title\\\",\\\"disabled\\\",\\\"value\\\",\\\"required\\\",\\\"placeholder\\\"],[\\\"form-control\\\",\\\"text\\\",[27,\\\"t\\\",[\\\"transport.weight\\\"],null],[27,\\\"and\\\",[[23,[\\\"transport\\\",\\\"advice\\\",\\\"id\\\"]],[23,[\\\"transport\\\",\\\"advice\\\",\\\"disabled\\\"]]],null],[23,[\\\"transport\\\",\\\"firstStep\\\",\\\"weight\\\"]],\\\"required\\\",[27,\\\"t\\\",[\\\"transport.weight.placeholder\\\"],null]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"transport\\\",\\\"firstStep\\\"]],\\\"weight\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[1,[27,\\\"transport/get-couriers-quotes\\\",null,[[\\\"transport\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"asPlainTemplate\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"transport/custom-fields-section\\\",null,[[\\\"transport\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"asPlainTemplate\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"isTruckTypeVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"trucks/truck-type-select\\\",null,[[\\\"transportType\\\",\\\"showHelper\\\",\\\"model\\\",\\\"truckTypes\\\",\\\"disabled\\\",\\\"size\\\"],[[23,[\\\"transport\\\",\\\"transportType\\\"]],[23,[\\\"transport\\\",\\\"showTruckTypeHelper\\\"]],[23,[\\\"transport\\\"]],[23,[\\\"truckTypes\\\"]],[23,[\\\"canNotEditMainData\\\"]],\\\"big\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showAdditionalAddFileButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"documents-transport/add-document-button\\\",null,[[\\\"transport\\\",\\\"asPlainTemplate\\\",\\\"attachments\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"asPlainTemplate\\\"]],[23,[\\\"attachments\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[1,[27,\\\"serial-transports-form\\\",null,[[\\\"enabled\\\",\\\"transport\\\"],[[23,[\\\"serialTransportAllowed\\\"]],[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"transportType\\\",\\\"hasVisibleSteps\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"transport/steps-section\\\",null,[[\\\"transport\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"asPlainTemplate\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"stepsWithWarehouse\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"transportType\\\",\\\"requiresAdviceDateRestrictions\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[12,\\\"data-field-name\\\",[28,[[27,\\\"if\\\",[[22,3,[\\\"isLoad\\\"]],\\\"TIME_RANGE_FOR_LOAD\\\",\\\"TIME_RANGE_FOR_UNLOAD\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label text-left\\\"]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,3,[\\\"isLoad\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"step.timeRangeForLoad\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[22,3,[\\\"isUnload\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"step.timeRangeForUnload\\\"],null],false],[0,\\\"\\\\n                            \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"transport/advice-date-restrictions-section\\\",null,[[\\\"step\\\",\\\"asPlainTemplate\\\"],[[22,3,[]],[23,[\\\"asPlainTemplate\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"stepsWithWindow\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-5\\\",\\\"col-md-5 col-xs-12\\\"],null],\\\" control-label\\\"]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"step.timeWindow\\\"],null],false],[0,\\\" (\\\"],[1,[27,\\\"t\\\",[\\\"advice.label\\\"],null],false],[0,\\\")\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"col-xs-7\\\",\\\"col-md-7 col-xs-12\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"transport/time-window-section\\\",null,[[\\\"step\\\",\\\"asPlainTemplate\\\"],[[22,2,[]],[23,[\\\"asPlainTemplate\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-group\\\"],[11,\\\"id\\\",\\\"accordion\\\"],[11,\\\"role\\\",\\\"tablist\\\"],[11,\\\"aria-multiselectable\\\",\\\"true\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"showAdviceSectionAsPanel\\\"]],[27,\\\"not\\\",[[23,[\\\"asPlainTemplate\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-heading\\\"],[11,\\\"role\\\",\\\"tab\\\"],[11,\\\"id\\\",\\\"advice-panel\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"h5\\\"],[12,\\\"class\\\",[28,[\\\"panel-title advice-panel collapsed \\\",[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"advice\\\",\\\"errors\\\",\\\"length\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"role\\\",\\\"button\\\"],[11,\\\"data-toggle\\\",\\\"collapse\\\"],[11,\\\"data-parent\\\",\\\"#accordion\\\"],[11,\\\"href\\\",\\\"#collapseThree\\\"],[12,\\\"aria-expanded\\\",[28,[[21,\\\"asPlainTemplate\\\"]]]],[11,\\\"aria-controls\\\",\\\"collapseThree\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"columns.ADVICE\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"collapseThree\\\"],[12,\\\"class\\\",[28,[\\\"panel-collapse \\\",[27,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"collapse\\\"],null],\\\" advice-panel\\\"]]],[11,\\\"role\\\",\\\"tabpanel\\\"],[11,\\\"aria-labelledby\\\",\\\"advice-panel\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body\\\"],[9],[0,\\\"\\\\n\\\\n                                \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal driver-section\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"transport/driver-section\\\",null,[[\\\"transport\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"transportOrMasterTransport\\\"]],[23,[\\\"asPlainTemplate\\\"]]]]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showDiscrepancyReportSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-heading\\\"],[11,\\\"role\\\",\\\"tab\\\"],[11,\\\"id\\\",\\\"discrepancy-report-panel\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"h5\\\"],[12,\\\"class\\\",[28,[\\\"panel-title discrepancy-report-panel collapsed \\\",[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"hasDiscrepancyReportCustomFieldsErrors\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"role\\\",\\\"button\\\"],[11,\\\"data-toggle\\\",\\\"collapse\\\"],[11,\\\"data-parent\\\",\\\"#accordion\\\"],[11,\\\"href\\\",\\\"#collapseDiscrepancyReport\\\"],[11,\\\"aria-expanded\\\",\\\"false\\\"],[11,\\\"aria-controls\\\",\\\"collapseDiscrepancyReport\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"discrepancyReport.label\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"collapseDiscrepancyReport\\\"],[11,\\\"class\\\",\\\"panel-collapse collapse discrepancy-report-panel\\\"],[11,\\\"role\\\",\\\"tabpanel\\\"],[11,\\\"aria-labelledby\\\",\\\"discrepancy-report-panel\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body\\\"],[9],[0,\\\"\\\\n\\\\n                                \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"transport/discrepancy-report-section\\\",null,[[\\\"transport\\\",\\\"createTransportController\\\"],[[23,[\\\"transport\\\"]],[22,0,[]]]]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showInspectionSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-heading\\\"],[11,\\\"role\\\",\\\"tab\\\"],[11,\\\"id\\\",\\\"inspection-panel\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"h5\\\"],[12,\\\"class\\\",[28,[\\\"panel-title inspection-panel collapsed \\\",[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"hasDiscrepancyReportCustomFieldsErrors\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"role\\\",\\\"button\\\"],[11,\\\"data-toggle\\\",\\\"collapse\\\"],[11,\\\"data-parent\\\",\\\"#accordion\\\"],[11,\\\"href\\\",\\\"#collapseInspectionSection\\\"],[11,\\\"aria-expanded\\\",\\\"false\\\"],[11,\\\"aria-controls\\\",\\\"collapseInspectionSection\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"inspectionSection.label\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"collapseInspectionSection\\\"],[11,\\\"class\\\",\\\"panel-collapse collapse inspection-panel\\\"],[11,\\\"role\\\",\\\"tabpanel\\\"],[11,\\\"aria-labelledby\\\",\\\"inspection-panel\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body\\\"],[9],[0,\\\"\\\\n\\\\n                                \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n                                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[27,\\\"transport/custom-fields-section\\\",null,[[\\\"transport\\\",\\\"inspectionPanelSection\\\"],[[23,[\\\"transport\\\"]],true]]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showWeightSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-heading\\\"],[11,\\\"role\\\",\\\"tab\\\"],[11,\\\"id\\\",\\\"weight-panel\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"h5\\\"],[12,\\\"class\\\",[28,[\\\"panel-title weight-panel collapsed \\\",[27,\\\"if\\\",[[23,[\\\"transport\\\",\\\"advice\\\",\\\"errors\\\",\\\"length\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"role\\\",\\\"button\\\"],[11,\\\"data-toggle\\\",\\\"collapse\\\"],[11,\\\"data-parent\\\",\\\"#accordion\\\"],[11,\\\"href\\\",\\\"#collapseWeight\\\"],[11,\\\"aria-expanded\\\",\\\"false\\\"],[11,\\\"aria-controls\\\",\\\"collapseWeight\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"transport.weightSection.label\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"collapseWeight\\\"],[11,\\\"class\\\",\\\"panel-collapse collapse weight-panel\\\"],[11,\\\"role\\\",\\\"tabpanel\\\"],[11,\\\"aria-labelledby\\\",\\\"weight-panel\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body\\\"],[9],[0,\\\"\\\\n\\\\n                                \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"transport/weight-section\\\",null,[[\\\"transport\\\"],[[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showDocumentSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-heading\\\"],[11,\\\"role\\\",\\\"tab\\\"],[11,\\\"id\\\",\\\"documents-panel\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"h5\\\"],[11,\\\"class\\\",\\\"panel-title documents-panel collapsed\\\"],[11,\\\"role\\\",\\\"button\\\"],[11,\\\"data-toggle\\\",\\\"collapse\\\"],[11,\\\"data-parent\\\",\\\"#accordion\\\"],[11,\\\"href\\\",\\\"#collapseDocuments\\\"],[12,\\\"aria-expanded\\\",[28,[[27,\\\"or\\\",[[23,[\\\"asPlainTemplate\\\"]],[23,[\\\"attachments\\\"]]],null]]]],[11,\\\"aria-controls\\\",\\\"collapseDocuments\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"transport.documents.label\\\"],null],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"collapseDocuments\\\"],[12,\\\"class\\\",[28,[\\\"panel-collapse \\\",[27,\\\"unless\\\",[[27,\\\"or\\\",[[23,[\\\"asPlainTemplate\\\"]],[23,[\\\"attachments\\\"]]],null],\\\"collapse\\\"],null],\\\" documents-panel\\\"]]],[11,\\\"role\\\",\\\"tabpanel\\\"],[11,\\\"aria-labelledby\\\",\\\"documents-panel\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body dropzone\\\"],[9],[0,\\\"\\\\n\\\\n                                    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal documents-section\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[27,\\\"transport/documents-section\\\",null,[[\\\"transport\\\",\\\"attachments\\\",\\\"existingFilesToRemove\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"attachments\\\"]],[23,[\\\"existingFilesToRemove\\\"]]]]],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"transport\\\",\\\"id\\\"]],[27,\\\"has-role\\\",[\\\"ROLE_SHOW_TRANSPORT_LOGS\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"expandable-panel\\\",null,[[\\\"title\\\",\\\"componentName\\\",\\\"onOpen\\\"],[[27,\\\"t\\\",[\\\"transport.logs.label\\\"],null],\\\"transport-logs-section\\\",[27,\\\"action\\\",[[22,0,[]],\\\"getTransportLogs\\\",[23,[\\\"transport\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"logs-section\\\",null,[[\\\"logsProxy\\\"],[[23,[\\\"logsProxy\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"transport\\\",\\\"id\\\"]],[27,\\\"has-role\\\",[\\\"ROLE_SHOW_API_INTEGRATION_LOGS\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"expandable-panel\\\",null,[[\\\"title\\\",\\\"componentName\\\",\\\"onOpen\\\"],[[27,\\\"t\\\",[\\\"transport.logs.apiIntegration\\\"],null],\\\"transport-integration-section\\\",[27,\\\"action\\\",[[22,0,[]],\\\"getIntegrationLogs\\\",[23,[\\\"transport\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"logs-section\\\",null,[[\\\"logsProxy\\\",\\\"getIntegrationRequestLog\\\",\\\"refreshLogs\\\",\\\"apiIntegration\\\"],[[23,[\\\"integrationLogsProxy\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"getIntegrationRequestLog\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"getIntegrationLogs\\\",[23,[\\\"transport\\\"]]],null],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"transport\\\",\\\"deliveries\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"delivery-panel\\\",null,[[\\\"transport\\\",\\\"delivery\\\",\\\"packageTypes\\\"],[[23,[\\\"transport\\\"]],[22,1,[]],[23,[\\\"packageTypes\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"transport\\\",\\\"id\\\"]],[27,\\\"has-role\\\",[\\\"ROLE_SHOW_ARTR_API_LOGS\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"expandable-panel\\\",null,[[\\\"title\\\",\\\"componentName\\\",\\\"onOpen\\\"],[[27,\\\"t\\\",[\\\"transport.logs.artr\\\"],null],\\\"transport-artr-logs-section\\\",[27,\\\"action\\\",[[22,0,[]],\\\"getArtrLogs\\\",[23,[\\\"transport\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"logs-section\\\",null,[[\\\"logsProxy\\\",\\\"artrLogs\\\"],[[23,[\\\"artrLogsProxy\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"shouldShowIndexesSection\\\"]]],null,{\\\"statements\\\":[[4,\\\"expandable-panel\\\",null,[[\\\"title\\\",\\\"componentName\\\",\\\"defaultOpen\\\"],[[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\",\\\"transportType\\\"],[\\\"index\\\",\\\"sectionLabel\\\",[23,[\\\"transport\\\",\\\"transportType\\\"]]]]],\\\"indexes-panel\\\",[23,[\\\"showExpandedIndexSection\\\"]]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"transport/indexes-section\\\",null,[[\\\"transport\\\",\\\"asPlainTemplate\\\",\\\"showExpanded\\\",\\\"columns\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"asPlainTemplate\\\"]],[23,[\\\"showExpandedIndexSection\\\"]],[23,[\\\"columnsInIndexSection\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"shouldShowSurchargesSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"transport/surcharges-section\\\",null,[[\\\"transport\\\",\\\"surcharges\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"transport\\\",\\\"surchargeValues\\\"]],[23,[\\\"asPlainTemplate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"shouldShowCouriersSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"transport/couriers-section\\\",null,[[\\\"transport\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"asPlainTemplate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"shouldShowCourierInvoiceSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"transport/courier-invoice-section\\\",null,[[\\\"transport\\\",\\\"asPlainTemplate\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"asPlainTemplate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"shouldShowCourierPackagesSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"transport/courier/packages-section\\\",null,[[\\\"transport\\\",\\\"asPlainTemplate\\\",\\\"showExpanded\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"asPlainTemplate\\\"]],[23,[\\\"showExpandedCourierPackageSection\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"shouldShowTransportPackagesSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"transport/transport-packages-section\\\",null,[[\\\"transport\\\"],[[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showDescriptionField\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section form-horizontal\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transport.description\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"transport-description\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"light-frame\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"type\\\",\\\"placeholder\\\",\\\"class\\\",\\\"disabled\\\",\\\"rows\\\",\\\"value\\\"],[\\\"textarea\\\",[27,\\\"t\\\",[\\\"transport.description\\\"],null],\\\"form-control vertical-resizable-only textarea-resize\\\",[23,[\\\"shouldDisabledDescription\\\"]],\\\"3\\\",[23,[\\\"transport\\\",\\\"description\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showAdditionalDescriptionField\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section form-horizontal\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transport.additionalDescription\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"transport-additional-description\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"asPlainTemplate\\\"]],\\\"light-frame\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"type\\\",\\\"placeholder\\\",\\\"class\\\",\\\"disabled\\\",\\\"rows\\\",\\\"value\\\"],[\\\"textarea\\\",[27,\\\"t\\\",[\\\"transport.additionalDescription\\\"],null],\\\"form-control vertical-resizable-only textarea-resize\\\",[23,[\\\"shouldDisabledAdditionalDescription\\\"]],[23,[\\\"transport\\\",\\\"transportType\\\",\\\"additionalDescriptionTextAreaRows\\\"]],[23,[\\\"additionalDescriptionValue\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showAdditionalInformation\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section form-horizontal\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[21,\\\"additionalInformationInAppropriateLanguage\\\"],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section form-horizontal centered-if-small-display\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"confirm-statuses\\\",null,[[\\\"transport\\\",\\\"asPlainTemplate\\\",\\\"confirm\\\",\\\"showModal\\\",\\\"isFromTransportModal\\\"],[[23,[\\\"transport\\\"]],[23,[\\\"asPlainTemplate\\\"]],\\\"confirm\\\",\\\"showModal\\\",true]]],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"advice-handler\\\",null,[[\\\"transport\\\",\\\"goToWarehouse\\\",\\\"openCreateAdviceModal\\\",\\\"isFromTransportModal\\\"],[[23,[\\\"transport\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"goToWarehouse\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"openCreateAdviceModal\\\"],null],true]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"asPlainTemplate\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 col-md-6\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"transport-footer-buttons btn-group pull-left\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canGenerateLOPReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[9],[0,\\\"\\\\n                                    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-file-excel clickable\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transport.generateLOPReport\\\"],null]]]],[9],[10],[0,\\\"\\\\n                                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"generateLOPReport\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[23,[\\\"transport\\\",\\\"archived\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"canBeDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"onConfirm\\\",\\\"text\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"deleteTransport\\\",[23,[\\\"transport\\\"]]],null],[27,\\\"t\\\",[\\\"transport.deleteTransport\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-trash delete-icon clickable\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"transport.delete\\\"],null]]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"delete-progress\\\"],[9],[0,\\\"\\\\n                                             \\\"],[1,[27,\\\"t\\\",[\\\"common.deletingProgress\\\"],null],false],[0,\\\" \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/images/ajax-loader.gif\\\"],[9],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"transport\\\",\\\"id\\\"]],[27,\\\"not\\\",[[23,[\\\"hideSaveTransportButton\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[27,\\\"t\\\",[\\\"common.transportDeletionDisabled\\\"],null],false],[0,\\\"\\\\n                                \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showPrintIcon\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"transports.print\\\",[23,[\\\"transport\\\",\\\"id\\\"]]],[[\\\"target\\\",\\\"title\\\"],[\\\"_blank\\\",[27,\\\"t\\\",[\\\"transport.print\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-print clickable\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12 col-md-6\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top pull-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"hideSaveTransportButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"common.transportEditionDisabled\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"shouldSelectWindow\\\"]],[23,[\\\"shouldChangeStepWindow\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"button\\\"],[12,\\\"disabled\\\",[21,\\\"showSearchSpotsButton\\\"]],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-field-name\\\",\\\"save-transport\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[27,\\\"t\\\",[\\\"common.further\\\"],null],false],[0,\\\"\\\\n                                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"planSelectWindow\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"transport\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary save-transport-button\\\"],[11,\\\"data-field-name\\\",\\\"save-transport\\\"],[12,\\\"data-loading-text\\\",[28,[[27,\\\"t\\\",[\\\"common.saving\\\"],null]]]],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                                            \\\"],[1,[21,\\\"saveButtonLabel\\\"],false],[0,\\\"\\\\n                                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\",false]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary save-transport-button\\\"],[11,\\\"data-field-name\\\",\\\"save-transport-and-close\\\"],[12,\\\"data-loading-text\\\",[28,[[27,\\\"t\\\",[\\\"common.saving\\\"],null]]]],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[21,\\\"saveAndCloseButtonLabel\\\"],false],[0,\\\"\\\\n                                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canCreateSimilar\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-field-name\\\",\\\"create-similar\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"common.createSimilar\\\"],null],false],[0,\\\"\\\\n                                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"createSimilar\\\",[23,[\\\"transport\\\",\\\"id\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canRestoreOrderFromArchive\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-field-name\\\",\\\"restore-from-archive\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"common.restore\\\"],null],false],[0,\\\"\\\\n                                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"restoreFromArchive\\\",[23,[\\\"transport\\\",\\\"id\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canAddDeliveryInTransport\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-field-name\\\",\\\"open-create-delivery-modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"delivery.addDelivery\\\"],null],false],[0,\\\"\\\\n                                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"openCreateDeliveryModal\\\",[23,[\\\"transport\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canDetachDeliveries\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-danger\\\"],[11,\\\"data-field-name\\\",\\\"transport-detach-deliveries\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[27,\\\"t\\\",[\\\"delivery.detachAllDeliveries\\\"],null],false],[0,\\\"\\\\n                                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"detachAllDeliveries\\\",[23,[\\\"transport\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                            \\\"],[1,[27,\\\"remove-relation-button\\\",null,[[\\\"transport\\\"],[[23,[\\\"transport\\\"]]]]],false],[0,\\\"\\\\n                            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-field-name\\\",\\\"cancel-create\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n                            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[3,\\\"action\\\",[[22,0,[]],[27,\\\"if\\\",[[23,[\\\"shouldSelectWindow\\\"]],\\\"selectWindow\\\",\\\"save\\\"],null]],[[\\\"on\\\"],[\\\"submit\\\"]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transports/modals/create-transport/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/modals/email-advice/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    autoCompleteContactPersonDetails: Ember.observer('model', function () {\n      const self = this;\n\n      if (this.get('model') && !this.get('model.edit')) {\n        // Na razie przyjmujemy, że transport ma tylko jeden step z jednym dostawcą\n        const step = this.get('model.transport.contractorSteps') ? this.get('model.transport.contractorSteps').get(0) : null;\n        const supCompany = step ? step.get('company') : null;\n        const carrierCompany = this.get('model.transport.carrierCompany') ? this.get('model.transport.carrierCompany').content : null; //  Jeśli transport nie ma przypisanego ani przewoznika, ani dostawcy, przerywamy\n\n        if (!supCompany && !carrierCompany) {\n          return;\n        } // Jeśli dostawca jest przypisany do transportu to pierwszej kolejności próbujemy przypisać dane przedstawiciela dostawcy\n\n\n        if (supCompany) {\n          supCompany.reload().then(c => {\n            const p = c.partnershipWithPrincipal;\n            const supEmail = p.get('representativeEmail');\n            const supMobilePhoneNumber = p.get('representativePhoneNumber');\n            const supMobilePhoneNumberPrefix = p.get('representativePhoneNumberPrefix'); // Jeśli dostawca ma przypisany email lub numer, próbujemy je uzupełnić\n\n            if (supEmail || supMobilePhoneNumber) {\n              if (supEmail) {\n                self.set('model.email', supEmail);\n              }\n\n              if (supMobilePhoneNumber) {\n                self.set('model.mobilePhoneNumber', supMobilePhoneNumber);\n              }\n\n              if (supMobilePhoneNumberPrefix) {\n                self.set('model.mobilePhonePrefix', supMobilePhoneNumberPrefix);\n              }\n            } else {\n              // Jeśli dostawca nie ma danych, a transport posiada przewoźnika próbujemy przypisać dane przewoźnika\n              if (carrierCompany) {\n                self._setRepresentativeData(carrierCompany);\n              }\n            }\n          });\n        } // Jeśli transport nie ma przypisanego dostawcy, a ma przewoźnika próbujemy przypisać dane przewoźnika\n\n\n        if (!supCompany && carrierCompany) {\n          self._setRepresentativeData(carrierCompany);\n        }\n      }\n    }),\n\n    _setRepresentativeData(company) {\n      const self = this;\n      company.reload().then(c => {\n        const p = c.partnershipWithPrincipal;\n        const email = p.get('representativeEmail');\n        const mobilePhoneNumber = p.get('representativePhoneNumber');\n        const mobilePhoneNumberPrefix = p.get('representativePhoneNumberPrefix');\n\n        if (email) {\n          self.set('model.email', email);\n        }\n\n        if (mobilePhoneNumber) {\n          self.set('model.mobilePhoneNumber', mobilePhoneNumber);\n        }\n\n        if (mobilePhoneNumberPrefix) {\n          self.set('model.mobilePhonePrefix', mobilePhoneNumberPrefix);\n        }\n      });\n    },\n\n    title: Ember.computed('model.type', function () {\n      return this.get('model.type') === 'ADVICE_DATA' ? this.get('intl').t('emailAdvice.title') : this.get('intl').t('emailAdvice.titleCf');\n    }),\n    sentLabel: Ember.computed('model.type', function () {\n      return this.get('model.type') === 'ADVICE_DATA' ? this.get('intl').t('emailAdvice.alreadySent') : this.get('intl').t('emailAdvice.alreadySentCf');\n    }),\n    historyList: Ember.computed('model.transport.emailAdvices.@each.expired', function () {\n      const sentList = this.get('model.transport.emailAdvices').filter(ea => {\n        return ea && ea.get('id') && ea.get('type') === this.get('model.type');\n      });\n      return sentList.sortBy('dateCreated');\n    }),\n    rodoAccepted: false,\n    actions: {\n      sendEmailAdvice: function () {\n        const self = this;\n        const model = this.get('model');\n        model.validate();\n\n        if (model.get('errors.length')) {\n          return;\n        } // Metoda na backendzie (EmailAdviceRESTController#disableOldAndSaveNew),\n        // która obsługuję post na /email-advices wykonywany przez EmberJS przy .save()\n        // nie tylko tworzy i zapisuje nowy obiekt awizacji mailowej,\n        // ale też dezaktywuje starą awizację (i przez to przypisany do niej token url i sms)\n\n\n        model.save().then(function (m) {\n          self.set('errors', []);\n          self.get('model.transport.emailAdvices').reload();\n          self.send('hideModal');\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n      close: function () {\n        this.send('hideModal');\n      },\n      cancel: function () {\n        this.get('model').deleteRecord();\n        this.send('hideModal');\n      },\n      setPhonePrefix: function (phonePrefix) {\n        this.get('model').set('mobilePhonePrefix', phonePrefix);\n      },\n      toggleRodoAcceptance: function () {\n        this.set('model.rodoAccepted', !this.get('model.rodoAccepted'));\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/modals/email-advice/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"O5CZ2oLp\",\n    \"block\": \"{\\\"symbols\\\":[\\\"oldEmailAdvice\\\",\\\"error\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"cancel\\\"],[[23,[\\\"title\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"close\\\"],null]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,2,[]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"step.contactPerson.email\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"email-advice-email\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-8 form-group-padding\\\\n                            \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"email\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"transport\\\",\\\"completed\\\"]],[23,[\\\"model\\\",\\\"email\\\"]],[27,\\\"t\\\",[\\\"step.contactPerson.email\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"model\\\"]],\\\"email\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-xs-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"step.contactPerson.phoneNumber\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"email-advice-phone-prefix\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-2 form-group-padding\\\\n                                \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"mobilePhonePrefix\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"phone-prefix\\\",null,[[\\\"setPhonePrefix\\\",\\\"existingPhonePrefix\\\",\\\"disabled\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"setPhonePrefix\\\"],null],[23,[\\\"model\\\",\\\"mobilePhonePrefix\\\"]],[23,[\\\"model\\\",\\\"transport\\\",\\\"completed\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"email-advice-phone-number\\\"],[12,\\\"class\\\",[28,[\\\"col-xs-6 form-group-padding\\\\n                                \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"mobilePhoneNumber\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"min\\\",\\\"max\\\",\\\"value\\\",\\\"placeholder\\\",\\\"disabled\\\"],[\\\"form-control\\\",\\\"number\\\",\\\"100000000\\\",\\\"999999999999\\\",[23,[\\\"model\\\",\\\"mobilePhoneNumber\\\"]],[27,\\\"t\\\",[\\\"step.contactPerson.phoneNumber\\\"],null],[23,[\\\"model\\\",\\\"transport\\\",\\\"completed\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"model\\\"]],\\\"mobilePhoneNumber\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"model\\\",\\\"transport\\\",\\\"completed\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"rodo-acceptance\\\"],[11,\\\"class\\\",\\\"col-xs-12\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"label-not-bold \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"rodoAccepted\\\"]],\\\"alert-text\\\"],null]]]],[11,\\\"for\\\",\\\"rodo-acceptance-checkbox\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"input\\\"],[11,\\\"id\\\",\\\"rodo-acceptance-checkbox\\\"],[12,\\\"checked\\\",[23,[\\\"model\\\",\\\"rodoAccepted\\\"]]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"toggleRodoAcceptance\\\"],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n\\\\n                         \\\"],[1,[27,\\\"t\\\",[\\\"advice.rodo\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\",\\\"className\\\"],[[23,[\\\"model\\\"]],\\\"rodoAccepted\\\",\\\"has-error\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-left\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"sent\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"historyList\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"historyList\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"pull-left\\\"],[9],[1,[27,\\\"my-format-date\\\",[[22,1,[\\\"dateCreated\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n                            | \\\"],[1,[21,\\\"sentLabel\\\"],false],[0,\\\" \\\"],[1,[22,1,[\\\"sender\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"model\\\",\\\"transport\\\",\\\"completed\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"dataButtonName\\\",\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"resend-email-advice\\\",\\\"btn btn-primary\\\",[27,\\\"t\\\",[\\\"emailAdvice.confirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"sendEmailAdvice\\\"],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"common.resend\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"CLOSE\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.close\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"model\\\",\\\"transport\\\",\\\"completed\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[12,\\\"data-loading-text\\\",[28,[[27,\\\"t\\\",[\\\"common.pleaseWait\\\"],null]]]],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"EMAIL_ADVICE\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.send\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"sendEmailAdvice\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"CANCEL\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transports/modals/email-advice/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/modals/loading-data/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"7B1eTVTT\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\"],[[27,\\\"t\\\",[\\\"common.loadingData\\\"],null]]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[27,\\\"t\\\",[\\\"common.pleaseWait\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transports/modals/loading-data/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/modals/transport-relations/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    relationsCombiner: Ember.inject.service('transport-relations.relations-combiner'),\n    errors: Ember.A([]),\n    noTypeForSelection: Ember.computed('showTransportCombiningLabel', 'showHasToWaitForLabel', function () {\n      return this.get('model.currentPossibleRelations.length') < 1;\n    }),\n    relationList: Ember.computed('model.currentPossibleRelations.[]', function () {\n      return this.get('model.currentPossibleRelations');\n    }),\n    showTransportCombiningLabel: Ember.computed('model.relation', function () {\n      return this.get('model.relation.alias') === 'TRANSPORT_COMBINING';\n    }),\n    masterTransportLabel: Ember.computed('model.firstObject', function () {\n      return this.get('model.masterTransport.identifier');\n    }),\n    otherTransportsLabels: Ember.computed('model.otherTransports.[]', function () {\n      const otherTransports = this.get('model.otherTransports');\n      let string = '';\n      otherTransports.forEach(transport => {\n        if (transport.id) {\n          string += transport.get('identifier') + ' :: ';\n        }\n      });\n      return string.substring(0, string.length - 4);\n    }),\n    showHasToWaitForLabel: Ember.computed('model.relation', function () {\n      return this.get('model.relation.alias') === 'HAS_TO_WAIT_FOR';\n    }),\n    title: Ember.computed('', function () {\n      return this.get('intl').t('transport.relations.title');\n    }),\n    overweight: Ember.computed('model.selectedRelation', function () {\n      const relation = this.get('model.selectedRelation');\n\n      if (!relation) {\n        return false;\n      }\n\n      return this.get('relationsCombiner').isOverweight(relation);\n    }),\n    actions: {\n      setSelectedRelation(relation) {\n        this.set('model.selectedRelation', relation);\n      },\n\n      combine: function () {\n        const combiningErrors = this.get('relationsCombiner').combine(this.get('model.selectedRelation'));\n\n        if (combiningErrors && combiningErrors.length > 0) {\n          this.setProperties({\n            errors: combiningErrors\n          });\n          return;\n        }\n\n        this.send('close');\n      },\n      close: function () {\n        this.set('errors', []);\n        this.send('refreshRoute');\n        this.send('hideModal');\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/modals/transport-relations/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"3PKuAk3f\",\n    \"block\": \"{\\\"symbols\\\":[\\\"relation\\\",\\\"slave\\\",\\\"master\\\",\\\"slave\\\",\\\"master\\\",\\\"error\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"cancel\\\"],[[23,[\\\"title\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"close\\\"],null]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,6,[]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"noTypeForSelection\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.relations.noTypeForSelection\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.relations.defaultLabel\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"relationList\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label-not-bold active\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"setSelectedRelation\\\",[22,1,[]]],null]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"input\\\"],[11,\\\"name\\\",\\\"options\\\"],[12,\\\"id\\\",[28,[\\\"option-\\\",[22,1,[\\\"type\\\"]]]]],[11,\\\"autocomplete\\\",\\\"off\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"type\\\"]],\\\"TRANSPORT_COMBINING\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"span\\\"],[9],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"transport.relations.combining\\\"],null],false],[0,\\\" ::\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"transport.relations.combinedTransports\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,1,[\\\"masters\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"span\\\"],[9],[1,[22,5,[\\\"id\\\"]],false],[0,\\\" (\\\"],[1,[22,5,[\\\"erpIdentifier\\\"]],false],[0,\\\"),\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[4,\\\"each\\\",[[22,1,[\\\"slaves\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"span\\\"],[9],[1,[22,4,[\\\"id\\\"]],false],[0,\\\" (\\\"],[1,[22,4,[\\\"erpIdentifier\\\"]],false],[0,\\\"),\\\"],[10],[0,\\\"\\\\n                                \\\"]],\\\"parameters\\\":[4]},null],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"span\\\"],[9],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"transport.relations.hasToWaitFor\\\"],null],false],[0,\\\" ::\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"transport.relations.mainTransport\\\"],null],false],[0,\\\" ::\\\\n\\\"],[4,\\\"each\\\",[[22,1,[\\\"masters\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"span\\\"],[9],[1,[22,3,[\\\"id\\\"]],false],[0,\\\" (\\\"],[1,[22,3,[\\\"erpIdentifier\\\"]],false],[0,\\\"),\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"transport.relations.relatedTransports\\\"],null],false],[0,\\\" ::\\\\n\\\"],[4,\\\"each\\\",[[22,1,[\\\"slaves\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"span\\\"],[9],[1,[22,2,[\\\"id\\\"]],false],[0,\\\" (\\\"],[1,[22,2,[\\\"erpIdentifier\\\"]],false],[0,\\\"),\\\"],[10],[0,\\\"\\\\n                                \\\"]],\\\"parameters\\\":[2]},null],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"noTypeForSelection\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"overweight\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"alert-text\\\"],[9],[1,[27,\\\"t\\\",[\\\"transport.relations.overweight\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"selectedRelation\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[12,\\\"data-loading-text\\\",[28,[[27,\\\"t\\\",[\\\"common.pleaseWait\\\"],null]]]],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"create-relation\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"transport.relations.bind\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"combine\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"create-similar-multiple-close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.close\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"close\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transports/modals/transport-relations/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/modals/transport-types-to-excel/controller\", [\"exports\", \"apollo/mixins/attachment-mixin\"], function (_exports, _attachmentMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_attachmentMixin.default, {\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    EXPORT_TYPES: Object.freeze({\n      BASIC: 'BASIC',\n      ADVANCED: 'ADVANCED',\n      BILLING: 'BILLING',\n      ADVICE: 'ADVICE',\n      OWN_COLUMNS: 'OWN_COLUMNS',\n      TIME_WINDOW_ADVICE: 'TIME_WINDOW_ADVICE'\n    }),\n    // eslint-disable-next-line ember/no-observers\n    resetProperties: Ember.observer('model.modelOpenTime', function () {\n      this.set('exportActiveOrders', this.get('model.archived'));\n    }),\n    searchParams: Ember.computed('model.searchParams', function () {\n      return this.get('model.searchParams');\n    }),\n    archived: Ember.computed('model.archived', function () {\n      return this.get('model.archived');\n    }),\n    checkedTransportTypes: Ember.computed('model.checkedTransportTypes', function () {\n      return this.get('model.checkedTransportTypes');\n    }),\n    availableTransportTypes: Ember.computed('model.availableTransportTypes', function () {\n      return this.get('model.availableTransportTypes');\n    }),\n    autoAdviceReportLabel: Ember.computed('model.availableTransportTypes', function () {\n      let txt = this.get('intl').t('transportsToExcel.adviceReportLabel');\n      let nameList = '';\n      const locale = this.get('sessionAccount.language');\n      this.get('availableTransportTypes').forEach(it => {\n        if (it.get('isAvailableInAdviceReport')) {\n          if (locale === 'pl') {\n            nameList += it.name + ', ';\n          } else {\n            nameList += it.englishName + ', ';\n          }\n        }\n      });\n\n      if (nameList.length > 2) {\n        txt = txt + nameList.substring(0, nameList.length - 2);\n      } else {\n        txt = this.get('intl').t('transportsToExcel.adviceReportLabelEmpty');\n      }\n\n      return txt;\n    }),\n    disabledInAdviceReport: Ember.computed('model.availableTransportTypes', 'exportType', function () {\n      const exportType = this.get('exportType');\n      let tts = this.get('model.availableTransportTypes');\n\n      if (exportType === this.get('EXPORT_TYPES').ADVICE) {\n        tts = tts.filter(it => {\n          return !it.isAvailableInAdviceReport;\n        });\n        return tts;\n      } else {\n        return [];\n      }\n    }),\n    disableExportButton: Ember.computed('exportType', function () {\n      const exportType = this.get('exportType');\n      return exportType === undefined;\n    }),\n    actions: {\n      toggleCheckedTransportType: function (transportType) {\n        const checkedTransportTypes = this.get('checkedTransportTypes');\n\n        if (checkedTransportTypes.includes(transportType)) {\n          checkedTransportTypes.removeObject(transportType);\n        } else {\n          checkedTransportTypes.pushObject(transportType);\n        }\n      },\n\n      setBasicExportType() {\n        this.set('exportType', this.get('EXPORT_TYPES').BASIC);\n      },\n\n      setAdvancedExportType() {\n        this.set('exportType', this.get('EXPORT_TYPES').ADVANCED);\n      },\n\n      setBillingExportType() {\n        this.set('exportType', this.get('EXPORT_TYPES').BILLING);\n      },\n\n      setAdviceExportType() {\n        let checkedTransportTypes = this.get('model.checkedTransportTypes');\n\n        if (checkedTransportTypes.length > 0) {\n          checkedTransportTypes = checkedTransportTypes.filter(it => {\n            return it.isAvailableInAdviceReport;\n          });\n          this.set('model.checkedTransportTypes', checkedTransportTypes);\n        }\n\n        this.set('exportType', this.get('EXPORT_TYPES').ADVICE);\n      },\n\n      setTimeWindowAdviceExportType() {\n        this.set('exportType', this.get('EXPORT_TYPES').TIME_WINDOW_ADVICE);\n      },\n\n      setOwnColumnExportType() {\n        this.set('exportType', this.get('EXPORT_TYPES').OWN_COLUMNS);\n      },\n\n      cancel: function () {\n        this.send('hideModal');\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/modals/transport-types-to-excel/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Tq+vgdL5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"transportType\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"classNames\\\",\\\"allowDraggable\\\",\\\"title\\\",\\\"cancel\\\"],[\\\"transport-types-to-excel\\\",false,[27,\\\"t\\\",[\\\"transportsToExcel.title\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal section\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errorMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger validation-errors\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"close\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[21,\\\"errorMessage\\\"],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"title\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transportsToExcel.transportTypes\\\"],null],false],[0,\\\":\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"availableTransportTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[12,\\\"for\\\",[28,[[22,1,[\\\"alias\\\"]]]]],[11,\\\"class\\\",\\\"form-check-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"input\\\"],[12,\\\"data-field-name\\\",[28,[[22,1,[\\\"alias\\\"]]]]],[12,\\\"id\\\",[28,[[22,1,[\\\"alias\\\"]]]]],[11,\\\"class\\\",\\\"form-check-input\\\"],[12,\\\"disabled\\\",[27,\\\"is-in-list\\\",[[22,1,[]],[23,[\\\"disabledInAdviceReport\\\"]]],null]],[12,\\\"checked\\\",[27,\\\"is-in-list\\\",[[22,1,[]],[23,[\\\"model\\\",\\\"checkedTransportTypes\\\"]]],null]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"toggleCheckedTransportType\\\",[22,1,[]]],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"archived\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"title\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transportsToExcel.activeArchiveType\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"export-active-orders\\\"],[11,\\\"class\\\",\\\"form-check-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"input\\\"],[11,\\\"id\\\",\\\"export-active-orders\\\"],[11,\\\"data-field-name\\\",\\\"export-active-orders\\\"],[11,\\\"class\\\",\\\"form-check-input\\\"],[12,\\\"checked\\\",[21,\\\"exportActiveOrders\\\"]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[3,\\\"action\\\",[[22,0,[]],[23,[\\\"toggleProperty\\\"]],\\\"exportActiveOrders\\\"],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transportsToExcel.alsoExportActiveOrders\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"title\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"transportsToExcel.exportType\\\"],null],false],[0,\\\":\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_ADVICE_EXCEL\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"basic-export-type\\\"],[11,\\\"class\\\",\\\"form-check-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"input\\\"],[11,\\\"data-field-name\\\",\\\"basic-export-type\\\"],[11,\\\"id\\\",\\\"basic-export-type\\\"],[11,\\\"class\\\",\\\"form-check-input\\\"],[11,\\\"name\\\",\\\"export-type\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"setBasicExportType\\\"],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transportsToExcel.basicExportType\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"description\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transportsToExcel.basicExportTypeDescription\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"advanced-export-type\\\"],[11,\\\"class\\\",\\\"form-check-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"input\\\"],[11,\\\"data-field-name\\\",\\\"advanced-export-type\\\"],[11,\\\"id\\\",\\\"advanced-export-type\\\"],[11,\\\"class\\\",\\\"form-check-input\\\"],[11,\\\"name\\\",\\\"export-type\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"setAdvancedExportType\\\"],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transportsToExcel.advancedExportType\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"description\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transportsToExcel.advancedExportTypeDescription\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_CAN_GENERATE_FULL_SETTLEMENT_REPORT\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"billing-export-type\\\"],[11,\\\"class\\\",\\\"form-check-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"input\\\"],[11,\\\"data-field-name\\\",\\\"billing-export-type\\\"],[11,\\\"id\\\",\\\"billing-export-type\\\"],[11,\\\"class\\\",\\\"form-check-input\\\"],[11,\\\"name\\\",\\\"export-type\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"setBillingExportType\\\"],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transportsToExcel.billingExportType\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"description\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transportsToExcel.billingExportTypeDescription\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_CAN_GENERATE_TIME_WINDOW_ADVICE_REPORT\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"time-window-advice-export-type\\\"],[11,\\\"class\\\",\\\"form-check-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"input\\\"],[11,\\\"data-field-name\\\",\\\"time-window-advice-export-type\\\"],[11,\\\"id\\\",\\\"time-window-advice-export-type\\\"],[11,\\\"class\\\",\\\"form-check-input\\\"],[11,\\\"name\\\",\\\"export-type\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"setTimeWindowAdviceExportType\\\"],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transportsToExcel.timeWindowAdviceReportType\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"description\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transportsToExcel.timeWindowAdviceReportLabel\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_CAN_GENERATE_SHORT_SETTLEMENT_REPORT\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"advice-export-type\\\"],[11,\\\"class\\\",\\\"form-check-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"input\\\"],[11,\\\"data-field-name\\\",\\\"advice-export-type\\\"],[11,\\\"id\\\",\\\"advice-export-type\\\"],[11,\\\"class\\\",\\\"form-check-input\\\"],[11,\\\"name\\\",\\\"export-type\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"setAdviceExportType\\\"],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transportsToExcel.adviceReportType\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"description\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[21,\\\"autoAdviceReportLabel\\\"],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_OWN_COLUMNS_EXCEL\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"own-column-export-type\\\"],[11,\\\"class\\\",\\\"form-check-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"input\\\"],[11,\\\"data-field-name\\\",\\\"own-column-export-type\\\"],[11,\\\"id\\\",\\\"own-column-export-type\\\"],[11,\\\"class\\\",\\\"form-check-input\\\"],[11,\\\"name\\\",\\\"export-type\\\"],[11,\\\"type\\\",\\\"radio\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"setOwnColumnExportType\\\"],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transportsToExcel.ownColumnExportType\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"description\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"transportsToExcel.ownColumnExportTypeDescription\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"generate-xls\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[12,\\\"disabled\\\",[21,\\\"disableExportButton\\\"]],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transportsToExcel.export\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"generateXLS\\\"]],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transports/modals/transport-types-to-excel/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/modals/warehouses-to-excel/controller\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: service('session-account'),\n    selectedWarehouses: Ember.A([]),\n    warehouses: Ember.computed('', function () {\n      return this.get('model.warehouses');\n    }),\n    _downloadRegistryOfPersonsXls: function () {\n      const token = this.get('sessionAccount.token');\n      const selectedWarehouses = this.get('selectedWarehouses');\n      const warehousesAsString = selectedWarehouses.map(w => w.get('id')).join(',');\n      const url = _environment.default.serverURL + '/reports/personsRegistry?token=' + token + '&warehousesId=' + warehousesAsString;\n      window.open(url, '_blank');\n      return this.send('hideModal');\n    },\n    actions: {\n      downloadRegistryOfPersonsXls() {\n        Ember.run.once(this, '_downloadRegistryOfPersonsXls');\n      },\n\n      cancel() {\n        this.set('selectedWarehouses', Ember.A([]));\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/modals/warehouses-to-excel/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"0FXfXgPs\",\n    \"block\": \"{\\\"symbols\\\":[\\\"warehouse\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"classNames\\\",\\\"allowDraggable\\\",\\\"title\\\",\\\"cancel\\\"],[\\\"warehouses-to-excel\\\",false,[27,\\\"t\\\",[\\\"warehousesToExcel.title\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal section\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errorMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger validation-errors\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"close\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[21,\\\"errorMessage\\\"],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"title\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"warehousesToExcel.label\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"power-select-multiple\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"placeholder\\\",\\\"options\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"selectedWarehouses\\\"]],[27,\\\"t\\\",[\\\"warehousesToExcel.placeholder\\\"],null],[23,[\\\"warehouses\\\"]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"selectedWarehouses\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer form-buttons margin-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"generate-xls\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"transportsToExcel.export\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"downloadRegistryOfPersonsXls\\\"]],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-dismiss\\\",\\\"modal\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/transports/modals/warehouses-to-excel/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/transports/print/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"apollo/config/environment\"], function (_exports, _authenticatedRouteMixin, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_TRANSPORT_TABLE'],\n    model: function (params) {\n      return this.get('store').findRecord('transport', params.id);\n    },\n    afterModel: function (model) {\n      model.set('canBeUpdated', false);\n      model.set('asPlainTemplate', true);\n\n      if (model.get('advice.id')) {\n        model.set('advice.canBeUpdated', false);\n      }\n    },\n    renderTemplate: function () {\n      this.render('transports.modals.create-transport');\n    },\n    setupController: function (controller, model) {\n      this.controllerFor('transports.modals.create-transport').setProperties({\n        model: model,\n        asPlainTemplate: true\n      });\n    },\n    actions: {\n      willTransition: function () {\n        this.controllerFor('transports.modals.create-transport').setProperties({\n          asPlainTemplate: false\n        });\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/truck-type-meta/model\", [\"exports\", \"ember-data/model\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _model, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    validationService: Ember.inject.service('validation-service'),\n    intl: Ember.inject.service(),\n    maximumLoadCapacity: attr('number'),\n    internalWidth: attr('number'),\n    internalHeight: attr('number'),\n    internalLength: attr('number'),\n    timeWindowSizeIncrease: attr('number'),\n    validations: {\n      timeWindowSizeIncrease: {\n        custom: [{\n          validation: function (key, value) {\n            if (!value) {\n              return true;\n            }\n\n            return value % 15 === 0;\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('errors.divisable15');\n          }\n        }, {\n          validation: function (key, value, model) {\n            if (!value) {\n              return true;\n            }\n\n            return model.get('validationService').isPositiveInteger(value);\n          },\n          message: 'positiveInteger'\n        }]\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/truck-type/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    belongsTo,\n    hasMany\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    languageService: Ember.inject.service('language-service'),\n    validationService: Ember.inject.service('validation-service'),\n    truckTypeName: attr('string'),\n    truckTypeNameEn: attr('string'),\n    truckTypeMeta: belongsTo('truckTypeMeta', {\n      async: false\n    }),\n    transportTypes: hasMany('transportType', {\n      async: true,\n      inverse: null\n    }),\n    truckTypeIdx: attr('number'),\n    enabled: attr('boolean'),\n    requireTransportPackaging: attr('boolean'),\n    ltlPricingEnabled: attr('boolean'),\n    validations: {\n      truckTypeName: {\n        presence: {\n          message: 'blank'\n        },\n        length: {\n          maximum: {\n            value: 255,\n            message: 'length255'\n          }\n        }\n      },\n      truckTypeNameEn: {\n        presence: {\n          message: 'blank'\n        },\n        length: {\n          maximum: {\n            value: 255,\n            message: 'length255'\n          }\n        }\n      },\n      truckTypeIdx: {\n        presence: {\n          message: 'blank'\n        },\n        custom: [{\n          validation: function (key, value, model) {\n            return model.get('validationService').isPositiveInteger(value);\n          },\n          message: 'positiveNumber'\n        }]\n      }\n    },\n    nameInAppropriateLanguage: Ember.computed('truckTypeName', 'truckTypeNameEn', function () {\n      const propertyName = this.get('languageService').findProperLanguageVersion('truckTypeName', 'truckTypeNameEn');\n      return this.get(propertyName);\n    }),\n    hasMetaData: Ember.computed('truckTypeMeta.id', function () {\n      return !!this.get('truckTypeMeta.id');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/truck-type/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, {\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    attrs: {\n      truckTypeMeta: {\n        serialize: 'records',\n        deserialize: 'records'\n      },\n      transportTypes: {\n        serialize: 'ids'\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/truck-types/index/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    modalService: Ember.inject.service('modal-service'),\n    errors: Ember.A([]),\n    successMessage: null,\n    company: Ember.computed('model.company.id', function () {\n      return this.get('model.company');\n    }),\n    transportTypes: Ember.computed('model.transportTypes.@each.id', function () {\n      return this.get('model.transportTypes');\n    }),\n    truckTypes: Ember.computed('model.truckTypes.@each.{hasMetaData,enabled}', function () {\n      // Poniżej filtrujemy te z truckTypeMete, żeby pokazywać tu tylko typu pojazdu dodane z nowego GUI\n      return this.get('model.truckTypes').filter(tt => tt.get('hasMetaData') && tt.get('enabled'));\n    }),\n    sortedTruckTypes: Ember.computed('truckTypes.@each.{truckTypeIdx,length}', function () {\n      return this.get('truckTypes').sortBy('truckTypeIdx');\n    }),\n    actions: {\n      add: function () {\n        const truckTypeMeta = this.get('store').createRecord('truckTypeMeta');\n        this.get('modalService').showModal(this.get('modalService').MODALS.TRUCK_TYPE.FORM, Ember.ObjectProxy.create({\n          truckType: this.get('store').createRecord('truckType', {\n            truckTypeMeta\n          }),\n          transportTypes: this.get('model.transportTypes')\n        }));\n      },\n      edit: function (truckType) {\n        this.get('modalService').showModal(this.get('modalService').MODALS.TRUCK_TYPE.FORM, Ember.ObjectProxy.create({\n          truckType,\n          transportTypes: this.get('transportTypes')\n        }));\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/truck-types/index/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    access: Ember.A(['ROLE_MANAGE_TRUCK_TYPES']),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      return Ember.RSVP.hash({\n        transportTypes: this.store.findAll('transportType'),\n        truckTypes: this.store.findAll('truckType')\n      });\n    },\n    actions: {\n      refreshRoute: function () {\n        this.refresh();\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/truck-types/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"U3Wur3h9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"truckType\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[0,\\\"\\\\n    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"add\\\"]],[10],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-responsive padding-top\\\"],[11,\\\"data-field-name\\\",\\\"truck-types-table\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table-responsive table-hover table-condensed\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"truckType.form.name\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"truckType.form.maxLoad\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"truckType.form.height\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"truckType.form.width\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"truckType.form.length\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"truckType.form.idx\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"sortedTruckTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"truck-type-name\\\"],[12,\\\"data-truck-type-id\\\",[22,1,[\\\"id\\\"]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"a\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,1,[\\\"truckTypeName\\\"]],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"edit\\\",[22,1,[]]]],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"truck-type-max-load\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"truckTypeMeta\\\",\\\"maximumLoadCapacity\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"truck-type-height\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"truckTypeMeta\\\",\\\"internalHeight\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"truck-type-width\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"truckTypeMeta\\\",\\\"internalWidth\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"truck-type-length\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"truckTypeMeta\\\",\\\"internalLength\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"truck-type-idx\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[22,1,[\\\"truckTypeIdx\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/truck-types/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/truck-types/modals/form/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    truckTypesIndexController: Ember.inject.controller('truck-types.index'),\n\n    async init() {\n      this._super(...arguments);\n\n      this.set('loading', true);\n      await this.get('model.truckType.truckTypeMeta');\n      await this.get('model.truckType.transportTypes');\n      await this.get('model.transportTypes');\n      this.set('loading', false);\n    },\n\n    modalTitle: Ember.computed('truckType.id', function () {\n      return this.get('truckType.id') ? this.get('intl').t('truckType.form.title.edit') : this.get('intl').t('truckType.form.title.add');\n    }),\n    truckType: Ember.computed('model.truckType', function () {\n      return this.get('model.truckType');\n    }),\n    transportTypes: Ember.computed('model.transportTypes.[]', function () {\n      return this.get('model.transportTypes');\n    }),\n    truckTypeMeta: Ember.computed('truckType.truckTypeMeta.[]', function () {\n      return this.get('truckType.truckTypeMeta');\n    }),\n    proxiedTransportTypes: Ember.computed('truckType.transportTypes', 'transportTypes', function () {\n      const properTransportTypesList = this.get('truckType.id') ? this.get('truckType.transportTypes') : [];\n      return this.get('transportTypes').map(tt => {\n        return Ember.ObjectProxy.create({\n          content: tt,\n          checked: properTransportTypesList.getEach('id').includes(tt.get('id'))\n        });\n      });\n    }),\n    actions: {\n      save() {\n        const self = this;\n        const truckType = this.get('truckType');\n        const truckTypeMeta = this.get('truckType.truckTypeMeta');\n        truckType.set('transportTypes', this.get('proxiedTransportTypes').filterBy('checked', true).map(tt => tt.content));\n        const isTruckTypeValid = truckType.validate();\n        const isTruckTypeMetaValid = truckTypeMeta ? truckTypeMeta.validate() : true;\n\n        if (!isTruckTypeValid || !isTruckTypeMetaValid) {\n          this.set('errors', []);\n          return;\n        }\n\n        truckType.save().then(() => {\n          self.set('errors', []);\n          self.send('refreshRoute');\n          self.send('hideModal');\n        }).catch(response => {\n          console.debug(response);\n          response.errors ? this.set('errors', response.errors) : this.set('errors', [this.get('intl').t('common.defaultError')]);\n        });\n      },\n\n      cancel() {\n        this.get('truckType').rollbackAttributes();\n        this.get('truckType.truckTypeMeta').rollbackAttributes();\n        this.send('hideModal');\n      },\n\n      disable() {\n        const self = this;\n        const truckType = this.get('truckType');\n        const msg = self.get('intl').t('truckType.form.disabledTruckType');\n        truckType.set('enabled', false);\n        truckType.save().then(() => {\n          console.log(`Poprawanie wyłączyliśmy typ pojazdu ${truckType}`);\n          self.get('truckTypesIndexController').set('successMessage', msg);\n          self.set('errors', []);\n          self.send('refreshRoute');\n          self.send('hideModal');\n        }).catch(response => {\n          console.debug(response);\n          response.errors ? this.set('errors', response.errors) : this.set('errors', [this.get('intl').t('common.defaultError')]);\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/truck-types/modals/form/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"nt5EU4VN\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tt\\\"],\\\"statements\\\":[[4,\\\"custom-modal\\\",null,[[\\\"title\\\",\\\"showCancelButton\\\",\\\"cancel\\\"],[[23,[\\\"modalTitle\\\"]],true,[27,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"data-form-name\\\",\\\"truck-type-form\\\"],[11,\\\"class\\\",\\\"form-horizontal section\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"truckType.form.idx\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"truck-type-idx\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"truckType\\\",\\\"errors\\\",\\\"truckTypeIdx\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"truckType\\\",\\\"truckTypeIdx\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"truckType\\\"]],\\\"truckTypeIdx\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"truckType.form.name\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"truck-type-name\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"truckType\\\",\\\"errors\\\",\\\"truckTypeName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"truckType\\\",\\\"truckTypeName\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"truckType\\\"]],\\\"truckTypeName\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"truckType.form.nameEn\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"truck-type-name-en\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"truckType\\\",\\\"errors\\\",\\\"truckTypeNameEn\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"truckType\\\",\\\"truckTypeNameEn\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"truckType\\\"]],\\\"truckTypeNameEn\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"truckType.form.maxLoad\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"truck-type-max-load\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"truckTypeMeta\\\",\\\"errors\\\",\\\"maximumLoadCapacity\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"number\\\",[23,[\\\"truckTypeMeta\\\",\\\"maximumLoadCapacity\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"truckTypeMeta\\\"]],\\\"maximumLoadCapacity\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"truckType.form.height\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"truck-type-height\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"truckTypeMeta\\\",\\\"errors\\\",\\\"internalHeight\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"number\\\",[23,[\\\"truckTypeMeta\\\",\\\"internalHeight\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"truckTypeMeta\\\"]],\\\"internalHeight\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"truckType.form.width\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"truck-type-width\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"truckTypeMeta\\\",\\\"errors\\\",\\\"internalWidth\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"number\\\",[23,[\\\"truckTypeMeta\\\",\\\"internalWidth\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"truckTypeMeta\\\"]],\\\"internalWidth\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"truckType.form.length\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"truck-type-length\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"truckTypeMeta\\\",\\\"errors\\\",\\\"internalLength\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"number\\\",[23,[\\\"truckTypeMeta\\\",\\\"internalLength\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"truckTypeMeta\\\"]],\\\"internalLength\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"truckType.form.timeWindowSizeIncrease\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"truck-type-constant-time\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"truckTypeMeta\\\",\\\"errors\\\",\\\"timeWindowSizeIncrease\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"class\\\",\\\"value\\\"],[\\\"number\\\",\\\"15\\\",\\\"form-control\\\",[23,[\\\"truckTypeMeta\\\",\\\"timeWindowSizeIncrease\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"truckType\\\",\\\"truckTypeMeta\\\"]],\\\"timeWindowSizeIncrease\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-6 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"truckType.form.requireTransportPackaging\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-3 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"no-wrap\\\"],[11,\\\"data-field-name\\\",\\\"require-transport-packaging\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"truckType\\\",\\\"requireTransportPackaging\\\"]]]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[23,[\\\"truckType\\\",\\\"form\\\",\\\"requireTransportPackaging\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-6 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"truckType.form.ltlPricingEnabled\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-3 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"no-wrap\\\"],[11,\\\"data-field-name\\\",\\\"ltl-pricing-enabled\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"truckType\\\",\\\"ltlPricingEnabled\\\"]]]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[23,[\\\"truckType\\\",\\\"form\\\",\\\"ltlPricingEnabled\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-6 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"truckType.form.transportTypes\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-3 form-control-static\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"proxiedTransportTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"no-wrap\\\"],[12,\\\"data-field-name\\\",[28,[\\\"enabled-for-\\\",[22,1,[\\\"alias\\\"]]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"checked\\\"],[\\\"checkbox\\\",[27,\\\"concat\\\",[\\\"transport-type-\\\",[22,1,[\\\"id\\\"]]],null],[22,1,[\\\"checked\\\"]]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"label\\\"],[12,\\\"for\\\",[28,[[27,\\\"concat\\\",[\\\"transport-type-\\\",[22,1,[\\\"id\\\"]]],null]]]],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"modal-footer\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"save-button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"truckType\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"truckType.form.disableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"disable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"ban\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.disable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"cancel-button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/truck-types/modals/form/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/truck/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\", \"apollo/utils/validators/registration-number-validator\"], function (_exports, _emberData, _modelValidator, _registrationNumberValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend(_modelValidator.default, {\n    dateUtils: Ember.inject.service('date-utils'),\n    intl: Ember.inject.service(),\n    STATUS: {\n      AWAITING_VERIFICATION: 'AWAITING_VERIFICATION',\n      ACCEPTED: 'ACCEPTED',\n      UPDATED: 'UPDATED',\n      REJECTED: 'REJECTED',\n      BLOCKED: 'BLOCKED',\n      DISABLED: 'DISABLED',\n      DOCUMENT_ADDED: 'DOCUMENT_ADDED'\n    },\n    owner: _emberData.default.belongsTo('company', {\n      async: true\n    }),\n    whoVerified: _emberData.default.belongsTo('user', {\n      async: true\n    }),\n    truckType: _emberData.default.belongsTo('truck-type', {\n      async: true\n    }),\n    vehicleMainSection: _emberData.default.belongsTo('vehicle-main-section', {\n      async: true\n    }),\n    registrationNumber: _emberData.default.attr('string'),\n    trailer: _emberData.default.attr('string'),\n    description: _emberData.default.attr('string'),\n    hds: _emberData.default.attr('boolean'),\n    isModeOfTransportation: _emberData.default.attr('boolean'),\n    verificationCompleted: _emberData.default.attr('boolean'),\n    documents: _emberData.default.hasMany('documents', {\n      async: true\n    }),\n    status: _emberData.default.attr('string'),\n    verificationDate: _emberData.default.attr('date'),\n    enabled: _emberData.default.attr('boolean'),\n    lastUpdated: _emberData.default.attr('date'),\n    validations: {\n      registrationNumber: {\n        presence: {\n          message: 'blank'\n        },\n        custom: [{\n          validation: function (key, value) {\n            return !value || _registrationNumberValidator.default.validate(value);\n          },\n          message: 'regex'\n        }]\n      },\n      trailer: {\n        custom: [{\n          validation: function (key, value) {\n            return !value || _registrationNumberValidator.default.validate(value);\n          },\n          message: 'regex'\n        }]\n      }\n    },\n    acceptedDocuments: Ember.computed('documents.@each.{id,isAccepted}', function () {\n      return this.get('documents').filterBy('id').filterBy('isAccepted');\n    }),\n    activeDocuments: Ember.computed('documents.@each.{id,isActive,expirationDate,blocksAdviceWhenInvalid,state}', function () {\n      return this.get('documents').filterBy('id').filterBy('isActive');\n    }),\n    archivedDocuments: Ember.computed('documents.@each.{id,isActive}', function () {\n      return this.get('documents').filterBy('id').filterBy('isActive', false);\n    }),\n    lastSensorCalibrationCertificate: Ember.computed('activeDocuments.@each.id', function () {\n      return this.findLastDocumentWithType('SENSOR_CALIBRATION_CERTIFICATE', 'expirationDate');\n    }),\n    lastSummerMapping: Ember.computed('activeDocuments.@each.id', function () {\n      return this.findLastDocumentWithType('SUMMER_MAPPING', 'expirationDate');\n    }),\n    lastWinterMapping: Ember.computed('activeDocuments.@each.id', function () {\n      return this.findLastDocumentWithType('WINTER_MAPPING', 'expirationDate');\n    }),\n    lastSensorCalibrationCertificateDate: Ember.computed('activeDocuments.@each.id', function () {\n      return this.findLastDocumentDateWithType('SENSOR_CALIBRATION_CERTIFICATE', 'expirationDate');\n    }),\n    lastSummerMappingDate: Ember.computed('activeDocuments.@each.id', function () {\n      return this.findLastDocumentDateWithType('SUMMER_MAPPING', 'expirationDate');\n    }),\n    lastWinterMappingDate: Ember.computed('activeDocuments.@each.id', function () {\n      return this.findLastDocumentDateWithType('WINTER_MAPPING', 'expirationDate');\n    }),\n    statusName: Ember.computed('status', function () {\n      const key = 'modeOfTransportation.status.'.concat(this.get('status'));\n      return this.get('intl').t(key);\n    }),\n\n    findLastDocumentDateWithType(type, sortProperty) {\n      const lastDocument = this.findLastDocumentWithType(type, sortProperty);\n      return lastDocument ? lastDocument.get(sortProperty) : null;\n    },\n\n    findLastDocumentWithType(type, sortProperty) {\n      return this.get('activeDocuments').filter(dt => {\n        return dt.get('name') === type && dt.get('state') === this.STATUS.ACCEPTED;\n      }).sortBy(sortProperty).get('lastObject');\n    },\n\n    disabledReason: Ember.computed('statusName', 'activeDocuments.@each.state', 'cannotBeChosenInfo', function () {\n      const stateLabel = this.get('intl').t('modeOfTransportation.disabledReason.label', {\n        status: this.get('statusName')\n      });\n      const activeDocuments = this.get('activeDocuments');\n      const rejectedSections = activeDocuments.filter(d => d.get('state') === this.STATUS.REJECTED).map(d => d.get('translatedName'));\n      const blockedSections = activeDocuments.filter(d => d.get('state') === this.STATUS.BLOCKED).map(d => d.get('translatedName'));\n      const rejectedLabel = rejectedSections.get('length') > 0 ? '\\n' + this.get('intl').t('modeOfTransportation.disabledReason.rejectedSections', {\n        rejectedSections: rejectedSections.join(', ')\n      }) : '';\n      const blockedLabel = blockedSections.get('length') > 0 ? '\\n' + this.get('intl').t('modeOfTransportation.disabledReason.blockedSections', {\n        blockedSections: blockedSections.join(', ')\n      }) : '';\n      const cannotBeChosenInfo = this.get('cannotBeChosenInfo') || '';\n      return stateLabel + rejectedLabel + blockedLabel + cannotBeChosenInfo;\n    }),\n    documentBlockingAdvice: Ember.computed('activeDocuments.@each.blocksAdviceWhenInvalid', 'activeDocuments.@each.expirationDate', function () {\n      const documents = this.get('activeDocuments').filter(d => {\n        return d.get('blocksAdviceWhenInvalid') && d.get('state') === this.STATUS.ACCEPTED;\n      });\n      const documentTypes = this.get('activeDocuments').getEach('name').uniq();\n      const consideredDocuments = [];\n\n      for (let i = 0; i < documentTypes.length; i++) {\n        const documentsWithType = documents.filter(d => d.get('name') === documentTypes[i]);\n        const documentWithMaxDate = documentsWithType.sortBy('expirationDate').get('lastObject');\n        consideredDocuments.push(documentWithMaxDate);\n      }\n\n      return consideredDocuments.sortBy('expirationDate').get('firstObject');\n    }),\n    minValidityDateOfDocumentsBlockingAdvice: Ember.computed('documentBlockingAdvice', 'documentBlockingAdvice.expirationDate', function () {\n      return this.get('documentBlockingAdvice.expirationDate');\n    }),\n    truckCannotBeChosenInAdvice: Ember.computed('minValidityDateOfDocumentsBlockingAdvice', 'tmpTransportDate', function () {\n      const minValidityDate = this.get('minValidityDateOfDocumentsBlockingAdvice');\n      const maxTransportDate = this.get('tmpTransportDate');\n      return minValidityDate < maxTransportDate;\n    }),\n\n    /**\n     * Musimy to nazwać `disabled`, żeby power-select blokował tę opcję\n     */\n    disabled: Ember.computed('status', 'truckCannotBeChosenInAdvice', function () {\n      return [this.get('STATUS.REJECTED'), this.get('STATUS.UPDATED'), this.get('STATUS.BLOCKED')].includes(this.get('status')) || this.get('truckCannotBeChosenInAdvice');\n    }),\n    cannotBeChosenInfo: Ember.computed('disabled', 'minValidityDateOfDocumentsBlockingAdvice', 'documentBlockingAdvice.translatedName', 'tmpTransportDate', function () {\n      if (!this.get('disabled')) {\n        return '';\n      }\n\n      const minValidityDate = moment(this.get('minValidityDateOfDocumentsBlockingAdvice')).format('DD.MM.YYYY');\n      const blockingDocument = this.get('documentBlockingAdvice.translatedName');\n      const maxTransportDate = moment(this.get('tmpTransportDate')).format('DD.MM.YYYY');\n      return '\\n' + this.get('intl').t('modeOfTransportation.disabledReason.blockingDocument', {\n        minValidityDate,\n        blockingDocument,\n        maxTransportDate\n      });\n    }),\n    statusIcon: Ember.computed('status', function () {\n      switch (this.get('status')) {\n        case this.get('STATUS').AWAITING_VERIFICATION:\n          return 'hourglass-start';\n\n        case this.get('STATUS').UPDATED:\n          return 'warning';\n\n        case this.get('STATUS').ACCEPTED:\n          return 'check-circle';\n\n        case this.get('STATUS').REJECTED:\n          return 'frown';\n\n        case this.get('STATUS').BLOCKED:\n          return 'minus-circle';\n\n        case this.get('STATUS').DISABLED:\n          return 'ban';\n      }\n    }),\n    statusClass: Ember.computed('status', function () {\n      if ([this.get('STATUS').REJECTED, this.get('STATUS').BLOCKED].includes(this.get('status'))) {\n        return 'errors';\n      }\n\n      if ([this.get('STATUS').ACCEPTED].includes(this.get('status'))) {\n        return 'success';\n      }\n\n      if ([this.get('STATUS').AWAITING_VERIFICATION].includes(this.get('status'))) {\n        return 'info';\n      }\n\n      if ([this.get('STATUS').UPDATED].includes(this.get('status'))) {\n        return 'warning';\n      }\n\n      if ([this.get('STATUS').DISABLED].includes(this.get('status'))) {\n        return 'text-dark padding-left';\n      }\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/trucks/index/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    queryParams: {\n      page: {\n        refreshModel: true\n      },\n      max: {\n        refreshModel: true\n      }\n    },\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_COMPANIES_TAB', 'ROLE_OWN_COMPANY_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const companyId = params.companyId;\n      params.max = params.max || 10;\n      params.page = params.page || 1;\n      return new Promise(resolve => {\n        this.store.query('truck', params).then(response => {\n          resolve(Ember.RSVP.hash({\n            trucks: response,\n            company: this.store.findRecord('company', companyId)\n          }));\n        }, () => {\n          this.transitionTo('forbidden');\n        });\n      });\n    },\n    actions: {\n      refreshModel() {\n        this.refresh();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/trucks/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"MSktXIdG\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"company-nav-header\\\",null,[[\\\"company\\\"],[[23,[\\\"model\\\",\\\"company\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"trucks/trucks-list\\\",null,[[\\\"company\\\",\\\"trucks\\\"],[[23,[\\\"model\\\",\\\"company\\\"]],[23,[\\\"model\\\",\\\"trucks\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/trucks/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/user-group/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend({\n    company: _emberData.default.belongsTo('company', {\n      async: true,\n      inverse: 'userGroups'\n    }),\n    name: _emberData.default.attr('string'),\n    mainGroup: _emberData.default.attr('boolean'),\n    canSeeOtherGroupsTransports: _emberData.default.attr('boolean'),\n    identifier: _emberData.default.attr('string')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/user-groups/create/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    userGroupsIndexController: Ember.inject.controller('user-groups/index'),\n    errors: [],\n    userGroup: Ember.computed('model.userGroup', function () {\n      return this.get('model.userGroup');\n    }),\n    canDeleteUserGroup: Ember.computed('userGroup.{id,mainGroup}', function () {\n      return this.get('userGroup.id') && !this.get('userGroup.mainGroup');\n    }),\n    handleSuccess: function () {\n      const successMsg = this.get('intl').t('common.saveSuccessMessage');\n      this.get('userGroupsIndexController').set('successMessage', successMsg);\n      this.transitionToRoute('user-groups.index', this.get('userGroup.company.id'));\n    },\n    handleFailure: function (response) {\n      this.set('errors', response.errors);\n    },\n    actions: {\n      save() {\n        this.get('userGroup').save().then(() => this.handleSuccess()).catch(response => this.handleFailure(response));\n      },\n\n      delete() {\n        this.get('userGroup').destroyRecord().then(() => this.handleSuccess()).catch(response => this.handleFailure(response));\n      },\n\n      cancel() {\n        this.transitionToRoute('user-groups.index', this.get('userGroup.company.id'));\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/user-groups/create/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_MANAGE_USER_GROUPS'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const company = this.store.peekRecord('company', params.companyId);\n      const userGroup = this.store.createRecord('userGroup', {\n        company: company\n      });\n      return Ember.RSVP.hash({\n        userGroup: userGroup\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/user-groups/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"Q0vitS1f\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"padding-bottom-big\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"userGroups.label\\\"],null],false],[0,\\\" - \\\"],[1,[23,[\\\"userGroup\\\",\\\"company\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"userGroups.name\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"user-groups-name\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"userGroup\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"userGroups.canSeeOtherGroupsTransports\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"user-groups-can-see-other-groups-transports\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"checked\\\"],[\\\"form-check\\\",\\\"checkbox\\\",[23,[\\\"userGroup\\\",\\\"canSeeOtherGroupsTransports\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-4 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"userGroups.identifier\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-8\\\"],[11,\\\"data-field-name\\\",\\\"user-groups-identifier\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"userGroup\\\",\\\"identifier\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top-big col-sm-12\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canDeleteUserGroup\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"data-button-name\\\",\\\"text\\\",\\\"onConfirm\\\",\\\"class\\\"],[\\\"user-groups-delete\\\",[27,\\\"t\\\",[\\\"common.sure\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\"],null],\\\"btn btn-danger\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"user-groups-cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/user-groups/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/user-groups/edit/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_MANAGE_USER_GROUPS'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const userGroup = this.store.findRecord('userGroup', params.id);\n      return Ember.RSVP.hash({\n        userGroup: userGroup\n      });\n    },\n    renderTemplate: function () {\n      this.render('userGroups.create');\n    },\n    setupController: function (controller, model) {\n      this.controllerFor('userGroups.create').setProperties({\n        model: model\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/user-groups/index/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    errors: [],\n    successMessage: null,\n    company: Ember.computed('model.company.id', function () {\n      return this.get('model.company');\n    }),\n    userGroups: Ember.computed('model.userGroups.@each.id', function () {\n      return this.get('model.userGroups');\n    }),\n    actions: {}\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/user-groups/index/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_MANAGE_USER_GROUPS'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const companyId = params.companyId;\n      const company = this.store.findRecord('company', companyId);\n      const userGroups = this.store.query('userGroup', {\n        companyId: companyId\n      });\n      return Ember.RSVP.hash({\n        company: company,\n        userGroups: userGroups\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/user-groups/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"rrIxWzO/\",\n    \"block\": \"{\\\"symbols\\\":[\\\"ug\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"company-nav-header\\\",null,[[\\\"company\\\"],[[23,[\\\"company\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"padding-bottom-big\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"userGroups.label\\\"],null],false],[0,\\\" - \\\"],[1,[23,[\\\"company\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"userGroups\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group row\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"user-groups.edit\\\",[22,1,[\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"user-groups-edit\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.edit\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top-big col-sm-12\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"user-groups.create\\\",[23,[\\\"company\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"user-groups-create\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.add\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/user-groups/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/user-notification/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend({\n    user: _emberData.default.belongsTo('user', {\n      async: true\n    }),\n    notification: _emberData.default.belongsTo('notification', {\n      async: true\n    }),\n    mode: _emberData.default.attr('string')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/user/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    hasMany,\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    ramps: hasMany('ramp', {\n      inverse: 'users'\n    }),\n    queues: hasMany('queue', {\n      inverse: 'users'\n    }),\n    workflows: hasMany('workflow', {\n      async: true\n    }),\n    roles: hasMany('role', {\n      async: true\n    }),\n    tableColumns: hasMany('tableColumn', {\n      async: true\n    }),\n    userNotifications: hasMany('userNotification', {\n      async: true\n    }),\n    transportTypes: hasMany('transportType', {\n      async: true\n    }),\n    company: belongsTo('company', {\n      async: true\n    }),\n    roleGroup: belongsTo('roleGroup', {\n      async: true\n    }),\n    userGroup: belongsTo('userGroup', {\n      async: true\n    }),\n    whoDeleted: belongsTo('user', {\n      async: true\n    }),\n    invitation: belongsTo('invitation', {\n      async: true,\n      inverse: 'registeredAccount'\n    }),\n    invitationCreator: attr('string'),\n    invitationDate: attr('date'),\n    lastLoginDate: attr('date'),\n    localAdmin: attr('boolean'),\n    ldapUser: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    waitingInvitationsCount: attr('number'),\n    unreadAnnouncementsCount: attr('number'),\n    username: attr('string'),\n    name: attr('string'),\n    email: attr('string'),\n    enabled: attr('boolean', {\n      defaultValue() {\n        return true;\n      }\n\n    }),\n    password: attr('string'),\n    phoneNumber: attr('string'),\n    mobilePhoneNumber: attr('string'),\n    mobilePhoneNumberPrefix: attr('string'),\n    occupation: attr('string'),\n    workHours: attr('string'),\n    newPassword: attr('string'),\n    repeatedNewPassword: attr('string'),\n    changePassword: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    confirmedTermsOfProvidingServices: attr('boolean', {\n      defaultValue() {\n        return false;\n      }\n\n    }),\n    accountExpired: attr('boolean'),\n    accountLocked: attr('boolean'),\n    temporaryAccount: attr('boolean'),\n    passwordExpired: attr('boolean'),\n    dateCreated: attr('date'),\n    dateDeleted: attr('date'),\n    resetPasswordDate: attr('date'),\n    resetPasswordIsDisabled: attr('boolean'),\n    statuteAccepted: attr('boolean'),\n    maxRowsInCompaniesTable: attr('number'),\n    preferredLanguage: attr('string'),\n    availableLanguages: attr(),\n    selectedNotifications: Ember.computed('userNotifications.@each.notification', function () {\n      return this.get('userNotifications').getEach('notification');\n    }),\n    warehouses: Ember.computed('ramps.{[],@each.warehouse}', function () {\n      return this.get('ramps').filterBy('enabled').getEach('warehouse').filterBy('enabled').filterBy('company.id', localStorage.getItem('principalId')).uniqBy('id').sortBy('idx');\n    }),\n    accessibleWarehouses: Ember.computed('warehouses.[]', function () {\n      if (this.get('sessionAccount').hasRole('ROLE_ACCESS_ALL_RAMPS')) {\n        return this.store.peekAll('warehouse').filterBy('enabled').sortBy('idx');\n      }\n\n      return this.get('warehouses').sortBy('idx');\n    }),\n    accessibleRamps: Ember.computed('ramps.[]]', function () {\n      if (this.get('sessionAccount').hasRole('ROLE_ACCESS_ALL_RAMPS')) {\n        return this.store.peekAll('ramp').filterBy('enabled');\n      }\n\n      return this.get('ramps');\n    }),\n    accessibleSquares: Ember.computed('squares.[]', function () {\n      if (this.get('sessionAccount').hasRole('ROLE_ACCESS_ALL_QUEUES')) {\n        return this.store.peekAll('square').filterBy('enabled').sortBy('idx');\n      }\n\n      return this.get('squares').sortBy('idx');\n    }),\n    accessibleQueues: Ember.computed('queues.[]', function () {\n      if (this.get('sessionAccount').hasRole('ROLE_ACCESS_ALL_QUEUES')) {\n        return this.store.peekAll('queue').filterBy('enabled');\n      }\n\n      return this.get('queues');\n    }),\n    warehouse: Ember.computed('warehouses.firstObject', function () {\n      return this.get('warehouses').get('firstObject');\n    }),\n    rampsIds: Ember.computed('ramps.@each.id', function () {\n      return this.get('ramps').map(r => r.get('id'));\n    }),\n    queuesIds: Ember.computed('queues.@each.id', function () {\n      return this.get('queues').getEach('id');\n    }),\n    squares: Ember.computed('queues.{[],@each.square}', function () {\n      return this.get('queues').filterBy('enabled').getEach('square').filterBy('enabled').filterBy('company.id', localStorage.getItem('principalId')).uniqBy('id').sortBy('idx');\n    }),\n    squaresIds: Ember.computed('squares.[]', function () {\n      return this.get('squares').getEach('id');\n    }),\n    roleNames: Ember.computed('roles.{length,@each.name}', function () {\n      return this.get('roles').map(function (r) {\n        return r.get('name');\n      });\n    }),\n    isPrincipal: Ember.computed('company.isPrincipal', function () {\n      return this.get('company').get('isPrincipal');\n    }),\n    canDiscardAdviceRestrictions: function (transportTypeId) {\n      if (!transportTypeId) {\n        return false;\n      }\n\n      const transportType = this.get('store').peekRecord('transportType', transportTypeId);\n      const positiveAuthorityRestrictions = transportType.findPositiveAuthorityRestrictionsByActionTypes(['ADD_TIME_WINDOW', 'ADD_ADVICE', 'RESIZE_ADVICE_WINDOW', 'MOVE_ADVICE_WINDOW']);\n      return positiveAuthorityRestrictions.get('length') !== 0 && positiveAuthorityRestrictions.every(ar => {\n        return ar.get('authorityRange') !== 'ADVICE_RESTRICTION_BASED';\n      });\n    },\n    canDiscardAssortmentGroupRestrictions: function () {\n      return this.get('sessionAccount').hasRole('ROLE_CAN_MOVE_WINDOW_OUT_OF_ASSORTMENT_GROUP');\n    },\n    accountStatus: Ember.computed('enabled', 'accountExpired', function () {\n      if (!this.get('enabled')) {\n        return 'DELETED';\n      }\n\n      if (this.get('temporaryAccount')) {\n        return 'TEMPORARY';\n      }\n\n      if (this.get('accountExpired')) {\n        return 'EXPIRED';\n      }\n\n      return 'ACTIVE';\n    }),\n    temporaryAccountDaysLeft: Ember.computed('dateCreated', function () {\n      const activePeriod = this.get('sessionAccount').getParameterValue('TEMPORARY_ACCOUNT_ACTIVE_PERIOD_IN_DAYS');\n      const endOfPeriod = moment(this.get('dateCreated')).add(activePeriod, 'days').startOf('day');\n      let daysLeft = endOfPeriod.diff(moment().startOf('day'), 'days');\n\n      if (daysLeft < 0) {\n        daysLeft = 0;\n      }\n\n      return daysLeft;\n    }),\n    validations: {\n      mobilePhoneNumber: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!value) {\n              return true;\n            }\n\n            return /^\\d+$/.test(value);\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('user.errors.mobilePhoneNumberRegexError');\n          }\n        }, {\n          validation: function (key, value, model) {\n            if (!value || model.get('mobilePhoneNumberPrefix') !== '48') {\n              return true;\n            }\n\n            return value.length === 9;\n          },\n          message: function (key, value, model) {\n            return model.get('intl').t('user.errors.mobilePhoneNumberLengthError');\n          }\n        }]\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/user/serializer\", [\"exports\", \"ember-data\", \"apollo/mixins/serializer-mixin\"], function (_exports, _emberData, _serializerMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, _serializerMixin.default, {\n    attrs: {\n      userNotifications: {\n        embedded: 'save'\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/activity/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    queryParams: ['page', 'max'],\n    user: Ember.computed('model.user', function () {\n      return this.get('model.user');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/activity/route\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    queryParams: {\n      page: {\n        refreshModel: true\n      },\n      max: {\n        refreshModel: true\n      }\n    },\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_ACCESS_USERS_ACTIVITY'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        return this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      params.max = params.max || 10;\n      params.page = params.page || 1;\n      return Ember.RSVP.hash({\n        user: this.store.findRecord('user', params.user_id),\n        logs: this.store.query('transportLog', {\n          userId: params.user_id,\n          max: params.max,\n          page: params.page\n        })\n      });\n    },\n    actions: {\n      loading(transition, originRoute) {\n        (0, _jquery.default)(\"html, body\").scrollTop(0);\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/activity/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"PIbCdua8\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"user-nav-header\\\",null,[[\\\"user\\\"],[[23,[\\\"user\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"expandable-panel\\\",null,[[\\\"title\\\",\\\"customIconClass\\\",\\\"componentName\\\",\\\"defaultOpen\\\"],[[27,\\\"t\\\",[\\\"users.activity\\\"],null],\\\"fa fa-history\\\",\\\"user-activity\\\",true]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"logs-section\\\",null,[[\\\"logsProxy\\\",\\\"mode\\\",\\\"class\\\"],[[23,[\\\"model\\\",\\\"logs\\\"]],\\\"USER\\\",\\\"no-scroll\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"pagination-buttons\\\",null,[[\\\"url\\\",\\\"page\\\",\\\"max\\\",\\\"totalPages\\\"],[\\\"users.activity\\\",[23,[\\\"page\\\"]],[23,[\\\"max\\\"]],[23,[\\\"model\\\",\\\"logs\\\",\\\"meta\\\",\\\"totalPages\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/users/activity/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/create/controller\", [\"exports\", \"apollo/mixins/persistence-mixin\", \"apollo/mixins/ramps-access-mixin\", \"apollo/mixins/queues-access-mixin\", \"apollo/mixins/user-utils-mixin\"], function (_exports, _persistenceMixin, _rampsAccessMixin, _queuesAccessMixin, _userUtilsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_persistenceMixin.default, _rampsAccessMixin.default, _userUtilsMixin.default, _queuesAccessMixin.default, {\n    intl: Ember.inject.service(),\n    session: Ember.inject.service('session'),\n    sessionAccount: Ember.inject.service('session-account'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    usersIndexController: Ember.inject.controller('users/index'),\n    usersShowController: Ember.inject.controller('users/show'),\n    errors: Ember.A([]),\n    user: Ember.computed('model.user', function () {\n      return this.get('model.user');\n    }),\n    isEditing: Ember.computed('user.id', function () {\n      return this.get('user').get('id') !== null;\n    }),\n    isInMyAccount: Ember.computed('user.id', function () {\n      return this.get('user.id') === this.get('sessionAccount.currentUser.id');\n    }),\n    roleGroups: Ember.computed('user.company.partnershipType', function () {\n      const invitationRestriction = this.get('model.roleGroupInvRestriction');\n\n      if (!invitationRestriction) {\n        return [];\n      }\n\n      const properPartnershipTypeId = this.get('user.company.partnershipType.id');\n      return invitationRestriction.filter(ir => ir.get('invitedRoleGroup.partnershipType.id') === properPartnershipTypeId).map(ir => ir.get('invitedRoleGroup'));\n    }),\n    canEditRoleGroup: Ember.computed('', function () {\n      return this.get('sessionAccount').hasRole('ROLE_EDIT_ROLE_GROUP');\n    }),\n    showUserGroupsSection: Ember.computed('user.company.{isPrincipal,userGroup.length}', function () {\n      return !this.get('user.company.isPrincipal') && this.get('user.company.customUserGroupsExists') || this.get('sessionAccount').isGroupFilterEnabled() || this.get('sessionAccount').isGroupFilterEnabledForUser(this.get('user'));\n    }),\n    actions: {\n      setPhonePrefix(phonePrefix) {\n        this.set('user.mobilePhoneNumberPrefix', phonePrefix);\n      },\n\n      setCompany(item) {\n        const self = this;\n        this.store.findRecord('company', item.id).then(company => {\n          self.get('user').setProperties({\n            company,\n            roleGroup: company.get('defaultRoleGroup')\n          });\n        });\n      },\n\n      setRoleGroup(group) {\n        this.get('user').setProperties({\n          oldRoleGroup: this.get('user').get('roleGroup'),\n          roleGroup: group\n        });\n      },\n\n      setUserGroup(group) {\n        this.get('user').setProperties({\n          oldUserGroup: this.get('user').get('userGroup'),\n          userGroup: group\n        });\n      },\n\n      save: function () {\n        const self = this;\n        const user = this.get('user');\n        if (!user.validate()) return;\n        user.save().then(function (user) {\n          self.set('errors', []);\n          const msg = self.get('intl').t('user.accountUpdated');\n\n          if (self.get('isEditing')) {\n            if (self.get('isInMyAccount')) {\n              user.setProperties({\n                changePassword: false,\n                password: '',\n                newPassword: '',\n                repeatedNewPassword: ''\n              });\n              self.set('successMessage', msg);\n              self.transitionToRoute('users.edit', user.get('id'));\n            } else {\n              self.get('usersShowController').set('successMessage', msg);\n              self.transitionToRoute('users.show', user.get('id'));\n            }\n          } else {\n            self.get('usersIndexController').set('successMessage', msg);\n            self.transitionToRoute('users.index');\n          }\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n      cancel: function () {\n        this.get('errors').clear();\n\n        if (!this.get('isEditing')) {\n          this.get('user').unloadRecord();\n          window.history.back();\n        } else {\n          const user = this.get('user');\n          user.rollbackAttributes();\n\n          if (user.get('oldRoleGroup')) {\n            user.setProperties({\n              roleGroup: user.get('oldRoleGroup'),\n              oldRoleGroup: null\n            });\n          }\n\n          if (user.get('oldUserGroup')) {\n            user.setProperties({\n              userGroup: user.get('oldUserGroup'),\n              oldUserGroup: null\n            });\n          }\n\n          window.history.back();\n        }\n      },\n\n      delete() {\n        const self = this;\n        const userModel = this.get('user');\n        const msg = self.get('intl').t('user.deletedUser');\n        userModel.destroyRecord().then(u => {\n          console.log(`Poprawnie usunęliśmy użytkownika ${u.get('name')}.`);\n          self.get('usersIndexController').set('successMessage', msg);\n          self.transitionToRoute('users.index');\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n\n      async disable() {\n        const self = this;\n        const user = this.get('user').get('name');\n        const userId = this.get('user').get('id');\n        const msg = self.get('intl').t('user.disabledUser');\n        const path = this.get('apolloApiService').APOLLO_API.USER.DISABLE;\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, {\n            userId\n          });\n\n          if (response.ok) {\n            console.log(`Poprwanie wyłączyliśmy użytkownika ${user}`);\n            self.get('usersIndexController').set('successMessage', msg);\n            self.transitionToRoute('users.index');\n          } else {\n            const error = await response.json();\n            self.set('errors', error.errors);\n          }\n        } catch (error) {\n          self.set('errors', [this.get('intl').t('common.defaultError')]);\n        }\n      },\n\n      toggleChangePasswordAndSetProperty: function () {\n        this.toggleProperty('user.changePassword');\n        this.get('user').setProperties({\n          password: '',\n          newPassword: '',\n          repeatedNewPassword: ''\n        });\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    inject: {\n      service\n    }\n  } = Ember;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_CREATE_USER'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        return this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      const currentUser = this.get('sessionAccount').get('currentUser');\n      const userRoleGroup = currentUser.get('roleGroup');\n      const roleGroupInvRestriction = this.store.query('role-group-invitation-restriction', {\n        roleGroup: userRoleGroup.get('id')\n      });\n      return Ember.RSVP.hash({\n        roleGroupInvRestriction: roleGroupInvRestriction,\n        user: this.store.createRecord('user', {\n          company: currentUser.get('company')\n        })\n      });\n    },\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          'successMessage': null\n        });\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"sEt1yFC2\",\n    \"block\": \"{\\\"symbols\\\":[\\\"lang\\\",\\\"g\\\",\\\"g\\\"],\\\"statements\\\":[[4,\\\"user-edit-form-outlet\\\",null,[[\\\"user\\\",\\\"errors\\\",\\\"successMessage\\\"],[[23,[\\\"user\\\"]],[23,[\\\"errors\\\"]],[23,[\\\"successMessage\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[11,\\\"autocomplete\\\",\\\"off\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_EDIT_ROLE_GROUP\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"role-group-select\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.role\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"role\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"canEditRoleGroup\\\"]]],null,{\\\"statements\\\":[[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"user\\\",\\\"roleGroup\\\"]],[23,[\\\"roleGroups\\\"]],false,[27,\\\"action\\\",[[22,0,[]],\\\"setRoleGroup\\\"],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,3,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"user\\\",\\\"roleGroup\\\",\\\"nameInAppropriateLanguage\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_LOCAL_ADMINS\\\"],null],[27,\\\"not\\\",[[23,[\\\"user\\\",\\\"company\\\",\\\"isPrincipal\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"local-admin-checkbox\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"user.localAdmin\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"local-admin\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"user\\\",\\\"localAdmin\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"user.name\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"name-and-surname\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"user\\\",\\\"name\\\"]],[27,\\\"and\\\",[[27,\\\"not\\\",[[23,[\\\"isInMyAccount\\\"]]],null],[27,\\\"not\\\",[[27,\\\"can-edit-user\\\",null,[[\\\"companyId\\\",\\\"role\\\",\\\"principalInDifferentSpace\\\"],[[23,[\\\"user\\\",\\\"company\\\",\\\"id\\\"]],\\\"ROLE_EDIT_USERS_MAIN_DATA\\\",[23,[\\\"user\\\",\\\"company\\\",\\\"principalInDifferentPrincipalSpace\\\"]]]]]],null]],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showUserGroupsSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showDivisionLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"user.groupName\\\"],null],false],[0,\\\":\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"user.contractorGroupName\\\"],null],false],[0,\\\":\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_EDIT_USERS_MAIN_DATA\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"division\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"allowClear\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"user\\\",\\\"userGroup\\\"]],[23,[\\\"user\\\",\\\"company\\\",\\\"userGroups\\\"]],false,true,[27,\\\"action\\\",[[22,0,[]],\\\"setUserGroup\\\"],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,2,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10 form-control-static\\\"],[11,\\\"data-field-name\\\",\\\"division\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[23,[\\\"user\\\",\\\"userGroup\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"e-mail:\\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"email\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"user\\\",\\\"email\\\"]],[27,\\\"and\\\",[[27,\\\"not\\\",[[23,[\\\"isInMyAccount\\\"]]],null],[27,\\\"not\\\",[[27,\\\"can-edit-user\\\",null,[[\\\"companyId\\\",\\\"role\\\",\\\"principalInDifferentSpace\\\"],[[23,[\\\"user\\\",\\\"company\\\",\\\"id\\\"]],\\\"ROLE_EDIT_USERS_MAIN_DATA\\\",[23,[\\\"user\\\",\\\"company\\\",\\\"principalInDifferentPrincipalSpace\\\"]]]]]],null]],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"user.preferredLanguage\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"preferred-language\\\"],[11,\\\"class\\\",\\\"col-md-10 col-xs-12\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"renderInPlace\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",true,[23,[\\\"user\\\",\\\"preferredLanguage\\\"]],[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"availableLanguages\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"user\\\",\\\"preferredLanguage\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"languages.\\\",[22,1,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.phone\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"data-field-name\\\",\\\"phone-prefix\\\"],[11,\\\"class\\\",\\\"col-md-1 col-xs-12\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"phone-prefix\\\",null,[[\\\"setPhonePrefix\\\",\\\"existingPhonePrefix\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"setPhonePrefix\\\"],null],[23,[\\\"user\\\",\\\"mobilePhoneNumberPrefix\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-9 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"user\\\",\\\"errors\\\",\\\"mobilePhoneNumber\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"phone\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"name\\\",\\\"type\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"user\\\",\\\"mobilePhoneNumber\\\"]],\\\"mobilePhoneNumber\\\",\\\"text\\\",[27,\\\"and\\\",[[27,\\\"not\\\",[[23,[\\\"isInMyAccount\\\"]]],null],[27,\\\"not\\\",[[27,\\\"can-edit-user\\\",null,[[\\\"companyId\\\",\\\"role\\\",\\\"principalInDifferentSpace\\\"],[[23,[\\\"user\\\",\\\"company\\\",\\\"id\\\"]],\\\"ROLE_EDIT_USERS_MAIN_DATA\\\",[23,[\\\"user\\\",\\\"company\\\",\\\"principalInDifferentPrincipalSpace\\\"]]]]]],null]],null]]]],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"user\\\"]],\\\"mobilePhoneNumber\\\"]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"auth.login\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_USER\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"login\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",[23,[\\\"user\\\",\\\"username\\\"]],[23,[\\\"user\\\",\\\"company\\\",\\\"principalInDifferentPrincipalSpace\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10 form-control-static\\\"],[11,\\\"data-field-name\\\",\\\"login\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"user\\\",\\\"username\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"user\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"or\\\",[[23,[\\\"isInMyAccount\\\"]],[27,\\\"can-edit-user\\\",null,[[\\\"companyId\\\",\\\"role\\\",\\\"principalInDifferentSpace\\\"],[[23,[\\\"user\\\",\\\"company\\\",\\\"id\\\"]],\\\"ROLE_EDIT_USERS_MAIN_DATA\\\",[23,[\\\"user\\\",\\\"company\\\",\\\"principalInDifferentPrincipalSpace\\\"]]]]]],null],[27,\\\"not\\\",[[23,[\\\"user\\\",\\\"ldapUser\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"auth.password\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"changePassword\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"auth.changePassword.\\\",[23,[\\\"user\\\",\\\"changePassword\\\"]]],null]],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"toggleChangePasswordAndSetProperty\\\"]],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"user\\\",\\\"changePassword\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"isInMyAccount\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"auth.oldPassword\\\"],null],false],[0,\\\":\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"old-password\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"password\\\",[23,[\\\"user\\\",\\\"password\\\"]]]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"auth.newPassword\\\"],null],false],[0,\\\":\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"new-password\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"password\\\",[23,[\\\"user\\\",\\\"newPassword\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"auth.repeatNewPassword\\\"],null],false],[0,\\\":\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"repeated-password\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"value\\\"],[\\\"form-control\\\",\\\"password\\\",[23,[\\\"user\\\",\\\"repeatedNewPassword\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"not\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_LDAP_USER\\\"],null]],null],[27,\\\"has-role\\\",[\\\"ROLE_SUPER_USER\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"local-admin-checkbox\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"user.ldapUser\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10 form-control-static\\\"],[11,\\\"data-field-name\\\",\\\"is-ldap-user\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"ldapUser\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"common.yes\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"common.no\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"auth.password\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"new-password\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",\\\"password\\\",[23,[\\\"user\\\",\\\"password\\\"]],[23,[\\\"user\\\",\\\"ldapUser\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"auth.repeatPassword\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"repeated-password\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control\\\",\\\"password\\\",[23,[\\\"user\\\",\\\"repeatedNewPassword\\\"]],[23,[\\\"user\\\",\\\"ldapUser\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_LDAP_USER\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"local-admin-checkbox\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"user.ldapUser\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10\\\"],[11,\\\"data-field-name\\\",\\\"ldap-user\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[23,[\\\"user\\\",\\\"ldapUser\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"user\\\",\\\"invitationCreator\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"small\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"user.invitedBy\\\"],[[\\\"date\\\",\\\"person\\\"],[[27,\\\"format-calendar\\\",[[23,[\\\"user\\\",\\\"invitationDate\\\"]]],null],[23,[\\\"user\\\",\\\"invitationCreator\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group pull-right\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"isEditing\\\"]],[27,\\\"has-role\\\",[\\\"ROLE_DISABLE_USER\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\",\\\"dataButtonName\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"user.disableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"disable\\\"],null],\\\"disable\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.disable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"isEditing\\\"]],[27,\\\"has-role\\\",[\\\"ROLE_DELETE_USER\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"user.deleteConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"ok\\\"],[[\\\"on\\\",\\\"target\\\"],[\\\"submit\\\",[23,[\\\"view\\\"]]]]],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/users/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: Ember.A(['ROLE_EDIT_USERS_MAIN_DATA']),\n    model: function (params, transition) {\n      const currentUser = this.get('sessionAccount').get('currentUser');\n      const hasAnyOfTheRoles = this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'));\n      const userRoleGroup = this.get('sessionAccount').get('currentUser.roleGroup');\n      const roleGroupInvRestriction = this.store.query('role-group-invitation-restriction', {\n        roleGroup: userRoleGroup.get('id')\n      });\n      const self = this;\n\n      if (params.user_id === currentUser.get('id') || hasAnyOfTheRoles) {\n        return new Promise(function (resolve) {\n          self.store.findRecord('user', params.user_id).then(response => {\n            resolve(Ember.RSVP.hash({\n              user: response,\n              roleGroupInvRestriction\n            }));\n          }, function () {\n            return self.transitionTo('forbidden');\n          });\n        });\n      } else {\n        transition.abort();\n        this.transitionTo('users.ramps', params.user_id);\n      }\n    },\n\n    afterModel(model) {\n      model.user.get('company').then(c => {\n        if (c.get('isAuxiliaryPartner')) {\n          console.log(`Company ${c.get('shortName')} is a partner of one of contractors. Edition is disabled -> redirecting to user's details view.`);\n          this.transitionTo('users.show', model.get('user.id'));\n        }\n      });\n    },\n\n    renderTemplate: function () {\n      this.render('users.create');\n    },\n    setupController: function (controller, model) {\n      // eslint-disable-next-line ember/no-controller-access-in-routes\n      this.controllerFor('users.create').setProperties({\n        model\n      });\n    },\n    actions: {\n      willTransition() {\n        // eslint-disable-next-line ember/no-controller-access-in-routes\n        this.controllerFor('users.create').setProperties({\n          'successMessage': null,\n          'model.user.changePassword': false,\n          'model.user.password': '',\n          'model.user.newPassword': '',\n          'model.user.repeatedNewPassword': ''\n        });\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/index/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    queryParams: ['globalSearch', 'page', 'size', 'type', 'companyId'],\n    queryInputChanged: Ember.observer('queryInput', function () {\n      Ember.run.debounce(this, this.applyFilter, 500);\n    }),\n\n    applyFilter() {\n      const queryInput = this.get('queryInput');\n      this.set('globalSearch', queryInput);\n\n      if (queryInput) {\n        this.setProperties({\n          page: 1,\n          filterActive: true\n        });\n      }\n    },\n\n    currentPage: Ember.computed('page', function () {\n      return this.get('page') || '1';\n    }),\n    actions: {\n      clearFilter() {\n        this.setProperties({\n          globalSearch: '',\n          queryInput: '',\n          filterActive: false\n        });\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"apollo/mixins/menu-mixin\"], function (_exports, _authenticatedRouteMixin, _menuMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _menuMixin.default, {\n    queryParams: {\n      globalSearch: {\n        refreshModel: true\n      },\n      page: {\n        refreshModel: true\n      },\n      max: {\n        refreshModel: true\n      },\n      companyId: {\n        refreshModel: true\n      }\n    },\n    model: function (params) {\n      params.max = params.max || 10;\n      params.page = params.page || 1;\n      const self = this;\n      const companyId = params.companyId;\n      return new Promise(function (resolve) {\n        (params ? self.store.query('user', params) : self.store.findAll('user')).then(response => {\n          resolve(Ember.RSVP.hash({\n            users: response,\n            company: companyId ? self.store.findRecord('company', companyId) : null\n          }));\n        }, () => self.transitionTo('forbidden'));\n      });\n    },\n    setupController: function (controller, model) {\n      this.get('controller').setProperties({\n        users: model.users,\n        company: model.company,\n        totalPages: model.users.get('meta.totalPages')\n      });\n    },\n\n    activate() {\n      this.activateCurrentTab(\"USERS_TAB\");\n    },\n\n    actions: {\n      willTransition(transition) {\n        this.get('controller').setProperties({\n          info: null,\n          errors: null,\n          successMessage: null\n        });\n\n        if (transition.targetName !== 'users.index') {\n          this.get('controller').setProperties({\n            globalSearch: '',\n            page: 1,\n            totalPages: 0,\n            queryInput: '',\n            filterActive: false\n          });\n        }\n\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"/dVYDRAZ\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container users-table-container\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"company\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"company-nav-header\\\",null,[[\\\"company\\\"],[[23,[\\\"company\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-success alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[10],[0,\\\"\\\\n            \\\"],[1,[21,\\\"successMessage\\\"],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left form-inline\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"users.label\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"data-field-name\\\",\\\"USERS_SEARCH_INPUT\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"type\\\",\\\"class\\\",\\\"placeholder\\\"],[[23,[\\\"queryInput\\\"]],\\\"text\\\",\\\"form-control\\\",[27,\\\"t\\\",[\\\"common.search\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"filterActive\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"clear-filters\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.clear\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"clearFilter\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_USER\\\"],null],[27,\\\"not\\\",[[23,[\\\"company\\\",\\\"id\\\"]]],null]],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"users.create\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"create-user\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"user.createUser\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"company\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"companies.invite\\\",[23,[\\\"company\\\",\\\"id\\\"]],[23,[\\\"company\\\",\\\"partnershipWithPrincipal\\\",\\\"partnershipType\\\",\\\"name\\\"]]],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"invite-to-company\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"invitation.invite\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"invitations.create\\\"],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"invite-user\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"invitation.invite\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"company\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"company\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[27,\\\"users/users-extended-list\\\",null,[[\\\"users\\\",\\\"company\\\"],[[23,[\\\"users\\\"]],[23,[\\\"company\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"pagination-buttons\\\",null,[[\\\"url\\\",\\\"page\\\",\\\"max\\\",\\\"totalPages\\\"],[\\\"users.index\\\",[23,[\\\"currentPage\\\"]],[23,[\\\"max\\\"]],[23,[\\\"totalPages\\\"]]]]],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/users/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/notifications/controller\", [\"exports\", \"apollo/mixins/persistence-mixin\", \"apollo/mixins/ramps-access-mixin\", \"apollo/mixins/queues-access-mixin\", \"apollo/mixins/user-utils-mixin\"], function (_exports, _persistenceMixin, _rampsAccessMixin, _queuesAccessMixin, _userUtilsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_persistenceMixin.default, _rampsAccessMixin.default, _userUtilsMixin.default, _queuesAccessMixin.default, {\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    errors: [],\n    user: Ember.computed('model.user', function () {\n      return this.get('model.user');\n    }),\n    limitedEdition: Ember.computed('user.{id,company.principalInDifferentPrincipalSpace}', function () {\n      return this.get('user.id') && this.get('user.company.principalInDifferentPrincipalSpace');\n    }),\n    proxiedNotifications: Ember.computed.map('user.roleGroup.notifications', function (model) {\n      return Ember.ObjectProxy.create({\n        content: model,\n        checked: true\n      });\n    }),\n    setProxiedNotifications: Ember.observer('proxiedNotifications.length', 'model', 'user.userNotifications.@each.mode', function () {\n      const self = this;\n      Ember.run.once(this, function () {\n        self.checkNotifications();\n      });\n    }),\n    proxiedCheckedNotifications: Ember.computed.filterBy('proxiedNotifications', 'checked', true),\n    checkedNotifications: Ember.computed.mapBy('proxiedCheckedNotifications', 'content'),\n\n    checkNotifications() {\n      const proxiedNotifications = this.get('proxiedNotifications');\n      const userNotifications = this.get('user').get('userNotifications');\n      const userNotificationsIds = this.get('user').get('selectedNotifications').map(function (s) {\n        return s.get('id');\n      });\n      proxiedNotifications.forEach(notification => {\n        const checked = userNotificationsIds.includes(notification.get('id'));\n        notification.set('checked', checked);\n        const mode = userNotifications.filter(un => un.get('notification.id') === notification.get('id')).get('firstObject.mode');\n        notification.set('mode', mode);\n      });\n    },\n\n    showUserGroupsSection: Ember.computed('user.company.{isPrincipal,userGroup.length}', function () {\n      return !this.get('user.company.isPrincipal') && this.get('user.company.customUserGroupsExists') || this.get('sessionAccount').isGroupFilterEnabled() || this.get('sessionAccount').isGroupFilterEnabledForUser(this.get('user'));\n    }),\n    actions: {\n      setGroupMode(item, mode) {\n        item.set('mode', mode);\n      },\n\n      save: async function () {\n        const user = this.get('user');\n        const checkedNotifications = this.get('checkedNotifications');\n        const jsonBody = JSON.stringify({\n          user: user.get('id'),\n          personNotifications: checkedNotifications.map(cn => {\n            return {\n              notification: cn.get('id'),\n              mode: cn.get('mode')\n            };\n          })\n        });\n        const path = this.get('apolloApiService').APOLLO_API.PERSON_NOTIFICATIONS.SAVE;\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, null, {\n            body: jsonBody\n          });\n\n          if (response.ok) {\n            const msg = this.get('intl').t('common.saveSuccessMessage');\n            this.set('successMessage', msg);\n          } else {\n            const error = await response.json();\n            this.set('errors', error.errors);\n          }\n        } catch (error) {\n          this.set('errors', [this.get('intl').t('common.defaultError')]);\n          console.error(error);\n        }\n      },\n      cancel: function () {\n        this.get('errors').clear();\n        this.checkNotifications();\n        window.history.back();\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/notifications/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    generalAccess: 'ROLE_EDIT_USERS_NOTIFICATION',\n    myAccountAccess: 'ROLE_EDIT_MY_NOTIFICATION',\n    userAccessService: Ember.inject.service('user-access-service'),\n    model: function (params, transition) {\n      const canAccess = this.get('userAccessService').canAccess(params.user_id, this.generalAccess, this.myAccountAccess);\n\n      if (canAccess) {\n        return Ember.RSVP.hash({\n          user: this.store.findRecord('user', params.user_id)\n        });\n      } else {\n        transition.abort();\n        this.transitionTo('users.queues', params.user_id);\n      }\n    },\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          'successMessage': null\n        });\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/notifications/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"4HiZVQqF\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"user-edit-form-outlet\\\",null,[[\\\"user\\\",\\\"errors\\\",\\\"successMessage\\\"],[[23,[\\\"user\\\"]],[23,[\\\"errors\\\"]],[23,[\\\"successMessage\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[11,\\\"autocomplete\\\",\\\"off\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-12\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"notifications.label\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-12\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"notification-section\\\",null,[[\\\"allNotifications\\\",\\\"notifications\\\",\\\"showUserGroupsSection\\\",\\\"user\\\",\\\"roleGroup\\\",\\\"setGroupMode\\\"],[[23,[\\\"user\\\",\\\"roleGroup\\\",\\\"notifications\\\"]],[23,[\\\"proxiedNotifications\\\"]],[23,[\\\"showUserGroupsSection\\\"]],[23,[\\\"user\\\"]],[23,[\\\"user\\\",\\\"roleGroup\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"setGroupMode\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group pull-right\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"isEditing\\\"]],[27,\\\"has-role\\\",[\\\"ROLE_DELETE_USER\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"user.deleteConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\"],null]]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"ok\\\"],[[\\\"on\\\",\\\"target\\\"],[\\\"submit\\\",[23,[\\\"view\\\"]]]]],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/users/notifications/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/queues/controller\", [\"exports\", \"apollo/mixins/persistence-mixin\", \"apollo/mixins/ramps-access-mixin\", \"apollo/mixins/queues-access-mixin\", \"apollo/mixins/user-utils-mixin\"], function (_exports, _persistenceMixin, _rampsAccessMixin, _queuesAccessMixin, _userUtilsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_persistenceMixin.default, _rampsAccessMixin.default, _userUtilsMixin.default, _queuesAccessMixin.default, {\n    intl: Ember.inject.service(),\n    session: Ember.inject.service('session'),\n    sessionAccount: Ember.inject.service('session-account'),\n    usersIndexController: Ember.inject.controller('users/index'),\n    usersShowController: Ember.inject.controller('users/show'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    errors: [],\n    user: Ember.computed('model.user', function () {\n      return this.get('model.user');\n    }),\n    setProxiedSquares: Ember.observer('proxiedSquares.length', 'model', function () {\n      const self = this;\n      Ember.run.once(this, function () {\n        self.checkSquares();\n      });\n    }),\n    setProxiedQueues: Ember.observer('proxiedQueues.length', 'model', function () {\n      const self = this;\n      Ember.run.once(this, function () {\n        self.checkQueues();\n      });\n    }),\n\n    checkSquares() {\n      const proxiedSquares = this.get('proxiedSquares');\n      const squaresIds = this.get('user.squaresIds');\n      proxiedSquares.forEach(function (s) {\n        const checked = squaresIds.includes(s.get('id'));\n        s.set('checked', checked);\n      });\n    },\n\n    checkQueues() {\n      const proxiedQueues = this.get('proxiedQueues');\n      const userQueuesIds = this.get('user.queuesIds');\n      proxiedQueues.forEach(function (q) {\n        const checked = userQueuesIds.includes(q.get('id'));\n        q.set('checked', checked);\n      });\n    },\n\n    actions: {\n      save: async function () {\n        const user = this.get('user');\n        const checkedQueues = this.get('checkedQueues');\n        const jsonBody = JSON.stringify({\n          user: user.get('id'),\n          queues: checkedQueues.map(cq => cq.get('id'))\n        });\n        const path = this.get('apolloApiService').APOLLO_API.PERSON_QUEUES.SAVE;\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, null, {\n            body: jsonBody\n          });\n\n          if (response.ok) {\n            const msg = this.get('intl').t('common.saveSuccessMessage');\n            this.set('successMessage', msg);\n          } else {\n            const error = await response.json();\n            this.set('errors', error.errors);\n          }\n        } catch (error) {\n          this.set('errors', [this.get('intl').t('common.defaultError')]);\n          console.error(error);\n        }\n      },\n      cancel: function () {\n        this.get('errors').clear();\n        window.history.back();\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/queues/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    generalAccess: 'ROLE_ACCESS_QUEUES_ACCESSIBILITY',\n    myAccountAccess: 'ROLE_EDIT_MY_QUEUES',\n    userAccessService: Ember.inject.service('user-access-service'),\n    model: function (params, transition) {\n      const canAccess = this.get('userAccessService').canAccess(params.user_id, this.generalAccess, this.myAccountAccess);\n\n      if (canAccess) {\n        return Ember.RSVP.hash({\n          user: this.store.findRecord('user', params.user_id),\n          squares: this.store.findAll('square'),\n          queues: this.store.findAll('queue')\n        });\n      } else {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          'successMessage': null\n        });\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/queues/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"O++7S5if\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"user-edit-form-outlet\\\",null,[[\\\"user\\\",\\\"errors\\\",\\\"successMessage\\\"],[[23,[\\\"user\\\"]],[23,[\\\"errors\\\"]],[23,[\\\"successMessage\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[11,\\\"autocomplete\\\",\\\"off\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"square-section\\\",null,[[\\\"squares\\\",\\\"user\\\"],[[23,[\\\"proxiedSquares\\\"]],[23,[\\\"user\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group pull-right\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"ok\\\"],[[\\\"on\\\",\\\"target\\\"],[\\\"submit\\\",[23,[\\\"view\\\"]]]]],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/users/queues/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/ramps/controller\", [\"exports\", \"apollo/mixins/persistence-mixin\", \"apollo/mixins/ramps-access-mixin\", \"apollo/mixins/queues-access-mixin\", \"apollo/mixins/user-utils-mixin\"], function (_exports, _persistenceMixin, _rampsAccessMixin, _queuesAccessMixin, _userUtilsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_persistenceMixin.default, _rampsAccessMixin.default, _userUtilsMixin.default, _queuesAccessMixin.default, {\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    errors: [],\n    user: Ember.computed('model.user', function () {\n      return this.get('model.user');\n    }),\n    canNotEditRamps: Ember.computed('sessionAccount.currentUser', 'user.company.id', function () {\n      const currentUserCompanyId = this.get('sessionAccount.currentUser.company.id');\n      const companyId = this.get('user.company.id');\n      return !this.get('sessionAccount').hasRole('ROLE_EDIT_USERS_RAMP') || companyId !== currentUserCompanyId && !this.get('sessionAccount').hasRole('ROLE_EDIT_ALL_USERS');\n    }),\n    setProxiedWarehouses: Ember.observer('proxiedWarehouses.length', 'model', function () {\n      const self = this;\n      Ember.run.once(this, function () {\n        self.checkWarehouses();\n      });\n    }),\n    setProxiedRamps: Ember.observer('proxiedRamps.length', 'model', function () {\n      const self = this;\n      Ember.run.once(this, function () {\n        self.checkRamps();\n      });\n    }),\n\n    checkWarehouses() {\n      const proxiedWarehouses = this.get('proxiedWarehouses');\n      const warehouseIds = this.get('user').get('warehouses').map(w => {\n        return w.get('id');\n      });\n      proxiedWarehouses.forEach(function (w) {\n        const checked = warehouseIds.includes(w.get('id'));\n        w.set('checked', checked);\n      });\n    },\n\n    checkRamps() {\n      const proxiedRamps = this.get('proxiedRamps');\n      const userRampsIds = this.get('user').get('rampsIds');\n      proxiedRamps.forEach(function (r) {\n        const checked = userRampsIds.includes(r.get('id'));\n        r.set('checked', checked);\n      });\n    },\n\n    allRampsChecked: Ember.computed('proxiedRamps.length', 'checkedRamps.length', function () {\n      return this.get('proxiedRamps.length') === this.get('checkedRamps.length');\n    }),\n    actions: {\n      toggleAllRamps: function () {\n        const shouldBeChecked = !this.get('allRampsChecked');\n        this.get('proxiedWarehouses').forEach(w => {\n          w.set('checked', shouldBeChecked);\n          w.get('proxiedRamps').forEach(r => r.set('checked', shouldBeChecked));\n        });\n      },\n      save: async function () {\n        const user = this.get('user');\n        const checkedRamps = this.get('checkedRamps');\n        const jsonBody = JSON.stringify({\n          user: user.get('id'),\n          ramps: checkedRamps.map(cr => cr.get('id'))\n        });\n        const path = this.get('apolloApiService').APOLLO_API.PERSON_RAMPS.SAVE;\n\n        try {\n          const response = await this.get('apolloApiService').callApolloApi(path, null, {\n            body: jsonBody\n          });\n\n          if (response.ok) {\n            const msg = this.get('intl').t('common.saveSuccessMessage');\n            this.set('successMessage', msg);\n          } else {\n            const error = await response.json();\n            this.set('errors', error.errors);\n          }\n        } catch (error) {\n          this.set('errors', [this.get('intl').t('common.defaultError')]);\n          console.error(error);\n        }\n      },\n      cancel: function () {\n        this.get('errors').clear();\n        this.checkWarehouses();\n        this.checkRamps();\n        window.history.back();\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/ramps/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    generalAccess: 'ROLE_EDIT_USERS_RAMP',\n    myAccountAccess: 'ROLE_EDIT_MY_RAMP',\n    userAccessService: Ember.inject.service('user-access-service'),\n    model: function (params, transition) {\n      const canAccess = this.get('userAccessService').canAccess(params.user_id, this.generalAccess, this.myAccountAccess);\n\n      if (canAccess) {\n        return Ember.RSVP.hash({\n          user: this.store.findRecord('user', params.user_id)\n        });\n      } else {\n        transition.abort();\n        this.transitionTo('users.notifications', params.user_id);\n      }\n    },\n    actions: {\n      willTransition() {\n        this.get('controller').setProperties({\n          'successMessage': null\n        });\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/ramps/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"ZcDTESy7\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"user-edit-form-outlet\\\",null,[[\\\"user\\\",\\\"errors\\\",\\\"successMessage\\\"],[[23,[\\\"user\\\"]],[23,[\\\"errors\\\"]],[23,[\\\"successMessage\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[11,\\\"autocomplete\\\",\\\"off\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"sessionAccount\\\",\\\"hasRoleTransportTable\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_ACCESS_ALL_RAMPS\\\",[23,[\\\"user\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"text-info\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-info-circle\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"user.hasRoleAccessAllRamp\\\"],null],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-2 control-label\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"proxiedWarehouses\\\",\\\"length\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"user.availableRamps\\\"],null],false],[0,\\\":\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-10 form-control-static\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"input\\\"],[12,\\\"checked\\\",[21,\\\"allRampsChecked\\\"]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"toggleAllRamps\\\"],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.selectDeselectAll\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"ramps-checkboxes\\\",null,[[\\\"proxiedWarehouses\\\",\\\"canNotEditRamps\\\",\\\"changeAction\\\"],[[23,[\\\"proxiedWarehouses\\\"]],[23,[\\\"canNotEditRamps\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"toggleWarehouse\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group pull-right\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/users/ramps/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/show/controller\", [\"exports\", \"apollo/mixins/user-utils-mixin\"], function (_exports, _userUtilsMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_userUtilsMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    user: Ember.computed('model.user', function () {\n      return this.get('model.user');\n    }),\n    notifications: Ember.computed('user.userNotifications', function () {\n      return this.get('user.userNotifications').map(un => un.get('notification')).uniqBy('name');\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/show/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: Ember.A(['ROLE_USERS_TAB']),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        return this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const self = this;\n      return new Promise(function (resolve) {\n        self.store.findRecord('user', params.user_id).then(response => {\n          response.get('userNotifications').then(() => {\n            resolve(Ember.RSVP.hash({\n              user: response\n            }));\n          });\n        }, function () {\n          return self.transitionTo('forbidden');\n        });\n      });\n    },\n    actions: {\n      willTransition() {\n        // eslint-disable-next-line ember/no-controller-access-in-routes\n        this.get('controller').setProperties({\n          'successMessage': null\n        });\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/users/show/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"LBrXxDlI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"n\\\",\\\"w\\\",\\\"z\\\",\\\"r\\\",\\\"rId\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-narrow\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"h1\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[23,[\\\"user\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"user\\\",\\\"enabled\\\"]],[27,\\\"not\\\",[[23,[\\\"user\\\",\\\"company\\\",\\\"isAuxiliaryPartner\\\"]]],null],[27,\\\"can-edit-user\\\",null,[[\\\"companyId\\\"],[[23,[\\\"user\\\",\\\"company\\\",\\\"id\\\"]]]]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"users.edit\\\",[23,[\\\"user\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"user.editUser\\\"],null]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"user\\\",\\\"enabled\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"small\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"user.deletedMessage\\\"],[[\\\"date\\\",\\\"person\\\",\\\"company\\\"],[[27,\\\"my-format-date\\\",[[23,[\\\"user\\\",\\\"dateDeleted\\\"]],\\\"defaultDateTime\\\"],null],[23,[\\\"user\\\",\\\"whoDeleted\\\",\\\"name\\\"]],[23,[\\\"user\\\",\\\"whoDeleted\\\",\\\"company\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[23,[\\\"user\\\",\\\"company\\\",\\\"name\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[23,[\\\"user\\\",\\\"roleGroup\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"user\\\",\\\"company\\\",\\\"isAuxiliaryPartner\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"small errors\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"partnership.auxiliary.title\\\"],[[\\\"contractorName\\\",\\\"principalCompanyName\\\"],[[23,[\\\"user\\\",\\\"company\\\",\\\"shortName\\\"]],[23,[\\\"user\\\",\\\"company\\\",\\\"principalCompanyInCurrentSpace\\\",\\\"shortName\\\"]]]]],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"partnership.auxiliary.usersEditionDisabled\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showDivisionLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"small\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"user.groupName\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"user\\\",\\\"userGroup\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\"],[11,\\\"data-field-name\\\",\\\"user-username\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-user\\\"],[9],[10],[0,\\\" \\\"],[1,[23,[\\\"user\\\",\\\"username\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"user\\\",\\\"email\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\"],[11,\\\"data-field-name\\\",\\\"user-email-address\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-envelope\\\"],[9],[10],[0,\\\" \\\"],[1,[23,[\\\"user\\\",\\\"email\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"user\\\",\\\"mobilePhoneNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\"],[11,\\\"data-field-name\\\",\\\"user-phone-number\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-phone\\\"],[9],[10],[0,\\\" \\\"],[1,[23,[\\\"user\\\",\\\"mobilePhoneNumber\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"p\\\"],[11,\\\"data-field-name\\\",\\\"user-status\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"user.status.label\\\"],null],false],[0,\\\": \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"user.status.\\\",[23,[\\\"user\\\",\\\"accountStatus\\\"]]],null]],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"p\\\"],[11,\\\"data-field-name\\\",\\\"user-last-login-date\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"user.lastLoginDate\\\"],null],false],[0,\\\": \\\"],[1,[27,\\\"my-format-date\\\",[[23,[\\\"user\\\",\\\"lastLoginDate\\\"]],\\\"defaultDateTime\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-6\\\"],[11,\\\"data-field-name\\\",\\\"user-warehouses\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"user\\\",\\\"warehouses\\\",\\\"length\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[27,\\\"t\\\",[\\\"user.availableRamps\\\"],null],false],[0,\\\":\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"user\\\",\\\"warehouses\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,2,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,2,[\\\"warehouseZones\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"h5\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[22,3,[\\\"name\\\"]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\\n                                \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,3,[\\\"sortedRamps\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"user\\\",\\\"rampsIds\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,4,[\\\"id\\\"]],[22,5,[]]],null]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"li\\\"],[12,\\\"data-field-name\\\",[28,[\\\"warehouse-\\\",[22,4,[\\\"name\\\"]]]]],[9],[0,\\\"\\\\n                                                    \\\"],[1,[22,4,[\\\"name\\\"]],false],[0,\\\" [\\\"],[1,[22,4,[\\\"shortName\\\"]],false],[0,\\\"]\\\\n                                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[5]},null]],\\\"parameters\\\":[4]},null],[0,\\\"                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-6\\\"],[11,\\\"data-field-name\\\",\\\"user-notifications\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"user.activeNotifications\\\"],null],false],[0,\\\":\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"notifications\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"li\\\"],[12,\\\"data-field-name\\\",[28,[\\\"notification-\\\",[22,1,[\\\"name\\\"]]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"notification.\\\",[22,1,[\\\"name\\\"]],\\\".label\\\"],null]],[[\\\"checkpointName\\\",\\\"transportTypeName\\\"],[[22,1,[\\\"task\\\",\\\"checkpointNameInAppropriateLanguage\\\"]],[22,1,[\\\"task\\\",\\\"workflow\\\",\\\"transportType\\\",\\\"label\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"t\\\",[\\\"user.noActiveNotifications\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"user\\\",\\\"invitationCreator\\\"]],[27,\\\"has-role\\\",[\\\"ROLE_CREATE_USER\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"small\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"user.invitedBy\\\"],[[\\\"date\\\",\\\"person\\\"],[[27,\\\"format-calendar\\\",[[23,[\\\"user\\\",\\\"invitationDate\\\"]]],null],[23,[\\\"user\\\",\\\"invitationCreator\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"goBack\\\"]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/users/show/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/vehicle-main-section/model\", [\"exports\", \"ember-data\", \"apollo/pods/section/model\"], function (_exports, _emberData, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = _model.default.extend({\n    truck: belongsTo('truck', {\n      async: true,\n      deepEmbedded: ['owner']\n    }),\n    brand: attr('string'),\n    truckType: belongsTo('truckType', {\n      async: true\n    }),\n    subcontractor: attr('string'),\n    serialNumberOfRecorder: attr('string'),\n    validations: {\n      truck: {\n        relations: ['belongsTo']\n      },\n      brand: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      truckType: {\n        custom: {\n          validation: function (key, value) {\n            return !!value.get('id');\n          },\n          message: 'blank'\n        }\n      },\n      subcontractor: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      serialNumberOfRecorder: {\n        presence: {\n          message: 'blank'\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/vehicle-main-section/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, {\n    attrs: {\n      truck: {\n        embedded: 'save'\n      }\n    },\n    serializeBelongsTo: function (record, json, relationship) {\n      var embeddedRecord, key;\n      key = relationship.key;\n      embeddedRecord = record.belongsTo(key);\n\n      if (embeddedRecord && this.attrs[key] && this.attrs[key].embedded === \"save\") {\n        var data = embeddedRecord.attributes();\n        data.id = embeddedRecord.id;\n\n        if (relationship.options.deepEmbedded) {\n          relationship.options.deepEmbedded.forEach(function (deepKey) {\n            if (embeddedRecord.belongsTo(deepKey)) {\n              data[deepKey] = embeddedRecord.belongsTo(deepKey).serialize({\n                includeId: true\n              });\n            }\n          });\n        }\n\n        json[key] = data;\n      } else {\n        this._super(record, json, relationship);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/voivodeship/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model,\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = Model.extend({\n    name: attr('string'),\n    country: belongsTo('country')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouse-location/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\", \"ember-data/model\"], function (_exports, _emberData, _modelValidator, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    languageService: Ember.inject.service('language-service'),\n    warehouse: belongsTo('warehouse', {\n      async: true\n    }),\n    namePl: attr('string'),\n    nameEn: attr('string'),\n    shortNamePl: attr('string'),\n    shortNameEn: attr('string'),\n    enabled: attr('boolean', {\n      defaultValue() {\n        return true;\n      }\n\n    }),\n    gate: belongsTo('gate'),\n    nameInAppropriateLanguage: Ember.computed('namePl', 'nameEn', function () {\n      const propertyName = this.get('languageService').findProperLanguageVersion('namePl', 'nameEn');\n      return this.get(propertyName);\n    }).readOnly(),\n    validations: {}\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouse-locations/create/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: service('session-account'),\n    intl: service(),\n    warehouseLocation: Ember.computed('model.warehouseLocation', function () {\n      return this.get('model.warehouseLocation');\n    }),\n    gates: Ember.computed('model.gates', function () {\n      return this.get('model.gates').filterBy('isEntryGate');\n    }),\n    actions: {\n      save: function () {\n        const self = this;\n        this.get('warehouseLocation').save().then(() => {\n          self.setProperties({\n            errors: []\n          });\n          const wh = self.get('warehouseLocation.warehouse');\n          wh.reload();\n          self.transitionToRoute('warehouses.edit', wh.get('id'));\n        }).catch(response => {\n          console.log(`Błąd przy zapisywaniu lokalizacji: ${response.errors}`);\n          self.set('errors', response.errors);\n        });\n      },\n      delete: function () {\n        const self = this;\n        self.get('warehouseLocation').destroyRecord().then(() => {\n          self.setProperties({\n            errors: []\n          });\n          self.transitionToRoute('warehouses.edit', self.get('warehouseLocation.warehouse.id'));\n        }).catch(response => {\n          console.log(`Błąd przy usuwaniu lokalizacji: ${response.errors}`);\n          self.set('errors', response.errors);\n        });\n      },\n      cancel: function () {\n        const warehouseId = this.get('warehouseLocation.warehouse.id');\n        this.get('warehouseLocation').unloadRecord();\n        this.transitionToRoute('warehouses.edit', warehouseId);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouse-locations/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    model: function (params) {\n      const warehouse = this.get('store').peekRecord('warehouse', params.warehouse_id);\n      const warehouseLocation = this.store.createRecord('warehouseLocation', {\n        enabled: true,\n        warehouse\n      });\n      const gates = this.get('store').findAll('gate');\n      return Ember.RSVP.hash({\n        warehouseLocation,\n        gates\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouse-locations/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"/nN7MFDh\",\n    \"block\": \"{\\\"symbols\\\":[\\\"gate\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-narrow\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.warehouseLocationLabel\\\"],null],false],[0,\\\": \\\"],[1,[27,\\\"if\\\",[[23,[\\\"warehouseLocation\\\",\\\"id\\\"]],[23,[\\\"warehouseLocation\\\",\\\"nameInAppropriateLanguage\\\"]],[27,\\\"t\\\",[\\\"warehouse.warehouseLocationNewLocation\\\"],null]],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"errors-alert\\\",null,[[\\\"errors\\\"],[[23,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.label\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,[\\\"warehouseLocation\\\",\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"warehouseLocation\\\",\\\"errors\\\",\\\"namePl\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.namePl\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"name-pl\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"warehouseLocation\\\",\\\"namePl\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"warehouseLocation\\\"]],\\\"namePl\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"warehouseLocation\\\",\\\"errors\\\",\\\"nameEn\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.nameEn\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"name-en\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"warehouseLocation\\\",\\\"nameEn\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"warehouseLocation\\\"]],\\\"nameEn\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"warehouseLocation\\\",\\\"errors\\\",\\\"shortNamePl\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.shortNamePl\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"short-name-pl\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"warehouseLocation\\\",\\\"shortNamePl\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"warehouseLocation\\\"]],\\\"shortNamePl\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"warehouseLocation\\\",\\\"errors\\\",\\\"shortNameEn\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.shortNameEn\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"short-name-en\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"warehouseLocation\\\",\\\"shortNameEn\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"warehouseLocation\\\"]],\\\"shortNameEn\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"warehouseLocation\\\",\\\"gate\\\",\\\"errors\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"gates.gateTypes.ENTRY_GATE\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"gate\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"warehouseLocation\\\",\\\"gate\\\"]]],null],[23,[\\\"gates\\\"]],true,\\\"name\\\",[27,\\\"t\\\",[\\\"gates.gateTypes.ENTRY_GATE\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"warehouseLocation\\\",\\\"gate\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"warehouseLocation\\\",\\\"gate\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 form-buttons\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"warehouseLocation\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"warehouseLocation\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"assortmentGroup.confirmDeletion\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"ban\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"success\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"settings.backToSettings\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/warehouse-locations/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouse-locations/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    model: function (params) {\n      const warehouseLocation = this.store.findRecord('warehouseLocation', params.id);\n      const gates = this.get('store').findAll('gate');\n      return Ember.RSVP.hash({\n        warehouseLocation,\n        gates\n      });\n    },\n    renderTemplate: function () {\n      this.render('warehouseLocations.create');\n    },\n    setupController: function (controller, model) {\n      const gates = this.get('store').findAll('gate').then(gates => {\n        return gates.filterBy('isEntryGate');\n      });\n      this.controllerFor('warehouse-locations.create').setProperties({\n        warehouseLocation: model,\n        gates\n      });\n    },\n    actions: {\n      willTransition: function () {\n        this.get('controller').setProperties({\n          success: false,\n          errors: []\n        });\n        this.get('currentModel').unloadRecord();\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouse-zone-transport-type/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model\n  } = _emberData.default;\n\n  var _default = Model.extend({\n    transportType: _emberData.default.belongsTo('transportType'),\n    warehouseZone: _emberData.default.belongsTo('warehouseZone')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouse-zone/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\", \"ember-data/model\"], function (_exports, _emberData, _modelValidator, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    belongsTo,\n    hasMany\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    languageService: Ember.inject.service('language-service'),\n    warehouse: belongsTo('warehouse', {\n      async: true\n    }),\n    transportTypes: hasMany('transportType', {\n      async: true\n    }),\n\n    /**\n         * id typów transportu, które zostały zaznaczone podczas tworzenia, lub edycji.\n         * Zmienna służy do wysłania danych na backend, nie przychodzi z serwera.\n         */\n    checkedTransportTypesIds: attr(),\n    ramps: hasMany('ramp', {\n      async: true\n    }),\n    algorithmSettings: hasMany('algorithmSetting', {\n      async: true\n    }),\n    name: attr('string'),\n    englishName: attr('string'),\n    shortName: attr('string'),\n    idx: attr('number'),\n    deliveryModeOfTransport: attr('string'),\n    deliveryDefaultZone: attr('boolean'),\n    enabled: attr('boolean', {\n      defaultValue() {\n        return true;\n      }\n\n    }),\n    enabledRamps: Ember.computed('ramps.@each.enabled', function () {\n      return this.get('ramps').filterBy('enabled');\n    }),\n    sortedRamps: Ember.computed('enabledRamps.[]', function () {\n      return this.get('enabledRamps').sortBy('idx');\n    }),\n    nameInAppropriateLanguage: Ember.computed('', function () {\n      const properLabel = this.get('languageService').findProperLanguageVersion('name', 'englishName');\n      return this.get(properLabel);\n    }),\n    validations: {\n      name: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      idx: {\n        presence: {\n          message: 'blank'\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouse-zones/add-zone/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    model(params) {\n      const warehouseId = params.warehouse_id;\n      const warehouseZone = this.store.createRecord('warehouse-zone', {});\n      return Ember.RSVP.hash({\n        warehouse: this.store.findRecord('warehouse', warehouseId),\n        warehouseZone: warehouseZone\n      });\n    },\n\n    renderTemplate: function () {\n      this.render('warehouseZones.create');\n    },\n    setupController: function (controller, model) {\n      this._super.apply(this, arguments);\n\n      const warehouseZone = model.warehouseZone;\n      warehouseZone.setProperties({\n        warehouse: model.warehouse\n      });\n      this.controllerFor('warehouseZones.create').set('model', warehouseZone);\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouse-zones/create/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    settingsIndexController: Ember.inject.controller('settings/index'),\n    transportTypes: Ember.computed('model', function () {\n      return this.get('sessionAccount.currentUser.transportTypes');\n    }),\n    // http://www.poeticsystems.com/blog/ember-checkboxes-and-you\n    proxiedTransportTypes: Ember.computed('model.transportTypes', 'transportTypes', function () {\n      const properTransportTypesList = this.get('model.id') ? this.get('model.transportTypes') : this.get('model.warehouse.transportTypes');\n      return this.get('transportTypes').map(tt => {\n        return Ember.ObjectProxy.create({\n          content: tt,\n          checked: properTransportTypesList.getEach('id').includes(tt.get('id'))\n        });\n      });\n    }),\n    actions: {\n      save() {\n        const self = this;\n        this.get('model').validate();\n\n        if (this.get('model').get('errors.length')) {\n          return;\n        }\n\n        const checkedTransportTypes = this.get('proxiedTransportTypes').filterBy('checked', true);\n        const checkedTransportTypesIds = checkedTransportTypes.map(tt => tt.get('content.id'));\n        this.get('model').set('checkedTransportTypesIds', checkedTransportTypesIds);\n        const noTransportTypesSelected = checkedTransportTypesIds.length === 0;\n\n        if (noTransportTypesSelected && !confirm(this.get('intl').t('warehouseZone.noTransportTypesSelected'))) {\n          return;\n        }\n\n        this.get('model').save().then(zone => {\n          console.debug(`Zone ${zone.get('name')} saved.`);\n          self.setProperties({\n            errors: []\n          });\n          self.transitionToRoute('warehouses.edit', self.get('model.warehouse.id'));\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n\n      disable() {\n        const model = this.get('model');\n        model.set('enabled', false);\n        this.send('save');\n      },\n\n      enable() {\n        const model = this.get('model');\n        model.set('enabled', true);\n        this.send('save');\n      },\n\n      cancel() {\n        const warehouseId = this.get('model.warehouse.id');\n        this.get('model').rollbackAttributes();\n        this.transitionToRoute('warehouses.edit', warehouseId);\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouse-zones/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_CREATE_WAREHOUSE'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      return this.store.createRecord(\"warehouseZone\");\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouse-zones/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"KTjhRBIA\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tt\\\",\\\"error\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container container-narrow\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[27,\\\"warehouse-zone-nav-header\\\",null,[[\\\"warehouseZone\\\"],[[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"t\\\",[\\\"warehouseZone.label\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"model\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[22,2,[]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"form\\\"],[11,\\\"data-form-name\\\",\\\"warehouse-zone-form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.name\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"name\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"shortName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"common.shortName\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"short-name\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"shortName\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"shortName\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"englishName\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"warehouseZone.englishName\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"english-name\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"englishName\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"englishName\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"idx\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"warehouseZone.idx\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"idx\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\"],[\\\"number\\\",\\\"form-control\\\",[23,[\\\"model\\\",\\\"idx\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"idx\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"deliveryDefaultZone\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"warehouseZone.deliveryDefaultZone\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"delivery_default_zone\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"checked\\\"],[\\\"form-control\\\",\\\"checkbox\\\",[23,[\\\"model\\\",\\\"deliveryDefaultZone\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"deliveryDefaultZone\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"deliveryModeOfTransport\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"warehouseZone.deliveryModeOfTransport\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"delivery-mode-of-transport\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"deliveryModeOfTransport\\\"]]]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"deliveryModeOfTransport\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-4 control-label\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"warehouseZone.transportTypes\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8\\\"],[11,\\\"data-field-name\\\",\\\"transport-types-list\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"proxiedTransportTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"no-wrap\\\"],[12,\\\"data-field-name\\\",[28,[[22,1,[\\\"alias\\\"]]]]],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"checked\\\"],[\\\"checkbox\\\",[27,\\\"concat\\\",[\\\"transport-type-\\\",[22,1,[\\\"id\\\"]]],null],[22,1,[\\\"checked\\\"]]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"label\\\"],[12,\\\"for\\\",[28,[[27,\\\"concat\\\",[\\\"transport-type-\\\",[22,1,[\\\"id\\\"]]],null]]]],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 form-buttons\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"warehouseZone.disableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"disable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"ban\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.disable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"v.enableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"enable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"check\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.enable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"success\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"settings.backToSettings\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"ok\\\"],[[\\\"on\\\",\\\"target\\\"],[\\\"submit\\\",[23,[\\\"view\\\"]]]]],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/warehouse-zones/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouse-zones/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_SETTINGS_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      return this.store.findRecord('warehouseZone', params.id);\n    },\n    renderTemplate: function () {\n      this.render('warehouseZones.create');\n    },\n    setupController: function (controller, model) {\n      this.controllerFor('warehouseZones.create').setProperties({\n        model: model\n      });\n    },\n    actions: {\n      willTransition: function () {\n        this.get('controller').setProperties({\n          success: false,\n          errors: []\n        });\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouse/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Model,\n    PromiseArray,\n    attr,\n    hasMany,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = Model.extend(_modelValidator.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    languageService: Ember.inject.service('language-service'),\n    users: hasMany('user', {\n      async: true\n    }),\n    usersWithAccess: hasMany('user', {\n      async: true\n    }),\n    ramps: hasMany('ramp', {\n      async: true\n    }),\n    company: belongsTo('company', {\n      async: true\n    }),\n    address: belongsTo('address', {\n      async: true,\n      deepEmbedded: ['country']\n    }),\n    warehouseZones: hasMany('warehouseZone', {\n      async: true\n    }),\n    warehouseLocations: hasMany('warehouseLocation', {\n      async: true\n    }),\n    assortmentGroups: hasMany('assortmentGroup', {\n      async: true\n    }),\n    transportTypes: hasMany('transportType', {\n      async: true\n    }),\n    idx: attr('number'),\n    checkedTransportTypesIds: attr(),\n    name: attr('string'),\n    englishName: attr('string'),\n    nameInAppropriateLanguage: Ember.computed('', function () {\n      const properLabel = this.get('languageService').findProperLanguageVersion('name', 'englishName');\n      return this.get(properLabel);\n    }),\n    workStartHour: attr('number'),\n    workEndHour: attr('number'),\n    windowConstantTime: attr('number'),\n    timeWindowOffsetInterval: attr('number', {\n      defaultValue() {\n        return 15;\n      }\n\n    }),\n    timeWindowDefaultLengthInMinutes: attr('number'),\n    timeWindowMustOccupyEntireRamp: attr('boolean'),\n    snapToClosestWindowInterval: attr('number', {\n      defaultValue() {\n        return 0;\n      }\n\n    }),\n    shouldFindFreeSpotAfterDelay: attr('boolean'),\n    enabled: attr('boolean'),\n    weighingIncluded: attr('boolean'),\n    artrIncluded: attr('boolean'),\n    timeWindowLengthLongerThanWarehouseWorkingHours: attr('boolean'),\n    integrationCode: attr('string'),\n    timeZone: attr('string'),\n    validations: {\n      name: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      englishName: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      windowConstantTime: {\n        presence: {\n          message: 'info'\n        }\n      },\n      timeWindowOffsetInterval: {\n        presence: {\n          message: 'info'\n        }\n      },\n      snapToClosestWindowInterval: {\n        presence: {\n          message: 'info'\n        }\n      },\n      timeWindowDefaultLengthInMinutes: {\n        presence: {\n          message: 'blankSelect'\n        }\n      },\n      timeWindowMustOccupyEntireRamp: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      timeWindowLengthLongerThanWarehouseWorkingHours: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      workStartHour: {\n        numericality: {\n          allowBlank: false,\n          greaterThanOrEqualTo: 0,\n          lessThanOrEqualTo: 23,\n          onlyInteger: true,\n          message: 'invalidNumber'\n        }\n      },\n      workEndHour: {\n        numericality: {\n          allowBlank: false,\n          greaterThanOrEqualTo: 1,\n          lessThanOrEqualTo: 24,\n          onlyInteger: true,\n          message: 'invalidNumber'\n        },\n        custom: [{\n          validation: function (key, value, model) {\n            return parseInt(model.get('workStartHour')) <= parseInt(value);\n          },\n          message: 'endBeforeStart'\n        }]\n      },\n      address: {\n        relations: ['belongsTo']\n      },\n      idx: {\n        custom: [{\n          validation: function (key, value, model) {\n            if (!model.get('id')) {\n              return true;\n            }\n\n            return !Ember.isEmpty(value) && value >= 0 && value < model.store.peekAll('warehouse').length;\n          },\n          message: function (key, message, self) {\n            return self.get('intl').t('warehouse.errors.idx.invalidIdxNumber', {\n              numberOfWarehouses: this.store.peekAll('warehouse').length - 1\n            }).toString();\n          }\n        }]\n      }\n    },\n    workStartTime: Ember.computed('workStartHour', function () {\n      return moment(this.getStartOnDay(new Date())).format('HH:mm');\n    }),\n    workEndTime: Ember.computed('workEndHour', function () {\n      return moment(this.getEndOnDay(new Date())).format('kk:mm');\n    }),\n    formattedWorkTime: Ember.computed('workStartTime', 'workEndTime', function () {\n      return `${this.get('workStartTime')}-${this.get('workEndTime')}`;\n    }),\n    minutes: Ember.computed('', function () {\n      return [0, 15, 30, 45];\n    }),\n\n    getStartOnDay(date) {\n      const dateString = moment(date).format('YYYY-MM-DD');\n      const h = this.get('workStartHour');\n      return moment(`${dateString} ${h}:0`, 'YYYY-MM-DD HH:mm');\n    },\n\n    getEndOnDay(date) {\n      const dateString = moment(date).format('YYYY-MM-DD');\n      const h = this.get('workEndHour');\n      return moment(`${dateString} ${h}:0`, 'YYYY-MM-DD HH:mm');\n    },\n\n    enabledRamps: Ember.computed('ramps.@each.enabled', function () {\n      return PromiseArray.create({\n        promise: this.get('ramps').then(loadedRamps => {\n          return loadedRamps.filterBy('enabled', true);\n        })\n      });\n    }),\n    sortedRamps: Ember.computed('enabledRamps.@each.idx', function () {\n      return this.get('ramps').sortBy('idx:desc');\n    }),\n    sortedZones: Ember.computed('warehouseZones.[]', function () {\n      return this.get('warehouseZones').filterBy('enabled', true).sortBy('idx');\n    }),\n    enabledRampsForCurrentUser: Ember.computed('sessionAccount.currentUser.ramps', function () {\n      const self = this;\n      return PromiseArray.create({\n        promise: self.get('sessionAccount.currentUser.ramps').then(loadedRamps => {\n          return loadedRamps.filterBy('warehouse.id', self.get('id'));\n        })\n      });\n    }),\n    loadedDays: Ember.computed('', function () {\n      return [];\n    }),\n    nameTrimmed: Ember.computed('nameInAppropriateLanguage', function () {\n      return this.get('nameInAppropriateLanguage').replace(/ /g, '-');\n    }),\n    hasAssortmentGroups: Ember.computed('assortmentGroups.[]', function () {\n      return this.get('assortmentGroups.length') > 0;\n    }),\n    isWarehouse24h: Ember.computed('', function () {\n      const d1 = new Date();\n      const d2 = new Date();\n      d1.setHours(...this.get('workStartTime').split(':'));\n      d2.setHours(...this.get('workEndTime').split(':'));\n      return Math.abs((d1 - d2) / 1000 / 3600) === 24;\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouse/serializer\", [\"exports\", \"ember-data\", \"apollo/mixins/serializer-mixin\"], function (_exports, _emberData, _serializerMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, _serializerMixin.default, {\n    attrs: {\n      address: {\n        embedded: 'save'\n      }\n    },\n    serializeBelongsTo: function (record, json, relationship) {\n      const key = relationship.key;\n      const embeddedRecord = record.belongsTo(key);\n\n      if (embeddedRecord && this.attrs[key] && this.attrs[key].embedded === 'save') {\n        const data = embeddedRecord.attributes();\n        data.id = embeddedRecord.id;\n\n        if (relationship.options.deepEmbedded) {\n          relationship.options.deepEmbedded.forEach(function (deepKey) {\n            if (embeddedRecord.belongsTo(deepKey)) {\n              data[deepKey] = embeddedRecord.belongsTo(deepKey).id;\n            }\n          });\n        }\n\n        json[key] = data;\n      } else {\n        this._super(record, json, relationship);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouses/add-ramp/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: service('session-account'),\n\n    model(params) {\n      const warehouseId = params.warehouse_id;\n      const warehouseZoneId = params.warehouse_zone_id;\n      let maxPallet = null;\n\n      if (this.get('sessionAccount').getSettingValue('HAS_ACCESS_TO_MAX_PALLET_PER_RAMP') === 'true') {\n        maxPallet = this.store.createRecord('maxPallet', {\n          quantity: 0\n        });\n      }\n\n      const ramp = this.store.createRecord('ramp', {\n        enabled: true,\n        maxPallet\n      });\n      const roleGroups = this.get('sessionAccount.currentUser.company.roleGroups');\n      return Ember.RSVP.hash({\n        warehouse: this.store.findRecord('warehouse', warehouseId),\n        warehouseZone: this.store.findRecord('warehouseZone', warehouseZoneId),\n        ramp,\n        roleGroups\n      });\n    },\n\n    renderTemplate: function () {\n      this.render('ramps.create');\n    },\n    setupController: function (controller, model) {\n      this._super.apply(this, arguments);\n\n      const ramp = model.ramp;\n      const roleGroups = model.roleGroups;\n      ramp.setProperties({\n        warehouse: model.warehouse,\n        warehouseZone: model.warehouseZone,\n        idx: model.warehouse.get('enabledRamps.length'),\n        roleGroups\n      });\n      this.controllerFor('ramps.create').setProperties({\n        model: ramp\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouses/combined-schedule/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    model(params) {\n      // eslint-disable-next-line ember/no-controller-access-in-routes\n      this.controllerFor('warehouses.schedule').setProperties({\n        warehouseStepToHandle: this.store.peekRecord('step', params.step_id)\n      });\n      this.transitionTo('warehouses.schedule', params.warehouse_id, params.date_string, params.delta);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouses/create/controller\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Controller.extend({\n    sessionAccount: service('session-account'),\n    intl: service(),\n    store: service(),\n    settingsIndexController: Ember.inject.controller('settings/index'),\n    availableTimeWindowLengthsInMinutes: ['15', '30', '45', '60', '90', '120', '150', '180', '240', '300'],\n    availableTimeWindowOffsetIntervals: ['15', '30', '45', '60', '90', '120', '150', '180', '240', '300'],\n    addNewAddress: false,\n    transportTypes: function () {\n      return this.get('sessionAccount.currentUser.transportTypes');\n    }.property('sessionAccount.currentUser.transportTypes.@each'),\n    // http://www.poeticsystems.com/blog/ember-checkboxes-and-you\n    proxiedTransportTypes: function () {\n      return this.get('transportTypes').map(tt => {\n        return Ember.ObjectProxy.create({\n          content: tt,\n          checked: true\n        });\n      });\n    }.property('transportTypes.@each'),\n    numberOfWarehouses: Ember.computed(function () {\n      return this.get('store').peekAll('warehouse').length - 1;\n    }),\n    timeZones: Ember.computed(function () {\n      return this.localeTimezoneHolder.supportedTimeZones();\n    }),\n    setProxiedTransportTypes: function () {\n      const self = this;\n      Ember.run.once(this, function () {\n        self.checkTransportTypes();\n      });\n    }.observes('proxiedTransportTypes.length', 'model'),\n    countries: Ember.computed(function () {\n      return this.get('store').peekAll('country').sortBy('ibanSymbol');\n    }),\n\n    checkTransportTypes() {\n      const proxiedTransportTypes = this.get('proxiedTransportTypes');\n      const isEditing = !!this.get('model.id');\n      const transportTypeIds = this.get('model').get('transportTypes').map(w => {\n        return w.get('id');\n      });\n      proxiedTransportTypes.forEach(function (w) {\n        const checked = !isEditing || transportTypeIds.includes(w.get('id'));\n        w.set('checked', checked);\n      });\n    },\n\n    proxiedCheckedTransportTypes: Ember.computed.filterBy('proxiedTransportTypes', 'checked', true),\n    checkedTransportTypes: Ember.computed.mapBy('proxiedCheckedTransportTypes', 'content'),\n    companyToFindAddress: Ember.computed('sessionAccount.currentUser.company.id', function () {\n      return this.get('model.company.id') ? this.get('model.company.id') : this.get('sessionAccount.currentUser.company.id');\n    }),\n    address: Ember.computed('model.address', function () {\n      return this.get('model.address');\n    }),\n    addressSummary: Ember.computed('address.recipient', 'address.city', 'address.postal', 'address.street', function () {\n      if (this.get('address.recipient')) {\n        return this.get('address.recipient');\n      }\n\n      if (this.get('address.street')) {\n        return `${this.get('address.street')}, ${this.get('address.city')}, ${this.get('address.postal')}`;\n      }\n\n      return '';\n    }).readOnly(),\n    showAssortmentGroupSection: Ember.computed('model.assortmentGroups.[]', function () {\n      return this.get('model.assortmentGroups.length') > 0;\n    }),\n    showWarehouseLocationSection: Ember.computed('model.warehouseLocations.[]', function () {\n      return this.get('model.warehouseLocations.length') > 0;\n    }),\n    actions: {\n      save() {\n        const self = this;\n        const warehouse = this.get('model');\n        warehouse.validate();\n\n        if (warehouse.get('errors.length')) {\n          return;\n        }\n\n        const checkedTransportTypes = this.get('checkedTransportTypes');\n        warehouse.get('transportTypes').clear();\n        const checkedTransportTypesIds = Ember.A();\n        checkedTransportTypes.forEach(function (tt) {\n          checkedTransportTypesIds.pushObject(tt.get('id'));\n        });\n        warehouse.set('checkedTransportTypesIds', checkedTransportTypesIds);\n        warehouse.save().then(function () {\n          self.setProperties({\n            errors: []\n          });\n          warehouse.get('transportTypes').forEach(w => {\n            w.reload();\n          });\n          warehouse.reload();\n          self.get('sessionAccount.currentUser').reload();\n          const msg = self.get('intl').t('warehouse.updateSuccessMessage', {\n            warehouseName: warehouse.get('nameInAppropriateLanguage')\n          });\n          self.set('successMessage', msg);\n          window.scrollTo({\n            top: 0\n          });\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n\n      disable() {\n        const self = this;\n        const model = this.get('model');\n        const ramps = model.get('ramps');\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        Ember.$.ajax({\n          url: _environment.default.serverURL + '/warehouses/' + model.get('id') + '/disable',\n          type: 'PUT',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(() => {\n          model.reload().then(w => {\n            ramps.then(() => {\n              const msg = self.get('intl').t('warehouse.disabledMessage', {\n                warehouseName: w.get('nameInAppropriateLanguage')\n              });\n              self.get('settingsIndexController').set('successMessage', msg);\n              self.get('sessionAccount').get('currentUser').reload().then(() => {\n                self.transitionToRoute('settings.index');\n              });\n            });\n          });\n        }, function (response) {\n          self.set('errors', response.errors);\n        });\n      },\n\n      enable() {\n        const self = this;\n        const model = this.get('model');\n        const token = this.get('sessionAccount').get('token'); // TODO :: apollo-api-service\n\n        Ember.$.ajax({\n          url: _environment.default.serverURL + '/warehouses/' + model.get('id') + '/enable',\n          type: 'PUT',\n          beforeSend: function (xhr) {\n            xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        }).then(() => {\n          model.reload().then(w => {\n            w.get('ramps').then(ramps => {\n              ramps.forEach(r => {\n                r.reload();\n                console.log(`Ponownie włączono rampę ${r.get('name')}.`);\n              });\n              self.get('sessionAccount').get('currentUser').reload().then(() => {\n                self.transitionToRoute('settings.index');\n              });\n            });\n          });\n        }, function (response) {\n          self.set('errors', response.errors);\n        });\n      },\n\n      cancel() {\n        this.get('model').rollbackAttributes();\n        this.transitionToRoute('settings.index');\n      },\n\n      setAddressData(address) {\n        const self = this;\n\n        if (address.id) {\n          this.get('store').findRecord('address', address.id).then(a => {\n            self.get('model').set('address', a);\n          });\n        } else {\n          this.get('model.address').setProperties({\n            street: address.street,\n            postal: address.postal,\n            city: address.city\n          });\n          this.get('store').findRecord('country', address.country).then(c => {\n            self.get('model.address').set('country', c);\n          });\n        }\n      },\n\n      removeAddress() {\n        console.debug('Removing address from warehouse..');\n        this.get('model').set('address', null);\n      },\n\n      toggleNewAddress(model) {\n        if (this.get('addNewAddress')) {\n          this.send('deleteAddressFromWarehouse', model);\n          this.set('addNewAddress', false);\n        } else {\n          this.send('setAddressForWarehouse', model);\n          this.set('addNewAddress', true);\n        }\n      },\n\n      deleteAddressFromWarehouse(model) {\n        model.get('address').then(address => {\n          address.unloadRecord();\n          model.set('address', null);\n        });\n      },\n\n      setAddressForWarehouse(model) {\n        model.set('address', this.get('store').createRecord('address', {\n          company: model.get('company')\n        }));\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouses/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_CREATE_WAREHOUSE'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function () {\n      return this.store.createRecord(\"warehouse\", {\n        enabled: true,\n        workStartHour: 6,\n        workEndHour: 22,\n        timeWindowMustOccupyEntireRamp: false\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouses/create/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"hl92zTH7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"zone\\\",\\\"idx\\\",\\\"ramp\\\",\\\"tt\\\",\\\"n\\\",\\\"n\\\",\\\"ianaTimezone\\\",\\\"country\\\",\\\"result\\\",\\\"error\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[23,[\\\"model\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-7\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger alert-dismissible\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,10,[]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[10]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form-horizontal\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"name\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom\\\"],[11,\\\"data-field-name\\\",\\\"warehouse-name\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",\\\"text\\\",[23,[\\\"model\\\",\\\"name\\\"]],[27,\\\"t\\\",[\\\"common.name\\\"],null]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"name\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom\\\"],[11,\\\"data-field-name\\\",\\\"warehouse-name-eng\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"form-control\\\",\\\"text\\\",[23,[\\\"model\\\",\\\"englishName\\\"]],[27,\\\"t\\\",[\\\"common.nameEn\\\"],null]]]],false],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"englishName\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"address\\\"]],[27,\\\"not\\\",[[23,[\\\"addNewAddress\\\"]]],null]],null],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"warehouse-address\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-10\\\"],[11,\\\"data-field-name\\\",\\\"address-recipient\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"addNewAddress\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[27,\\\"not\\\",[[23,[\\\"addNewAddress\\\"]]],null],[23,[\\\"model\\\",\\\"address\\\",\\\"recipient\\\"]],[27,\\\"t\\\",[\\\"address.recipient\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"address-auto-complete\\\",null,[[\\\"field\\\",\\\"companyId\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"clearSelection\\\",\\\"disabled\\\"],[\\\"any\\\",[23,[\\\"companyToFindAddress\\\"]],[27,\\\"readonly\\\",[[23,[\\\"addressSummary\\\"]]],null],[27,\\\"t\\\",[\\\"address.autoCompletePlaceholder\\\"],null],\\\"setAddressData\\\",\\\"removeAddress\\\",[23,[\\\"addNewAddress\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                                                \\\"],[1,[22,9,[\\\"recipient\\\"]],false],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n\\\\n                                            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                                \\\"],[1,[22,9,[\\\"postal\\\"]],false],[0,\\\" \\\"],[1,[22,9,[\\\"city\\\"]],false],[0,\\\", \\\"],[1,[22,9,[\\\"street\\\"]],false],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[9]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-1 center-icon-in-form\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"addNewAddress\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"center-icon-in-form\\\"],[11,\\\"data-field-name\\\",\\\"remove-address\\\"],[9],[0,\\\"\\\\n                                         \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-minus\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"address.removeAddress\\\"],null]]]],[9],[10],[0,\\\"\\\\n                                     \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"toggleNewAddress\\\",[23,[\\\"model\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"center-icon-in-form\\\"],[11,\\\"data-field-name\\\",\\\"add-new-address\\\"],[9],[0,\\\"\\\\n                                         \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"address.addNewAddress\\\"],null]]]],[9],[10],[0,\\\"\\\\n                                     \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"toggleNewAddress\\\",[23,[\\\"model\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"address\\\"]],[27,\\\"not\\\",[[23,[\\\"addNewAddress\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"has-error\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"address\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-12 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"address\\\",\\\"errors\\\",\\\"street\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"adrress-street\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[27,\\\"not\\\",[[23,[\\\"addNewAddress\\\"]]],null],[23,[\\\"model\\\",\\\"address\\\",\\\"street\\\"]],[27,\\\"t\\\",[\\\"address.street\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"has-error\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"address\\\"]],\\\"street\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-4 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"address\\\",\\\"errors\\\",\\\"postal\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"address-postal\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[27,\\\"not\\\",[[23,[\\\"addNewAddress\\\"]]],null],[23,[\\\"model\\\",\\\"address\\\",\\\"postal\\\"]],[27,\\\"t\\\",[\\\"address.postal\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-8 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"address\\\",\\\"errors\\\",\\\"city\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"address-city\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"disabled\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",[27,\\\"not\\\",[[23,[\\\"addNewAddress\\\"]]],null],[23,[\\\"model\\\",\\\"address\\\",\\\"city\\\"]],[27,\\\"t\\\",[\\\"address.city\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"has-error\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-4 col-xs-12\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"address\\\"]],\\\"postal\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-8 col-xs-12\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"address\\\"]],\\\"city\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"col-md-12 col-xs-12 \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"address\\\",\\\"errors\\\",\\\"country\\\"]],\\\"has-error\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"address-country\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"addNewAddress\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"placeholder\\\",\\\"disabled\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"model\\\",\\\"address\\\",\\\"country\\\",\\\"name\\\"]],[27,\\\"t\\\",[\\\"address.country\\\"],null],[27,\\\"not\\\",[[23,[\\\"addNewAddress\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"address\\\",\\\"country\\\"]]],null],[23,[\\\"countries\\\"]],true,\\\"searchFieldCountry\\\",[27,\\\"t\\\",[\\\"warehouse.selectCountry\\\"],null],[27,\\\"not\\\",[[23,[\\\"addNewAddress\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"address\\\",\\\"country\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[22,8,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8]},null]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"has-error\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\",\\\"address\\\"]],\\\"country\\\"]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-9 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.timeZone\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3\\\"],[11,\\\"data-field-name\\\",\\\"warehouse-timezone\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"renderInPlace\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"timeZone\\\"]]],null],[23,[\\\"timeZones\\\"]],true,[27,\\\"t\\\",[\\\"common.timeZone\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"timeZone\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,7,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"idx\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-9 control-label\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.idx\\\"],null],false],[0,\\\":\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3\\\"],[11,\\\"data-field-name\\\",\\\"number-of-warehouse\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"min\\\",\\\"max\\\",\\\"class\\\",\\\"value\\\"],[\\\"number\\\",\\\"1\\\",\\\"0\\\",[23,[\\\"numberOfWarehouses\\\"]],\\\"form-control\\\",[23,[\\\"model\\\",\\\"idx\\\"]]]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"idx\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"workStartHour\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-9 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.workStartHour\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3\\\"],[9],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input-group time-input-group\\\"],[11,\\\"data-field-name\\\",\\\"work-start-hour\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"min\\\",\\\"max\\\",\\\"class\\\",\\\"value\\\",\\\"required\\\"],[\\\"number\\\",\\\"1\\\",\\\"0\\\",\\\"23\\\",\\\"form-control time-input\\\",[23,[\\\"model\\\",\\\"workStartHour\\\"]],true]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon\\\"],[9],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control time-input\\\",\\\"00\\\",\\\"disabled\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"workStartHour\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"workEndHour\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-9 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.workEndHour\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3\\\"],[9],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input-group time-input-group\\\"],[11,\\\"data-field-name\\\",\\\"work-end-hour\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"min\\\",\\\"max\\\",\\\"class\\\",\\\"value\\\",\\\"required\\\"],[\\\"number\\\",\\\"1\\\",\\\"1\\\",\\\"24\\\",\\\"form-control time-input\\\",[23,[\\\"model\\\",\\\"workEndHour\\\"]],true]]],false],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon\\\"],[9],[0,\\\":\\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"form-control time-input\\\",\\\"00\\\",\\\"disabled\\\"]]],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"workEndHour\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"windowConstantTime\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-9 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.windowConstantTime\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3\\\"],[11,\\\"data-field-name\\\",\\\"window-constant-time\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"min\\\",\\\"max\\\",\\\"class\\\",\\\"value\\\"],[\\\"number\\\",\\\"15\\\",\\\"0\\\",\\\"60\\\",\\\"form-control\\\",[23,[\\\"model\\\",\\\"windowConstantTime\\\"]]]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"windowConstantTime\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"timeWindowOffsetInterval\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-9 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.timeWindowOffsetInterval\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3\\\"],[11,\\\"data-field-name\\\",\\\"time-window-offset-interval\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"timeWindowOffsetInterval\\\"]],[23,[\\\"availableTimeWindowOffsetIntervals\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"timeWindowOffsetInterval\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,6,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"timeWindowOffsetInterval\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"timeWindowDefaultLengthInMinutes\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-9 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.timeWindowDefaultLengthInMinutes\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3\\\"],[11,\\\"data-field-name\\\",\\\"time-window-default-length-in-minutes\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"timeWindowDefaultLengthInMinutes\\\"]],[23,[\\\"availableTimeWindowLengthsInMinutes\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"timeWindowDefaultLengthInMinutes\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,5,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"timeWindowDefaultLengthInMinutes\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"timeWindowMustOccupyEntireRamp\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-9 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.timeWindowMustOccupyEntireRamp\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-group\\\"],[11,\\\"role\\\",\\\"group\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"time-window-must-occupy-entire-ramp-true\\\"],[12,\\\"class\\\",[28,[\\\"btn \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"timeWindowMustOccupyEntireRamp\\\"]],\\\"btn-primary\\\",\\\"btn-default\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"timeWindowMustOccupyEntireRamp\\\"]]],null],true],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"common.yes\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"time-window-must-occupy-entire-ramp-false\\\"],[12,\\\"class\\\",[28,[\\\"btn \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"timeWindowMustOccupyEntireRamp\\\"]],\\\"btn-default\\\",\\\"btn-primary\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"timeWindowMustOccupyEntireRamp\\\"]]],null],false],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"common.no\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"timeWindowMustOccupyEntireRamp\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"weighingIncluded\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-9 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.weighingIncluded\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-group\\\"],[11,\\\"role\\\",\\\"group\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"weight-included-true\\\"],[12,\\\"class\\\",[28,[\\\"btn \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"weighingIncluded\\\"]],\\\"btn-primary\\\",\\\"btn-default\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"weighingIncluded\\\"]]],null],true],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"common.yes\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"weight-included-false\\\"],[12,\\\"class\\\",[28,[\\\"btn \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"weighingIncluded\\\"]],\\\"btn-default\\\",\\\"btn-primary\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"weighingIncluded\\\"]]],null],false],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"common.no\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"weighingIncluded\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"artrIncluded\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-9 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.artrIncluded\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-group\\\"],[11,\\\"role\\\",\\\"group\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"atrt-included-in-warehouse-true\\\"],[12,\\\"class\\\",[28,[\\\"btn \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"artrIncluded\\\"]],\\\"btn-primary\\\",\\\"btn-default\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"artrIncluded\\\"]]],null],true],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"common.yes\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"atrt-included-in-warehouse-false\\\"],[12,\\\"class\\\",[28,[\\\"btn \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"artrIncluded\\\"]],\\\"btn-default\\\",\\\"btn-primary\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"artrIncluded\\\"]]],null],false],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"common.no\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"artrIncluded\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"shouldFindFreeSpotAfterDelay\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-9 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.shouldFindFreeSpotAfterDelay\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-group\\\"],[11,\\\"role\\\",\\\"group\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"should-find-free-spot-after-delay-true\\\"],[12,\\\"class\\\",[28,[\\\"btn \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"shouldFindFreeSpotAfterDelay\\\"]],\\\"btn-primary\\\",\\\"btn-default\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"shouldFindFreeSpotAfterDelay\\\"]]],null],true],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"common.yes\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"should-find-free-spot-after-delay-false\\\"],[12,\\\"class\\\",[28,[\\\"btn \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"shouldFindFreeSpotAfterDelay\\\"]],\\\"btn-default\\\",\\\"btn-primary\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"shouldFindFreeSpotAfterDelay\\\"]]],null],false],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"common.no\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"shouldFindFreeSpotAfterDelay\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"timeWindowLengthLongerThanWarehouseWorkingHours\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-9 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.timeWindowLengthLongerThanWarehouseWorkingHours\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-group\\\"],[11,\\\"role\\\",\\\"group\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"time-window-length-longer-than-warehouse-working-hours-true\\\"],[12,\\\"class\\\",[28,[\\\"btn \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"timeWindowLengthLongerThanWarehouseWorkingHours\\\"]],\\\"btn-primary\\\",\\\"btn-default\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"timeWindowLengthLongerThanWarehouseWorkingHours\\\"]]],null],true],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"common.yes\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"button\\\"],[11,\\\"data-button-name\\\",\\\"time-window-length-longer-than-warehouse-working-hours-false\\\"],[12,\\\"class\\\",[28,[\\\"btn \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"timeWindowLengthLongerThanWarehouseWorkingHours\\\"]],\\\"btn-default\\\",\\\"btn-primary\\\"],null]]]],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"timeWindowLengthLongerThanWarehouseWorkingHours\\\"]]],null],false],null]],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"common.no\\\"],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"timeWindowLengthLongerThanWarehouseWorkingHours\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"snapToClosestWindowInterval\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-9 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.snapToClosestWindowInterval\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3\\\"],[11,\\\"data-field-name\\\",\\\"snap-to-closest-window-interval\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"step\\\",\\\"min\\\",\\\"max\\\",\\\"class\\\",\\\"value\\\"],[\\\"number\\\",\\\"15\\\",\\\"0\\\",\\\"60\\\",\\\"form-control\\\",[23,[\\\"model\\\",\\\"snapToClosestWindowInterval\\\"]]]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"snapToClosestWindowInterval\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"form-group \\\",[27,\\\"if\\\",[[23,[\\\"model\\\",\\\"errors\\\",\\\"integrationCode\\\"]],\\\"has-error\\\"],null]]]],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-md-9 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.integrationCode\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-3\\\"],[11,\\\"data-field-name\\\",\\\"integration-code\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",[23,[\\\"model\\\",\\\"integrationCode\\\"]]]]],false],[0,\\\"\\\\n\\\\n                        \\\"],[1,[27,\\\"render-field-errors\\\",null,[[\\\"model\\\",\\\"fieldName\\\"],[[23,[\\\"model\\\"]],\\\"integrationCode\\\"]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"col-sm-9 control-label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.transportTypes\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-sm-3 form-control-static\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"proxiedTransportTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"no-wrap\\\"],[12,\\\"data-field-name\\\",[28,[\\\"enabled-for-\\\",[22,4,[\\\"alias\\\"]]]]],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"checked\\\",\\\"disabled\\\"],[\\\"checkbox\\\",[27,\\\"concat\\\",[\\\"transport-type-\\\",[22,4,[\\\"id\\\"]]],null],[22,4,[\\\"checked\\\"]],[23,[\\\"canNotEditRamps\\\"]]]]],false],[0,\\\"\\\\n\\\\n                                \\\"],[7,\\\"label\\\"],[12,\\\"for\\\",[28,[[27,\\\"concat\\\",[\\\"transport-type-\\\",[22,4,[\\\"id\\\"]]],null]]]],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[22,4,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-12 form-buttons\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"data-button-name\\\",\\\"save\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"save\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"warehouse.disableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"disable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"ban\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.disable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"warehouse.enableConfirm\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"enable\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                    \\\"],[1,[27,\\\"fa-icon\\\",[\\\"check\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.enable\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"data-button-name\\\",\\\"cancel\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"success\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"settings.backToSettings\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"common.cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"ok\\\"],[[\\\"on\\\",\\\"target\\\"],[\\\"submit\\\",[23,[\\\"view\\\"]]]]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-5\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[11,\\\"data-field-name\\\",\\\"ramp-section\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"sortedZones\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-xs-12\\\"],[9],[0,\\\"\\\\n                                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[12,\\\"data-field-name\\\",[28,[[22,1,[\\\"name\\\"]]]]],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-heading\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"b\\\"],[9],[1,[27,\\\"t\\\",[\\\"warehouseZone.label\\\"],null],false],[0,\\\" \\\"],[1,[22,1,[\\\"idx\\\"]],false],[10],[0,\\\"\\\\n                                            \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"warehouseZones.edit\\\",[22,1,[]]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                        \\\"],[10],[0,\\\"\\\\n                                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,1,[\\\"ramps\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                                    \\\"],[7,\\\"p\\\"],[12,\\\"class\\\",[28,[[27,\\\"unless\\\",[[22,3,[\\\"enabled\\\"]],\\\"disabled\\\"],null]]]],[9],[0,\\\"\\\\n                                                        \\\"],[1,[22,3,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"ramps.edit\\\",[22,3,[\\\"id\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                                            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-edit\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n                                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-footer\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_RAMP\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"span\\\"],[11,\\\"data-button-name\\\",\\\"add-ramp\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"warehouses.addRamp\\\",[23,[\\\"model\\\",\\\"id\\\"]],[22,1,[\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                                                        \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.addRamp\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                        \\\"],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showWarehouseLocationSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"warehouse/warehouse-location-section\\\",null,[[\\\"warehouse\\\"],[[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_WAREHOUSE_ZONE\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"warehouseZones.addZone\\\",[23,[\\\"model\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"warehouseZone.addZone\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\"],[11,\\\"data-field-name\\\",\\\"add-warehuse-location\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"warehouse-locations.create\\\",[23,[\\\"model\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.warehouseLocationAdd\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.createRampsAfterSave\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showAssortmentGroupSection\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"warehouse/assortment-group-section\\\",null,[[\\\"warehouse\\\"],[[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_ASSORTMENT_GROUP\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"p\\\"],[11,\\\"data-field-name\\\",\\\"add-assortment-group\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"assortment-groups.create\\\",[23,[\\\"model\\\",\\\"id\\\"]]],[[\\\"class\\\"],[\\\"btn btn-default\\\"]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"assortmentGroup.add\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel-body\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"form-control-static\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.configureAssortmentGroupsAfterSave\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/warehouses/create/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouses/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: service('session-account'),\n    access: ['ROLE_SETTINGS_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      return this.store.findRecord('warehouse', params.id, {\n        reload: true\n      });\n    },\n    renderTemplate: function () {\n      this.render('warehouses.create');\n    },\n    setupController: function (controller, model) {\n      this.controllerFor('warehouses.create').setProperties({\n        model: model\n      });\n    },\n    actions: {\n      willTransition: function () {\n        this.get('controller').setProperties({\n          success: false,\n          errors: []\n        });\n        return true;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouses/hd/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    service\n  } = Ember.inject;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: service('session-account'),\n    access: ['ROLE_WAREHOUSE_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n\n    model(params) {\n      const self = this;\n      const currentUser = self.get('sessionAccount').get('currentUser');\n      const warehouseId = params.warehouse_id;\n      const dateString = params.date_string;\n      const date = moment(dateString);\n      const warehouses = currentUser.get('warehouses').filter(w => {\n        return w.get('company.id') === localStorage.getItem('principalId');\n      });\n      const ramps = currentUser.get('ramps').filterBy('warehouse.id', warehouseId).sortBy('idx');\n      return Ember.RSVP.hash({\n        warehouses: warehouses,\n        warehouse: self.store.peekRecord('warehouse', warehouseId),\n        ramps: ramps,\n        delta: Math.min(params.delta, 7),\n        dateString: dateString,\n        date: date\n      });\n    },\n\n    renderTemplate: function () {\n      this.render('warehouses.schedule', {\n        controller: 'warehouses.schedule'\n      });\n    },\n    setupController: function (controller, model) {\n      this.controllerFor('warehouses.schedule').setProperties({\n        model: model,\n        scheduleStartDate: model.date,\n        selectedDateString: model.dateString,\n        hdMode: true\n      });\n      this.controllerFor('application').set('hdMode', true);\n    },\n    activate: function () {\n      this.set('timer', this.schedule(this.get('onPoll')));\n    },\n    deactivate: function () {\n      Ember.run.cancel(this.get('timer'));\n    },\n    schedule: function (f) {\n      return Ember.run.later(this, function () {\n        f.apply(this);\n        this.set('timer', this.schedule(f));\n      }, this.get('interval'));\n    },\n    onPoll: function () {\n      this.controllerFor('warehouses.schedule').send('onPoll');\n    },\n    lastPoll: function () {\n      const interval = this.get('interval');\n      return moment().subtract(interval, 'milliseconds');\n    }.property(),\n    interval: function () {\n      return 10000; // Time between polls (in ms)\n    }.property().readOnly(),\n    actions: {\n      willTransition(transition) {\n        const scheduleController = this.controllerFor('warehouses.schedule');\n        scheduleController.send('hideModal');\n        const willBeHdMode = transition.targetName === 'warehouses.hd';\n\n        if (!willBeHdMode) {\n          scheduleController.setProperties({\n            hasZoomBeenSetManually: willBeHdMode,\n            defaultZoom: undefined\n          });\n        }\n\n        scheduleController.setProperties({\n          info: null,\n          errors: null,\n          successMessage: null,\n          inProgress: false,\n          hdMode: willBeHdMode,\n          transportToSave: null,\n          warehouseStepToHandle: null,\n          scheduleClicked: false\n        });\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouses/schedule/controller\", [\"exports\", \"apollo/mixins/schedule-mixin\", \"apollo/mixins/persistence-mixin\", \"apollo/mixins/attachment-mixin\", \"apollo/mixins/advice-utils-mixin\", \"apollo/mixins/transports-mixin\", \"apollo/mixins/transport-form-mixin\", \"jquery\", \"apollo/utils/parsers/numberParsers\", \"apollo/models/schedule-action-select-model\", \"apollo/utils/functions/generate-time-objects\", \"apollo/utils/functions/date/get-offset-relative-to\"], function (_exports, _scheduleMixin, _persistenceMixin, _attachmentMixin, _adviceUtilsMixin, _transportsMixin, _transportFormMixin, _jquery, _numberParsers, _scheduleActionSelectModel, _generateTimeObjects, _getOffsetRelativeTo) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_scheduleMixin.default, _persistenceMixin.default, _attachmentMixin.default, _adviceUtilsMixin.default, _transportsMixin.default, _transportFormMixin.default, {\n    session: Ember.inject.service('session'),\n    intl: Ember.inject.service(),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    timeWindowService: Ember.inject.service('time-window-service'),\n    appTabActiveService: Ember.inject.service('application-tab-active-service'),\n    schedulePollingService: Ember.inject.service('polling.schedule-service'),\n    transportCombiner: Ember.inject.service('transport-relations.relations-combiner'),\n    warehouseZoneTransportTypeService: Ember.inject.service('schedule.warehouse-zone-transport-type-service'),\n    deliveryService: Ember.inject.service('delivery-service'),\n    websocketService: Ember.inject.service('websocket'),\n    websocketApi: null,\n    company: null,\n    selectedUserGroup: null,\n    routeName: Ember.computed('hdMode', function () {\n      return this.get('hdMode') ? 'hd' : 'schedule';\n    }),\n    createTransport: Ember.inject.controller('transports/modals/create-transport'),\n    applicationController: Ember.inject.controller('application'),\n    errors: Ember.A(),\n    editedTransportType: null,\n    openTransportId: null,\n    stepWithoutWindowCopy: null,\n    isShowingScheduleActionModal: false,\n    blockedWindowsMode: false,\n    showSecondTimeBar: Ember.computed('localeTimezoneHolder.timeZone', function () {\n      return this.localeTimezoneHolder.timeZone !== this.get('model.warehouse.timeZone');\n    }),\n    timeObjectsWarehouseBasedTz: Ember.computed('timeWindowOffsetIntervalSetting', 'scheduleStartHour', 'scheduleEndHour', function () {\n      return (0, _generateTimeObjects.generateTimeObjects)({\n        scheduleStartHour: this.get('scheduleStartHour'),\n        scheduleEndHour: this.get('scheduleEndHour'),\n        intervalMinutes: this.get('timeWindowOffsetIntervalSetting')\n      });\n    }),\n    timeObjectsUserBasedTz: Ember.computed('timeWindowOffsetIntervalSetting', 'scheduleStartHour', 'scheduleEndHour', function () {\n      return (0, _generateTimeObjects.generateTimeObjects)({\n        scheduleStartHour: this.get('scheduleStartHour'),\n        scheduleEndHour: this.get('scheduleEndHour'),\n        intervalMinutes: this.get('timeWindowOffsetIntervalSetting'),\n        minutesOffset: (0, _getOffsetRelativeTo.getOffsetRelativeTo)(this.get('model.warehouse.timeZone') || 'Europe/Warsaw', this.localeTimezoneHolder.timeZone)\n      });\n    }),\n    initResizeObserver: Ember.on('init', function () {\n      $(window).on('resize', function () {\n        $('.popup-dialog').dialog('option', 'position', {\n          my: 'right bottom',\n          at: 'right bottom',\n          of: window\n        });\n      });\n    }),\n    // eslint-disable-next-line ember/no-observers\n    setupTimeWindowDescriptionScrollerObserver: Ember.observer('hdMode', function () {\n      if (this.get('hdMode')) {\n        (0, _jquery.default)(document).on('scroll', () => Ember.run.debounce({\n          schedule: this\n        }, this.recalculateTimeWindowsDescriptionPosition, 100));\n      } else {\n        (0, _jquery.default)(document).off('scroll');\n      }\n    }),\n    isDuringWindowSelect: Ember.computed('transportToHandle', 'dedicatedTimeWindowToHandle', function () {\n      return !!this.get('transportToHandle') || !!this.get('dedicatedTimeWindowToHandle');\n    }),\n    closeMultipleTimeWindowsModal: function () {\n      this.set('showMultipleTimeWindowsModal', false);\n      this.send('hideModal');\n    },\n    // https://jsfiddle.net/alvaroAV/svvz7tkn/\n    isIE: Ember.computed('', function () {\n      const ua = window.navigator.userAgent;\n      return ua.indexOf('MSIE ') > -1 || ua.indexOf('Trident/') > -1;\n    }),\n    recalculateTimeWindowsDescriptionPosition: function () {\n      const referenceElement = this.schedule.get('isIE') ? (0, _jquery.default)('.schedule-navigation') : (0, _jquery.default)('.ramp-label');\n\n      if (!referenceElement.length) {\n        return;\n      }\n\n      const referenceOffset = referenceElement.offset().top + referenceElement.height();\n      this.schedule.moveWindowDescriptions(referenceOffset);\n    },\n    moveWindowDescriptions: function (referenceOffset) {\n      const allWindows = (0, _jquery.default)('.window-state-with-transport');\n\n      for (let i = 0; i < allWindows.length; i++) {\n        const timeWindowElement = (0, _jquery.default)(allWindows[i]);\n        const timeWindowTitle = timeWindowElement.find('.title');\n        const timeWindowOffset = timeWindowElement.offset().top;\n        const timeWindowHeight = timeWindowElement.height();\n        const timeWindowTitleOffset = timeWindowTitle.offset().top;\n\n        if (timeWindowOffset < referenceOffset && timeWindowOffset + timeWindowHeight > referenceOffset) {\n          timeWindowTitle.offset({\n            top: referenceOffset\n          });\n        } else if (timeWindowOffset !== timeWindowTitleOffset) {\n          timeWindowTitle.offset({\n            top: timeWindowOffset\n          });\n        }\n      }\n    },\n    dragWindowAcrossScheduleDays: function (step, days, target) {\n      const isTransportWindow = target.parent('.window-state-with-transport').length;\n      const isBlockadeWindow = target.parent('.window-state-disabled').length;\n      const isDedicatedWindow = target.parent('.window-state-dedicated').length;\n      const windowId = step.get('timeWindow.id') || target.parent().data('schedule-window');\n      const windowModel = this.store.peekRecord('timeWindow', windowId);\n\n      try {\n        if (isTransportWindow) {\n          const warehouseId = step.get('warehouse.id');\n          const window = step.get('timeWindow');\n          this.set('warehouseStepToHandle', step);\n          windowModel.lockForEditing();\n          const windowStart = moment(window.get('start')).add(days, 'days').format('YYYY-MM-DD'); // TODO: utworzyć i obsłużyć osobny modal tylko do przenoszenia samego okna czasowego\n          // (teraz podpinamy się pod modal edytowania awizacji)\n\n          this.transitionToRoute('warehouses.schedule', warehouseId, windowStart, '1');\n        } else if (isBlockadeWindow || isDedicatedWindow) {\n          const windowStart = moment(windowModel.get('start')).add(days, 'days').format('YYYY-MM-DD');\n          const warehouseId = windowModel.get('ramp.warehouse.id');\n          this.set('dedicatedTimeWindowToHandle', windowModel);\n          this.set('editedWindow', windowModel);\n          windowModel.lockForEditing();\n          this.transitionToRoute('warehouses.schedule', warehouseId, windowStart, '1');\n        }\n      } catch (e) {\n        console.log(e);\n        windowModel.unlockForEditing();\n      }\n    },\n    transportToHandle: Ember.computed('warehouseStepToHandle.transport', function () {\n      return this.get('warehouseStepToHandle.transport');\n    }),\n    isDuringTransportSave: Ember.computed('transportToHandle.id', function () {\n      const transportToHandle = this.get('transportToHandle');\n      return transportToHandle && !transportToHandle.get('id');\n    }),\n    editedWindow: Ember.computed('warehouseStepToHandle.timeWindow', function () {\n      return this.get('warehouseStepToHandle.timeWindow.id') ? this.get('warehouseStepToHandle.timeWindow') : null;\n    }),\n    attachments: Ember.A(),\n    info: null,\n    shownDaysContainCurrentDay: Ember.computed('shownDays', function () {\n      return this.get('shownDays').filterBy('name', this.get('currentFormattedDate')).length;\n    }).readOnly(),\n    showSelectDepartment: Ember.computed('model.userGroups.@each.length', function () {\n      return this.get('model.userGroups.length') > 0;\n    }).readOnly(),\n    currentMoment: Ember.computed('', function () {\n      return moment();\n    }),\n    currentFormattedDate: Ember.computed('currentMoment', function () {\n      return moment(this.get('currentMoment')).format('YYYY-MM-DD');\n    }).readOnly(),\n    showCurrentHourBackgroundColor: Ember.computed('timeWindowOffsetIntervalSetting', function () {\n      const interval = this.get('timeWindowOffsetIntervalSetting');\n\n      if (interval > 60) {\n        return '';\n      }\n\n      return 'current-hour';\n    }),\n    currentHour: Ember.computed('currentMoment', function () {\n      return moment(this.get('currentMoment')).format('HH:mm');\n    }).readOnly(),\n    scheduleEndDate: Ember.computed('scheduleStartDate', 'model.delta', function () {\n      const delta = parseInt(this.get('model.delta'));\n      return moment(this.get('scheduleStartDate')).add(delta - 1, 'days').endOf('day').toDate();\n    }),\n    // eslint-disable-next-line ember/no-observers\n    scheduleDateSelected: Ember.observer('selectedDateString', function () {\n      const selectedDate = this.get('selectedDateString');\n      this.transitToDate(Ember.isArray(selectedDate) ? selectedDate[0] : selectedDate);\n    }),\n    viewedColumns: Ember.computed('ramps.length', 'scheduleEndDate', function () {\n      return this.get('ramps.length') * this.get('viewedDays');\n    }),\n    viewedDays: Ember.computed('viewedColumns', function () {\n      const start = moment(this.get('scheduleStartDate'));\n      const end = moment(this.get('scheduleEndDate'));\n      return end.diff(start, 'days') + 1;\n    }),\n    showLongName: Ember.computed('viewedColumns', function () {\n      return this.get('viewedColumns') < 9;\n    }),\n    scheduleActionSelectModel: Ember.computed(function () {\n      return _scheduleActionSelectModel.default.create();\n    }),\n    // eslint-disable-next-line ember/no-observers\n    warehouseSelected: Ember.observer('model.warehouse.id', function () {\n      const dateString = this.get('scheduleStartDateFormatted');\n      const delta = this.get('model.delta');\n      this.set('defaultZoom', undefined);\n      this.transitionToRoute('warehouses.' + this.get('routeName'), this.get('model.warehouse.id'), dateString, delta);\n    }),\n    // eslint-disable-next-line ember/no-observers\n    selectedUserGroupObserver: Ember.observer('selectedUserGroup', function () {\n      if (this.get('selectedUserGroup')) {\n        this.set('company', null);\n      }\n    }),\n    // eslint-disable-next-line ember/no-observers\n    selectedCompanyObserver: Ember.observer('company', function () {\n      if (this.get('company')) {\n        this.set('selectedUserGroup', null);\n      }\n    }),\n    // eslint-disable-next-line ember/no-observers\n    showWindowPopUpObserver: Ember.observer('focusedWindowId', function () {\n      if (this.get('editedWindow.id')) {\n        console.debug(`Okno ${this.get('editedWindow.id')} jest w trakcie edycji. Nie wyświetlamy popupu`);\n        return;\n      }\n\n      Ember.run.debounce(this, this._showWindowPopUpObserver, 500);\n    }),\n    _showWindowPopUpObserver: function () {\n      const self = this;\n\n      if (self.get('focusedWindowId')) {\n        const window = self.store.peekRecord('timeWindow', self.get('focusedWindowId'));\n\n        if (window === null || !window.get('step.id')) {\n          return;\n        }\n\n        const transportIdToFetch = window.get('relatedTransport.id') ? window.get('relatedTransport.id') : window.get('transport.id');\n        self.get('store').findRecord('transport', transportIdToFetch).then(transport => {\n          self.getStatuses(transport);\n          const customFields = self.get('store').query('customFieldValue', {\n            transportId: transport.get('id')\n          });\n          window.get('transport').set('customFields', customFields);\n          const transportTypeScheduleSettings = self.get('store').queryRecord('transport-type-schedule-setting', {\n            transportTypeId: transport.get('transportType.id')\n          });\n          self.send('showPopupDialog', 'dialogs.window-details-dialog', {\n            window,\n            transport,\n            transportTypeScheduleSettings,\n            position: self.get('position')\n          });\n        });\n      } else {\n        self.send('removePopupMessage');\n      }\n    },\n\n    shouldSkipAssortmentGroupRestriction() {\n      return !this.get('assortmentGroup.id') || this.get('assortmentGroup.id') && this.get('sessionAccount.currentUser').canDiscardAssortmentGroupRestrictions();\n    },\n\n    shouldSkipAdviceRangeRestriction(minAdviceDate, transportTypeId) {\n      return !minAdviceDate || minAdviceDate && this.get('sessionAccount.currentUser').canDiscardAdviceRestrictions(transportTypeId);\n    },\n\n    shouldShowAdviceRangeAutoBlockadeWindow(warehouseStartDate, warehouseEndDate, minAdviceDate, maxAdviceDate) {\n      return minAdviceDate > warehouseEndDate || maxAdviceDate < warehouseStartDate;\n    },\n\n    getMinRestrictionDate(warehouseStartDate, warehouseEndDate, minAdviceDate, maxAdviceDate, transportTypeId) {\n      if (this.shouldSkipAssortmentGroupRestriction()) {\n        return minAdviceDate < warehouseEndDate ? minAdviceDate : warehouseEndDate;\n      }\n\n      if (this.shouldShowAdviceRangeAutoBlockadeWindow(warehouseStartDate, warehouseEndDate, minAdviceDate, maxAdviceDate)) {\n        return warehouseStartDate;\n      }\n\n      let minAssortmentGroupDate = moment(warehouseStartDate);\n      minAssortmentGroupDate = minAssortmentGroupDate.set({\n        h: this.get('assortmentGroup.adviceFromHours'),\n        m: this.get('assortmentGroup.adviceFromMinutes')\n      });\n\n      if (this.shouldSkipAdviceRangeRestriction(minAdviceDate, transportTypeId)) {\n        return minAssortmentGroupDate;\n      }\n\n      return minAssortmentGroupDate > minAdviceDate ? minAssortmentGroupDate : minAdviceDate;\n    },\n\n    getMaxRestrictionDate(warehouseStartDate, warehouseEndDate, minAdviceDate, maxAdviceDate, transportTypeId) {\n      if (this.shouldSkipAssortmentGroupRestriction()) {\n        return maxAdviceDate;\n      }\n\n      if (this.shouldShowAdviceRangeAutoBlockadeWindow(warehouseStartDate, warehouseEndDate, minAdviceDate, maxAdviceDate)) {\n        return warehouseStartDate;\n      }\n\n      let maxAssortmentGroupDate = moment(warehouseStartDate);\n      maxAssortmentGroupDate = maxAssortmentGroupDate.set({\n        h: this.get('assortmentGroup.adviceToHours'),\n        m: this.get('assortmentGroup.adviceToMinutes')\n      });\n\n      if (this.shouldSkipAdviceRangeRestriction(minAdviceDate, transportTypeId)) {\n        return maxAssortmentGroupDate;\n      }\n\n      return maxAssortmentGroupDate < maxAdviceDate ? maxAssortmentGroupDate : maxAdviceDate;\n    },\n\n    createAutoBlockadeWindow(start, stop, ramp) {\n      const window = this.get('store').createRecord('timeWindow', {\n        start,\n        stop,\n        ramp,\n        isAutoBlockade: true,\n        isLockedForEditing: true\n      });\n      this.get('windows').pushObject(window);\n    },\n\n    shouldSeeAutoBlockadesWindows(transportTypeId, minAdviceDate) {\n      const assortmentGroupId = this.get('assortmentGroup.id');\n      const userCanDiscardAdviceRestrictions = this.get('sessionAccount.currentUser').canDiscardAdviceRestrictions(transportTypeId);\n      const userCanDiscardAssortmentGroupRestrictions = this.get('sessionAccount.currentUser').canDiscardAssortmentGroupRestrictions();\n      const hasAdviceOnlyOnDedicatedWindowsRole = this.get('sessionAccount').hasRole('ADVICE_ONLY_ON_DEDICATED_WINDOWS');\n      const assortmentGroupRestriction = assortmentGroupId && !userCanDiscardAssortmentGroupRestrictions;\n      const adviceTimeRestriction = minAdviceDate && !userCanDiscardAdviceRestrictions;\n\n      if (assortmentGroupRestriction) {\n        return true;\n      }\n\n      if (adviceTimeRestriction) {\n        return true;\n      }\n\n      if (hasAdviceOnlyOnDedicatedWindowsRole) {\n        return true;\n      }\n\n      return false;\n    },\n\n    _setAutoBlockades: function () {\n      const transportTypeId = this.get('warehouseStepToHandle.transport.transportType.id');\n      const minAdviceDate = this.get('warehouseStepToHandle.minAdviceDate') || undefined;\n      const maxAdviceDate = this.get('warehouseStepToHandle.maxAdviceDate') || undefined;\n\n      if (!this.shouldSeeAutoBlockadesWindows(transportTypeId, minAdviceDate) || !this.get('model.warehouse.id')) {\n        return;\n      }\n\n      this.get('shownDays').forEach(d => {\n        const warehouseStartDate = this.get('model.warehouse').getStartOnDay(d.date);\n        const warehouseEndDate = this.get('model.warehouse').getEndOnDay(d.date);\n        let topWindowStart = warehouseStartDate;\n        const topWindowEnd = this.getMinRestrictionDate(warehouseStartDate, warehouseEndDate, minAdviceDate, maxAdviceDate, transportTypeId);\n        const bottomWindowStart = this.getMaxRestrictionDate(warehouseStartDate, warehouseEndDate, minAdviceDate, maxAdviceDate, transportTypeId);\n        const bottomWindowEnd = warehouseEndDate;\n        const showTopWindow = topWindowEnd > warehouseStartDate && topWindowEnd < warehouseEndDate;\n        let showBottomWindow = bottomWindowStart > warehouseStartDate && bottomWindowStart < warehouseEndDate;\n        /*\n        * Przypadek, gdy grupa asortymentowa ma ustawione godziny od np. 15:00 do 13:00 (kolejnego dnia).\n        * W takim przypadku chcemy wyświetlić tylko jedno okno, które wyklucza\n        * godziny poza grupą tj. (z przykładu wyżej: 13:00 - 15:00)\n        * */\n\n        if (this.get('assortmentGroup.id') && this.get('assortmentGroup.hasTurnedHours')) {\n          topWindowStart = bottomWindowStart;\n          showBottomWindow = false;\n        }\n\n        this.get('ramps').forEach(ramp => {\n          const timeWindows = this.get('filteredWindows').sortBy('start');\n          /*\n              Tworzenie okien blokady w wolnych miejscach (bez okien czasowych),\n              ale pod warunkiem, że użytkownik ma uprawnienie ADVICE_ONLY_ON_DEDICATED_WINDOWS.\n          */\n\n          const hasAdviceOnlyOnDedicatedWindowsRole = this.get('sessionAccount').hasRole('ADVICE_ONLY_ON_DEDICATED_WINDOWS');\n\n          if (hasAdviceOnlyOnDedicatedWindowsRole) {\n            const windowsArr = []; // Szukamy wszystkich okien na konkretnej rampie i wybieramy\n            // tylko te, które mają `state` (czyli wszystkie poza szarymi)\n\n            timeWindows.forEach(tw => {\n              if (tw.get('start') >= moment(warehouseStartDate) && tw.get('stop') <= moment(warehouseEndDate) && tw.get('ramp.id') === ramp.get('id') && tw.get('state') !== undefined) {\n                windowsArr.push(tw);\n              }\n            }); // jeśli nie znajedziemy okna na rampie to blokujemy ją całą\n\n            if (windowsArr.length <= 0) {\n              this.createAutoBlockadeWindow(warehouseStartDate, warehouseEndDate, ramp);\n              return;\n            }\n\n            for (let i = 0; i <= windowsArr.length; i++) {\n              // podczas pierwszej iteracji stawiamy okno blokady od początku rampy do początku pierwszego okna\n              if (i === 0) {\n                const stop = windowsArr[0].start ? windowsArr[0].start : '';\n                this.createAutoBlockadeWindow(warehouseStartDate, moment(stop), ramp);\n              } else if (i >= 1 && i < windowsArr.length) {\n                // podczas następynch iteracji z wyjątkiem pierwszej i ostatniej\n                // stawiamy okno blokady pomiędzy oknami z tabliczy `windowsArr`\n                this.createAutoBlockadeWindow(windowsArr[i - 1].stop, windowsArr[i].start, ramp);\n              } else {\n                // pozostaje nam ostatnia iteracja, na której stawiamy\n                // okno blokady pomiędzy ostatnim znalezionym oknem a końcem rampy\n                this.createAutoBlockadeWindow(windowsArr[windowsArr.length - 1].stop, warehouseEndDate, ramp);\n              }\n            }\n          }\n\n          if (showTopWindow) {\n            this.createAutoBlockadeWindow(topWindowStart, topWindowEnd, ramp);\n          }\n\n          if (showBottomWindow) {\n            this.createAutoBlockadeWindow(bottomWindowStart, bottomWindowEnd, ramp);\n          }\n\n          if (!showTopWindow && !showBottomWindow && (minAdviceDate >= warehouseEndDate || maxAdviceDate <= warehouseStartDate)) {\n            this.createAutoBlockadeWindow(warehouseStartDate, warehouseEndDate, ramp);\n          }\n        });\n      });\n    },\n    // eslint-disable-next-line ember/no-observers\n    removeAutoBlockades: Ember.observer('warehouseStepToHandle', function () {\n      if (this.get('warehouseStepToHandle')) {\n        return;\n      }\n\n      const autoBlockades = this.get('windows').filterBy('isAutoBlockade');\n      autoBlockades.forEach(tw => {\n        this.get('windows').removeObject(tw);\n      });\n    }),\n\n    setWindows() {\n      if (!this.get('rampsIds.length')) {\n        return;\n      }\n\n      const transportIds = this.store.peekAll('transport').map(t => {\n        return t.id;\n      });\n      const data = {\n        loadedTransportIds: transportIds.join(', '),\n        rampsIds: this.get('rampsIds'),\n        warehouse: this.get('warehouse')\n      };\n      this.loadWindows(0, data);\n    },\n\n    storeDisabledWindow: function (start, stop, rampId) {\n      const company = this.get('company');\n      const selectedUserGroup = this.get('selectedUserGroup');\n      const ramp = this.store.peekRecord('ramp', rampId);\n      this.timeWindowService.saveWindow(ramp, company, start, stop, selectedUserGroup).then(savedWindow => {\n        this.send('onPoll');\n        this.send('removePopupDialog');\n\n        try {\n          const windows = this.get('windows');\n          windows.pushObject(savedWindow);\n        } catch (e) {\n          console.error('nie udal sie push okna / ' + e);\n        }\n\n        this.setProperties({\n          errors: [],\n          scheduleClicked: false\n        });\n      }).catch(response => {\n        this.setProperties({\n          errors: response.errors,\n          scheduleClicked: false\n        });\n      });\n    },\n\n    /**\n     * jeżeli na rampie znajdują się tylko okna blokad, usuniemy je wwszystkie.\n     * @param windows\n     */\n    unblockRamp: function (windows) {\n      console.log('unblockRamp');\n      const self = this;\n      let onlyDisabled = true;\n      windows.forEach(function (window) {\n        if (window.get('state') !== 'state-disabled') {\n          onlyDisabled = false;\n        }\n      }); // wywala blad ale dziala\n      // http://stackoverflow.com/questions/15167703/how-to-delete-all-data-from-ember-data-store\n\n      if (onlyDisabled) {\n        windows.forEach(function (window) {\n          self.send('removeBlockedWindow', window);\n        });\n      }\n    },\n    _scheduleEvents: function () {\n      if (this.get('hdMode') && this.get('model.delta') === 1) {\n        Ember.run.later(this, function () {\n          this.scroll();\n        }, 1000);\n        this.activateScrolling();\n\n        if (this.get('timeToShiftSchedule')) {\n          this.activateDayChanging();\n        }\n      } else {\n        this.deactivateScrolling();\n        this.deactivateDayChanging();\n      }\n    },\n    // eslint-disable-next-line ember/no-observers\n    scheduleEvents: Ember.observer('hdMode', 'model.delta', function () {\n      Ember.run.once(this, '_scheduleEvents');\n    }),\n    activateScrolling: function () {\n      console.debug(`Aktywujemy scrollowanie co ${this.get('scrollInterval')} ms..`);\n      this.set('scrollTimer', this.schedule(this.scroll));\n    },\n    deactivateScrolling: function () {\n      console.debug('Wyłączamy scrollowanie..');\n      Ember.run.cancel(this.get('scrollTimer'));\n    },\n    scrollInterval: Ember.computed(function () {\n      return 60000;\n    }).readOnly(),\n\n    schedule(f) {\n      if (!this.get('hdMode') || this.get('model.delta') !== 1) {\n        return;\n      }\n\n      return Ember.run.later(this, function () {\n        f.apply(this);\n        this.set('scrollTimer', this.schedule(f));\n      }, this.get('scrollInterval'));\n    },\n\n    scroll() {\n      const now = moment();\n      const format = 'DD.MM.YYYY';\n      const currentScheduleDate = this.get('scheduleStartDate').format(format);\n\n      if (currentScheduleDate !== now.format(format)) {\n        console.debug('Harmonogram jest otwarty na innym dniu - nie scrollujemy do aktualnej godziny');\n        return;\n      }\n\n      const h = now.format('HH');\n      const m = now.format('mm');\n      const roundedM = Math.floor(parseInt(m) / 15) * 15 % 60;\n      let div = $(`div[data-schedule-hour='${h}'] div[data-schedule-minute='${roundedM}']`).first(); // Jeżeli slot godzinny nie będzie podzielony na części (np. 15-min.), musimy wyszukiwać miejsce jedynie wg godziny.\n\n      if (!div.length) {\n        div = $(`div[data-schedule-hour='${h}']`).first();\n      } // Jeżeli nadal nie znajdziemy odpowiedniego elementu -- oznacza to, że magazyn nie pracuje w danej godzinie\n\n\n      if (!div.length) {\n        return;\n      }\n\n      $('html, body').animate({\n        scrollTop: div.offset().top - 200\n      }, 'slow');\n    },\n\n    activateDayChanging: function () {\n      if (this.get('dayChangeTimer')) {\n        return;\n      }\n\n      console.debug('Aktywujemy zmienianie się dnia w widoku HD..');\n      this.set('dayChangeTimer', this.scheduleDayChanging(this.changeDay));\n    },\n    deactivateDayChanging: function () {\n      console.debug('Wyłączamy zmienianie się dnia w widoku HD..');\n      Ember.run.cancel(this.get('dayChangeTimer'));\n    },\n    timeToShiftSchedule: Ember.computed('', function () {\n      return this.get('sessionAccount').getSettingValue('HD_MODE_NEXT_DAY_SHIFT_TIME');\n    }),\n    findDayChangeInterval: function () {\n      const settingValue = this.get('timeToShiftSchedule');\n      const settingHours = settingValue.split(':')[0];\n      const settingMinutes = settingValue.split(':')[1];\n      const settingTime = moment().set({\n        h: settingHours,\n        m: settingMinutes,\n        s: 0\n      });\n\n      if (settingTime.isBefore()) {\n        settingTime.add(1, 'd');\n      }\n\n      const now = moment();\n      return settingTime.diff(now);\n    },\n\n    scheduleDayChanging(f) {\n      const interval = this.findDayChangeInterval();\n      return Ember.run.later(this, function () {\n        if (interval > 0) {\n          f.apply(this);\n        }\n\n        this.scheduleDayChanging(f);\n      }, interval);\n    },\n\n    changeDay() {\n      this.scroll();\n      this.send('shiftScheduleRight');\n    },\n\n    clockInterval: Ember.computed(function () {\n      const pageRenderedAt = this.currentMoment;\n      const reminderToNextQuadrant = 15 - pageRenderedAt.minute() % 15;\n      return reminderToNextQuadrant * 3600;\n    }),\n\n    setClockInterval() {\n      const pageRenderedAt = this.currentMoment;\n      const reminderToNextQuadrant = 15 - pageRenderedAt.minute() % 15;\n      this.set('clockInterval', reminderToNextQuadrant * 3600);\n    },\n\n    initializeScheduleClock: Ember.on('init', function () {\n      console.debug('Initializing clock..');\n      this.set('clockTimer', this.scheduleClock(this.get('setClock')));\n    }),\n    scheduleClock: function (f) {\n      return Ember.run.later(this, function () {\n        f.apply(this);\n        this.setClockInterval();\n        this.set('timer', this.scheduleClock(f));\n      }, this.get('clockInterval'));\n    },\n\n    setClock() {\n      this.set('currentMoment', moment());\n    },\n\n    transitToDate(dateAsString) {\n      const warehouseId = this.get('warehouse.id');\n      const delta = this.get('model.delta');\n      this.transitionToRoute('warehouses.' + this.get('routeName'), warehouseId, dateAsString, delta);\n    },\n\n    adviceRestrictionsValidate(start, stop) {\n      const transportTypeId = this.get('warehouseStepToHandle.transport.transportType.id');\n\n      if (this.get('sessionAccount.currentUser').canDiscardAdviceRestrictions(transportTypeId)) {\n        return true;\n      }\n\n      const stepToHandle = this.get('warehouseStepToHandle');\n\n      if (stepToHandle.get('minAdviceDate') && start < stepToHandle.get('minAdviceDate') || stepToHandle.get('maxAdviceDate') && stop > stepToHandle.get('maxAdviceDate')) {\n        const msg = this.get('intl').t('timeWindow.errors.time.outsideOfAdviceRange', {\n          minAdviceDate: moment(stepToHandle.get('minAdviceDate')).format('DD.MM.YYYY HH:mm'),\n          maxAdviceDate: moment(stepToHandle.get('maxAdviceDate')).format('DD.MM.YYYY HH:mm')\n        });\n        this.set('warningMessage', msg);\n        return false;\n      }\n\n      return true;\n    },\n\n    showLegend: Ember.computed('', function () {\n      return this.get('sessionAccount').getSettingValue('SCHEDULE_LEGEND_ENABLED') === 'true';\n    }),\n    findMaxPalletClass: Ember.computed('hasAccessToMaxPallet', 'hasAccessToMaxPalletPerRamp', function () {\n      const hasAccessToMaxPallet = this.get('hasAccessToMaxPallet');\n      const hasAccessToMaxPalletPerRamp = this.get('hasAccessToMaxPalletPerRamp');\n\n      if (hasAccessToMaxPallet && hasAccessToMaxPalletPerRamp) {\n        return 'double-max-pallets';\n      } else if (hasAccessToMaxPallet || hasAccessToMaxPalletPerRamp) {\n        return 'max-pallets';\n      } else {\n        return '';\n      }\n    }),\n\n    findWindowSize(stepWithoutWindow, transport) {\n      if (!this.get('editedWindow.id')) {\n        return this.getWindowSize(stepWithoutWindow, transport);\n      } else {\n        // w przypadku edycji okna mamy już jego rozmiar, więc nie musimy nikogo pytać\n        return new Promise(resolve => resolve({}));\n      }\n    },\n\n    findAlertDuringRemovingWindow(window) {\n      if (window.get('isDedicated')) {\n        return this.get('intl').t('warehouse.confirmDeleteDedicateWindow', {\n          company: window.get('company.name')\n        });\n      }\n\n      const note = window.get('note');\n\n      if (note) {\n        return this.get('intl').t('warehouse.windowNoteRemoveWarning', {\n          note\n        });\n      } else if (this.get('sessionAccount').getSettingValue('ADDITIONAL_CONFIRMATION_DURING_REMOVING_GRAY_WINDOW') === 'true') {\n        return this.get('intl').t('warehouse.windowRemoveWarning');\n      } else {\n        return null;\n      }\n    },\n\n    onPollWrapper: function () {\n      this.send('onPoll');\n    },\n    shouldLegendHaveFixedPosition: Ember.computed('model', function () {\n      return this.get('sessionAccount').getSettingValue('SET_SCHEDULE_LEGEND_TO_FIXED_POSITION') === 'true';\n    }),\n    shouldDisplayScheduleActionSelectOnClick: Ember.computed(function () {\n      return this.get('sessionAccount').hasRole('ROLE_CAN_CREATE_TRANSPORT_FROM_SCHEDULE');\n    }),\n    actions: {\n      toggleIsShowingScheduleActionModal: function () {\n        this.toggleProperty('isShowingScheduleActionModal');\n      },\n\n      closeMultipleTimeWindowsModal() {\n        this.closeMultipleTimeWindowsModal();\n      },\n\n      dragWindowAcrossScheduleDays: function (step, days, target) {\n        this.dragWindowAcrossScheduleDays(step, days, target);\n      },\n      switchOffHD: function (warehouseId, date, delta) {\n        window.scrollTo(0, 0);\n        Ember.run.debounce({\n          schedule: this\n        }, this.recalculateTimeWindowsDescriptionPosition, 0);\n        this.transitionToRoute('warehouses.schedule', warehouseId, date, delta);\n      },\n      poll: function () {\n        this.send('onPoll');\n      },\n\n      /** @namespace json.timeWindowIds */\n      onPoll: function () {\n        const params = {\n          warehouseId: this.get('warehouse.id'),\n          currentRampsIds: this.get('rampsIds')\n        };\n        const self = this;\n        const socketApi = this.websocketService.getSocketApi();\n\n        if (socketApi) {\n          this.get('schedulePollingService').useSockets(socketApi, params.warehouseId, self);\n        } else {\n          this.get('schedulePollingService').usePolling(params, self);\n        }\n      },\n\n      onDraggableStop(event) {\n        const Window = Ember.Object.extend({\n          // eslint-disable-next-line ember/require-return-from-computed\n          model: Ember.computed(function () {}),\n          isLock: Ember.computed(function () {\n            return false;\n          }),\n          currentLengthInMS: Ember.computed('model', function () {\n            return this.get('model.stop') - this.get('model.start');\n          })\n        });\n        const self = this;\n        const target = $(event.target);\n        const windowId = target.data('schedule-window');\n        const left = target.offset().left - $(document).scrollLeft();\n        const top = target.offset().top - $(document).scrollTop();\n        const bottom = target.height() + top;\n        const isSupplement = target.data('is-supplement');\n        target.removeClass('noclick');\n        this.set('inProgress', true);\n        const windowModel = this.store.peekRecord('timeWindow', windowId);\n\n        if (windowModel.get('isLockedForEditing')) {\n          console.log('Okno jest już w trakcie edycji - nie można na razie wykonywać na nim dodatkowych operacji!');\n          return;\n        }\n\n        const sourceWindow = Window.create({\n          model: windowModel,\n          oldStart: windowModel.get('start'),\n          oldStop: windowModel.get('stop'),\n          oldRamp: windowModel.get('ramp')\n        });\n        let minutesDiv, $minutesDiv, newStart, newStop;\n\n        if (!isSupplement) {\n          minutesDiv = this.findMinutesDiv(left + 10, top + 2);\n          $minutesDiv = $(minutesDiv);\n          newStart = this.getDate($minutesDiv);\n          newStop = moment(newStart).add(sourceWindow.get('currentLengthInMS'), 'milliseconds').toDate();\n        }\n\n        if (!minutesDiv) {\n          minutesDiv = this.findMinutesDiv(left + 10, bottom + 2);\n          $minutesDiv = $(minutesDiv);\n          newStop = this.getDate($minutesDiv);\n          newStart = moment(newStop).subtract(sourceWindow.get('currentLengthInMS'), 'milliseconds').toDate();\n        }\n\n        if (!minutesDiv) {\n          console.debug('Użytkownik próbował postawić okno poza obszarem harmonogramu; przerywamy operację.');\n          self.restorePreviousWindowPlace(sourceWindow);\n          return;\n        }\n\n        const rampId = this.getRampId($minutesDiv);\n        const ramp = self.store.peekRecord('ramp', rampId);\n\n        if (newStart.getTime() === sourceWindow.get('model.start').getTime() && newStop.getTime() === sourceWindow.get('model.stop').getTime() && sourceWindow.get('model.ramp.id') === rampId.toString()) {\n          console.log('brak zmian; przerywamy');\n          sourceWindow.get('model').notifyPropertyChange('start');\n          return;\n        } // eslint-disable-next-line array-callback-return\n\n\n        const targetWindowCandidateList = this.get('windows').filter(w => {\n          if (parseInt(w.get('id')) !== parseInt(sourceWindow.get('model.id')) && parseInt(w.get('ramp').get('id')) === parseInt(rampId) && !(w.get('stop') <= newStart || w.get('start') >= newStop)) {\n            return w;\n          }\n        });\n        let targetWindowCandidate;\n\n        if (targetWindowCandidateList.length > 1) {\n          targetWindowCandidate = targetWindowCandidateList.filter(w => {\n            return !w.get('isDedicated');\n          })[0];\n        } else {\n          targetWindowCandidate = targetWindowCandidateList[0];\n        }\n\n        const targetWindow = Window.create({\n          model: targetWindowCandidate\n        });\n        targetWindow.setProperties({\n          oldStart: targetWindow.get('model.start'),\n          oldStop: targetWindow.get('model.stop'),\n          oldRamp: targetWindow.get('model.ramp')\n        });\n        sourceWindow.setProperties({\n          oldStart: windowModel.get('start'),\n          oldStop: windowModel.get('stop'),\n          oldRamp: windowModel.get('ramp')\n        });\n        sourceWindow.get('model').setProperties({\n          start: newStart,\n          stop: newStop,\n          ramp\n        });\n        console.log(`Próba przesunięcia okna ${windowId}:\n                    [${sourceWindow.get('oldStart')}, ${sourceWindow.get('oldRamp.name')} (#${sourceWindow.get('oldRamp.id')})]\n                    -> [${newStart}, ${ramp.get('name')} (#${ramp.get('id')})]`);\n        const warehouseOpenTime = this.get('warehouse').getStartOnDay(this.get('scheduleStartDate'));\n        const warehouseCloseTime = this.get('warehouse').getEndOnDay(this.get('scheduleEndDate'));\n\n        if (targetWindow.get('model') && (this.windowsSwappingBlocked(sourceWindow, targetWindow) || newStart < warehouseOpenTime || newStop > warehouseCloseTime)) {\n          const message = this.get('intl').t('ramp.errors.cannotMoveWindowException');\n          this.send('showPopupDialog', 'dialogs.message-popup-dialog', sourceWindow.set('detail', message));\n          this.restorePreviousWindowPlace(sourceWindow);\n          this.restorePreviousWindowPlace(targetWindow);\n          return false;\n        }\n\n        if (this.get('windowSwapping')) {\n          console.debug('Jesteśmy w trakcie zamiany okien. Przerywamy operację przesuwania.');\n          return;\n        }\n\n        windowModel.lockForEditing();\n        const transport = sourceWindow.get('model.transport');\n\n        if (transport && transport.get('id')) {\n          sourceWindow.set('model.updateAllFuturePeriodicWindows', this.updateAllFuturePeriodicTransports(transport));\n        }\n\n        sourceWindow.get('model').save().then(w => {\n          self.send('removePopupDialog');\n          self.setProperties({\n            inProgress: false,\n            errors: []\n          });\n\n          if (w.get('transport.id')) {\n            w.get('transport').then(t => {\n              t.reload().then(() => {\n                self.unloadDeletedRecords('transport', t.id, 'checkpoint');\n                windowModel.unlockForEditing();\n                console.debug(`Zakończyliśmy aktualizację okna ${windowId} z transportem ${t.get('logString')}.`);\n              });\n            });\n          } else {\n            windowModel.unlockForEditing();\n            console.debug(`Zakończyliśmy aktualizację okna ${windowId}.`);\n          }\n\n          this.send('onPoll');\n        }).catch(response => {\n          this.restorePreviousWindowPlace(sourceWindow);\n          self.setProperties({\n            inProgress: false,\n            errors: response.errors\n          });\n          windowModel.unlockForEditing();\n        });\n      },\n\n      toggleblockedWindowsMode: function () {\n        this.toggleProperty('blockedWindowsMode');\n      },\n      createWindow: function (start, stop, rampId, initialStart) {\n        if (this.get('scheduleClicked')) {\n          return;\n        }\n\n        this.set('scheduleClicked', true);\n\n        if (this.get('transportToHandle')) {\n          this.send('handleClickWithTransport', start, stop, rampId, initialStart);\n        } else {\n          const availableTransportTypesInWarehouseZone = this.get('warehouseZoneTransportTypeService').transportTypesThatCanBeCreatedInWarehouseZone(rampId);\n\n          if (this.get('shouldDisplayScheduleActionSelectOnClick') && !this.get('blockedWindowsMode') && availableTransportTypesInWarehouseZone.length > 0) {\n            this.set('scheduleClicked', false);\n            this.set('scheduleActionSelectModel', _scheduleActionSelectModel.default.create({\n              start,\n              stop,\n              rampId,\n              selectedCompany: this.get('company'),\n              availableTransportTypesInWarehouseZone\n            }));\n            this.send('toggleIsShowingScheduleActionModal');\n          } else {\n            this.send('createBlockedWindow', start, stop, rampId);\n          }\n        }\n      },\n\n      handleClickDedicatedWindow(start, stop, rampId, initialStart) {\n        if (this.get('scheduleClicked')) {\n          return;\n        }\n\n        this.set('dedicatedTimeWindowToHandle', '');\n        const ramp = this.store.peekRecord('ramp', rampId);\n\n        if (this.get('editedWindow.id')) {\n          const editedWindow = this.get('editedWindow');\n          const editedWindowModel = this.store.peekRecord('timeWindow', editedWindow.get('id'));\n          console.log(`Edited window: [${editedWindow.get('formattedTime')}]`);\n          editedWindow.setProperties({\n            oldStart: editedWindow.get('start'),\n            oldStop: editedWindow.get('stop'),\n            oldRamp: editedWindow.get('ramp'),\n            initialStart: initialStart.toDate(),\n            start: start.toDate(),\n            stop: stop.toDate(),\n            ramp\n          });\n          editedWindowModel.unlockForEditing();\n          editedWindow.save().then(() => {\n            console.debug(`Zapisano okno czasowe ${editedWindow.id} w zakresie ${start} - ${stop}`);\n          }).catch(e => {\n            console.log(e);\n          });\n        }\n      },\n\n      handleClickWithTransport(start, stop, rampId, initialStart) {\n        if (this.get('scheduleClicked')) {\n          return;\n        }\n\n        this.set('scheduleClicked', true);\n        const self = this;\n        this.set('warningMessage', null);\n        const transport = this.get('transportToHandle');\n        console.debug(`Trying to handle click on ${start} with transport ${transport.get('id')}..`);\n        const ramp = this.store.peekRecord('ramp', rampId);\n\n        if (!this.transportCanBeCreatedInThisWarehouse(transport, ramp)) {\n          const msg = this.get('intl').t('timeWindow.errors.wrongWarehouse');\n          this.set('warningMessage', msg);\n          return;\n        }\n\n        const stepWithoutWindow = transport.get('firstWarehouseStepWithoutWindow') ? transport.get('firstWarehouseStepWithoutWindow') : this.get('stepWithoutWindowCopy');\n\n        if (stepWithoutWindow) {\n          // Ustalamy warehouseZone [A-12929]\n          const warehouseZone = this.store.peekRecord('warehouseZone', ramp.get('warehouseZone.id'));\n          stepWithoutWindow.set('warehouseZone', warehouseZone);\n        } // Tworzymy kopię na potrzeby obsługi błędu w przypadku stawiania okna bez awizacji\n\n\n        this.set('stepWithoutWindowCopy', stepWithoutWindow);\n        this.findWindowSize(stepWithoutWindow, transport).then(response => {\n          const estimatedLengthInMinutes = response.estimatedWindowLengthInMinutes;\n\n          if (estimatedLengthInMinutes) {\n            stop = moment(start).add(estimatedLengthInMinutes, 'minutes').toDate();\n          }\n\n          if (!this.adviceRestrictionsValidate(start, stop)) {\n            this.set('scheduleClicked', false);\n            return;\n          }\n\n          if (this.get('editedWindow.id')) {\n            const editedWindow = this.get('editedWindow');\n            const editedWindowModel = this.store.peekRecord('timeWindow', editedWindow.get('id'));\n            editedWindow.setProperties({\n              oldStart: editedWindow.get('start'),\n              oldStop: editedWindow.get('stop'),\n              oldRamp: editedWindow.get('ramp'),\n              initialStart: initialStart.toDate(),\n              start: start.toDate(),\n              stop: stop.toDate(),\n              ramp\n            });\n            editedWindowModel.unlockForEditing();\n            transport.set('editedTimeWindow', editedWindow);\n            this.send('processTransportWindowCreation', transport, start);\n          } else {\n            const tmpWindow = self.store.createRecord('timeWindow', {\n              start,\n              stop,\n              ramp,\n              initialStart,\n              step: stepWithoutWindow\n            });\n            stepWithoutWindow.set('timeWindow', tmpWindow);\n            transport.get('timeWindows').pushObject(tmpWindow);\n            transport.set('editedTimeWindow', tmpWindow);\n            self.send('processTransportWindowCreation', transport, start);\n          }\n        });\n      },\n\n      processTransportWindowCreation(transport, start) {\n        const self = this;\n        const nextStepWithoutWindow = transport.get('firstWarehouseStepWithoutWindow');\n        const nextStepWithChangedWarehouse = transport.get('firstChangedWarehouseStep');\n\n        if (nextStepWithoutWindow || nextStepWithChangedWarehouse) {\n          const warehouse = nextStepWithoutWindow ? nextStepWithoutWindow.get('warehouse') : nextStepWithChangedWarehouse.get('warehouse');\n          const minAdviceDateOrToday = nextStepWithoutWindow.get('minAdviceDate') !== null ? moment(nextStepWithoutWindow.get('minAdviceDate')).format('YYYY-MM-DD') : moment(new Date()).format('YYYY-MM-DD');\n          const scheduleDateString = nextStepWithoutWindow ? minAdviceDateOrToday : moment(new Date()).format('YYYY-MM-DD');\n          const stepToHandle = nextStepWithoutWindow || nextStepWithChangedWarehouse;\n          self.set('warehouseStepToHandle', stepToHandle);\n          self.set('scheduleClicked', false); // jeśli nie jesteśmy w magazynie lub jesteśmy w innym magazynie niż ten, w którym chcemy postawić okno - wykonujemy przekierowanie\n\n          if (this.get('routeName') !== 'schedule' || this.get('warehouse.id') !== warehouse.get('id')) {\n            console.log(`Transport ${transport.get('id')} wymaga wybrania kolejnego okna czasowego - przenosimy się do magazynu ${warehouse.get('name')}..`);\n\n            if (transport.get('stepsWithWarehouse').length > 1) {\n              self.set('showMultipleTimeWindowsModal', true);\n            }\n\n            return self.transitionToRoute('warehouses.schedule', warehouse.get('id'), scheduleDateString, '1');\n          }\n        }\n\n        const transportToHandle = self.get('transportToHandle');\n        const transportToHandleId = self.get('transportToHandle.id');\n\n        if (transportToHandleId) {\n          self.initializeCustomFields(transportToHandle).then(() => {\n            const transport = self.get('transportToHandle.content') ? self.get('transportToHandle.content') : self.get('transportToHandle');\n            const path = self.get('apolloApiService').APOLLO_API.TRANSPORTS.VALIDATE;\n            self.get('apolloApiService').callApolloApi(path, {\n              id: transportToHandleId\n            }, {\n              body: JSON.stringify(transport.serialize())\n            }, null).then(response => response.json()).then(response => {\n              let errors = [];\n\n              if (response.errors) {\n                errors = response.errors.uniq();\n              }\n\n              const responseMeta = errors.get('firstObject.meta');\n\n              if (responseMeta) {\n                const exceptionInformation = Ember.ObjectProxy.create({\n                  initialStart: responseMeta.initialStart,\n                  windowSizeInMinutes: responseMeta.windowSizeInMinutes,\n                  rampName: responseMeta.rampName,\n                  whId: responseMeta.warehouseId\n                });\n                transport.set('exceptionInformation', exceptionInformation);\n              }\n\n              self.set('scheduleClicked', false);\n\n              if (transport.get('transportType.selectionOfWindowBeforeAdvice')) {\n                if (transport.get('stepsWithWarehouse').length > 1) {\n                  self.send('showModal', 'time-windows-summary-modal', {\n                    transportToHandle\n                  });\n                }\n\n                if (errors.length > 0) {\n                  self.set('errors', errors[0]);\n\n                  if (errors[0].meta.exceptionType !== 'WINDOWS_OVERLAP_EXCEPTION') {\n                    transport.get('timeWindows').forEach(timeWindow => {\n                      timeWindow.rollbackAttributes();\n                    });\n                  }\n\n                  self.send('openCreateAdviceModal', errors, transport);\n                  return;\n                }\n\n                self.send('createTimeWindow', transport);\n              } else {\n                if (transport.get('stepsWithWarehouse.length') > transport.get('timeWindows.length')) {\n                  self.send('showModal', 'time-windows-summary-modal', {\n                    transportToHandle\n                  });\n                  return;\n                }\n\n                self.send('openCreateAdviceModal', errors, transport);\n              }\n            });\n          });\n        } else {\n          self.send('createAdvice');\n        }\n      },\n\n      createTimeWindow(transport) {\n        const self = this;\n        transport.validate();\n\n        if (transport.get('hasErrors')) {\n          return;\n        }\n\n        transport.save().then(() => {\n          console.log(`Window for transport ${transport.get('id')} has been saved.`);\n          self.unloadRedundantTimeWindows(transport);\n          transport.reload().then(() => self.handleTransportReload(transport, self));\n          const info = self.get('intl').t('warehouse.adviceHasBeenSavedInfo') + moment(transport.get('earliestTimeWindowStart')).format('HH:mm');\n          self.set('info', info);\n          self.set('warehouseStepToHandle', null);\n          self.set('model.errors', []);\n        }).catch(response => {\n          const errors = response.errors;\n          self.set('model.errors', errors);\n        });\n      },\n\n      async openCreateAdviceModal(errors, transport) {\n        const self = this;\n        transport.get('advice').then(a => {\n          if (!a && !transport.get('transportType.selectionOfWindowBeforeAdvice')) {\n            self.send('setAdviceForTransport', transport);\n          } // A-14994 - zdarzalo się, że nie dociągamy info o packageType w deliverkach\n          // podczas awizacji dlatego przed przekazaniem do modala ładujemy je tutaj do ember data\n\n\n          if (transport.get('deliveries.length') > 0) {\n            this.get('deliveryService').reloadDeliveries(transport);\n          }\n\n          const hasErrors = errors.length >= 1;\n          let exceptionType = null;\n\n          if (hasErrors) {\n            if (errors[0].meta) {\n              exceptionType = errors[0].meta.exceptionType;\n            }\n          }\n\n          self.send('showModal', 'advice.modals.create-advice', {\n            transport,\n            errors: errors || [],\n            showSearchSpotsButton: self.EXCEPTIONS_THAT_ALLOWS_SPOTS_SEARCHING.includes(exceptionType)\n          });\n        });\n      },\n\n      setAdviceForTransport(transport) {\n        const settingValue = this.get('sessionAccount').getSettingValue('SHOW_TERMS_OF_CONDITIONS_ACCEPTED');\n        const advice = this.get('store').createRecord('advice', {\n          requiresAcceptanceOfTermsOfCondition: settingValue === 'true'\n        });\n        transport.set('advice', advice);\n      },\n\n      /**\n       * metoda wykonywana po kliknięciu w nagłówek rampy.\n       * Jeżeli na rampie nie ma okien, utworzymy blokade na całym dniu.\n       * W przeciwnym razie, jeżeli są tylko okna blokady, usuniemy je, por. {@link unblockRamp}.\n       * @param time\n       * @param rampId\n       */\n      toggleWholeRampWindow: function (time, rampId) {\n        console.log('toggleWholeRampWindow');\n        const self = this;\n\n        if (this.get('sessionAccount').hasRole('ROLE_BLOCK_RAMPS')) {\n          const start = this.get('warehouse').getStartOnDay(time);\n          const stop = this.get('warehouse').getEndOnDay(time);\n          const windowsOnRamp = self.get('windows').filter(window => {\n            return window.get('ramp.id') === rampId && window.get('start') >= start && window.get('stop') <= stop && !window.get('deleted') && !window.get('isAutoBlockade');\n          });\n\n          if (windowsOnRamp.get('firstObject') == null) {\n            self.storeDisabledWindow(start, stop, rampId);\n          } else {\n            self.unblockRamp(windowsOnRamp);\n          }\n        } else {\n          console.log('without producer role: ramp click');\n        }\n      },\n\n      createAdvice() {\n        const self = this;\n        const transport = this.get('transportToSave');\n        transport.set('advice', self.removeWhiteSpacesAndSetUpperCase(transport.get('advice')));\n        transport.get('customFields').filterBy('definition.isNumberType').forEach(pair => {\n          if (pair.get('value')) {\n            pair.set('value', _numberParsers.default.getParsableNumber(pair.get('value')));\n          }\n        });\n        const principalCompany = this.store.peekRecord('company', localStorage.getItem('principalId'));\n\n        if (!transport.get('carrierCompany.name')) {\n          transport.set('carrierCompany', null);\n        }\n\n        transport.set('principalCompany', principalCompany);\n        transport.save().then(function () {\n          const transportId = transport.id;\n          console.log(`We successfully saved transport ${transport.get('logString')}!`);\n          self.set('scheduleClicked', false);\n          self.send('removePopupDialog');\n          const token = self.get('sessionAccount').get('token');\n\n          if (self.attachments) {\n            console.debug(`Saving files for ${transportId}`);\n            self.uploadAttachment(transportId, token);\n          }\n\n          const steps = transport.get('steps');\n          const stepsArray = steps.toArray();\n          stepsArray.forEach(function (s) {\n            if (s === undefined || !s.id) {\n              steps.removeObject(s);\n\n              if (s !== undefined) {\n                console.debug(`Unloading redundant step for newly saved transport ${transportId}..`);\n                s.unloadRecord();\n              }\n            }\n          });\n          const customFields = transport.get('customFields');\n          const customFieldsArray = customFields.toArray(); // eslint-disable-next-line array-callback-return\n\n          customFieldsArray.map(function (cf) {\n            if (cf === undefined || !cf.id) {\n              customFields.removeObject(cf);\n\n              if (cf !== undefined) {\n                console.debug(`Unloading redundant custom field for newly saved transport ${transportId}..`);\n                cf.unloadRecord();\n              }\n            }\n          });\n          transport.get('timeWindows').then(timeWindows => {\n            const timeWindowsCopy = timeWindows.slice(0);\n            timeWindowsCopy.forEach(tw => {\n              if (tw !== undefined && !tw.get('id')) {\n                timeWindows.removeObject(tw);\n                console.debug(`Unloading redundant time window for newly saved transport ${transportId}..`);\n                tw.unloadRecord();\n              }\n            });\n          });\n          transport.get('indexes').then(indexes => {\n            const indexesCopy = indexes.slice(0);\n            indexesCopy.forEach(index => {\n              if (index !== undefined && !index.get('id')) {\n                indexes.removeObject(index);\n                console.debug(`Unloading redundant index for newly saved transport ${transportId}..`);\n                index.unloadRecord();\n              }\n            });\n          });\n          transport.get('courierPackages').then(cps => {\n            const cpCopy = cps.slice(0);\n            cpCopy.forEach(cp => {\n              if (cp !== undefined && !cp.get('id')) {\n                cps.removeObject(cp);\n                console.debug(`Unloading redundant courierPackages for newly saved transport ${transportId}..`);\n                cp.unloadRecord();\n              }\n            });\n          });\n          transport.get('transportType').set('forcedPollRequestTime', new Date().getTime());\n          self.send('onPoll');\n          const createTransportController = self.get('createTransport');\n          createTransportController.setProperties({\n            model: null,\n            errors: [],\n            attachments: []\n          });\n          self.send('hideModal');\n          self.setProperties({\n            info: self.get('intl').t('warehouse.adviceHasBeenSavedInfo') + moment(transport.get('earliestTimeWindowStart')).format('HH:mm'),\n            warningMessage: null,\n            attachments: [],\n            transportToSave: null,\n            warehouseStepToHandle: null,\n            scheduleClicked: false\n          });\n        }).catch(response => {\n          const errors = response.errors;\n          const responseMeta = errors[0].meta;\n          const exceptionType = responseMeta ? responseMeta.exceptionType : null;\n\n          if (responseMeta) {\n            const exceptionInformation = Ember.ObjectProxy.create({\n              initialStart: responseMeta.initialStart,\n              windowSizeInMinutes: responseMeta.windowSizeInMinutes,\n              rampName: responseMeta.rampName\n            });\n            transport.set('exceptionInformation', exceptionInformation);\n          }\n\n          self.set('scheduleClicked', false);\n          self.get('createTransport').setProperties({\n            errors,\n            showSearchSpotsButton: self.EXCEPTIONS_THAT_ALLOWS_SPOTS_SEARCHING.includes(exceptionType)\n          });\n          transport.get('steps').filterBy('timeWindow.start').forEach(s => {\n            s.set('timeWindow', null);\n          });\n          transport.get('timeWindows').filterBy('id', null).forEach(tw => {\n            tw.setProperties({\n              transport: null,\n              step: null,\n              deleted: null\n            });\n          });\n          self.send('showTransportDetails', transport);\n        });\n      },\n\n      showTransportDetails: function (transport) {\n        console.debug(`Otwieramy okienko ze szczegółami transportu ${transport.get('logString')} z poziomu harmonogramu...`);\n        this.set('openTransportId', transport.get('id'));\n        this.set('editedTransportType', transport.get('transportType'));\n        this.send('showModal', 'transports.modals.create-transport', transport);\n      },\n      showLoadingModal: function () {\n        this.send('showModal', 'transports.modals.loading-data');\n      },\n      createBlockedWindow: function (start, stop, rampId) {\n        this.set('scheduleClicked', true);\n        const isDedicatedWindow = !!this.get('company');\n\n        if (isDedicatedWindow && !this.get('sessionAccount').hasRole('ROLE_MANAGE_DEDICATED_WINDOWS')) {\n          console.log('User tried to save a dedicated window, but does not have an authority to do that.');\n          this.set('scheduleClicked', false);\n          return;\n        } else if (!isDedicatedWindow && !this.get('sessionAccount').hasRole('ROLE_BLOCK_RAMPS')) {\n          console.log('User tried to save a blockade, but does not have an authority to do that.');\n          this.set('scheduleClicked', false);\n          return;\n        }\n\n        const laterWindows = this.get('windows').filter(w => {\n          return parseInt(w.get('ramp.id')) === rampId && w.get('start') > start;\n        }); // System will try to fit a blockade window if there is not enough space to save it with default length,\n        // i.e. user tries to save a 60-min. window at 14:00, but there is already other window at 14:30 -\n        // in this case, instead of throwing an error, system will save a 30-min. window.\n\n        if (!this.get('warehouse.timeWindowMustOccupyEntireRamp') && laterWindows.length) {\n          const laterWindow = laterWindows.sortBy('start').get('firstObject');\n          const laterWindowStart = laterWindow.get('start');\n          stop = laterWindowStart < stop ? laterWindowStart : stop;\n        } // [A-10607] Gdy okno blokady ustawiamy na koniec dnia magazynu, w przypadku magazynów działających przez 24h\n        // odejmujemy sekundę, wtedy okno, które zapiszemy będzie kończyć się tego samego dnia o godzinie 23:59:59\n        // (a nie dnia następnego o 00:00:00)\n\n\n        if (!(start instanceof moment)) {\n          start = moment(start);\n        }\n\n        if (!(stop instanceof moment)) {\n          stop = moment(stop);\n        }\n\n        if (start.get('date') < stop.get('date') && stop.get('hour') === 0) {\n          stop.subtract(1, 'seconds');\n        }\n\n        this.storeDisabledWindow(start, stop, rampId);\n      },\n      removeBlockedWindow: function (window) {\n        const isDedicatedWindow = window.get('isDedicated');\n\n        if (isDedicatedWindow && !this.get('sessionAccount').hasRole('ROLE_MANAGE_DEDICATED_WINDOWS')) {\n          console.log('User tried to remove a dedicated window, but does not have an authority to do that.');\n          this.set('scheduleClicked', false);\n          return;\n        } else if (!isDedicatedWindow && !this.get('sessionAccount').hasRole('ROLE_BLOCK_RAMPS')) {\n          console.log('User tried to remove a blockade, but does not have an authority to do that.');\n          this.set('scheduleClicked', false);\n          return;\n        }\n\n        const removingAlert = this.findAlertDuringRemovingWindow(window);\n\n        if (removingAlert && !confirm(removingAlert)) {\n          return;\n        }\n\n        this.send('destroyWindow', window);\n      },\n      destroyWindow: function (window) {\n        const self = this;\n        window.deleteRecord();\n        window.save().then(function (w) {\n          self.send('removePopupDialog');\n          self.get('windows').removeObject(w);\n          self.get('store').unloadRecord(window);\n          self.set('errors', null);\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n\n      shiftScheduleLeft(days = 1) {\n        const newStartAsString = this.get('scheduleStartDate').subtract(days, 'days').format('YYYY-MM-DD');\n        this.transitToDate(newStartAsString);\n      },\n\n      shiftScheduleRight(days = 1) {\n        const newStartAsString = this.get('scheduleStartDate').add(days, 'days').format('YYYY-MM-DD');\n        this.transitToDate(newStartAsString);\n      },\n\n      today() {\n        this.transitToDate(moment().startOf('day').format('YYYY-MM-DD'));\n      },\n\n      transitToDelta(delta = 1) {\n        const warehouseId = this.get('warehouse.id');\n        this.get('applicationController').setLocalDelta(delta);\n        const dateString = this.get('scheduleStartDate').format('YYYY-MM-DD');\n        this.transitionToRoute('warehouses.' + this.get('routeName'), warehouseId, dateString, delta);\n      },\n\n      showTransportToSave() {\n        (0, _jquery.default)('.modal').show();\n        $('body').addClass('modal-open');\n      },\n\n      openNoteWindow(window) {\n        this.send('showModal', 'time-window.modals.window-note', window);\n      },\n\n      openIndexesDetailsWindow(transport) {\n        this.send('showModal', 'indexes.modals.indexes-details', transport);\n      },\n\n      cancelTransportCreation() {\n        const self = this;\n        const editedWindow = this.get('editedWindow');\n\n        if (editedWindow) {\n          const editedWindowModel = this.store.peekRecord('timeWindow', editedWindow.get('id'));\n          editedWindowModel.unlockForEditing();\n\n          if (editedWindow.content) {\n            editedWindow.content.restorePlace();\n          } else {\n            if (this.get('dedicatedTimeWindowToHandle')) {\n              this.set('dedicatedTimeWindowToHandle', '');\n            }\n\n            editedWindow.restorePlace();\n          }\n        } else {\n          self.handleStepsUpdate(this.get('transportToHandle'));\n          self.removeUnsavedTimeWindows(this.get('transportToHandle'));\n        }\n\n        this.transportCombiner.decombineAllRelatedTransports(this.get('transportToHandle'));\n        this.setProperties({\n          warningMessage: null,\n          transportToSave: null,\n          warehouseStepToHandle: null\n        });\n      },\n\n      setSelectedDateString(date) {\n        this.set('selectedDateString', moment(date[0]).local().format('YYYY-MM-DD'));\n      },\n\n      setWarehouse(warehouse) {\n        const chosenWarehouse = this.get('store').peekRecord('warehouse', warehouse.get('id'));\n        this.set('model.warehouse', chosenWarehouse);\n\n        if (this.get('warehouseStepToHandle')) {\n          this.set('warehouseStepToHandle.warehouse', chosenWarehouse);\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouses/schedule/route\", [\"exports\", \"apollo/mixins/menu-mixin\", \"apollo/mixins/persistence-mixin\"], function (_exports, _menuMixin, _persistenceMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_menuMixin.default, _persistenceMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    appTabActiveService: Ember.inject.service('application-tab-active-service'),\n    websocketService: Ember.inject.service('websocket'),\n    transportCombiner: Ember.inject.service('transport-relations.relations-combiner'),\n    access: Ember.A(['ROLE_WAREHOUSE_TAB']),\n    beforeModel: function (transition) {\n      const accessibleWarehouseIds = this.get('sessionAccount.currentUser.accessibleRamps').map(r => {\n        return r.get('warehouse.id');\n      });\n      const warehouseId = transition.params['warehouses.schedule'].warehouse_id;\n      const userHasAccessToWarehouse = accessibleWarehouseIds.includes(warehouseId);\n\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access')) || !userHasAccessToWarehouse) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n\n      const principal = this.store.peekRecord('company', localStorage.getItem('principalId'));\n      const warehouse = this.store.peekRecord('warehouse', warehouseId);\n      warehouse.set('loadedDays', []);\n\n      if (warehouse.get('company.id') !== principal.get('id')) {\n        const warehouseOfCurrentPrincipal = this.get('sessionAccount.currentUser.warehouses.firstObject');\n        const dateString = transition.params['warehouses.schedule'].date_string;\n        const delta = transition.params['warehouses.schedule'].delta;\n\n        if (!warehouseOfCurrentPrincipal) {\n          this.transitionTo('forbidden');\n        }\n\n        console.debug(`Transitioning user to warehouse ${warehouseOfCurrentPrincipal.get('name')}..`);\n        this.transitionTo('warehouses.schedule', warehouseOfCurrentPrincipal.get('id'), dateString, delta);\n      }\n    },\n\n    model(params) {\n      const self = this;\n      const currentUser = self.get('sessionAccount').get('currentUser');\n      const warehouseId = params.warehouse_id;\n      const dateString = params.date_string;\n      const warehouses = currentUser.get('accessibleWarehouses').filter(w => {\n        return w.get('company.id') === localStorage.getItem('principalId');\n      }).sortBy('idx');\n      const ramps = currentUser.get('ramps').filterBy('warehouse.id', warehouseId).sortBy('idx');\n      return Ember.RSVP.hash({\n        warehouses,\n        warehouse: self.store.peekRecord('warehouse', warehouseId),\n        ramps,\n        delta: Math.min(params.delta, 7),\n        dateString,\n        userGroups: this.get('store').query('userGroup', {\n          principalCompanyId: localStorage.getItem('principalId')\n        })\n      });\n    },\n\n    setupController: function (controller, model) {\n      // Wartość `new Date()` w `lastPoll` ustawiamy tylko przy pierwszym wejściu do harmonogramu;\n      // w pozostałych przypadkach pierwsze odświeżenie (polling) użyje zapisanego `lastPoll` - tak by odświeżyć\n      // zmiany, które zaszły w harmonogramie w czasie, w którym włączona była inna zakładka.\n      controller.setProperties({\n        windows: Ember.A([]),\n        model,\n        scheduleStartDate: moment(model.dateString),\n        selectedDateString: model.dateString,\n        lastPoll: controller.get('lastPoll') || new Date()\n      });\n    },\n    activate: function () {\n      // eslint-disable-next-line ember/no-controller-access-in-routes\n      this.get('appTabActiveService').setOnPollHandlingObject(this.controllerFor(this.routeName), 'WAREHOUSE');\n      this.set('timer', this.schedule(this.get('onPoll')));\n      this.activateCurrentTab('WAREHOUSE_TAB');\n    },\n    deactivate: function () {\n      this.get('appTabActiveService').setOnPollHandlingObject(null, 'WAREHOUSE');\n      Ember.run.cancel(this.get('timer'));\n      const socketApi = this.websocketService.getSocketApi();\n\n      if (socketApi) {\n        socketApi.unsubscribeAny('topic/schedule/update');\n      }\n    },\n    schedule: function (f) {\n      const self = this;\n      const socketApi = this.websocketService.getSocketApi();\n\n      if (socketApi) {\n        // Jeśli korzystamy z socketów to nie chcemy ustawiać timer'a do starego pollingu\n        return;\n      }\n\n      return Ember.run.later(self, function () {\n        if (Ember.getOwner(this).lookup('controller:application').currentPath === self.get('routeName')) {\n          f.apply(self);\n          self.set('timer', self.schedule(f));\n        }\n      }, self.get('pollInterval'));\n    },\n    onPoll: function () {\n      // eslint-disable-next-line ember/no-controller-access-in-routes\n      this.controller.send('onPoll');\n    },\n    lastPoll: Ember.computed(function () {\n      const interval = this.get('pollInterval');\n      return moment().subtract(interval, 'milliseconds');\n    }).property(),\n    pollInterval: Ember.computed(function () {\n      const pollIntervalString = this.get('sessionAccount').getSettingValue('POLL_INTERVAL');\n      return pollIntervalString ? parseInt(pollIntervalString) : 10000;\n    }).property().readOnly(),\n    actions: {\n      willTransition(transition) {\n        // eslint-disable-next-line ember/no-controller-access-in-routes\n        const controller = this.get('controller');\n        const transport = controller.get('transportToHandle');\n        const handleDedicatedWindow = controller.get('dedicatedTimeWindowToHandle');\n\n        if (!transport && !handleDedicatedWindow) {\n          console.debug('Usuwamy modal ze ścieżki schedule..');\n          controller.send('hideModal');\n        }\n\n        controller.setProperties({\n          errors: null,\n          successMessage: null,\n          warningMessage: null,\n          inProgress: false,\n          hdMode: false,\n          scheduleClicked: false\n        });\n\n        if (transition.targetName !== 'warehouses.schedule') {\n          if (transport) {\n            // Moment, gdy podczas tworzenia awizacji przełączymy na zakładkę\n            this.removeUnsavedTimeWindows(transport);\n            this.transportCombiner.decombineAllRelatedTransports(transport);\n          }\n\n          controller.setProperties({\n            transportToSave: null,\n            warehouseStepToHandle: null,\n            info: null,\n            hasZoomBeenSetManually: false\n          });\n        }\n\n        const socketApi = this.websocketService.getSocketApi();\n\n        if (socketApi) {\n          // Przy zmianie magazynu dezaktywujemy nasłuchiwanie na poprzedni magazyn\n          socketApi.unsubscribeAny('topic/schedule/update');\n        }\n\n        return true;\n      },\n\n      refreshRoute: function () {\n        this.refresh();\n      },\n\n      didTransition() {\n        const socketApi = this.websocketService.getSocketApi();\n\n        if (socketApi) {\n          // eslint-disable-next-line ember/no-controller-access-in-routes\n          this.controller.send('onPoll');\n        }\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouses/schedule/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"IMKZvFRq\",\n    \"block\": \"{\\\"symbols\\\":[\\\"s\\\",\\\"result\\\",\\\"window\\\",\\\"part\\\",\\\"day\\\",\\\"index\\\",\\\"zone\\\",\\\"zoneIdx\\\",\\\"ramp\\\",\\\"time\\\",\\\"w\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"container-fluid schedule-container \\\",[27,\\\"if\\\",[[23,[\\\"showSecondTimeBar\\\"]],\\\"dual-time-bars\\\"],null]]]],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"schedule \\\",[27,\\\"if\\\",[[23,[\\\"hdMode\\\"]],\\\"hd-mode\\\"],null],\\\" \\\",[21,\\\"findMaxPalletClass\\\"]]]],[12,\\\"style\\\",[21,\\\"weekStyle\\\"]],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"schedule-navigation \\\",[27,\\\"if\\\",[[23,[\\\"hdMode\\\"]],\\\"hd-mode\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right hidden-in-hd-mode responsive-hide-lvl2\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"loadingInProgress\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/images/ajax-loader.gif\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"check\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isDuringTransportSave\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"transport.edit\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"showTransportToSave\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"refresh-button\\\",null,[[\\\"data-field-name\\\"],[\\\"REFRESH_BUTTON\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"isDuringTransportSave\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"warehouses.hd\\\",[23,[\\\"warehouse\\\",\\\"id\\\"]],[23,[\\\"selectedDateISO\\\"]],1],[[\\\"class\\\"],[\\\"btn btn-default hidden-in-hd-mode\\\"]],{\\\"statements\\\":[[0,\\\"                            HD\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_ACCESS_TO_WAREHOUSE_TEMPLATES\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"warehouses.template\\\",[23,[\\\"warehouse\\\",\\\"id\\\"]],[23,[\\\"selectedDateISO\\\"]]],[[\\\"class\\\"],[\\\"btn btn-default hidden-in-hd-mode\\\"]],{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.templates.label\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                        \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"defaultTransports\\\"],null]]]],[11,\\\"class\\\",\\\"btn btn-default hidden-sm hidden-xs\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.backToDeliveries\\\"],null],false],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left form-inline\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"hdMode\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.hdOff\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"switchOffHD\\\",[23,[\\\"warehouse\\\",\\\"id\\\"]],[23,[\\\"selectedDateISO\\\"]],[23,[\\\"model\\\",\\\"delta\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-group responsive-hide-lvl1\\\"],[11,\\\"role\\\",\\\"group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-small hidden-in-hd-mode\\\"],[11,\\\"data-button-name\\\",\\\"SHIFT_LEFT_WEEK\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-backward\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"shiftScheduleLeft\\\",7]],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-small\\\"],[11,\\\"data-button-name\\\",\\\"SHIFT_LEFT_DAY\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-chevron-left\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"shiftScheduleLeft\\\"]],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-small\\\"],[11,\\\"data-button-name\\\",\\\"TODAY\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.today\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"today\\\"]],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-small\\\"],[11,\\\"data-button-name\\\",\\\"SHIFT_RIGHT_DAY\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-chevron-right\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"shiftScheduleRight\\\"]],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-small hidden-in-hd-mode\\\"],[11,\\\"data-button-name\\\",\\\"SHIFT_RIGHT_WEEK\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"fa fa-forward\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"shiftScheduleRight\\\",7]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-group responsive-main-hide\\\"],[11,\\\"role\\\",\\\"group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-small \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"delta\\\"]],1],null],\\\"btn-primary\\\",\\\"btn-default\\\"],null]]]],[11,\\\"data-button-name\\\",\\\"DAY\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.day\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"transitToDelta\\\",1]],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-small btn-default \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"delta\\\"]],2],null],\\\"btn-primary\\\",\\\"btn-default\\\"],null]]]],[11,\\\"data-button-name\\\",\\\"DAYS_2\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.days2\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"transitToDelta\\\",2]],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-small btn-default \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"delta\\\"]],4],null],\\\"btn-primary\\\",\\\"btn-default\\\"],null]]]],[11,\\\"data-button-name\\\",\\\"DAYS_4\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.days4\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"transitToDelta\\\",4]],[10],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-small btn-default \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"delta\\\"]],7],null],\\\"btn-primary\\\",\\\"btn-default\\\"],null]]]],[11,\\\"data-button-name\\\",\\\"WEEK\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.week\\\"],null],false],[0,\\\"\\\\n                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"transitToDelta\\\",7]],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"formatType\\\",\\\"class\\\"],[[27,\\\"if\\\",[[23,[\\\"selectedDateString\\\"]],[23,[\\\"selectedDateString\\\"]],null],null],[27,\\\"action\\\",[[22,0,[]],\\\"setSelectedDateString\\\"],null],\\\"shortDate\\\",\\\"form-control date-chooser\\\"]]],false],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"not-wide-screen-hide\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"slider-component\\\",null,[[\\\"min\\\",\\\"max\\\",\\\"initialValue\\\",\\\"onChangeAction\\\",\\\"onResetAction\\\"],[10,450,100,[27,\\\"action\\\",[[22,0,[]],\\\"handleGridChange\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"resetGrid\\\"],null]]]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-group\\\"],[11,\\\"role\\\",\\\"group\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CHANGE_WAREHOUSE\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-control hidden-in-hd-mode schedule-warehouse-select-container\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"matchTriggerWidth\\\",\\\"selected\\\",\\\"disabled\\\",\\\"options\\\",\\\"verticalPosition\\\",\\\"searchEnabled\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"hidden-in-hd-mode\\\",false,[23,[\\\"model\\\",\\\"warehouse\\\"]],[23,[\\\"isDuringWindowSelect\\\"]],[23,[\\\"model\\\",\\\"warehouses\\\"]],\\\"below\\\",true,\\\"name\\\",[27,\\\"t\\\",[\\\"warehouse.label\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setWarehouse\\\"],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"span\\\"],[12,\\\"class\\\",[28,[\\\"schedule-warehouse-select-option-\\\",[22,11,[\\\"nameTrimmed\\\"]]]]],[9],[1,[22,11,[\\\"nameInAppropriateLanguage\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[11]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"hdMode\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-control-static bold schedule-warehouse-select-none\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"select\\\"],[11,\\\"disabled\\\",\\\"disabled\\\"],[11,\\\"class\\\",\\\"form-control hidden-in-hd-mode schedule-warehouse-select-container\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"warehouse.label\\\"],null]]]],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"option\\\"],[9],[1,[23,[\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"warehouse\\\",\\\"timeWindowMustOccupyEntireRamp\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\"],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"warehouse.timeWindowMustOccupyEntireRampDisclaimer\\\"],null]],[11,\\\"class\\\",\\\"hidden-in-hd-mode not-wide-screen-hide collapse-disclaimer\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.timeWindowMustOccupyEntireRampDisclaimer\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"unless\\\",[[23,[\\\"hdMode\\\"]],\\\"hidden\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"text-right no-vertical-margin\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[21,\\\"currentHour\\\"],false],[0,\\\" \\\"],[1,[23,[\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"schedule-body-container\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"schedule/schedule-header\\\",null,[[\\\"warehouse\\\",\\\"shiftScheduleRight\\\",\\\"shiftScheduleLeft\\\",\\\"warehouseZones\\\",\\\"shownDays\\\",\\\"dayStyle\\\",\\\"rampWidth\\\",\\\"userRampsIds\\\",\\\"viewedColumns\\\",\\\"showNumberOfWindows\\\",\\\"showMaxPalletSection\\\"],[[23,[\\\"warehouse\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"shiftScheduleRight\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"shiftScheduleLeft\\\"],null],[23,[\\\"warehouseZones\\\"]],[23,[\\\"shownDays\\\"]],[23,[\\\"dayStyle\\\"]],[23,[\\\"rampWidth\\\"]],[23,[\\\"userRampsIds\\\"]],[23,[\\\"viewedColumns\\\"]],[23,[\\\"hasAccessToNumberOfWindows\\\"]],[23,[\\\"hasAccessToMaxPallet\\\"]]]]],false],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"cleaner\\\"],[9],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"schedule-body\\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"style\\\",\\\"overflow: visible\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"schedule/time-bar\\\",null,[[\\\"warehouse\\\",\\\"tzabbr\\\",\\\"timeWindowOffsetInterval\\\",\\\"shownDaysContainCurrentDay\\\",\\\"currentHour\\\",\\\"timeSlotIntervalClass\\\",\\\"timeObjects\\\"],[[23,[\\\"warehouse\\\"]],[27,\\\"get-timezone-abbreviation\\\",[[23,[\\\"warehouse\\\",\\\"timeZone\\\"]]],null],[23,[\\\"timeWindowOffsetIntervalSetting\\\"]],[23,[\\\"shownDaysContainCurrentDay\\\"]],[23,[\\\"currentHour\\\"]],[23,[\\\"timeSlotIntervalClass\\\"]],[23,[\\\"timeObjectsWarehouseBasedTz\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showSecondTimeBar\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"schedule/time-bar\\\",null,[[\\\"warehouse\\\",\\\"tzabbr\\\",\\\"timeWindowOffsetInterval\\\",\\\"shownDaysContainCurrentDay\\\",\\\"currentHour\\\",\\\"timeSlotIntervalClass\\\",\\\"timeObjects\\\"],[[23,[\\\"warehouse\\\"]],[27,\\\"get-timezone-abbreviation\\\",[[23,[\\\"localeTimezoneHolder\\\",\\\"timeZone\\\"]]],null],[23,[\\\"timeWindowOffsetIntervalSetting\\\"]],[23,[\\\"shownDaysContainCurrentDay\\\"]],[23,[\\\"currentHour\\\"]],[23,[\\\"timeSlotIntervalClass\\\"]],[23,[\\\"timeObjectsUserBasedTz\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"schedule-calendar\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"shownDays\\\"]]],[[\\\"key\\\"],[\\\"name\\\"]],{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"day \\\",[27,\\\"odd-even\\\",[[22,6,[]]],null]]]],[12,\\\"style\\\",[21,\\\"dayStyle\\\"]],[12,\\\"data-schedule-date\\\",[22,5,[\\\"name\\\"]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"warehouseZones\\\"]]],[[\\\"key\\\"],[\\\"id\\\"]],{\\\"statements\\\":[[4,\\\"each\\\",[[22,7,[\\\"sortedRamps\\\"]]],[[\\\"key\\\"],[\\\"id\\\"]],{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[[22,9,[]],[23,[\\\"userRamps\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"ramp \\\",[27,\\\"odd-even\\\",[[22,8,[]]],null]]]],[12,\\\"style\\\",[21,\\\"rampStyle\\\"]],[12,\\\"data-schedule-ramp\\\",[22,9,[\\\"id\\\"]]],[9],[0,\\\"\\\\n                                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"earlier-hours\\\"],[11,\\\"data-schedule-hour\\\",\\\"earlier\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"earlier-minutes\\\"],[11,\\\"data-schedule-minute\\\",\\\"0\\\"],[9],[10],[0,\\\"\\\\n                                                \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"timeObjectsUserBasedTz\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"time-slot \\\",[21,\\\"timeSlotIntervalClass\\\"],\\\"\\\\n                                                        \\\",[27,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"eq\\\",[[23,[\\\"currentFormattedDate\\\"]],[22,5,[\\\"name\\\"]]],null],[27,\\\"hour-is-between\\\",[[23,[\\\"currentHour\\\"]],[22,10,[]],[23,[\\\"timeWindowOffsetIntervalSetting\\\"]]],null]],null],[23,[\\\"showCurrentHourBackgroundColor\\\"]]],null]]]],[12,\\\"data-schedule-hour\\\",[28,[[22,10,[\\\"hour\\\"]]]]],[12,\\\"data-schedule-date-with-offset\\\",[28,[[27,\\\"get-schedule-day-name-with-timezone-offset\\\",[[22,10,[\\\"dayOffset\\\"]],[22,5,[]]],null]]]],[9],[0,\\\"\\\\n                                                        \\\"],[7,\\\"div\\\"],[12,\\\"id\\\",[28,[\\\"slot-\\\",[22,9,[\\\"id\\\"]],\\\"-\\\",[27,\\\"get-schedule-day-name-with-timezone-offset\\\",[[22,10,[\\\"dayOffset\\\"]],[22,5,[]]],null],\\\"-\\\",[22,10,[\\\"hour\\\"]],\\\"-\\\",[22,10,[\\\"minutes\\\"]]]]],[12,\\\"data-schedule-minute\\\",[28,[[22,10,[\\\"minutes\\\"]]]]],[12,\\\"class\\\",[28,[\\\"minutes-slot minutes-\\\",[21,\\\"timeWindowOffsetIntervalSetting\\\"],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[22,10,[\\\"minutes\\\"]],\\\"00\\\"],null],\\\"full-hour-border\\\"],null]]]],[9],[3,\\\"action\\\",[[22,0,[]],\\\"spotClicked\\\",[27,\\\"get-schedule-day-name-with-timezone-offset\\\",[[22,10,[\\\"dayOffset\\\"]],[22,5,[]]],null],[22,9,[\\\"id\\\"]],[22,10,[\\\"hour\\\"]],[22,10,[\\\"minutes\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[10],[0,\\\"\\\\n                                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[10]},null],[0,\\\"                                                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"later-hours\\\"],[11,\\\"data-schedule-hour\\\",\\\"later\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"later-minutes\\\"],[11,\\\"data-schedule-minute\\\",\\\"0\\\"],[9],[10],[0,\\\"\\\\n                                                \\\"],[10],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[9]},null]],\\\"parameters\\\":[7,8]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5,6]},null],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"cleaner\\\"],[9],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"cleaner\\\"],[9],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"schedule-windows\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"filteredWindows\\\"]]],[[\\\"key\\\"],[\\\"id\\\"]],{\\\"statements\\\":[[4,\\\"each\\\",[[22,3,[\\\"parts\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"time-window\\\",null,[[\\\"window\\\",\\\"dragWindowAcrossScheduleDays\\\",\\\"viewedColumns\\\",\\\"viewedDays\\\",\\\"showLongName\\\",\\\"transportToHandle\\\",\\\"isSupplement\\\",\\\"isLast\\\",\\\"shift\\\",\\\"isHD\\\",\\\"timeWindowOffsetInterval\\\",\\\"cssHeight\\\",\\\"notifyWindowFocusIn\\\",\\\"notifyWindowFocusOut\\\",\\\"openNoteWindow\\\",\\\"openIndexesDetailsWindow\\\"],[[22,3,[]],[27,\\\"action\\\",[[22,0,[]],\\\"dragWindowAcrossScheduleDays\\\"],null],[23,[\\\"viewedColumns\\\"]],[23,[\\\"viewedDays\\\"]],[23,[\\\"showLongName\\\"]],[23,[\\\"transportToHandle\\\"]],[27,\\\"not\\\",[[22,4,[\\\"isFirst\\\"]]],null],[22,4,[\\\"isLast\\\"]],[22,4,[\\\"shift\\\"]],[23,[\\\"hdMode\\\"]],[23,[\\\"timeWindowOffsetIntervalSetting\\\"]],[23,[\\\"cssHeight\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"notifyWindowFocusIn\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"notifyWindowFocusOut\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"openNoteWindow\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"openIndexesDetailsWindow\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"cleaner\\\"],[9],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_DEDICATED_WINDOWS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"schedule-footer form-inline \\\",[27,\\\"if\\\",[[23,[\\\"hdMode\\\"]],\\\"hd-mode\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group hidden-in-hd-mode\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"dedicated-company-select\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.selectCompany\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[11,\\\"data-field-name\\\",\\\"DEDICATED_WINDOWS\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"company-auto-complete\\\",null,[[\\\"inputClass\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"clearSelection\\\",\\\"showPrincipalCompanies\\\"],[\\\"wide-input\\\",[27,\\\"readonly\\\",[[23,[\\\"company\\\",\\\"shortName\\\"]]],null],[27,\\\"t\\\",[\\\"common.company\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setCompany\\\"],null],\\\"clearDedicatedSelects\\\",true]],{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,2,[\\\"shortName\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,2,[\\\"name\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,2,[\\\"address\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[22,2,[\\\"address\\\"]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"shouldDisplayScheduleActionSelectOnClick\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"col-md-2\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"panel panel-default no-vertical-margin\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"list-group\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"list-group-item\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"b\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.addingBlockedWindows\\\"],null],false],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"material-switch pull-right\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"input\\\"],[11,\\\"id\\\",\\\"blockedWindowsMode\\\"],[12,\\\"onchange\\\",[27,\\\"action\\\",[[22,0,[]],\\\"toggleblockedWindowsMode\\\"],null]],[12,\\\"checked\\\",[21,\\\"blockedWindowsMode\\\"]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[10],[0,\\\"\\\\n                                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"blockedWindowsMode\\\"],[11,\\\"class\\\",\\\"label-success\\\"],[9],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"showSelectDepartment\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group hidden-in-hd-mode\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"dedicated-company-select\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.selectDepartment\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-control\\\"],[11,\\\"data-field-name\\\",\\\"DEPARTMENT_WINDOWS\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"placeholder\\\",\\\"onchange\\\"],[[23,[\\\"selectedUserGroup\\\"]],[23,[\\\"model\\\",\\\"userGroups\\\"]],false,[27,\\\"t\\\",[\\\"company.selectType\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"selectedUserGroup\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-eraser hidden-in-hd-mode clickable left-border\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"clearDedicatedSelects\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showLegend\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[23,[\\\"shouldLegendHaveFixedPosition\\\"]],\\\"legend-fiexed\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[1,[21,\\\"schedule-legend\\\"],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"shownDaysContainCurrentDay\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"schedule/current-hour-frame\\\",null,[[\\\"currentHour\\\",\\\"cssHeight\\\",\\\"shownDays\\\",\\\"weekStyle\\\",\\\"timeWindowOffsetIntervalSetting\\\"],[[23,[\\\"currentHour\\\"]],[23,[\\\"cssHeight\\\"]],[23,[\\\"shownDays\\\"]],[23,[\\\"weekStyle\\\"]],[23,[\\\"timeWindowOffsetIntervalSetting\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"info-fixed\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"info\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"strongText\\\",\\\"text\\\",\\\"style\\\"],[[27,\\\"t\\\",[\\\"common.hint\\\"],null],[23,[\\\"info\\\"]],\\\"info\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isDuringWindowSelect\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"schedule/handle-transport-alert\\\",null,[[\\\"warehouse\\\",\\\"warehouseStepToHandle\\\",\\\"editedWindow\\\"],[[23,[\\\"warehouse\\\"]],[23,[\\\"warehouseStepToHandle\\\"]],[23,[\\\"editedWindow\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"warningMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"alert alert-danger success-alert\\\"],[11,\\\"role\\\",\\\"alert\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[21,\\\"warningMessage\\\"],false],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showMultipleTimeWindowsModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"multiple-time-windows-modal\\\",null,[[\\\"transportToHandle\\\",\\\"warehouse\\\",\\\"warehouseStepToHandle\\\"],[[23,[\\\"transportToHandle\\\"]],[23,[\\\"warehouse\\\"]],[23,[\\\"warehouseStepToHandle\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isShowingScheduleActionModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"modals/schedule-action-select\\\",null,[[\\\"scheduleActionSelectModel\\\",\\\"onClose\\\",\\\"createBlockedWindow\\\"],[[23,[\\\"scheduleActionSelectModel\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"toggleIsShowingScheduleActionModal\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"createBlockedWindow\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/warehouses/schedule/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouses/template/controller\", [\"exports\", \"apollo/mixins/schedule-mixin\", \"apollo/utils/functions/generate-time-objects\", \"apollo/utils/functions/date/get-offset-relative-to\"], function (_exports, _scheduleMixin, _generateTimeObjects, _getOffsetRelativeTo) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend(_scheduleMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    ajaxService: Ember.inject.service('ajax-service'),\n    scheduleController: Ember.inject.controller('warehouses/schedule'),\n    isTemplate: true,\n    isSaving: false,\n    daysOfWeek: Ember.A([{\n      idx: 1,\n      checked: true\n    }, {\n      idx: 2,\n      checked: true\n    }, {\n      idx: 3,\n      checked: true\n    }, {\n      idx: 4,\n      checked: true\n    }, {\n      idx: 5,\n      checked: true\n    }, {\n      idx: 6,\n      checked: false\n    }, {\n      idx: 7,\n      checked: false\n    }]),\n    selectedDayIndexes: Ember.computed('daysOfWeek.@each.checked', function () {\n      return this.get('daysOfWeek').filter(d => {\n        return d.checked;\n      }).map(checkedDay => {\n        return checkedDay.idx;\n      });\n    }),\n    dateRangeOption: 'M',\n    dateRangeOptions: Ember.A(['M', 'Y', 'X']),\n    dateRange: null,\n    // eslint-disable-next-line ember/no-observers\n    setDateRange: Ember.observer('dateRangeOption', function () {\n      const format = this.get('dateFormat');\n      const d = moment().format(format);\n      this.set('dateRange', d);\n    }).on('init'),\n    dateFormat: Ember.computed('dateRangeOption', function () {\n      return this.get('dateRangeOption') === 'M' ? 'MMMM YYYY' : 'YYYY';\n    }),\n    isCustomRangeSelected: Ember.computed('dateRangeOption', function () {\n      return this.get('dateRangeOption') === 'X';\n    }),\n    dateRanges: Ember.computed('dateRangeOption', function () {\n      const ranges = [];\n      const rangeStartM = moment().startOf('month');\n      const rangeEndM = moment(rangeStartM).add(2, 'years');\n      const format = this.get('dateFormat');\n\n      for (let m = rangeStartM; m.isBefore(rangeEndM); m = m.add(1, 'month')) {\n        ranges.push(m.format(format));\n      }\n\n      return ranges.uniq();\n    }),\n    shownDays: Ember.computed('scheduleStartDate', function () {\n      const daysOfWeek = [];\n      const startDate = this.get('scheduleStartDate');\n\n      for (let i = 0; moment(startDate).add(i, 'days') < this.get('scheduleEndDate'); i++) {\n        daysOfWeek[i] = {\n          date: moment(startDate).add(i, 'daysOfWeek'),\n          name: moment(startDate).add(i, 'daysOfWeek').format('YYYY-MM-DD'),\n          longName: moment(startDate).add(i, 'daysOfWeek').format('DD.MM.YYYY dddd')\n        };\n      }\n\n      return daysOfWeek;\n    }),\n    showSelectDepartment: Ember.computed('model.userGroups.@each.length', function () {\n      return this.get('model.userGroups.length') > 0;\n    }).readOnly(),\n    scheduleEndDate: Ember.computed('scheduleStartDate', function () {\n      return moment(this.get('scheduleStartDate')).endOf('day').toDate();\n    }),\n    showSecondTimeBar: Ember.computed('localeTimezoneHolder.timeZone', function () {\n      return this.localeTimezoneHolder.timeZone !== (this.get('model.warehouse.timeZone') || 'Europe/Warsaw');\n    }),\n    timeObjectsWarehouseBasedTz: Ember.computed('timeWindowOffsetIntervalSetting', 'scheduleStartHour', 'scheduleEndHour', function () {\n      return (0, _generateTimeObjects.generateTimeObjects)({\n        scheduleStartHour: this.get('scheduleStartHour'),\n        scheduleEndHour: this.get('scheduleEndHour'),\n        intervalMinutes: this.get('timeWindowOffsetIntervalSetting')\n      });\n    }),\n    timeObjectsUserBasedTz: Ember.computed('timeWindowOffsetIntervalSetting', 'scheduleStartHour', 'scheduleEndHour', function () {\n      return (0, _generateTimeObjects.generateTimeObjects)({\n        scheduleStartHour: this.get('scheduleStartHour'),\n        scheduleEndHour: this.get('scheduleEndHour'),\n        intervalMinutes: this.get('timeWindowOffsetIntervalSetting'),\n        hourOffset: (0, _getOffsetRelativeTo.getOffsetRelativeTo)(this.localeTimezoneHolder.timeZone, this.get('model.warehouse.timeZone') || 'Europe/Warsaw')\n      });\n    }),\n    actions: {\n      setCustomRangeStartDate(date) {\n        this.set('customDateStart', date[0]);\n      },\n\n      setCustomRangeEndDate(date) {\n        this.set('customDateStop', date[0]);\n      },\n\n      changeScheduleStartDate(date) {\n        this.set('scheduleStartDate', date[0]);\n      },\n\n      toggleDay(idx) {\n        const day = this.get('daysOfWeek').filter(d => {\n          return d.idx === idx;\n        }).get('firstObject');\n        Ember.set(day, 'checked', !day.checked);\n      },\n\n      selectWarehouse(warehouse) {\n        const scheduleStartString = moment(this.get('scheduleStartDate')).format('YYYY-MM-DD');\n        this.set('defaultZoom', undefined);\n        this.transitionToRoute('warehouses.template', warehouse.get('id'), scheduleStartString);\n      },\n\n      createWindow(start, stop, rampId) {\n        if (this.get('sessionAccount').hasRole('ROLE_BLOCK_RAMPS')) {\n          this.storeDedicatedWindow(start, stop, rampId);\n        } else {\n          console.log('Brak ROLE_BLOCK_RAMPS.');\n        }\n      },\n\n      removeBlockedWindow: function (window) {\n        if (!this.get('sessionAccount').hasRole('ROLE_BLOCK_RAMPS')) {\n          console.log('Brak ROLE_BLOCK_RAMPS.');\n          return;\n        }\n\n        window.deleteRecord();\n        this.get('windows').removeObject(window);\n      },\n\n      onDraggableStop(event) {\n        const self = this;\n        const target = $(event.target);\n        const windowId = target.data('schedule-window');\n        const left = target.offset().left - $(document).scrollLeft();\n        const top = target.offset().top - $(document).scrollTop();\n        const bottom = target.height() + top;\n        const isSupplement = target.data('is-supplement');\n        this.set('inProgress', true);\n        const windowModel = this.store.peekRecord('timeWindow', windowId);\n        const oldRamp = windowModel.get('ramp');\n        const oldStart = windowModel.get('start');\n        const oldStop = windowModel.get('stop');\n        const currentLengthInMS = windowModel.get('stop') - windowModel.get('start');\n        let minutesDiv, $minutesDiv, newStart, newStop;\n\n        if (!isSupplement) {\n          minutesDiv = this.findMinutesDiv(left + 10, top + 2);\n          $minutesDiv = $(minutesDiv);\n          newStart = this.getDate($minutesDiv);\n          newStop = moment(newStart).add(currentLengthInMS, 'milliseconds').toDate();\n        }\n\n        if (!minutesDiv) {\n          minutesDiv = this.findMinutesDiv(left + 10, bottom + 2);\n          $minutesDiv = $(minutesDiv);\n          newStop = this.getDate($minutesDiv);\n          newStart = moment(newStop).subtract(currentLengthInMS, 'milliseconds').toDate();\n        }\n\n        const rampId = this.getRampId($minutesDiv);\n\n        if (newStart.getTime() === oldStart.getTime() && newStop.getTime() === oldStop.getTime() && oldRamp.get('id') === rampId.toString()) {\n          console.log('brak zmian; przerywamy');\n          windowModel.notifyPropertyChange('start');\n          return;\n        }\n\n        if (!minutesDiv) {\n          windowModel.setProperties({\n            ramp: oldRamp,\n            start: oldStart,\n            stop: oldStop\n          });\n          windowModel.notifyPropertyChange('start');\n          return;\n        }\n\n        self.get('windows').removeObject(windowModel);\n        windowModel.setProperties({\n          ramp: self.store.peekRecord('ramp', rampId),\n          start: newStart,\n          stop: newStop\n        });\n        const r = windowModel.get('ramp');\n        console.log(`Próba przesunięcia okna dedykowanego ${windowId}:\n                    [${windowModel.get('start')}, ${oldRamp.get('name')} (#${oldRamp.get('id')})]\n                    -> [${newStart}, ${r.get('name')} (#${r.get('id')})]`);\n        const warehouseOpenTime = this.get('warehouse').getStartOnDay(this.get('scheduleStartDate'));\n        const warehouseCloseTime = this.get('warehouse').getEndOnDay(this.get('scheduleStartDate'));\n\n        if (this.modelOverlapsAnyWindow(windowModel) || newStart < warehouseOpenTime || newStop > warehouseCloseTime) {\n          windowModel.setProperties({\n            ramp: oldRamp,\n            start: oldStart,\n            stop: oldStop\n          });\n        }\n\n        self.replaceTimeWindow(windowModel);\n        self.send('removePopupDialog');\n        self.set('inProgress', false);\n      },\n\n      saveWindows() {\n        const self = this;\n        self.set('isSaving', true);\n        $('.save-template-button').button('loading');\n        const maxPallet = this.store.peekAll('maxPallet').find(p => {\n          return p.get('warehouse.id') === this.get('model.warehouse.id') && p.get('isTemplate');\n        });\n        const warehouseId = this.get('model.warehouse').get('id');\n        const data = {\n          warehouse: {\n            id: warehouseId\n          },\n          windows: this.get('windows'),\n          daysOfWeek: this.get('selectedDayIndexes'),\n          dateRangeOption: this.get('dateRangeOption'),\n          dateRange: moment(this.get('dateRange'), this.get('dateFormat')).format('YYYY-MM'),\n          maxPalletQuantity: maxPallet ? maxPallet.get('quantity') : null,\n          start: moment(this.get('customDateStart')).format('YYYY-MM-DD'),\n          stop: moment(this.get('customDateStop')).format('YYYY-MM-DD')\n        };\n        const url = '/warehouses/' + warehouseId + '/template'; // TODO: Rozwikłać i zastąpić przez apolloApiService\n\n        this.get('ajaxService').send(url, 'POST', data, true).then(function (data) {\n          self.setProperties({\n            errors: [],\n            isSaving: false\n          });\n          let successMessage = self.get('intl').t('warehouse.templates.savedMessage');\n\n          if (data.datesWithErrorMessage) {\n            successMessage += ' ' + self.get('intl').t('warehouse.templates.datesWithErrorMessage', {\n              windows: data.datesWithErrorMessage\n            });\n          }\n\n          self.get('scheduleController').setProperties({\n            successMessage\n          });\n          const dateString = moment(self.get('scheduleStartDate')[0]).format('YYYY-MM-DD');\n          console.log('.. przechodzimy do widoku harmonogramu..'); // wyrzucamy z załadowanych dni te widoczne, żeby odświeżyć widok zgodnie z nowozapisanym szablonem\n\n          self.get('shownDays').forEach(shownDay => {\n            const day = shownDay.date.format('DD.MM.YYYY HH:mm');\n            self.get('model.warehouse.loadedDays').removeObject(day);\n          });\n          self.transitionToRoute('warehouses.schedule', warehouseId, dateString, '1');\n        }, function (error) {\n          console.log('error: ' + error);\n          self.setProperties({\n            errors: [error.responseText],\n            isSaving: false\n          });\n        });\n      },\n\n      cancel() {\n        this.set('errors', null);\n        const warehouseId = this.get('model.warehouse').get('id');\n        this.transitionToRoute('warehouses.schedule', warehouseId, this.get('scheduleStartDateFormatted'), '1');\n      },\n\n      openNoteWindow(window) {\n        window.isTemplateView = true;\n        this.send('showModal', 'time-window.modals.window-note', window);\n      },\n\n      toggleWholeRampWindow(time, rampId) {\n        console.log('toggleWholeRampWindow');\n        const start = this.get('warehouse').getStartOnDay(time);\n        const stop = this.get('warehouse').getEndOnDay(time);\n        this.storeDedicatedWindow(start, stop, rampId);\n      },\n\n      notifyWindowFocusOut(window) {\n        if (this.get('focusedWindowId') === window.id) {\n          this.set('focusedWindowId', null);\n        }\n      }\n\n    },\n\n    storeDedicatedWindow(start, stop, rampId) {\n      console.log(`storeDedicatedWindow / start: ${start} / stop: ${stop} / rampId: ${rampId}`);\n      const self = this;\n      const randomId = Math.floor(Math.random() * 10000 + 1);\n      const windowData = {\n        id: randomId,\n        ramp: this.store.peekRecord('ramp', rampId),\n        company: this.get('company'),\n        userGroup: this.get('selectedUserGroup'),\n        start: start.toDate(),\n        stop: stop.toDate(),\n        isTemplate: true,\n        initialStart: start\n      };\n\n      if (this.overlapsAnyWindow(windowData)) {\n        console.log('windows overlap');\n        return;\n      }\n\n      const window = this.store.createRecord('timeWindow', windowData);\n      self.get('windows').pushObject(window);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouses/template/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    access: Ember.A(['ROLE_ACCESS_TO_WAREHOUSE_TEMPLATES']),\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n\n    model(params) {\n      const self = this;\n      const currentUser = self.get('sessionAccount').get('currentUser');\n      const warehouseId = params.warehouse_id;\n      const date = moment(params.date_string);\n      const warehouses = currentUser.get('warehouses').filter(w => {\n        return w.get('company.id') === localStorage.getItem('principalId');\n      });\n      const ramps = currentUser.get('ramps').filterBy('warehouse.id', warehouseId).sortBy('idx');\n      return Ember.RSVP.hash({\n        warehouses,\n        warehouse: self.store.peekRecord('warehouse', warehouseId),\n        ramps,\n        date,\n        userGroups: this.get('store').query('userGroup', {\n          principalCompanyId: localStorage.getItem('principalId')\n        }),\n        isTemplate: true\n      });\n    },\n\n    setupController: function (controller, model) {\n      controller.setProperties({\n        model,\n        scheduleStartDate: model.date\n      });\n    },\n    actions: {\n      willTransition(transition) {\n        const self = this;\n        self.get('controller').set('windows', null);\n\n        if (transition.targetName !== 'warehouses.template') {\n          // eslint-disable-next-line ember/no-controller-access-in-routes\n          this.get('controller').setProperties({\n            info: null,\n            hasZoomBeenSetManually: false\n          });\n        } // eslint-disable-next-line array-callback-return\n\n\n        self.store.peekAll('timeWindow').map(tw => {\n          if (tw.get('isNew')) {\n            self.store.unloadRecord(tw);\n          }\n        });\n        return true;\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/warehouses/template/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"pmk8j1iR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"s\\\",\\\"result\\\",\\\"window\\\",\\\"day\\\",\\\"index\\\",\\\"zone\\\",\\\"zoneIdx\\\",\\\"ramp\\\",\\\"time\\\",\\\"w\\\",\\\"day\\\",\\\"r\\\",\\\"dateRangeOption\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"container-fluid schedule-container schedule-template \\\",[27,\\\"if\\\",[[23,[\\\"showSecondTimeBar\\\"]],\\\"dual-time-bars\\\"],null]]]],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"schedule-navigation\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"no-vertical-margin\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.templates.header\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"model\\\",\\\"warehouse\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-inline\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.templates.copyFrom\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"date\\\",\\\"onChange\\\",\\\"placeholder\\\",\\\"formatType\\\",\\\"class\\\"],[[27,\\\"if\\\",[[23,[\\\"scheduleStartDate\\\"]],[23,[\\\"scheduleStartDate\\\"]],null],null],[27,\\\"action\\\",[[22,0,[]],\\\"changeScheduleStartDate\\\"],null],[27,\\\"t\\\",[\\\"common.selectDate\\\"],null],\\\"shortDate\\\",\\\"form-control date-chooser\\\"]]],false],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"responsive-main-hide\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"slider-component\\\",null,[[\\\"min\\\",\\\"max\\\",\\\"initialValue\\\",\\\"onChangeAction\\\",\\\"onResetAction\\\"],[10,450,100,[27,\\\"action\\\",[[22,0,[]],\\\"handleGridChange\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"resetGrid\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-inline\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.templates.saveFor\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-control\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[[23,[\\\"dateRangeOption\\\"]],[23,[\\\"dateRangeOptions\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"dateRangeOption\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"common.forDateRange.\\\",[22,13,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[13]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isCustomRangeSelected\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input-group\\\"],[11,\\\"data-field-name\\\",\\\"template-custom-date-from\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.from\\\"],null],false],[10],[0,\\\"\\\\n\\\\n                                \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"onChange\\\",\\\"date\\\",\\\"placeholder\\\",\\\"formatType\\\",\\\"class\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"setCustomRangeStartDate\\\"],null],[27,\\\"if\\\",[[23,[\\\"scheduleStartDate\\\"]],[23,[\\\"scheduleStartDate\\\"]],null],null],[27,\\\"t\\\",[\\\"common.selectDate\\\"],null],\\\"shortDate\\\",\\\"form-control date-chooser\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input-group\\\"],[11,\\\"data-field-name\\\",\\\"template-custom-date-to\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"input-group-addon\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.to\\\"],null],false],[10],[0,\\\"\\\\n\\\\n                                \\\"],[1,[27,\\\"locale-aware-flatpickr\\\",null,[[\\\"onChange\\\",\\\"date\\\",\\\"placeholder\\\",\\\"formatType\\\",\\\"class\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"setCustomRangeEndDate\\\"],null],[27,\\\"if\\\",[[23,[\\\"scheduleStartDate\\\"]],[23,[\\\"scheduleStartDate\\\"]],null],null],[27,\\\"t\\\",[\\\"common.selectDate\\\"],null],\\\"shortDate\\\",\\\"form-control date-chooser\\\"]]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-control\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"onchange\\\"],[[23,[\\\"dateRange\\\"]],[23,[\\\"dateRanges\\\"]],false,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"dateRange\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                                \\\"],[1,[22,12,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[12]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"common.daysOfWeek.label\\\"],null],false],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-group\\\"],[11,\\\"data-toggle\\\",\\\"buttons\\\"],[11,\\\"data-field-name\\\",\\\"DAYS_OF_WEEK\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"daysOfWeek\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"btn btn-default \\\",[27,\\\"if\\\",[[22,11,[\\\"checked\\\"]],\\\"active\\\"],null]]]],[12,\\\"data-field-idx\\\",[28,[[22,11,[\\\"idx\\\"]]]]],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"input\\\"],[12,\\\"checked\\\",[22,11,[\\\"checked\\\"]]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"toggleDay\\\",[22,11,[\\\"idx\\\"]]],[[\\\"on\\\"],[\\\"change\\\"]]],[10],[0,\\\"\\\\n                                \\\"],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"common.daysOfWeek.\\\",[22,11,[\\\"idx\\\"]]],null]],null],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[11]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-toolbar pull-right\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-group\\\"],[11,\\\"data-toggle\\\",\\\"buttons\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"button\\\"],[12,\\\"data-loading-text\\\",[28,[[27,\\\"t\\\",[\\\"common.saving\\\"],null]]]],[11,\\\"class\\\",\\\"btn btn-primary save-template-button\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"saveWindows\\\"]],[10],[0,\\\"\\\\n\\\\n                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                            \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"btn-group\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"class\\\",\\\"selected\\\",\\\"options\\\",\\\"searchField\\\",\\\"placeholder\\\",\\\"onchange\\\"],[\\\"form-control\\\",[23,[\\\"model\\\",\\\"warehouse\\\"]],[23,[\\\"model\\\",\\\"warehouses\\\"]],\\\"name\\\",[27,\\\"t\\\",[\\\"company.selectType\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"selectWarehouse\\\"],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,10,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[10]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"schedule\\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[1,[27,\\\"schedule/schedule-header\\\",null,[[\\\"isTemplate\\\",\\\"warehouse\\\",\\\"warehouseZones\\\",\\\"shownDays\\\",\\\"dayStyle\\\",\\\"rampWidth\\\",\\\"userRampsIds\\\",\\\"viewedColumns\\\",\\\"showMaxPalletSection\\\"],[true,[23,[\\\"model\\\",\\\"warehouse\\\"]],[23,[\\\"warehouseZones\\\"]],[23,[\\\"shownDays\\\"]],[23,[\\\"dayStyle\\\"]],[23,[\\\"rampWidth\\\"]],[23,[\\\"userRampsIds\\\"]],[23,[\\\"viewedColumns\\\"]],[23,[\\\"hasAccessToMaxPallet\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"cleaner\\\"],[9],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"schedule-body\\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"schedule/time-bar\\\",null,[[\\\"warehouse\\\",\\\"timeWindowOffsetInterval\\\",\\\"shownDaysContainCurrentDay\\\",\\\"timeSlotIntervalClass\\\",\\\"timeObjects\\\"],[[23,[\\\"warehouse\\\"]],[23,[\\\"timeWindowOffsetIntervalSetting\\\"]],[23,[\\\"shownDaysContainCurrentDay\\\"]],[23,[\\\"timeSlotIntervalClass\\\"]],[23,[\\\"timeObjectsWarehouseBasedTz\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showSecondTimeBar\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[27,\\\"schedule/time-bar\\\",null,[[\\\"warehouse\\\",\\\"timeWindowOffsetInterval\\\",\\\"shownDaysContainCurrentDay\\\",\\\"timeSlotIntervalClass\\\",\\\"timeObjects\\\"],[[23,[\\\"warehouse\\\"]],[23,[\\\"timeWindowOffsetIntervalSetting\\\"]],[23,[\\\"shownDaysContainCurrentDay\\\"]],[23,[\\\"timeSlotIntervalClass\\\"]],[23,[\\\"timeObjectsUserBasedTz\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"schedule-calendar\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"shownDays\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"day \\\",[27,\\\"odd-even\\\",[[22,5,[]]],null]]]],[12,\\\"style\\\",[21,\\\"dayStyle\\\"]],[12,\\\"data-schedule-date\\\",[22,4,[\\\"name\\\"]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"warehouseZones\\\"]]],[[\\\"key\\\"],[\\\"id\\\"]],{\\\"statements\\\":[[4,\\\"each\\\",[[22,6,[\\\"sortedRamps\\\"]]],[[\\\"key\\\"],[\\\"id\\\"]],{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[[22,8,[]],[23,[\\\"userRamps\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"ramp \\\",[27,\\\"odd-even\\\",[[22,7,[]]],null]]]],[12,\\\"style\\\",[21,\\\"rampStyle\\\"]],[12,\\\"data-schedule-ramp\\\",[22,8,[\\\"id\\\"]]],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"earlier-hours\\\"],[11,\\\"data-schedule-hour\\\",\\\"earlier\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"earlier-minutes\\\"],[11,\\\"data-schedule-minute\\\",\\\"0\\\"],[9],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"timeObjectsUserBasedTz\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"time-slot \\\",[21,\\\"timeSlotIntervalClass\\\"]]]],[12,\\\"data-schedule-hour\\\",[28,[[22,9,[\\\"hour\\\"]]]]],[12,\\\"data-schedule-date-with-offset\\\",[28,[[27,\\\"get-schedule-day-name-with-timezone-offset\\\",[[22,9,[\\\"dayOffset\\\"]],[22,4,[]]],null]]]],[9],[0,\\\"\\\\n                                                \\\"],[7,\\\"div\\\"],[12,\\\"id\\\",[28,[\\\"slot-\\\",[22,8,[\\\"id\\\"]],\\\"-\\\",[27,\\\"get-schedule-day-name-with-timezone-offset\\\",[[22,9,[\\\"dayOffset\\\"]],[22,4,[]]],null],\\\"-\\\",[22,9,[\\\"hour\\\"]],\\\"-\\\",[22,9,[\\\"minutes\\\"]]]]],[12,\\\"data-schedule-minute\\\",[28,[[22,9,[\\\"minutes\\\"]]]]],[12,\\\"class\\\",[28,[\\\"minutes-slot minutes-\\\",[21,\\\"timeWindowOffsetIntervalSetting\\\"]]]],[9],[3,\\\"action\\\",[[22,0,[]],\\\"spotClicked\\\",[27,\\\"get-schedule-day-name-with-timezone-offset\\\",[[22,9,[\\\"dayOffset\\\"]],[22,4,[]]],null],[22,8,[\\\"id\\\"]],[22,9,[\\\"hour\\\"]],[22,9,[\\\"minutes\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[10],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[9]},null],[0,\\\"                                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"later-hours\\\"],[11,\\\"data-schedule-hour\\\",\\\"later\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"later-minutes\\\"],[11,\\\"data-schedule-minute\\\",\\\"0\\\"],[9],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[8]},null]],\\\"parameters\\\":[6,7]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4,5]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"cleaner\\\"],[9],[10],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"schedule-windows\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"windows\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[27,\\\"time-window\\\",null,[[\\\"window\\\",\\\"viewedColumns\\\",\\\"showLongName\\\",\\\"timeWindowOffsetInterval\\\",\\\"cssHeight\\\",\\\"openNoteWindow\\\"],[[22,3,[]],[23,[\\\"viewedColumns\\\"]],[23,[\\\"showLongName\\\"]],[23,[\\\"timeWindowOffsetIntervalSetting\\\"]],[23,[\\\"cssHeight\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"openNoteWindow\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_MANAGE_DEDICATED_WINDOWS\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"schedule-footer form-inline \\\",[27,\\\"if\\\",[[23,[\\\"hdMode\\\"]],\\\"hd-mode\\\"],null]]]],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group hidden-in-hd-mode\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"dedicated-company-select\\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.selectCompany\\\"],null],false],[0,\\\":\\\\n                \\\"],[10],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[11,\\\"data-field-name\\\",\\\"DEDICATED_WINDOWS\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"company-auto-complete\\\",null,[[\\\"inputClass\\\",\\\"selectedValue\\\",\\\"placeHolderText\\\",\\\"selectItem\\\",\\\"clearSelection\\\",\\\"showPrincipalCompanies\\\"],[\\\"dummy\\\",[27,\\\"readonly\\\",[[23,[\\\"company\\\",\\\"shortName\\\"]]],null],[27,\\\"t\\\",[\\\"common.company\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"setCompany\\\"],null],\\\"clearDedicatedSelects\\\",true]],{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"autocomplete-result\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"main\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,2,[\\\"shortName\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\\n                            \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                \\\"],[1,[22,2,[\\\"name\\\"]],false],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,2,[\\\"address\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"autocomplete-description\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[22,2,[\\\"address\\\"]],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showSelectDepartment\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group hidden-in-hd-mode\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"dedicated-company-select\\\"],[9],[0,\\\"\\\\n                        \\\"],[1,[27,\\\"t\\\",[\\\"warehouse.selectDepartment\\\"],null],false],[0,\\\":\\\\n                    \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-control\\\"],[11,\\\"data-field-name\\\",\\\"DEPARTMENT_WINDOWS\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"power-select\\\",null,[[\\\"selected\\\",\\\"options\\\",\\\"searchEnabled\\\",\\\"placeholder\\\",\\\"onchange\\\"],[[23,[\\\"selectedUserGroup\\\"]],[23,[\\\"model\\\",\\\"userGroups\\\"]],false,[27,\\\"t\\\",[\\\"company.selectType\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"selectedUserGroup\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"                            \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-eraser hidden-in-hd-mode clickable left-border\\\"],[9],[3,\\\"action\\\",[[22,0,[]],\\\"clearDedicatedSelects\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\\n\\\"],[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/warehouses/template/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/weight-log/model\", [\"exports\", \"ember-data/model\", \"ember-data\"], function (_exports, _model, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _model.default.extend({\n    intl: Ember.inject.service(),\n    transport: _emberData.default.belongsTo('transport'),\n    weight: _emberData.default.belongsTo('weight', {\n      async: true\n    }),\n    oldReadOut: _emberData.default.attr('number'),\n    dateCreated: _emberData.default.attr('date'),\n    newValue: _emberData.default.attr('string'),\n    oldValue: _emberData.default.attr('string'),\n    propertyName: _emberData.default.attr('string'),\n    className: _emberData.default.attr('string'),\n    actor: _emberData.default.attr('string'),\n    newValueFormat: Ember.computed('newValue', function () {\n      return this.get('newValue');\n    }),\n    oldValueFormat: Ember.computed('oldValue', function () {\n      return this.get('oldValue');\n    }),\n    eventLabel: Ember.computed('className', function () {\n      return this.get('intl').t(`logs.${this.get('className')}`);\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/weight/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Model.extend(_modelValidator.default, {\n    intl: Ember.inject.service(),\n    task: _emberData.default.belongsTo('task', {\n      async: true\n    }),\n    warehouse: _emberData.default.belongsTo('warehouse', {\n      async: true\n    }),\n    transport: _emberData.default.belongsTo('transport', {\n      async: true,\n      inverse: 'weights'\n    }),\n    confirmator: _emberData.default.belongsTo('user', {\n      async: true\n    }),\n    readOut: _emberData.default.attr('number'),\n    enabled: _emberData.default.attr('boolean'),\n    dateCreated: _emberData.default.attr('date'),\n    notSynchronized: Ember.computed('readOut', 'id', function () {\n      return this.get('readOut') && !this.get('id');\n    }),\n    validations: {\n      readOut: {\n        presence: {\n          message: 'blank'\n        }\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/weight/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, {\n    primaryKey: 'id',\n    attrs: {\n      relatedDefinition: {\n        serialize: 'id',\n        deserialize: 'id'\n      },\n      relatedOptions: {\n        serialize: 'ids',\n        deserialize: 'ids'\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/worker/model\", [\"exports\", \"ember-data\", \"ember-data/model\", \"apollo/mixins/model-validator\"], function (_exports, _emberData, _model, _modelValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    attr,\n    belongsTo\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    intl: Ember.inject.service(),\n    name: attr('string'),\n    phoneNumber: attr('string'),\n    phoneNumberPrefix: attr('string'),\n    company: belongsTo('company', {\n      async: true\n    }),\n    principalCompany: belongsTo('company'),\n    enabled: attr('boolean'),\n    trained: attr('boolean'),\n    formattedPhoneNumber: Ember.computed('phoneNumberPrefix', 'phoneNumber', function () {\n      if (!this.get('phoneNumberPrefix') || !this.get('phoneNumber')) {\n        return null;\n      }\n\n      return '+' + this.get('phoneNumberPrefix') + ' ' + this.get('phoneNumber');\n    }),\n    validations: {\n      name: {\n        presence: {\n          message: 'blank'\n        }\n      },\n      phoneNumber: {\n        custom: [{\n          validation: function (key, value) {\n            if (!value) {\n              return true;\n            }\n\n            return /^[0-9]+$/.test(value) && value.length >= 9;\n          },\n          message: 'regex'\n        }]\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/workers/index/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    intl: Ember.inject.service(),\n    columns: Ember.computed('', function () {\n      const columns = [{\n        propertyName: 'name',\n        title: this.get('intl').t('worker.name'),\n        className: 'column-name'\n      }, {\n        propertyName: 'phoneNumber',\n        title: this.get('intl').t('worker.phoneNumber.WORKERS'),\n        className: 'column-name'\n      }, {\n        propertyName: 'trained',\n        title: this.get('intl').t('worker.trained'),\n        className: 'column-trained',\n        filterWithSelect: true,\n        predefinedFilterOptions: [{\n          value: 'true',\n          label: this.get('intl').t('common.yes')\n        }, {\n          value: 'false',\n          label: this.get('intl').t('common.no')\n        }]\n      }];\n      return columns;\n    }),\n    actions: {\n      openAddWorkerModal: function (worker) {\n        if (!worker) {\n          const principalCompanyId = localStorage.getItem('principalId');\n          const principalCompany = this.get('store').peekRecord('company', principalCompanyId);\n          worker = this.get('store').createRecord('worker', {\n            company: this.get('model.company'),\n            enabled: true,\n            principalCompany\n          });\n        }\n\n        this.send('showModal', 'companies.modals.add-worker', worker);\n      },\n      delete: function (worker) {\n        const self = this;\n        worker.destroyRecord().then(() => {\n          self.setProperties({\n            errors: []\n          });\n        }).catch(response => {\n          console.log(`Błąd przy usuwaniu pracownika: ${response.errors}`);\n          self.set('errors', response.errors);\n        });\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/workers/index/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend({\n    queryParams: {\n      page: {\n        refreshModel: true\n      },\n      max: {\n        refreshModel: true\n      }\n    },\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_COMPANIES_TAB', 'ROLE_OWN_COMPANY_TAB'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      const companyId = params.companyId;\n      const principalCompanyId = localStorage.getItem('principalId');\n      params.max = params.max || 10;\n      params.page = params.page || 1;\n      params.principalCompanyId = principalCompanyId;\n      return new Promise(resolve => {\n        this.store.query('worker', params).then(response => {\n          resolve(Ember.RSVP.hash({\n            workers: response,\n            company: this.store.findRecord('company', companyId),\n            principalCompanyId\n          }));\n        }, () => {\n          this.transitionTo('forbidden');\n        });\n      });\n    },\n    actions: {\n      refreshModel() {\n        this.refresh();\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/workers/index/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"hfMCcZ6s\",\n    \"block\": \"{\\\"symbols\\\":[\\\"mt\\\",\\\"footer\\\",\\\"table\\\",\\\"body\\\",\\\"worker\\\",\\\"index\\\",\\\"header\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n    \\\"],[1,[27,\\\"company-nav-header\\\",null,[[\\\"company\\\"],[[23,[\\\"model\\\",\\\"company\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"worker.workersList\\\"],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_CREATE_WORKER\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[1,[27,\\\"fa-icon\\\",[\\\"plus\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"worker.addWorker\\\"],null],false],[0,\\\" \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"openAddWorkerModal\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"server-table\\\",null,[[\\\"clear\\\",\\\"data\\\",\\\"saveSuccessMessage\\\",\\\"columns\\\"],[[23,[\\\"clear\\\"]],[23,[\\\"model\\\",\\\"workers\\\"]],[23,[\\\"saveSuccessMessage\\\"]],[23,[\\\"columns\\\"]]]],{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom padding-bottom-big\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[22,1,[\\\"global-filter\\\"]],false],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default pull-right\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"clear\\\"]]],null]],null]],[9],[1,[27,\\\"t\\\",[\\\"common.clearFilters\\\"],null],false],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"borderless-wrapper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,1,[\\\"table\\\"]],\\\"expected `mt.table` to be a contextual component but found a string. Did you mean `(component mt.table)`? ('apollo/pods/workers/index/template.hbs' @ L27:C19) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,3,[\\\"header\\\"]],\\\"expected `table.header` to be a contextual component but found a string. Did you mean `(component table.header)`? ('apollo/pods/workers/index/template.hbs' @ L28:C23) \\\"],null]],[[\\\"class\\\"],[\\\"companies-table-header\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[22,7,[\\\"row-sorting\\\"]],false],[0,\\\"\\\\n                        \\\"],[1,[22,7,[\\\"row-filtering\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,3,[\\\"body\\\"]],\\\"expected `table.body` to be a contextual component but found a string. Did you mean `(component table.body)`? ('apollo/pods/workers/index/template.hbs' @ L32:C23) \\\"],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[22,4,[\\\"visibleContent\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"tr\\\"],[12,\\\"data-worker-id\\\",[28,[[22,5,[\\\"id\\\"]]]]],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"worker-name\\\"],[9],[1,[22,5,[\\\"name\\\"]],false],[10],[0,\\\"\\\\n                                \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"worker-formattedPhoneNumber\\\"],[9],[1,[22,5,[\\\"formattedPhoneNumber\\\"]],false],[10],[0,\\\"\\\\n                                \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"worker-trained\\\"],[9],[1,[27,\\\"t\\\",[[27,\\\"concat\\\",[\\\"common.\\\",[27,\\\"if\\\",[[22,5,[\\\"trained\\\"]],\\\"yes\\\",\\\"no\\\"],null]],null]],null],false],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_EDIT_WORKER\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"edit-button\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[9],[1,[27,\\\"t\\\",[\\\"common.edit\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"openAddWorkerModal\\\",[22,5,[]]]],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"has-role\\\",[\\\"ROLE_DELETE_WORKER\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"td\\\"],[11,\\\"data-field-name\\\",\\\"delete-button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"button-with-confirmation\\\",null,[[\\\"class\\\",\\\"text\\\",\\\"onConfirm\\\"],[\\\"btn btn-default\\\",[27,\\\"t\\\",[\\\"worker.deleteWorkerMsg\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"delete\\\",[22,5,[]]],null]]],{\\\"statements\\\":[[0,\\\"                                            \\\"],[1,[27,\\\"t\\\",[\\\"common.delete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5,6]},null]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\"],[4,\\\"component\\\",[[27,\\\"-assert-implicit-component-helper-argument\\\",[[22,1,[\\\"footer\\\"]],\\\"expected `mt.footer` to be a contextual component but found a string. Did you mean `(component mt.footer)`? ('apollo/pods/workers/index/template.hbs' @ L60:C19) \\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[1,[22,2,[\\\"pagination-numeric\\\"]],false],[0,\\\"\\\\n                    \\\"],[1,[22,2,[\\\"pagination-simple\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/workers/index/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/workflow/model\", [\"exports\", \"ember-data\", \"apollo/mixins/model-validator\", \"ember-data/model\"], function (_exports, _emberData, _modelValidator, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    hasMany,\n    belongsTo,\n    attr\n  } = _emberData.default;\n\n  var _default = _model.default.extend(_modelValidator.default, {\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    languageService: Ember.inject.service('language-service'),\n    tasks: hasMany('task', {\n      async: true\n    }),\n    transportType: belongsTo('transportType', {\n      async: true\n    }),\n    name: attr('string'),\n    finalStageName: attr('string'),\n    finalStageNameEn: attr('string'),\n    finalColor: attr('string'),\n    dateCreated: attr('date'),\n    deliveryWorkflow: attr('boolean'),\n    sortedTasks: function () {\n      return this.get('tasks').sortBy('taskGroupIdentifier', 'idxInGroup').filterBy('enabled');\n    }.property('tasks.@each.idxInGroup'),\n    localisedFinalStageName: function () {\n      const propertyName = this.get('languageService').findProperLanguageVersion('finalStageName', 'finalStageNameEn');\n      return this.get(propertyName);\n    }.property('finalStageName', 'finalStageNameEn')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/workflow/serializer\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, {\n    attrs: {\n      tasks: {\n        embedded: 'save'\n      }\n    },\n    serializeIntoHash: function (data, type, record, options) {\n      var object = this.serialize(record, options);\n\n      for (var key in object) {\n        data[key] = object[key];\n      }\n    },\n    serializeHasMany: function (record, json, relationship) {\n      var hasManyRecords, key;\n      key = relationship.key;\n      hasManyRecords = record.hasMany(key);\n\n      if (hasManyRecords && this.attrs[key] && this.attrs[key].embedded === \"save\") {\n        json[key] = [];\n        hasManyRecords.forEach(function (item) {\n          // use includeId: true if you want the id of each model on the hasMany relationship\n          var data = item.attributes();\n          data.id = item.id;\n          json[key].push(data);\n        });\n      } else {\n        this._super(record, json, relationship);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/workflows/edit/controller\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Controller.extend({\n    settingsIndexController: Ember.inject.controller('settings/index'),\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    taskGroupIndexes: Ember.A([0, 1, 2, 100]),\n    tasks: Ember.computed('model.tasks', function () {\n      return this.get('model.tasks');\n    }),\n    proxiedTaskGroups: Ember.A([]),\n    errors: Ember.A([]),\n    // eslint-disable-next-line ember/no-observers\n    scheduleSetProxiedTaskGroups: Ember.observer('tasks.@each.idxInGroup', function () {\n      Ember.run.once(this, 'setProxiedTaskGroups');\n    }).on('init'),\n\n    setProxiedTaskGroups() {\n      const self = this;\n\n      if (!this.get('tasks')) {\n        return;\n      }\n\n      this.get('tasks').then(loadedTasks => {\n        const proxiedTaskGroups = this.get('taskGroupIndexes').map(groupIdx => {\n          const filteredTasks = loadedTasks.filter(task => {\n            return task.get('taskGroupIdentifier') === groupIdx && !task.get('masterTask.id');\n          });\n          let references;\n\n          if (groupIdx === 1) {\n            references = ['stepStart', 'stepStop'];\n          } else {\n            references = ['transportCreated', 'earliestStepStart', 'latestStepStop'];\n\n            if (self.get('model.transportType.requiresAdviceDateRestrictions')) {\n              references.push('minAdviceDate');\n            }\n          }\n\n          return Ember.ObjectProxy.create({\n            content: groupIdx,\n            tasks: filteredTasks.sortBy('idxInGroup'),\n            references\n          });\n        });\n        this.set('proxiedTaskGroups', proxiedTaskGroups);\n      });\n    },\n\n    destroyOrRollbackTask: function (task) {\n      if (!task) {\n        return;\n      }\n\n      if (task.get('id')) {\n        task.rollbackAttributes();\n      } else {\n        task.destroyRecord();\n      }\n    },\n    destroyOrRollbackSubtasks: function (task) {\n      const self = this;\n\n      if (!task) {\n        return;\n      }\n\n      if (task.get('subTasks.length') > 0) {\n        task.get('subTasks').forEach(subTask => {\n          self.destroyOrRollbackTask(subTask);\n        });\n      }\n    },\n    actions: {\n      toggleTracked(task) {\n        const tracked = task.get('tracked');\n        task.set('tracked', !tracked);\n      },\n\n      toggleMarkIfWasDelayed(task) {\n        const markIfWasDelayed = task.get('markIfWasDelayed');\n        task.set('markIfWasDelayed', !markIfWasDelayed);\n      },\n\n      addTask(identifier, idx) {\n        const workflow = this.get('model');\n        this.get('store').createRecord('task', {\n          workflow,\n          taskGroupIdentifier: identifier,\n          idxInGroup: idx,\n          expectedDateInterval: '30m'\n        });\n      },\n\n      dragStart(object) {\n        console.log('Drag Start', object);\n      },\n\n      sortEndAction() {\n        this.get('proxiedTaskGroups').forEach(tg => {\n          tg.get('tasks').forEach((t, idx) => {\n            t.set('idxInGroup', idx);\n          });\n        });\n      },\n\n      update() {\n        const self = this;\n\n        if (!self.get('model').validate()) {\n          return;\n        }\n\n        self.get('model').save().then(w => {\n          console.log('Workflow ' + w.id + ' saved.');\n          self.setProperties({\n            success: true,\n            errors: []\n          });\n          this.set('successMessage', self.get('intl').t('workflows.saveSuccessMessage'));\n          alert(self.get('intl').t('workflows.saveSuccessMessage'));\n          const taskToReload = this.get('store').peekAll('task').filter(task => {\n            return task.get('id') === null;\n          });\n          taskToReload.forEach(task => {\n            task.deleteRecord();\n          });\n        }).catch(response => {\n          self.set('errors', response.errors);\n        });\n      },\n\n      cancel() {\n        const self = this;\n        this.get('model').rollbackAttributes();\n        this.get('tasks').forEach(task => {\n          self.destroyOrRollbackSubtasks(task);\n          self.destroyOrRollbackTask(task);\n        });\n        this.transitionToRoute('settings.index');\n      }\n\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/workflows/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    access: ['ROLE_EDIT_WORKFLOW'],\n    beforeModel: function (transition) {\n      if (!this.get('sessionAccount').hasAnyOfTheRoles(this.get('access'))) {\n        transition.abort();\n        this.transitionTo('forbidden');\n      }\n    },\n    model: function (params) {\n      return this.store.findRecord('workflow', params.id);\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/pods/workflows/edit/template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"vYJdkPGq\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"model\\\",\\\"deliveryWorkflow\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"transport-types-nav-header\\\",null,[[\\\"workflow\\\",\\\"transportType\\\"],[[23,[\\\"model\\\"]],[23,[\\\"model\\\",\\\"transportType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[23,[\\\"model\\\",\\\"transportType\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"successMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[27,\\\"success-message\\\",null,[[\\\"text\\\"],[[23,[\\\"successMessage\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row alert alert-warning margin-top-big\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"t\\\",[\\\"workflows.updateDisclaimer\\\"],null],false],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-inline\\\"],[9],[0,\\\"\\\\n        \\\"],[1,[27,\\\"tasks-sortable-table\\\",null,[[\\\"proxiedTaskGroups\\\"],[[23,[\\\"proxiedTaskGroups\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row margin-top-big form-inline\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"form-group\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"workflows.finalStageNamesLabel\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control input-sm\\\",[23,[\\\"model\\\",\\\"finalStageName\\\"]]]]],false],[0,\\\"\\\\n                (\\\"],[1,[27,\\\"t\\\",[\\\"common.english.abbr\\\"],null],false],[0,\\\" \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"value\\\"],[\\\"form-control input-sm\\\",[23,[\\\"model\\\",\\\"finalStageNameEn\\\"]]]]],false],[0,\\\")\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"task.beforeConfirmation.willChangeColorTo\\\"],null],false],[0,\\\"\\\\n                \\\"],[1,[27,\\\"spectrum-color-picker\\\",null,[[\\\"color\\\",\\\"showPaletteOnly\\\",\\\"togglePaletteOnly\\\",\\\"onChange\\\",\\\"preferredFormat\\\",\\\"clickoutFiresChange\\\",\\\"showButtons\\\",\\\"allowEmpty\\\",\\\"palette\\\"],[[23,[\\\"model\\\",\\\"finalColor\\\"]],true,true,[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"model\\\",\\\"finalColor\\\"]]],null]],null],\\\"name\\\",true,false,true,\\\"[[\\\\\\\"steelblue\\\\\\\", \\\\\\\"aqua\\\\\\\", \\\\\\\"teal\\\\\\\", \\\\\\\"green\\\\\\\"], [\\\\\\\"lime\\\\\\\", \\\\\\\"yellow\\\\\\\", \\\\\\\"orange\\\\\\\", \\\\\\\"maroon\\\\\\\"], [\\\\\\\"fuchsia\\\\\\\", \\\\\\\"purple\\\\\\\", \\\\\\\"gray\\\\\\\", \\\\\\\"silver\\\\\\\"], [\\\\\\\"brak\\\\\\\"]]\\\"]]],false],[0,\\\"\\\\n                .\\\\n            \\\"],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"row form-buttons padding-top-big\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-primary\\\"],[11,\\\"type\\\",\\\"submit\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.save\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"update\\\"]],[10],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.back\\\"],null],false],[0,\\\"\\\\n            \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"cancel\\\"]],[10],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/pods/workflows/edit/template.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/resolver\", [\"exports\", \"ember-resolver\"], function (_exports, _emberResolver) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _emberResolver.default;\n  _exports.default = _default;\n});","define(\"apollo/router\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const Router = Ember.Router.extend({\n    location: _environment.default.locationType\n  }); // eslint-disable-next-line array-callback-return\n\n  Router.map(function () {\n    this.route('files', function () {});\n    this.route('file-sets', function () {\n      this.route('status', {\n        path: '/status/:id'\n      });\n    });\n    this.route('users', function () {\n      this.route('show', {\n        path: '/:user_id'\n      });\n      this.route('create');\n      this.route('edit', {\n        path: '/:user_id/edit'\n      });\n      this.route('activity', {\n        path: '/:user_id/activity'\n      });\n      this.route('ramps', {\n        path: '/:user_id/ramps'\n      });\n      this.route('notifications', {\n        path: '/:user_id/notifications'\n      });\n      this.route('queues', {\n        path: '/:user_id/queues'\n      });\n    });\n    this.route('auth', function () {\n      this.route('login');\n      this.route('remind');\n      this.route('reset-password');\n      this.route('activate-account');\n    });\n    this.route('companies', function () {\n      this.route('show', {\n        path: '/:company_id'\n      });\n      this.route('create');\n      this.route('invite', {\n        // eslint-disable-next-line ember/routes-segments-snake-case\n        path: '/:company_id/:partnershipType/invite'\n      });\n      this.route('ramp-edition', {\n        path: '/:company_id/rampEdition'\n      });\n      this.route('allowed-domains', {\n        path: '/:company_id/allowedDomains'\n      });\n      this.route('users');\n    }); // Domyślna ścieżka do tabeli transportów - po wybraniu adresu /transports/,\n    // użytkownik zostanie przeniesiony do widoku tabeli pierwszego z dostępnych typów,\n    // lub do widoku wszystkich typów - w zależności od ustawień.\n    // eslint-disable-next-line ember/no-capital-letters-in-routes\n\n    this.route('defaultTransports', {\n      path: '/transports/'\n    });\n    this.route('transports', function () {\n      this.route('index', {\n        path: '/:type'\n      });\n      this.route('show');\n      this.route('create');\n      this.route('archive', {\n        path: '/archive/:type'\n      });\n      this.route('print', {\n        path: '/print/:id'\n      });\n    }); // eslint-disable-next-line ember/no-capital-letters-in-routes\n\n    this.route('warehouseZones', function () {\n      // eslint-disable-next-line ember/no-capital-letters-in-routes\n      this.route('addZone', {\n        path: '/:warehouse_id/addZone'\n      });\n      this.route('edit', {\n        path: '/:id'\n      });\n    });\n    this.route('warehouses', function () {\n      this.route('schedule', {\n        path: '/:warehouse_id/:date_string/:delta/schedule/'\n      });\n      this.route('combined-schedule', {\n        path: '/:warehouse_id/:date_string/:delta/:step_id/schedule/'\n      });\n      this.route('hd', {\n        path: '/:warehouse_id/:date_string/:delta/hd'\n      });\n      this.route('template', {\n        path: '/:warehouse_id/:date_string/template'\n      });\n      this.route('edit', {\n        path: '/:id'\n      });\n      this.route('create'); // eslint-disable-next-line ember/no-capital-letters-in-routes\n\n      this.route('addRamp', {\n        path: '/:warehouse_id/:warehouse_zone_id/addRamp'\n      });\n    });\n    this.route('services', function () {\n      this.route('show');\n    });\n    this.route('settings', function () {\n      this.route('edit', {\n        path: '/:id'\n      });\n      this.route('create');\n    });\n    this.route('ramps', function () {\n      this.route('create');\n      this.route('edit', {\n        path: '/:id'\n      });\n    });\n    this.route('workflows', function () {\n      this.route('edit', {\n        path: '/:id'\n      });\n    }); // eslint-disable-next-line ember/no-capital-letters-in-routes\n\n    this.route('algorithmSettings', function () {\n      this.route('edit', {\n        path: '/algorithmSettings/:id'\n      });\n      this.route('create');\n    });\n    this.route('invitations', function () {\n      this.route('create');\n      this.route('handle');\n      this.route('review');\n      this.route('show', {\n        path: '/:id'\n      });\n    });\n    this.route('applies-settings', function () {\n      this.route('index', {\n        path: '/'\n      });\n    });\n    this.route('groups-settings', function () {\n      this.route('index', {\n        path: '/'\n      });\n    });\n    this.route('transport-types', function () {\n      this.route('edit', {\n        path: '/:id/edit'\n      }); // eslint-disable-next-line ember/no-capital-letters-in-routes\n\n      this.route('createDefinition', {\n        path: '/:id/createDefinition'\n      });\n      this.route('settings', {\n        path: '/:id/settings'\n      });\n      this.route('transaction-settings', {\n        path: '/:id/transaction-settings'\n      });\n      this.route('create');\n      this.route('package-type-settings', {\n        path: '/:id'\n      });\n      this.route('auction-settings', {\n        path: ':id/auction-settings'\n      });\n      this.route('courier-settings', {\n        path: '/:id/courier-settings'\n      });\n      this.route('cmr-settings', {\n        path: '/:id/cmr-settings'\n      });\n      this.route('artr-settings', {\n        path: '/:id/artr-settings'\n      });\n      this.route('schedule-settings', {\n        path: '/:id/schedule-settings'\n      });\n      this.route('transport-order-settings', {\n        path: '/:id/transport-order-settings'\n      });\n      this.route('delivery-settings', {\n        path: '/:id/delivery-settings'\n      });\n      this.route('index-settings', {\n        path: '/:id/index-settings'\n      });\n      this.route('price-list-settings', {\n        path: '/:id/price-list-settings'\n      });\n    });\n    this.route('authorities', function () {\n      this.route('index', {\n        path: '/:id'\n      });\n      this.route('others', {\n        path: '/:id/others'\n      });\n      this.route('create');\n      this.route('aggregate');\n    });\n    this.route('authority-restrictions', function () {\n      this.route('create');\n      this.route('edit', {\n        path: '/:id/edit'\n      });\n    });\n    this.route('reset-password');\n    this.route('forbidden');\n    this.route('/', {\n      path: '/:alias'\n    });\n    this.route('super-admin', function () {\n      this.route('create');\n    });\n    this.route('terms', function () {\n      this.route('review');\n    });\n    this.route('custom-field-definitions', function () {\n      this.route('edit', {\n        path: '/:id'\n      });\n    });\n    this.route('products', function () {\n      this.route('create');\n      this.route('edit', {\n        path: '/products/:id'\n      });\n    });\n    this.route('carriers', function () {});\n    this.route('price-list', function () {\n      this.route('index', {\n        path: '/:type'\n      });\n    });\n    this.route('role-groups', function () {\n      this.route('create');\n    });\n    this.route('no-accessible-transport-types');\n    this.route('assortment-groups', function () {\n      this.route('create', {\n        path: '/:warehouse_id'\n      }); // eslint-disable-next-line ember/no-shadow-route-definition\n\n      this.route('edit', {\n        path: '/:id'\n      });\n    });\n    this.route('warehouse-locations', function () {\n      this.route('create', {\n        path: '/:warehouse_id'\n      }); // eslint-disable-next-line ember/no-shadow-route-definition\n\n      this.route('edit', {\n        path: '/:id'\n      });\n    });\n    this.route('gates', function () {\n      this.route('create');\n      this.route('edit', {\n        path: '/:id'\n      });\n    });\n    this.route('tasks', function () {\n      this.route('edit', {\n        path: '/:task_id'\n      });\n    });\n    this.route('queue-status', function () {});\n    this.route('classification-resources', function () {\n      this.route('index');\n    });\n    this.route('squares', function () {\n      this.route('create');\n      this.route('edit', {\n        path: '/:id'\n      });\n    });\n    this.route('queues', function () {\n      // eslint-disable-next-line ember/no-capital-letters-in-routes\n      this.route('addQueue', {\n        path: '/:square_id/addQueue'\n      });\n      this.route('edit', {\n        path: '/:id'\n      });\n    });\n    this.route('places', function () {\n      // eslint-disable-next-line ember/no-capital-letters-in-routes\n      this.route('addPlace', {\n        path: '/:square_id/:queue_id/addPlace'\n      });\n      this.route('edit', {\n        path: '/:id'\n      });\n    });\n    this.route('announcements', function () {\n      this.route('manage');\n      this.route('create');\n      this.route('edit', {\n        path: '/:id'\n      });\n    });\n    this.route('square-settings', function () {\n      this.route('edit', {\n        path: '/:id'\n      });\n    });\n    this.route('mode-of-transportation', function () {\n      this.route('index');\n      this.route('create');\n      this.route('edit', {\n        path: '/:id'\n      });\n    });\n    this.route('algorithm-settings', function () {\n      this.route('index');\n      this.route('create');\n      this.route('edit');\n    });\n    this.route('combining-relations-wizard', function () {});\n    this.route('user-groups', function () {\n      this.route('index', {\n        // eslint-disable-next-line ember/routes-segments-snake-case\n        path: '/:companyId'\n      });\n      this.route('create', {\n        // eslint-disable-next-line ember/routes-segments-snake-case\n        path: '/:companyId/create'\n      });\n      this.route('edit', {\n        path: '/:id/edit'\n      });\n    });\n    this.route('notifications', function () {\n      this.route('create');\n      this.route('edit', {\n        path: '/:id'\n      });\n    });\n    this.route('truck-types', function () {\n      this.route('index', {\n        path: '/'\n      });\n    });\n    this.route('surcharge-definitions', function () {\n      this.route('index', {\n        path: '/'\n      });\n    });\n    this.route('transaction-unit-amount-types', function () {\n      this.route('index', {\n        path: '/'\n      });\n    });\n    this.route('addresses', function () {\n      this.route('index', {\n        // eslint-disable-next-line ember/routes-segments-snake-case\n        path: ':companyId'\n      });\n    });\n    this.route('workers', function () {\n      this.route('index', {\n        // eslint-disable-next-line ember/routes-segments-snake-case\n        path: ':companyId'\n      });\n    });\n    this.route('drivers', function () {\n      this.route('index', {\n        // eslint-disable-next-line ember/routes-segments-snake-case\n        path: ':companyId'\n      });\n    });\n    this.route('trucks', function () {\n      this.route('index', {\n        // eslint-disable-next-line ember/routes-segments-snake-case\n        path: ':companyId'\n      });\n    });\n    this.route('partnerships', function () {\n      this.route('index', {\n        // eslint-disable-next-line ember/routes-segments-snake-case\n        path: ':companyId'\n      });\n    });\n    this.route('cmr-settings', function () {\n      this.route('index', {\n        path: '/'\n      });\n    });\n    this.route('artr-settings', function () {\n      this.route('index', {\n        path: '/'\n      });\n    });\n    this.route('transport-type-schedule-settings', function () {\n      this.route('index', {\n        path: '/'\n      });\n    });\n    this.route('transport-order-settings', function () {\n      this.route('index', {\n        path: '/'\n      });\n    });\n    this.route('statistics-report', function () {\n      this.route('index', {\n        path: '/'\n      });\n    });\n    this.route('planning', function () {\n      this.route('index', {\n        path: '/:type'\n      });\n    });\n  });\n  var _default = Router;\n  _exports.default = _default;\n});","define(\"apollo/routes/application\", [\"exports\", \"jquery\", \"apollo/config/environment\", \"apollo/mixins/touch-mixin\", \"ember-simple-auth/mixins/application-route-mixin\"], function (_exports, _jquery, _environment, _touchMixin, _applicationRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Route.extend(_applicationRouteMixin.default, _touchMixin.default, {\n    sessionAccount: Ember.inject.service('session-account'),\n    websocketService: Ember.inject.service('websocket'),\n    notificationPollingService: Ember.inject.service('polling.notification-service'),\n    sentNotificationService: Ember.inject.service('sent-notification-service'),\n    freshWidget: Ember.inject.service('fresh-widget'),\n    intl: Ember.inject.service(),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    uiLanguageService: Ember.inject.service('language.ui-language-service'),\n    routesAsPrintView: Ember.A(['transports.print', 'warehouses.hd']),\n    TAB_ROLE_MAP: Object.freeze({\n      ANNOUNCEMENTS_TAB: 'ROLE_ANNOUNCEMENTS_TAB',\n      TRANSPORT_TAB: 'ROLE_TRANSPORT_TABLE',\n      ARCHIVE_TAB: 'ROLE_ARCHIVE_TAB',\n      WAREHOUSE_TAB: 'ROLE_WAREHOUSE_TAB',\n      PRODUCTS_TAB: 'ROLE_PRODUCTS_TAB',\n      USERS_TAB: 'ROLE_USERS_TAB',\n      COMPANIES_TAB: 'ROLE_COMPANIES_TAB',\n      OWN_COMPANY_TAB: 'ROLE_OWN_COMPANY_TAB',\n      MODE_OF_TRANSPORTATION_TAB: 'ROLE_MODE_OF_TRANSPORTATION_TAB',\n      CARRIERS_TAB: 'ROLE_CARRIERS_TAB',\n      CLASSIFICATION_TAB: 'ROLE_CLASSIFICATION_TAB',\n      QUEUE_STATUS_TAB: 'ROLE_QUEUE_STATUS_TAB',\n      ROLE_QUEUES_TAB: 'ROLE_QUEUES_TAB',\n      SETTINGS_TAB: 'ROLE_SETTINGS_TAB',\n      INVITATIONS_TAB: 'ROLE_INVITATIONS_TAB',\n      SUPER_USER_TAB: 'ROLE_SUPER_USER',\n      STATISTICS_REPORT_TAB: 'ROLE_STATISTICS_REPORT_TAB'\n    }),\n    ROUTES_MAP: Object.freeze({\n      ANNOUNCEMENTS_TAB: 'announcements',\n      TRANSPORT_TAB: 'transports.index',\n      ARCHIVE_TAB: 'transports.archive',\n      WAREHOUSE_TAB: 'warehouses.schedule',\n      PRODUCTS_TAB: 'products.index',\n      USERS_TAB: 'users.index',\n      COMPANIES_TAB: 'companies',\n      OWN_COMPANY_TAB: 'companies.show',\n      MODE_OF_TRANSPORTATION_TAB: 'mode-of-transportation.index',\n      CARRIERS_TAB: 'carriers.index',\n      CLASSIFICATION_TAB: 'classification-resources.index',\n      QUEUE_STATUS_TAB: 'queue-status',\n      ROLE_QUEUES_TAB: 'queues.index',\n      SETTINGS_TAB: 'settings',\n      INVITATIONS_TAB: 'invitations',\n      SUPER_USER_TAB: 'super-admin.index',\n      STATISTICS_REPORT_TAB: 'statistics-report',\n      FILES_TAB: 'files.index'\n    }),\n\n    async beforeModel() {\n      if (this.get('beforeModelFired')) {\n        console.debug('beforeModel already fired; returning..');\n        return true;\n      }\n\n      this.set('beforeModelFired', true);\n      await this.get('uiLanguageService').initialize();\n      const userWasAlreadyLoggedIn = this.get('session.isAuthenticated') && !this.get('sessionAccount.currentUser');\n\n      if (userWasAlreadyLoggedIn) {\n        const loggedUser = await this.get('sessionAccount').loadCurrentUser();\n        await this.websocketService.initializeSocketFor(loggedUser);\n        this.sentNotificationService.loadNotifications();\n        const socket = this.websocketService.getSocketApi();\n\n        if (socket) {\n          this.get('notificationPollingService').useSockets(socket);\n        }\n      }\n    },\n\n    afterModel() {\n      if (this.get('session.isAuthenticated') && !this.get('sessionAccount.currentUser.statuteAccepted')) {\n        const username = this.get('sessionAccount.currentUser').get('username');\n        console.log(`User ${username} did not accept Terms; redirecting to review route..`);\n        this.transitionTo('terms.review');\n      }\n\n      if (!this.isTouchDevice) {\n        this.loadSupportWidget();\n      }\n    },\n\n    async sessionAuthenticated() {\n      console.debug('Session has been authenticated.');\n\n      this._super(...arguments);\n\n      const self = this;\n      const loggedUser = await this.get('sessionAccount').loadCurrentUser();\n\n      if (!loggedUser) {\n        return;\n      }\n\n      await this.websocketService.initializeSocketFor(loggedUser);\n      const userHasToResetPassword = !loggedUser.get('resetPasswordIsDisabled') && new Date(loggedUser.get('resetPasswordDate')) < new Date();\n\n      if (userHasToResetPassword) {\n        self.get('sessionAccount').set('passwordExpired', true);\n        self.transitionTo('reset-password');\n        return;\n      }\n\n      this.sentNotificationService.loadNotifications();\n      const socket = this.websocketService.getSocketApi();\n\n      if (socket) {\n        this.get('notificationPollingService').useSockets(socket);\n      }\n\n      loggedUser.get('company').then(() => {\n        self.send('afterLogin');\n      });\n    },\n\n    loadSupportWidget() {\n      if (this.get('routesAsPrintView').includes(this.get('controller.currentRouteName'))) {\n        return;\n      }\n\n      this.get('freshWidget').loadWidget();\n    },\n\n    shouldDisplayAllTypes: Ember.computed('', function () {\n      return this.get('sessionAccount').getSettingValue('SHOULD_RENDER_ALL_TRANSPORT_TYPES') === 'true' || this.get('sessionAccount.currentUser.roleGroup.isGuard');\n    }),\n\n    /**\n     * Ustawia się w momencie zalogowania użytkownika\n     */\n    transportTypeModeToRedirectTo: Ember.computed('transportTypeMode', function () {\n      if (this.get('transportTypeMode')) {\n        return this.get('transportTypeMode');\n      } // Po zalogowaniu przenosimy użytkownika do ostatniego wybranego przez niego Typu Transportu jeśli ma dostęp(w to wlicza się równiesz \"Wszystkie\")\n\n\n      const transportTypes = this.get('store').peekAll('transportType');\n      const transportTypeFromLocalStorage = localStorage.getItem('LastVisitedTransportType');\n      const isTransportTypeFromLocalStorageInAvalibleTransportTypes = transportTypes.filterBy('canBeSeenByRoleGroup').any(tt => tt.alias === transportTypeFromLocalStorage);\n\n      if (isTransportTypeFromLocalStorageInAvalibleTransportTypes || transportTypeFromLocalStorage === 'ALL') {\n        return transportTypeFromLocalStorage;\n      } // Jeśli użytkownik nie ma zapisanego Typu Transportu (loguje się pierwszy raz lub czyścił cache) to przeniosimy go do pierwszego Typu z listy\n\n\n      return this.get('shouldDisplayAllTypes') ? 'ALL' : this.get('store').peekAll('transportType').get('firstObject.alias');\n    }),\n    shouldRedirectToApply: Ember.computed('sessionAccount.currentCompany', function () {\n      return this.get('sessionAccount').getSettingValue('HAS_ACCESS_TO_APPLIES') === 'true' && this.get('sessionAccount.currentCompany.isCarrier') && (!this.get('sessionAccount.currentCompany.partnershipWithPrincipal.registrationCompleted') && !this.get('sessionAccount.currentCompany.partnershipWithPrincipal.verificationRequestSent') || this.get('sessionAccount.currentCompany.partnershipWithPrincipal.status') === 'BLOCKED');\n    }),\n    defaultTabAfterLogin: Ember.computed(function () {\n      const defaultTab = this.get('sessionAccount').getSettingValue('DEFAULT_TAB_AFTER_LOGIN'); // zakładka z transportami jest obsługiwana w szczególny sposób\n\n      if (!defaultTab || defaultTab === 'TRANSPORT_TAB') {\n        return null;\n      }\n\n      if (!this.get('sessionAccount').hasRole(this.TAB_ROLE_MAP[defaultTab])) {\n        console.log('Użytkownik nie ma uprawnień do zakładki ' + defaultTab);\n        return null;\n      }\n\n      if (!this.ROUTES_MAP[defaultTab]) {\n        console.log('Nie wiemy, jaka jest ścieżka do route ' + defaultTab);\n        return null;\n      }\n\n      return this.findProperTransition(defaultTab);\n    }),\n\n    findProperTransition(defaultTab) {\n      // eslint-disable-next-line ember/no-controller-access-in-routes\n      const applicationController = this.controllerFor('application');\n\n      switch (defaultTab) {\n        case 'ARCHIVE_TAB':\n          {\n            const transportTypeId = applicationController.get('transportTypeAvailableInArchive.id');\n            return this.transitionTo(this.ROUTES_MAP[defaultTab], transportTypeId);\n          }\n\n        case 'WAREHOUSE_TAB':\n          {\n            const warehouseId = applicationController.get('defaultWarehouse.id');\n            const date = moment(applicationController.get('warehouseDate')).format('YYYY-MM-DD');\n            const numberOfDaysInSchedule = applicationController.get('numberOfDaysInSchedule');\n            return this.transitionTo(this.ROUTES_MAP[defaultTab], warehouseId, date, numberOfDaysInSchedule);\n          }\n\n        case 'OWN_COMPANY_TAB':\n          {\n            const companyId = this.get('sessionAccount.currentUser.company.id');\n            return this.transitionTo(this.ROUTES_MAP[defaultTab], companyId);\n          }\n\n        case 'USERS_TAB':\n        case 'ANNOUNCEMENTS_TAB':\n          {\n            const queryParams = {\n              max: 10,\n              page: 1\n            };\n            return this.transitionTo(this.ROUTES_MAP[defaultTab], {\n              queryParams\n            });\n          }\n\n        default:\n          return this.transitionTo(this.ROUTES_MAP[defaultTab]);\n      }\n    },\n\n    actions: {\n      afterLogin() {\n        this.get('sentNotificationService').loadNotifications(); // eslint-disable-next-line ember/no-controller-access-in-routes\n\n        this.controllerFor('application').initAnnouncementCounterUpdates();\n        const loggedUser = this.get('sessionAccount').get('currentUser');\n\n        if (!loggedUser.get('statuteAccepted')) {\n          const username = loggedUser.get('username');\n          console.log(`User ${username} did not accept Terms; redirecting to review route..`);\n          this.transitionTo('terms.review');\n        } else if (this.get('shouldRedirectToApply')) {\n          this.transitionTo('companies.show', this.get('sessionAccount.currentUser.company.id'));\n        } else if (this.get('defaultTabAfterLogin')) {\n          return this.get('defaultTabAfterLogin');\n        } else if (!this.get('sessionAccount').get('canAccessAnyTransportType')) {\n          return this.transitionTo('no-accessible-transport-types');\n        } else if (!this.get('sessionAccount').hasRole('ROLE_TRANSPORT_TABLE')) {\n          if (this.get('sessionAccount').hasRole('ROLE_CLASSIFICATION_TAB')) {\n            return this.transitionTo('classification-resources.index');\n          } else if (this.get('sessionAccount').hasRole('ROLE_QUEUE_STATUS_TAB')) {\n            return this.transitionTo('queue-status.index');\n          } else if (this.get('sessionAccount').hasRole('ROLE_QUEUES_TAB')) {\n            return this.transitionTo('queues.index');\n          }\n\n          const warehouseOfCurrentPrincipal = this.get('sessionAccount.currentUser.warehouses.firstObject');\n          const currentDate = moment().format('YYYY-MM-DD');\n          const scheduleSortingValue = 7;\n          this.transitionTo('warehouses.schedule', warehouseOfCurrentPrincipal.get('id'), currentDate, scheduleSortingValue);\n        } else {\n          this.transitionTo('transports', this.get('transportTypeModeToRedirectTo'));\n        }\n      },\n\n      /**\n       * Wyświetla okienko typu 'modal'.\n       *\n       * <p/>\n       * Po wczytaniu na stronę (`this.render...`), wykona się akcja `didInsertElement` komponentu `custom-modal/controller.js`.\n       * Ta akcja będzie odpowiedzialna za wykonanie metody `.modal` oraz faktyczne wyświetlenie okienka.\n       *\n       * @param name ścieżka do template, który ma zostać wyświetlony, np. `sections.modals.rejection-modal`\n       * @param model obiekt, który będzie dostępny w komponencie (np. `offer-form/controller.js`) jako `model`\n       * @param outletName\n       */\n      showModal: function (name, model, outletName = 'main-modal') {\n        console.debug(`Pokazujemy modal ${name}, ${outletName}...`);\n\n        if (model && model.set) {\n          model.set('modelOpenTime', new Date().getTime());\n        } else if (model && model.transport && model.transport.set) {\n          model.transport.set('modelOpenTime', new Date().getTime());\n        }\n\n        this.render(name, {\n          into: 'application',\n          outlet: outletName,\n          model\n        });\n      },\n\n      /**\n       * Ukrywa widoczny na ekranie `modal` oraz usuwa ze strony `template` wczytany w {@link showModal}.\n       *\n       * </p>\n       * Usunięcie `template` jest konieczne, żeby przy kolejnym włączeniu okienka wykonały się operacje `didInsertElement`\n       * wybranego komponentu.\n       */\n      hideModal(outletName = 'main-modal') {\n        console.debug(`Ukrywamy i usuwamy modal #${outletName} (application)...`);\n        (0, _jquery.default)(`#${outletName}`).modal('hide');\n        (0, _jquery.default)('.modal-backdrop').remove();\n      },\n\n      refreshModel() {\n        this.refresh();\n      },\n\n      showPopupDialog(name, model) {\n        this.render(name, {\n          into: 'application',\n          outlet: 'popup-dialog',\n          model\n        });\n      },\n\n      removePopupDialog() {\n        const $dialog = $('.popup-dialog');\n        $dialog.fadeTo('fast', 0.5, function () {\n          $dialog.dialog('close');\n        });\n        this.disconnectOutlet({\n          outlet: 'popup-dialog',\n          parentView: 'application'\n        });\n      },\n\n      removePopupMessage() {\n        const self = this;\n        const $messageDiv = $('.popup-message');\n        $messageDiv.hide();\n        self.disconnectOutlet({\n          outlet: 'popup-dialog',\n          parentView: 'application'\n        });\n      },\n\n      willTransition() {\n        // eslint-disable-next-line ember/no-controller-access-in-routes\n        this.get('controller').setProperties({\n          hdMode: false\n        });\n        this.send('removePopupDialog');\n        return true;\n      },\n\n      error: function (error) {\n        const status = error.errors ? error.errors[0].status : null;\n\n        if (status === 0) {\n          console.log('Sorry, but we\\'re having trouble connecting to the server. ' + 'This problem is usually the result of a broken Internet connection. ' + 'You can try refreshing this page.');\n        } else if (status === '403' || status === '401' || status === '404') {\n          this.transitionTo('forbidden');\n        }\n      },\n\n      goBack() {\n        window.history.back();\n      },\n\n      allowModelFiring() {\n        this.set('beforeModelFired', false);\n      },\n\n      setTransportTypeModeSelection(mode) {\n        // eslint-disable-next-line ember/no-controller-access-in-routes\n        this.get('controller').set('transportTypeMode', mode);\n      },\n\n      goToTab(tab) {\n        const url = window.location.href;\n        const arr = url.split('/');\n        const result = arr[0] + '//' + arr[2] + '/#/' + tab;\n        console.log(`Przenosimy się do ${result}..`);\n        window.location = result;\n        location.reload();\n      }\n\n    },\n\n    redirect(model, transition) {\n      const unauthenticatedRoutes = _environment.default['ember-simple-auth'].unauthenticatedRoutes;\n\n      if (!unauthenticatedRoutes.includes(transition.targetName) && !this.get('session.isAuthenticated')) {\n        console.log(`User is unauthenticated - redirecting to auth route (and saving transition to ${transition.targetName}) ..`);\n        this.set('session.attemptedTransition', transition);\n        const principalId = localStorage.getItem('principalId');\n        this.transitionTo('auth.login', {\n          queryParams: {\n            principalId: principalId || ''\n          }\n        });\n      } else {\n        console.debug('session.isAuthenticated');\n      }\n    },\n\n    setupController: function (controller) {\n      controller.set('browserUnsupported', (0, _jquery.default)('html').is('.unsupported'));\n      controller.set('browserOld', (0, _jquery.default)('html').is('.old'));\n      controller.set('routesAsPrintView', this.get('routesAsPrintView'));\n      controller.initAnnouncementCounterUpdates();\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/serializers/application\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.RESTSerializer.extend(_emberData.default.EmbeddedRecordsMixin, {\n    serializeIntoHash: function (data, type, record, options) {\n      var object = this.serialize(record, options);\n\n      for (var key in object) {\n        data[key] = object[key];\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/action-progress-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    typeOfToast: 'loading',\n    isLoading: false,\n    message: '',\n    details: '',\n    showToast: function (type, message, details) {\n      this.set('message', message);\n      this.set('details', details);\n      this.set('typeOfToast', type);\n      const toast = $('.toast');\n      const progress = $('.toast-progress');\n      progress.addClass('active');\n      toast.addClass('toast-active ' + type);\n      this.hideToast(5000, true);\n    },\n    showLoadingToast: function (message, details) {\n      const type = 'loading';\n      this.showToast(type, message, details);\n      this.set('isLoading', true);\n    },\n    showSuccessToast: function (message, details) {\n      const type = 'success';\n      this.showToast(type, message, details);\n      this.set('isLoading', false);\n    },\n    showErrorToast: function (message, details) {\n      const type = 'error';\n      this.showToast(type, message, details);\n      this.set('isLoading', false);\n    },\n    hideToast: function (displayTime) {\n      const timeout = displayTime || 5000;\n      const toast = $('.toast');\n      const progress = $('.toast-progress');\n      setTimeout(() => {\n        if (this.get('isLoading')) {\n          this.set('isLoading', false);\n        }\n\n        toast.removeClass('loading error success toast-active');\n        progress.removeClass('active');\n      }, timeout);\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/address-unload-time-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    DEFAULT_ARRIVAL_TIME_ARRAY: Ember.A(['18', '00']),\n\n    _defaultArrivalDate(transportType) {\n      const numberOfDaysForFirstStep = transportType.get('numberOfDaysAddedToFirstStep') || 0;\n      const defaultArrivalDateHour = transportType.get('defaultArrivalDateHour') || '18:00'; // Split the time string into hours and minutes\n\n      const [hours, minutes] = (defaultArrivalDateHour || '').split(':').map(Number);\n      return moment().startOf('day').add(numberOfDaysForFirstStep, 'day').add(hours || 18, 'hours').add(minutes || 0, 'minutes').toDate();\n    },\n\n    async findArrivalDate(address, transportType) {\n      const addressUnloadingTime = await address.get('addressUnloadingTime');\n\n      if (addressUnloadingTime == null || !addressUnloadingTime.get('id')) {\n        return this._defaultArrivalDate(transportType);\n      }\n\n      const newArrivalDate = moment().startOf('day').add(addressUnloadingTime.get('daysToUnload') || 0, 'day');\n      const arrivalDayName = addressUnloadingTime.get('dayName')[newArrivalDate.day()];\n      const arrivalDayHourAndMinute = addressUnloadingTime.get(`${arrivalDayName}`) ? addressUnloadingTime.get(`${arrivalDayName}`).split(':') : this.DEFAULT_ARRIVAL_TIME_ARRAY;\n      const arrivalDayHour = arrivalDayHourAndMinute[0];\n      const arrivalDayMinute = arrivalDayHourAndMinute[1];\n      newArrivalDate.add(arrivalDayHour, 'hours').add(arrivalDayMinute, 'minutes');\n      return newArrivalDate.toDate();\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/aggregated-authority-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    AGGREGATED_AUTHORITIES_ENDPOINT: '/aggregated-authorities',\n    // TODO: Zastąpić przez apolloApiService\n    ajaxService: Ember.inject.service('ajax-service'),\n\n    fetch(authorityGroupId, transportTypeId) {\n      const params = {\n        authorityGroupId,\n        transportTypeId\n      };\n      return this.ajaxService.send(this.AGGREGATED_AUTHORITIES_ENDPOINT, 'GET', params).then(response => {\n        return response;\n      });\n    },\n\n    send(aggregatedAuthoritiesToSave, aggregatedAuthoritiesToRemove) {\n      const data = {\n        toRemove: aggregatedAuthoritiesToRemove,\n        toSave: aggregatedAuthoritiesToSave\n      };\n      return this.ajaxService.send(this.AGGREGATED_AUTHORITIES_ENDPOINT, 'POST', data, true);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/ajax-service\", [\"exports\", \"apollo/config/environment\", \"jquery\"], function (_exports, _environment, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    session: Ember.inject.service('session'),\n    sessionAccount: Ember.inject.service('session-account'),\n\n    /**\n     * @deprecated Zamiast tego użyj {@link apollo-api-service.js}\n     */\n    send(url, actionType, data, parseData) {\n      let token = this.get('sessionAccount').get('token') ? this.get('sessionAccount').get('token') : this.get('session.data.authenticated.token');\n      if (token === undefined) token = '';\n      const parsedData = parseData ? JSON.stringify(data) : data;\n      return _jquery.default.ajax({\n        url: _environment.default.serverURL + url,\n        type: actionType,\n        contentType: 'application/json; charset=utf-8',\n        dataType: 'json',\n        data: parsedData,\n        beforeSend: function (xhr) {\n          xhr.setRequestHeader('Authorization', 'Bearer ' + token);\n        }\n      });\n    },\n\n    /*\n     * sequence wykonuje obietnice(Promise) sekwencyjnie.\n     * @param {funcs} Tablica funkcji, które zwracają obietnice.\n     * @example\n     * const promises = [() => new Promise(...), () => new Promise(...)]\n     * sequence(promises).then(...)\n     */\n    sequence(funcs) {\n      return funcs.reduce((promise, func) => promise.then(func), Promise.resolve());\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/ajax\", [\"exports\", \"ember-ajax/services/ajax\"], function (_exports, _ajax) {\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 _ajax.default;\n    }\n  });\n});","define(\"apollo/services/amount-of-cover-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    currencyExchangeService: Ember.inject.service(),\n    ERROR_ROOT: 'Błąd przy próbie wyliczenia sumy gwarancyjej transportu. ',\n\n    hasEnoughAmountOfCover(transport, company) {\n      if (!transport.get('transportType.checkAmountOfCover') || isNaN(transport.get('amountOfCover.amount'))) {\n        // Typ transportu nie posiada flagi do sprawdzania sumy gwarancyjnej\n        // lub nie ma podanej sumy gwarancyjnej, zwracamy true\n        return true;\n      }\n\n      if (!transport.get('id') || !company.get('id')) {\n        throw new Error(this.ERROR_ROOT + 'Transport :: ' + transport + ' :: lub firma :: ' + company + ' :: nie istnieje !');\n      }\n\n      const transportAoc = transport.get('amountOfCover');\n\n      if (!transportAoc) {\n        console.debug(this.ERROR_ROOT + 'Brak sumy gwarancyjnej transportu :: ' + transport.get('id'));\n        return false;\n      }\n\n      const transportCurrency = transportAoc.get('currency');\n      const transportAmount = Number(transportAoc.get('amount'));\n      const companyInsurance = company.get('activeOCPInsurance') || company.get('activeOCSInsurance');\n\n      if (!companyInsurance) {\n        console.debug('Firma ' + company + ' nie posiada ubezpieczenia OCP i OCS.');\n        return false;\n      }\n\n      const companyAmount = Number(companyInsurance.get('amount'));\n      const companyCurrency = companyInsurance.get('currency');\n\n      if (!companyAmount || !companyCurrency) {\n        console.debug('Firma ' + company + ' nie posiada ubezpieczenia OCP i OCS.');\n        return false;\n      }\n\n      return this._countAmountOfCovers(transportAmount, transportCurrency, companyAmount, companyCurrency);\n    },\n\n    _countAmountOfCovers(transportAmount, transportCurrency, companyAmount, companyCurrency) {\n      transportAmount = this.currencyExchangeService.toPLN(transportAmount, transportCurrency.get('symbol'));\n      companyAmount = this.currencyExchangeService.toPLN(companyAmount, companyCurrency.get('symbol'));\n      return companyAmount >= transportAmount;\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/api/apollo-api-service\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n   * Serwis odpowiedzialny za obsługę żądań API do serwera Apollo.\n   */\n  var _default = Ember.Service.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    BASE_URL: Ember.computed(function () {\n      return _environment.default.serverURL;\n    }),\n\n    /**\n     * Funkcja do wykonania żądania fetch do API Apollo.\n     * @param {Object} apolloApiPath - Ścieżka do końcowego punktu API Apollo\n     * @param {string} apolloApiPath.endpoint - Adres URL końcowego punktu\n     * @param {string} apolloApiPath.method - Metoda HTTP\n     * @param {string} apolloApiPath.description - Opis końcowego punktu API\n     * @param {Object} params - Parametry żądania\n     * @param {RequestInit} options - Dodatkowe opcje dla żądania fetch\n     * @param {Object} searchParams - Parametry wyszukiwania\n     * @example\n     * fetch(APOLLO_API.WEIGHTS.EXAMPLE, null, {paramName1: 123456}, {queryParam: 'example'})\n     * @returns {Promise<Response>} - Obietnica zawierająca odpowiedź\n     */\n    callApolloApi(apolloApiPath, params = null, options = null, searchParams = null) {\n      const endpoint = apolloApiPath.endpoint;\n      const method = apolloApiPath.method;\n      const description = apolloApiPath.description;\n      const token = this.get('sessionAccount').get('token') ? this.get('sessionAccount').get('token') : this.get('session.data.authenticated.token');\n      const defaultOptions = {\n        method,\n        headers: {\n          'Content-Type': 'application/json'\n        }\n      };\n\n      if (token) {\n        defaultOptions.headers.Authorization = `Bearer ${token}`;\n      }\n\n      const mergedOptions = { ...defaultOptions,\n        ...options,\n        headers: { ...defaultOptions.headers,\n          ...(options ? options.headers : {})\n        }\n      };\n      const url = this.BASE_URL + endpoint;\n\n      const parsedUrl = this._handleFetchParams(url, params, searchParams);\n\n      console.debug(`Fetching Apollo API on ${parsedUrl} :: ${description} :: ${JSON.stringify(mergedOptions)}`);\n      return fetch(parsedUrl, mergedOptions);\n    },\n\n    /**\n     * Funkcja do obsługi parametrów fetch takich jak parametry ścieżki i parametry wyszukiwania.\n     * @param {string} url - Adres URL, do którego stosowane są parametry\n     * @param {Object} params - Parametry ścieżki\n     * @param {Object} searchParams - Parametry wyszukiwania\n     */\n    _handleFetchParams(url, params, searchParams) {\n      if (params) {\n        // Zamiana parametrów ścieżki w adresie URL np. :id => 123456\n        url = Object.keys(params).reduce((acc, key) => {\n          return acc.replace(`:${key}`, params[key]);\n        }, url);\n      }\n\n      if (searchParams) {\n        // Konstruowanie ciągu zapytania z parametrów wyszukiwania np. ?queryParam=test\n        const query = Object.entries(searchParams).flatMap(([key, value]) => Array.isArray(value) ? value.map(v => [key, v]) : [[key, value]]).map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`).join('&');\n        url = query ? `${url}?${query}` : url;\n      }\n\n      return url;\n    },\n\n    /**\n     * Stały obiekt zawierający definicje węzłów API Apollo.\n     * Przykład nowego węzła:\n     *  EXAMPLE: {\n     *      NAME: {\n     *          endpoint: '/example/:paramName1',\n     *          method: 'GET',\n     *          description: 'Example Apollo API endpoint'\n     *      }\n     *  },\n     */\n    APOLLO_API: Object.freeze({\n      TABLE_COLUMNS: {\n        SAVE: {\n          endpoint: '/columns-access-commands',\n          method: 'POST',\n          description: 'Saves / updates columns for role group'\n        }\n      },\n      PERSON: {\n        ACCOUNT_MAP: {\n          endpoint: '/users/account/:username/:lang',\n          method: 'GET',\n          desciprtion: 'Downloads user map from backend'\n        }\n      },\n      ANNOUNCEMENTS: {\n        UPDATES: {\n          endpoint: '/announcements/updates',\n          method: 'GET',\n          description: 'Polling for announcements'\n        },\n        MARK_AS_READ: {\n          endpoint: '/announcements/:id/markAsRead',\n          method: 'POST',\n          description: 'Marks announcement with given id as read'\n        }\n      },\n      CHECKPOINTS: {\n        CONFIRM: {\n          endpoint: '/checkpoints/:id/confirm',\n          method: 'PUT',\n          description: 'Confirms checkpoint with given :id'\n        },\n        REJECT: {\n          endpoint: '/checkpoints/:id/reject',\n          method: 'PUT',\n          description: 'Rejects checkpoint with given :id'\n        },\n        BLOCK: {\n          endpoint: '/checkpoints/:id/block',\n          method: 'POST',\n          description: 'Blocks checkpoint with given :id'\n        },\n        UNBLOCK: {\n          endpoint: '/checkpoints/:id/unblock',\n          method: 'POST',\n          description: 'Unblocks checkpoint with given :id'\n        },\n        SAVE_MODAL: {\n          endpoint: '/checkpoints/saveModal',\n          method: 'POST',\n          description: 'Unblocks checkpoint with given :id'\n        }\n      },\n      CLASSIFICATION_RESOURCES: {\n        ASSIGN_PLACE: {\n          endpoint: '/classification-resources/assign-place',\n          method: 'PUT',\n          description: 'Assigns place for given classification resource'\n        },\n        RESERVE: {\n          endpoint: '/classification-resources/reserve',\n          method: 'POST',\n          description: 'Reserves given classification resource'\n        }\n      },\n      COMPANY_EMAIL_DOMAINS: {\n        SAVE: {\n          endpoint: '/company-email-domains',\n          method: 'POST',\n          description: 'Finds company email domains with given code'\n        }\n      },\n      COMPANY_RAMPS: {\n        SAVE: {\n          endpoint: '/company-ramps',\n          method: 'POST',\n          description: 'Saves company-ramps object'\n        }\n      },\n      CONTRACTORS_GROUP_TYPES: {\n        GET_PRIVATE_GROUP: {\n          endpoint: '/contractors-group-types/getPrivateTypes/:partnershipTypeId',\n          method: 'GET',\n          description: 'Returns a private contractor group type for given partnership type'\n        }\n      },\n      FILES: {\n        SAVE: {\n          endpoint: '/files',\n          method: 'POST',\n          description: 'Saves file'\n        }\n      },\n      FILE_SET: {\n        DOWNLOAD: {\n          endpoint: '/file-sets/download/:id',\n          method: 'GET',\n          description: 'Downloads file set with given id'\n        }\n      },\n      GUS: {\n        VERIFY: {\n          endpoint: '/gus/verify',\n          method: 'GET',\n          description: 'Verifies company is GUS'\n        }\n      },\n      INDEX_QUANTITIES: {\n        SAVE: {\n          endpoint: '/index-quantities',\n          method: 'POST',\n          description: 'Saves index quantity object'\n        }\n      },\n      MANUAL_NOTIFICATIONS: {\n        SEND: {\n          endpoint: '/manual-notifications/send/:manualNotificationId',\n          method: 'GET',\n          description: 'Sends manual notification with given id'\n        }\n      },\n      NET_PC: {\n        GET_REPORT_URL: {\n          endpoint: '/netpc/getReportUrl/:dashboardName',\n          method: 'GET',\n          description: 'Finds netpc report url with given dashboardName'\n        }\n      },\n      NOTIFICATIONS: {\n        // TODO: To jest coś do kolejek, możliwe, że już nie używane i można usunąć\n        SEND_SMS: {\n          endpoint: '/notifications/sms',\n          method: 'PUT',\n          description: 'Sends sms to all drivers in queue'\n        }\n      },\n      PARTNERSHIPS: {\n        CONNECT_ALL: {\n          endpoint: '/partnerships/connectAll',\n          method: 'POST',\n          description: 'Creates partnerships with all contractor companies for principalCompany'\n        }\n      },\n      PERSON_NOTIFICATIONS: {\n        SAVE: {\n          endpoint: '/person-notifications',\n          method: 'POST',\n          description: 'Saves person-notifications object'\n        }\n      },\n      PERSON_RAMPS: {\n        SAVE: {\n          endpoint: '/person-ramps',\n          method: 'POST',\n          description: 'Saves person-ramps object'\n        }\n      },\n      PERSON_QUEUES: {\n        SAVE: {\n          endpoint: '/person-queues',\n          method: 'POST',\n          description: 'Saves person-queue object'\n        }\n      },\n      PLACES: {\n        ENABLE: {\n          endpoint: '/places/:placeId/enable',\n          method: 'PUT',\n          description: 'Enables place with given id'\n        },\n        DISABLE: {\n          endpoint: '/places/:placeId/disable',\n          method: 'PUT',\n          description: 'Disables place with given id'\n        }\n      },\n      ROLE_GROUP_AUTHORITIES: {\n        SAVE_AGGREGATED_ROLE_GROUP_AUTHORITIES: {\n          endpoint: '/role-group-authorities/aggregatedRoleGroupsAuthorities',\n          method: 'POST',\n          description: 'Saves aggregated role group authorities'\n        }\n      },\n      ROLE_GROUP_STATISTICS_REPORTS: {\n        SAVE: {\n          endpoint: '/role-group-statistics-reports',\n          method: 'POST',\n          description: 'Saves role group statistics reports'\n        }\n      },\n      ROLE_GROUP_NOTIFICATIONS: {\n        SAVE: {\n          endpoint: '/role-group-notifications',\n          method: 'POST',\n          description: 'Saves rnotification for role group'\n        }\n      },\n      ROUTE_OFFERS: {\n        CONFIRM: {\n          endpoint: '/route-offers/:offerId/confirmation/',\n          method: 'POST',\n          description: 'Confirms route offer with given id'\n        }\n      },\n      STEP_WAREHOUSE_LOCATION: {\n        SAVE: {\n          endpoint: '/steps/saveStepWarehouseLocation/',\n          method: 'POST',\n          description: 'Saves new step-warehouse-location'\n        }\n      },\n      SETTINGS: {\n        FIND_UNSET_NAMES: {\n          endpoint: '/settings/findUnsetNames',\n          method: 'GET',\n          description: 'Finds settings that are unset'\n        }\n      },\n      SUB_TASKS: {\n        SAVE: {\n          endpoint: '/subTasks/:taskId',\n          method: 'POST',\n          description: 'Saves sub tasks for given task'\n        }\n      },\n      SQUARES: {\n        ENABLE: {\n          endpoint: '/squares/:squareId/enable',\n          method: 'PUT',\n          description: 'Enables square with given id'\n        },\n        DISABLE: {\n          endpoint: '/squares/:squareId/disable',\n          method: 'PUT',\n          description: 'Disables square with given id'\n        }\n      },\n      TRANSACTIONS: {\n        EDIT_FREIGHT: {\n          endpoint: '/transactions/:id/editFreight',\n          method: 'PUT',\n          description: 'Edits transaction freight with given transaction id'\n        },\n        SAVE_INVOICE: {\n          endpoint: '/transactions/:id/saveInvoice',\n          method: 'PUT',\n          description: 'Saves transaction invoice data with given transaction id'\n        }\n      },\n      TRANSPORTS: {\n        GET: {\n          endpoint: '/transports',\n          method: 'GET',\n          description: 'Get transports (API v2)'\n        },\n        INDEX: {\n          endpoint: '/transports/index',\n          method: 'POST',\n          description: 'Used for polling for transports'\n        },\n        CREATE_MULTIPLE_COPIES: {\n          endpoint: '/transports/createMultipleCopies',\n          method: 'POST',\n          description: 'Creates multiple copies for transport'\n        },\n        SAVE_SERIAL_TRANSPORTS: {\n          endpoint: '/transports/save-serial-transports',\n          method: 'POST',\n          description: 'Creates multiple copies for transport'\n        },\n        FILTER_OPTIONS: {\n          endpoint: '/transports/filterOptions',\n          method: 'POST',\n          description: 'Finds all filter options for all select filters'\n        },\n        RESEND_API_MESSAGE: {\n          endpoint: '/transports/resendApiMessage/:logId',\n          method: 'POST',\n          description: 'Resends api intergration message with given log id'\n        },\n        FIRST_POSSIBLE_START: {\n          endpoint: '/transports/firstPossibleStart',\n          method: 'POST',\n          description: 'Finds first possible window start for given transport'\n        },\n        VALIDATE: {\n          endpoint: '/transports/:id/validate',\n          method: 'PUT',\n          description: 'Validates transport with given id'\n        },\n        DETACH_ALL_DELIVERIES: {\n          endpoint: '/transports/detach-all-deliveries/:id',\n          method: 'POST',\n          description: 'Detaches all deliveries from transport.'\n        }\n      },\n      TRANSPORT_TRANSPORT_RELATIONS: {\n        SAVE_TRANSPORT_COMBINING: {\n          endpoint: '/transport-transport-relations/transport-combining',\n          method: 'POST',\n          description: 'Saves relation of selected transports'\n        },\n        CLEAR_ADVICES_AND_TWS: {\n          endpoint: '/transport-transport-relations/clear-before-combining',\n          method: 'POST',\n          description: 'Removes time windows and advices from all combined transports'\n        },\n        DELETE_ALL_COMBINED_RELATIONS: {\n          endpoint: '/transport-transport-relations/delete-all-combined-relations/:id',\n          method: 'DELETE',\n          description: 'Delete all relations of selected transport'\n        },\n        GET_HAS_TO_WAIT_FOR_IDENTIFIER: {\n          endpoint: '/transport-transport-relations/has-to-wait-for-identifier',\n          method: 'GET',\n          description: 'Generates next identifier for Has To Wait For relation'\n        }\n      },\n      USER: {\n        ACTIVATE_ACCOUNT: {\n          endpoint: '/activateAccount',\n          method: 'GET',\n          description: 'Activates account with given hash'\n        },\n        DISABLE: {\n          endpoint: '/users/:userId/disable',\n          method: 'PUT',\n          description: 'Disables user with given user id'\n        },\n        REMIND_PASSWORD: {\n          endpoint: '/remind',\n          method: 'POST',\n          description: 'Sends reset password link to user email.'\n        },\n        REJECT_STATUTE: {}\n      },\n      WEIGHTS: {\n        MOCK: {\n          endpoint: '/weights/weightMock',\n          method: 'GET',\n          description: 'Mock automatic weight'\n        },\n        SYNCHRONIZE_WEIGHTS: {\n          endpoint: '/synchronizeWeights',\n          method: 'POST',\n          description: 'Synchronizes weights with third party API'\n        }\n      },\n      QUEUES: {\n        ENABLE: {\n          endpoint: '/queues/:queueId/enable',\n          method: 'PUT',\n          description: 'Enables queue with given id'\n        },\n        DISABLE: {\n          endpoint: '/queues/:queueId/disable',\n          method: 'PUT',\n          description: 'Disables queue with given id'\n        }\n      },\n      PLANNING: {\n        GENERATE_RANDOM_DELIVERY_NUMBER: {\n          endpoint: '/planning/random-delivery-number',\n          method: 'GET',\n          description: 'Returns random not used delivery number'\n        },\n        CREATE_BASIC_TRANSPORT: {\n          endpoint: '/transports/createBasicTransport',\n          method: 'POST',\n          description: 'Creates basic transport for planning.'\n        },\n        DELETE_BASIC_TRANSPORT: {\n          endpoint: '/transports/:transportId/deleteBasicTransport',\n          method: 'DELETE',\n          description: 'Delete basic transport.'\n        },\n        ADD_DELIVERY_TO_TRANSPORT: {\n          endpoint: '/planning/addDeliveryToTransport',\n          method: 'POST',\n          description: 'Adds delivery to transport'\n        },\n        REMOVE_DELIVERY_FROM_TRANSPORT: {\n          endpoint: '/planning/removeDeliveryFromTransport',\n          method: 'POST',\n          description: 'Removes delivery from transport'\n        },\n        RELEASE_TRANSPORT: {\n          endpoint: '/planning/releaseTransport',\n          method: 'POST',\n          description: 'Create transport from planning transport with list of deliveries'\n        }\n      },\n      SYNCHRONISE_CARRIERS_DATA: {\n        SYNC: {\n          endpoint: '/companies/synchroniseCarriersData',\n          method: 'GET',\n          description: 'Synchronises carriers data with use of MSH'\n        }\n      },\n      MANAGE_JOBS: {\n        START: {\n          endpoint: '/managable-jobs/start',\n          method: 'POST',\n          description: 'Startuje joba'\n        },\n        STOP: {\n          endpoint: '/managable-jobs/stop',\n          method: 'POST',\n          description: 'Zatrzymuje joba'\n        }\n      },\n      MARCOS: {\n        REFRESH_RESOURCES: {\n          endpoint: '/msh/refresh-resources/:transportId',\n          method: 'GET',\n          description: 'Send refresh resources request to msh'\n        }\n      },\n      DELIVERY: {\n        DETACH_FROM_TRANSPORT: {\n          endpoint: '/deliveries/disconnect/:id',\n          method: 'POST',\n          description: 'Detach delivery from transport'\n        },\n        UPDATE_INVOICE_DATA: {\n          endpoint: '/deliveries/editInvoice/:id',\n          method: 'PUT',\n          description: 'Update invoice data in delivery'\n        },\n        CREATE_DELIVERY_FROM_TRANSPORT: {\n          endpoint: '/deliveries/createFromTransport/',\n          method: 'POST',\n          description: 'Create delivery from transport'\n        }\n      },\n      PRICE_LIST: {\n        EXCEL_REPORT: {\n          endpoint: '/reports/price-list',\n          method: 'GET',\n          description: 'Generate and send price list xls report to email'\n        }\n      },\n      OFFERS: {\n        MARK_AS_PREFERRED: {\n          endpoint: '/offers/:id/markAsPreferred',\n          method: 'PUT',\n          description: 'Marks offer with given id as preferred'\n        }\n      },\n      SURCHARGES: {\n        ACCEPT: {\n          endpoint: '/surcharge-values/:id/accept',\n          method: 'PUT',\n          description: 'Accepts the surcharge.'\n        }\n      }\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/api/checkpoint-api-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n   * Serwis odpowiedzialny za obsługę żądań API do serwera Apollo.\n   */\n  var _default = Ember.Service.extend({\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n\n    /**\n     * @param checkpoint\n     * @returns {Promise<Response>}\n     */\n    confirmCheckpoint(checkpoint, prevalidate = true) {\n      const checkpointId = checkpoint.get('id');\n      const executionDate = checkpoint.get('executionDate');\n      const params = {\n        id: checkpointId\n      };\n      const searchParams = {\n        prevalidate\n      };\n\n      if (executionDate) {\n        searchParams.executionDate = moment(executionDate).format();\n      }\n\n      if (checkpoint.get('skipGeneratingSubtasks')) {\n        searchParams.skipGeneratingSubtasks = true;\n      }\n\n      const apolloApiService = this.get('apolloApiService');\n      const path = apolloApiService.APOLLO_API.CHECKPOINTS.CONFIRM;\n      return apolloApiService.callApolloApi(path, params, null, searchParams);\n    },\n\n    saveModalData(checkpointConfirmationModal) {\n      const apolloApiService = this.get('apolloApiService');\n      const path = apolloApiService.APOLLO_API.CHECKPOINTS.SAVE_MODAL;\n      const body = JSON.stringify(checkpointConfirmationModal);\n      return apolloApiService.callApolloApi(path, null, {\n        body\n      });\n    },\n\n    rejectCheckpoint(checkpoint) {\n      const checkpointId = checkpoint.get('id');\n      const params = {\n        id: checkpointId\n      };\n      const apolloApiService = this.get('apolloApiService');\n      const path = apolloApiService.APOLLO_API.CHECKPOINTS.REJECT;\n      return apolloApiService.callApolloApi(path, params, null);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/api/weight-api-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    weightUrl: Ember.computed(function () {\n      return this.get('sessionAccount').getSettingValue('WEIGHT_URL');\n    }),\n    weightSelector: Ember.computed(function () {\n      return this.get('sessionAccount').getSettingValue('WEIGHT_SELECTOR');\n    }),\n    isMock: Ember.computed('weightUrl', function () {\n      return this.get('weightUrl').includes('api/weights/weightMock');\n    }),\n\n    parseFetchedWeight(fetchResponse) {\n      const selector = this.get('weightSelector');\n\n      if (this.get('isMock')) {\n        return Number(fetchResponse[selector]);\n      } else {\n        const html = $.parseHTML(fetchResponse);\n        const weightHTML = $(html).find(selector).html();\n        const weightText = weightHTML.split(' ')[0];\n        return Number(weightText);\n      }\n    },\n\n    async fetchWeight() {\n      if (this.get('isMock')) {\n        console.debug(`Fetching mock weight from Apollo API ${this.get('weightUrl')}`);\n        const path = this.apolloApiService.APOLLO_API.WEIGHTS.MOCK;\n        const response = await this.apolloApiService.callApolloApi(path);\n        return await response.json();\n      } else {\n        console.debug(`Fetching weight from third party API ${this.get('weightUrl')}`);\n        const requestOptions = {\n          method: 'GET',\n          cache: 'no-cache'\n        };\n        const response = await fetch(this.get('weightUrl'), requestOptions);\n        return await response.text();\n      }\n    },\n\n    callSynchronizeWeights(weightObjects) {\n      const path = this.apolloApiService.APOLLO_API.WEIGHTS.SYNCHRONIZE_WEIGHTS;\n      return this.apolloApiService.callApolloApi(path, null, {\n        body: JSON.stringify(weightObjects)\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/application-tab-active-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    currentTabAlias: null,\n    userLeftDate: null,\n    pollObject: null,\n    initialize: function () {\n      document.addEventListener('visibilitychange', () => this.visibilityChanged());\n    },\n    setOnPollHandlingObject: function (pollObject, tabAlias) {\n      if (!pollObject && tabAlias !== this.get('currentTabAlias')) {\n        return;\n      }\n\n      this.set('currentTabAlias', tabAlias);\n      this.set('pollObject', pollObject);\n    },\n    visibilityChanged: function () {\n      if (!this.pollObject) {\n        return;\n      }\n\n      if (document.visibilityState === \"hidden\") {\n        this.set('userLeftDate', this.pollObject.get('lastPoll') || new Date());\n      } else if (document.visibilityState === \"visible\") {\n        if (this.get('userLeftDate')) {\n          this.pollObject.set('lastPoll', this.get('userLeftDate'));\n          this.pollObject.onPollWrapper();\n        }\n\n        this.set('userLeftDate', null);\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/authority/authority-checker-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n\n    actionCanBePerformed(actionType, transport) {\n      const transportTypeId = transport.get('transportType.id');\n      const authorityRestrictions = this.findPositiveAuthorityRestrictionsByActionType(actionType, transportTypeId);\n      return authorityRestrictions.get('length') !== 0 && authorityRestrictions.every(ar => ar.conditionIsFulfilled(transport));\n    },\n\n    findPositiveAuthorityRestrictionsByActionType(actionType, assetId) {\n      try {\n        (true && !(!!assetId) && Ember.assert('assetId musi być zdefiniowany!', !!assetId));\n        const currentPricingPlan = this.get('sessionAccount.currentUser.company.pricingPlan');\n        return this.get('sessionAccount.authorityRestrictions').filter(ar => {\n          const referenceId = Number(assetId);\n\n          if (ar.get('assetId') !== referenceId) {\n            return false;\n          }\n\n          if (ar.get('pricingPlan') && ar.get('pricingPlan') !== currentPricingPlan) {\n            return false;\n          }\n\n          const authority = this.get('sessionAccount.currentUser.roles').find(a => a.get('name') === actionType);\n          return authority && ar.get('authority.id') === authority.get('id');\n        });\n      } catch (e) {\n        console.error(e);\n      }\n    },\n\n    findPositiveAuthorityRestrictionsForTask: function (task, actionType) {\n      const currentPricingPlan = this.get('sessionAccount.currentUser.company.pricingPlan');\n      return this.get('sessionAccount.authorityRestrictions').filter(ar => {\n        if (ar.get('task.id') !== task.get('id')) {\n          return false;\n        }\n\n        if (ar.get('pricingPlan') && ar.get('pricingPlan') !== currentPricingPlan) {\n          return false;\n        }\n\n        const authority = this.get('sessionAccount.currentUser.roles').find(a => a.get('name') === actionType);\n        return authority && ar.get('authority.id') === authority.get('id');\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/checkpoint-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    ajaxService: Ember.inject.service('ajax-service'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    checkpointApiService: Ember.inject.service('api.checkpoint-api-service'),\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service(),\n    dateUtils: Ember.inject.service('date-utils'),\n    intl: Ember.inject.service(),\n\n    async confirmAndRefresh(checkpoint, prevalidate) {\n      const checkpointId = checkpoint.get('id');\n      const executionDate = checkpoint.get('executionDate');\n      const checkpointApiService = this.get('checkpointApiService');\n      const confirmCheckpointResponse = await checkpointApiService.confirmCheckpoint(checkpoint, prevalidate);\n\n      if (!confirmCheckpointResponse.ok) {\n        return confirmCheckpointResponse;\n      } // Odświeżamy dane statusu oraz powiązanych transportów\n      // TODO: Refaktor - przenieść do osobnych serwisów\n\n\n      const fetchedRefreshedCheckpoint = await this.get('store').findRecord('checkpoint', checkpointId);\n      const fetchedRefreshedTransport = await fetchedRefreshedCheckpoint.get('transport');\n      fetchedRefreshedTransport.get('transportType').set('forcedPollRequestTime', new Date().getTime());\n\n      if (fetchedRefreshedTransport.get('isCombinedTransport')) {\n        const combinedTransports = await fetchedRefreshedTransport.get('allCombinedTransports');\n        const combinedTransportsTransportTypes = combinedTransports.map(t => t.get('transportType'));\n        combinedTransportsTransportTypes.forEach(tt => {\n          if (tt) {\n            tt.set('forcedPollRequestTime', new Date().getTime());\n          }\n        });\n      }\n\n      this.showPunctualityAlert(checkpoint, executionDate);\n      return confirmCheckpointResponse;\n    },\n\n    reject(checkpoint) {\n      const checkpointApiService = this.get('checkpointApiService');\n      return checkpointApiService.rejectCheckpoint(checkpoint);\n    },\n\n    showPunctualityAlert(checkpoint, executionDate) {\n      const punctualityAlert = this.findPunctualityAlert(checkpoint, executionDate || new Date());\n\n      if (punctualityAlert) {\n        alert(punctualityAlert);\n      }\n    },\n\n    findPunctualityAlert(checkpoint, executionDate) {\n      const interval = this.get('sessionAccount').getSettingValue('DRIVER_PUNCTUALITY_INTERVAL');\n      const showAlert = checkpoint ? checkpoint.get('task.showPunctualityAlertAfterConfirmation') : null;\n      const timeWindowStart = checkpoint ? checkpoint.get('step.timeWindow.start') : null;\n\n      if (!interval || !showAlert || !timeWindowStart) {\n        return;\n      }\n\n      const beforeStart = this.get('dateUtils').calculateDateFromInterval(new Date(executionDate), interval);\n      const afterStart = this.get('dateUtils').calculateDateFromInterval(new Date(executionDate), `-${interval}`);\n\n      if (beforeStart < timeWindowStart) {\n        return this.get('intl').t('checkpoints.confirmBeforeTime');\n      } else if (afterStart > timeWindowStart) {\n        return this.get('intl').t('checkpoints.confirmAfterTime');\n      } else {\n        return null;\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/classification-resource-pooling-service\", [\"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\n  var _default = Ember.Service.extend({\n    store: Ember.inject.service(),\n    // TODO Zastąpić przez apolloApiService\n    ajaxService: Ember.inject.service('ajax-service'),\n\n    init(pollUpdatesInterval, overwrittenHandleResponse) {\n      this._super(...arguments);\n\n      this.set('pollUpdatesInterval', pollUpdatesInterval);\n\n      if (overwrittenHandleResponse) {\n        this.set('handleResponse', overwrittenHandleResponse);\n      } else {\n        this.set('handleResponse', this.handleResponse.bind(this));\n      }\n\n      this.set('lastPoll', moment());\n      this.get('pollUpdates').perform();\n    },\n\n    cancel() {\n      this.get('pollUpdates').cancelAll();\n    },\n\n    pollUpdates: (0, _emberConcurrency.task)(function* () {\n      const self = this;\n      const pollUpdatesInterval = this.get('pollUpdatesInterval');\n\n      try {\n        while (true) {\n          yield (0, _emberConcurrency.timeout)(pollUpdatesInterval);\n          yield self.getUpdates().then(json => {\n            self.handleUpdates(json);\n          });\n        }\n      } catch (e) {\n        console.error(e);\n      }\n    }).restartable(),\n\n    getUpdates() {\n      try {\n        const self = this;\n        const params = {\n          lastPoll: moment(self.get('lastPoll')).format()\n        };\n        return this.get('ajaxService').send('/classification-resources/updates', 'GET', params);\n      } catch (e) {\n        console.error(e);\n      }\n    },\n\n    handleUpdates(json) {\n      const handleResponse = this.get('handleResponse');\n      this.set('lastPoll', json.pollTime);\n      handleResponse(json);\n    },\n\n    handleResponse(json) {\n      const self = this;\n      json.classificationResourcesIds.forEach(function (classificationResourceId) {\n        self.get('store').findRecord('classification-resource', classificationResourceId, {\n          reload: true\n        }).then(loadedClassificationResource => {\n          if (loadedClassificationResource.get('enabled') === false || loadedClassificationResource.get('state') === loadedClassificationResource.STATE_NAMES.COMPLETED) {\n            console.debug(`Object ClassificationResource: ${loadedClassificationResource.get('id')} with state: ${loadedClassificationResource.get('state')} has been removed.`);\n            self.store.unloadRecord(loadedClassificationResource);\n          } else {\n            console.debug(`Object ClassificationResource: ${loadedClassificationResource.get('id')} with state: ${loadedClassificationResource.get('state')} has been refreshed.`);\n          }\n        });\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/config-service\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    /**\n     * Get a configuration value with optional default\n     * @param {String} key - The config key to retrieve\n     * @param {*} defaultValue - Default value to return if key is not found\n     * @returns {*} The config value or default\n     */\n    get(key, defaultValue = null) {\n      return key in _environment.default ? _environment.default[key] : defaultValue;\n    },\n\n    /**\n     * Check if a configuration value exists\n     * @param {String} key - The config key to check\n     * @returns {Boolean} Whether the key exists\n     */\n    has(key) {\n      return key in _environment.default;\n    },\n\n    environment: Ember.computed(function () {\n      return _environment.default.environment;\n    }),\n    isProduction: Ember.computed('environment', function () {\n      return this.get('environment') === 'production';\n    }),\n    isDevelopment: Ember.computed('environment', function () {\n      return this.get('environment') === 'development';\n    }),\n    isTest: Ember.computed('environment', function () {\n      return this.get('environment') === 'test';\n    })\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/cookies\", [\"exports\", \"ember-cookies/services/cookies\"], function (_exports, _cookies) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _cookies.default;\n  _exports.default = _default;\n});","define(\"apollo/services/currency-exchange-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    store: Ember.inject.service(),\n    currencies: Ember.computed('', function () {\n      return this.get('store').peekAll('currency');\n    }),\n\n    toPLN(amount, currency) {\n      if (!amount || !currency) {\n        throw new Error('Do przeliczenia wymagana jest wartość oraz symbol waluty');\n      }\n\n      if (currency === 'PLN') {\n        return amount;\n      }\n\n      const savedCurrency = this.currencies.filter(curr => {\n        return curr.symbol === currency;\n      }).get('firstObject');\n\n      if (!savedCurrency) {\n        throw new Error('Platforma nie obsługuje waluty :: ' + currency);\n      }\n\n      if (!savedCurrency.get('exchangeRate')) {\n        throw new Error('Nie mamy zapisanego kursu dla waluty :: ' + currency);\n      }\n\n      return Number(amount) * savedCurrency.get('exchangeRate');\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/date-utils\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    formatDate(date, format) {\n      format = format || this.getBaseFullFormat();\n      return moment(date).format(format);\n    },\n\n    calculateDateFromInterval(date, interval) {\n      const timeIntervals = interval.match(/\\d+[smhdw]/g);\n      const resultDate = new Date(date);\n\n      if (timeIntervals.length > 1) {\n        timeIntervals.forEach(interval => {\n          this.adjustDateByInterval(resultDate, interval);\n        });\n      } else {\n        this.adjustDateByInterval(resultDate, interval);\n      }\n\n      return resultDate;\n    },\n\n    adjustDateByInterval(date, interval) {\n      const isNegative = interval.startsWith('-');\n      const value = parseInt(isNegative ? interval.slice(1, -1) : interval.slice(0, -1));\n      const timeUnit = interval.slice(-1);\n      const multiplier = this.findMultiplier(timeUnit);\n      const totalSeconds = value * multiplier;\n      const currentSeconds = date.getSeconds();\n\n      if (isNegative) {\n        date.setSeconds(currentSeconds - totalSeconds);\n      } else {\n        date.setSeconds(currentSeconds + totalSeconds);\n      }\n    },\n\n    convertToSeconds(duration, timeUnit) {\n      return duration * this.findMultiplier(timeUnit);\n    },\n\n    findMultiplier(timeUnit) {\n      switch (timeUnit) {\n        case 's':\n          return 1;\n\n        case 'm':\n          return 60;\n\n        case 'h':\n          return 60 * 60;\n\n        case 'd':\n          return 60 * 60 * 24;\n\n        case 'w':\n          return 60 * 60 * 24 * 7;\n      }\n    },\n\n    isNegative(interval) {\n      return interval.search(\"-\") > -1;\n    },\n\n    getAbsoluteValue(interval) {\n      return this.isNegative(interval) ? interval.slice(1) : interval;\n    },\n\n    getBaseFullFormat() {\n      return 'DD-MM-YYYY HH:mm';\n    },\n\n    getBaseDateFormat() {\n      return 'DD-MM-YYYY';\n    },\n\n    getBaseHourFormat() {\n      return 'HH:mm';\n    },\n\n    getDefaultDateFormat() {\n      return 'DD.MM.YYYY HH:mm';\n    },\n\n    getSortedTimeStringList(timeStringList) {\n      return timeStringList.split(';').sort((a, b) => {\n        return this.calculateDateFromInterval(new Date(), a) - this.calculateDateFromInterval(new Date(), b);\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/date/date-formatter-service\", [\"exports\", \"apollo/utils/date-formatter\", \"apollo/utils/functions/add-leading-zeros\"], function (_exports, _dateFormatter, _addLeadingZeros) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    localeTimezoneHolder: Ember.inject.service('date.locale-timezone-holder-service'),\n\n    /**\n     * @param {Date} date\n     * @param {object} options\n     * @param {string} options.dateDelimiter\n     * @returns {string} ISO 8601 date only format (yyyy-MM-dd)\n     */\n    formatDateOnlyISO(date, options = {}) {\n      const month = (0, _addLeadingZeros.addLeadingZeroes)(date.getMonth() + 1, 2); // months in JS are 0-based\n\n      const day = (0, _addLeadingZeros.addLeadingZeroes)(date.getDate(), 2);\n      const year = (0, _addLeadingZeros.addLeadingZeroes)(date.getFullYear(), 4);\n      const dateDelimiter = options.dateDelimiter ? options.dateDelimiter : '-';\n\n      if (dateDelimiter !== '-' || dateDelimiter !== '') {\n        console.warn('Invalid ISO delimiter!');\n      }\n\n      return `${year}${dateDelimiter}${month}${dateDelimiter}${day}`;\n    },\n\n    formatDefaultDateTime(date, options = {}) {\n      const formatter = this._getFormatterWithOptions(options);\n\n      return formatter.formatDefaultDateTime(date).valueOr('Invalid Date');\n    },\n\n    formatFullDateTime(date, options = {}) {\n      const formatter = this._getFormatterWithOptions(options);\n\n      return formatter.formatFullDateTime(date).valueOr('Invalid Date');\n    },\n\n    formatFullDate(date, options = {}) {\n      const formatter = this._getFormatterWithOptions(options);\n\n      return formatter.formatFullDate(date).valueOr('Invalid Date');\n    },\n\n    formatMediumDate(date, options = {}) {\n      const formatter = this._getFormatterWithOptions(options);\n\n      return formatter.formatMediumDate(date).valueOr('Invalid Date');\n    },\n\n    formatShortDate(date, options = {}) {\n      const formatter = this._getFormatterWithOptions(options);\n\n      return formatter.formatShortDate(date).valueOr('Invalid Date');\n    },\n\n    formatFullTime(date, options = {}) {\n      const formatter = this._getFormatterWithOptions(options);\n\n      return formatter.formatFullTime(date).valueOr('Invalid Date');\n    },\n\n    formatShortTime(date, options = {}) {\n      const formatter = this._getFormatterWithOptions(options);\n\n      return formatter.formatShortTime(date).valueOr('Invalid Date');\n    },\n\n    formatCustom(date, formatOptions = {}, options = {}) {\n      const formatter = this._getFormatterWithOptions(options);\n\n      return formatter.formatCustom(date, formatOptions).valueOr('Invalid Date');\n    },\n\n    /**\n     * @param {Object} options - Override options\n     * @param {string} [options.locale] - Locale override\n     * @param {string} [options.timeZone] - Timezone override\n     * @returns {DateFormatter} A formatter instance\n     * @private\n     */\n    _getFormatterWithOptions({\n      locale,\n      timeZone\n    } = {}) {\n      const effectiveLocale = locale || this.localeTimezoneHolder.locale;\n      const effectiveTimeZone = timeZone || this.localeTimezoneHolder.timeZone;\n      return new _dateFormatter.default(effectiveLocale, effectiveTimeZone);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/date/locale-timezone-holder-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n   * Service for managing user locale and timezone preferences.\n   * Acts as a central holder for locale and timezone settings that\n   * can be used by other services and components.\n   */\n  var _default = Ember.Service.extend({\n    sessionAccount: Ember.inject.service(),\n\n    /**\n     * @returns {string} BCP 47 lanuage tag\n     * @see {@link _detectBrowserLocale}\n     */\n    locale: Ember.computed(function () {\n      return null;\n    }),\n\n    /**\n     * @returns {string} IANA TimeZone ID\n     * @see {@link _detectBrowserTimeZone}\n     */\n    timeZone: Ember.computed(function () {\n      return null;\n    }),\n\n    /**\n     * Event target for locale change notifications\n     * Allows services to subscribe to locale changes\n     * @type {EventTarget}\n     * @private\n     */\n    localeChangeEventTarget: null,\n\n    /**\n     * Event target for timezone change notifications\n     * Allows services to subscribe to timezone changes\n     * @type {EventTarget}\n     * @private\n     */\n    timeZoneChangeEventTarget: null,\n\n    init() {\n      this._super(...arguments);\n\n      this.localeChangeEventTarget = new EventTarget();\n      this.timeZoneChangeEventTarget = new EventTarget();\n      this.setLocale(this._detectBrowserLocale());\n      this.setTimeZone(this._detectBrowserTimeZone());\n    },\n\n    setLocale(locale) {\n      console.debug(`Changing locale from ${this.locale} to ${locale}`);\n      this.set('locale', locale); // Notify subscribers via event\n\n      this.localeChangeEventTarget.dispatchEvent(new CustomEvent('localeChanged', {\n        detail: {\n          locale\n        }\n      }));\n\n      this._persistUserPreference('locale', locale);\n    },\n\n    setTimeZone(timeZone) {\n      console.debug(`Changing timezone from ${this.timeZone} to ${timeZone}`);\n      this.set('timeZone', timeZone); // Notify subscribers via event\n\n      this.timeZoneChangeEventTarget.dispatchEvent(new CustomEvent('timeZoneChanged', {\n        detail: {\n          timeZone\n        }\n      }));\n\n      this._persistUserPreference('timeZone', timeZone);\n    },\n\n    /**\n     * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf#supported_time_zone_identifiers}\n     * @returns {string[]}\n     */\n    supportedTimeZones() {\n      return Intl.supportedValuesOf('timeZone');\n    },\n\n    use12HourClock() {\n      const formattedHour = new Intl.DateTimeFormat(this.locale, {\n        hour: 'numeric'\n      }).format();\n      return formattedHour.includes('AM') || formattedHour.includes('PM');\n    },\n\n    /**\n     * Subscribe to locale changes\n     * @param {Function} callback - Function to call when locale changes\n     * @returns {Function} Unsubscribe function\n     */\n    onLocaleChange(callback) {\n      const handler = event => callback(event.detail.locale);\n\n      this.localeChangeEventTarget.addEventListener('localeChanged', handler); // Return unsubscribe function\n\n      return () => {\n        this.localeChangeEventTarget.removeEventListener('localeChanged', handler);\n      };\n    },\n\n    /**\n     * Subscribe to timezone changes\n     * @param {Function} callback - Function to call when timezone changes\n     * @returns {Function} Unsubscribe function\n     */\n    onTimeZoneChange(callback) {\n      const handler = event => callback(event.detail.timeZone);\n\n      this.timeZoneChangeEventTarget.addEventListener('timeZoneChanged', handler); // Return unsubscribe function\n\n      return () => {\n        this.timeZoneChangeEventTarget.removeEventListener('timeZoneChanged', handler);\n      };\n    },\n\n    /**\n     * Detect the user's browser locale setting\n     * Uses the navigator.languages array if available, falling back to navigator.language\n     *\n     * @returns {string} Detected locale string (e.g., 'en-US') as BCP 47 lanuage tag\n     * @see BCP 47 - https://en.wikipedia.org/wiki/IETF_language_tag\n     * @private\n     */\n    _detectBrowserLocale() {\n      // Try to get from navigator - browsers provide different ways to access this\n      const browserLocales = navigator.languages || [navigator.language || navigator.userLanguage]; // Use the first (most preferred) locale or fall back to 'en-US'\n\n      const detectedLocale = browserLocales[0] || 'en-US';\n      console.debug(`Detected browser locale: ${detectedLocale}`);\n      return detectedLocale;\n    },\n\n    /**\n     * Detect the user's browser timezone setting\n     * Uses the Intl.DateTimeFormat API to get the resolved timezone\n     *\n     * @returns {string} Detected timezone string (e.g., 'America/New_York') as IANA TimeZone ID\n     * @see IANA time zone database - https://www.iana.org/time-zones\n     * @private\n     */\n    _detectBrowserTimeZone() {\n      // Use Intl API to get the browser's timezone or fall back to UTC\n      const detectedTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone || 'UTC';\n      console.debug(`Detected browser timezone: ${detectedTimeZone}`);\n      return detectedTimeZone;\n    },\n\n    _getPersistedUserPreference(key) {\n      const currentUser = this.get('sessionAccount.currentUser');\n\n      if (currentUser) {\n        return this.get('sessionAccount').get(key);\n      }\n    },\n\n    _persistUserPreference(key, value) {\n      const currentUser = this.get('sessionAccount.currentUser');\n\n      if (currentUser) {\n        this.get('sessionAccount').set(key, value);\n      }\n    },\n\n    /**\n     * Clean up event listeners when the service is destroyed\n     *\n     * @method willDestroy\n     * @override\n     */\n    willDestroy() {\n      this._super.willDestroy();\n\n      console.debug('Cleaning up before destruction');\n      this.localeChangeEventTarget = null;\n      this.timeZoneChangeEventTarget = null;\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/delivery-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    actionProgressToast: Ember.inject.service('action-progress-service'),\n    sessionAccount: Ember.inject.service('session-account'),\n    intl: Ember.inject.service(),\n    store: Ember.inject.service(),\n\n    showTransportCreatedToast(delivery) {\n      const weight = this.sessionAccount.getSettingValue('MIN_WEIGHT_TO_CREATE_TRANSPORT');\n\n      if (!weight || isNaN(weight) || Number(delivery.get('grossWeight') || 0) < weight) {\n        return;\n      }\n\n      this.actionProgressToast.showSuccessToast(this.intl.t('delivery.weightAutoCreated', {\n        deliveryNumber: delivery.get('deliveryNumber'),\n        weight: weight + ' kg'\n      }));\n    },\n\n    async createNewBasicTransport(transport) {\n      const values = transport.get('customFields').map(a => {\n        return a.serialize();\n      });\n      const aoc = await transport.get('amountOfCover');\n      const response = await this.apolloApiService.callApolloApi(this.apolloApiService.APOLLO_API.PLANNING.CREATE_BASIC_TRANSPORT, null, {\n        body: JSON.stringify({\n          values,\n          transportTypeId: transport.get('transportType.id'),\n          routeTemplate: transport.get('routeTemplate.id'),\n          amountOfCover: aoc ? aoc.serialize() : null\n        })\n      });\n      const json = await response.json();\n\n      if (response.ok && json.id) {\n        this.store.pushPayload(json.transport);\n      }\n    },\n\n    async handleUpdatedDeliveryCustomFields(delivery) {\n      if (!delivery.get('deliveryCustomFieldValues.length')) {\n        return;\n      }\n\n      const cfCopy = await delivery.get('deliveryCustomFieldValues').slice();\n      cfCopy.forEach(cf => {\n        if (cf !== undefined && !cf.get('id')) {\n          console.debug(`Unloading redundant delivery cf ${delivery.get('id')}..`);\n          delivery.get('deliveryCustomFieldValues').removeObject(cf);\n          cf.unloadRecord();\n        } else {\n          cf.reload();\n        }\n      });\n    },\n\n    handleUpdatedDeliveryPackaging(delivery) {\n      if (!delivery.get('packaging.length')) {\n        return;\n      }\n\n      delivery.get('packaging').then(pck => {\n        const cpCopy = pck.slice(0);\n        cpCopy.forEach(cp => {\n          if (cp !== undefined && !cp.get('id')) {\n            console.debug(`Unloading redundant delivery packaging for delivery ${delivery.get('id')}..`);\n            delivery.get('packaging').removeObject(cp);\n            cp.unloadRecord();\n          } else {\n            cp.reload();\n          }\n        });\n      });\n    },\n\n    autoGenerateDeliveryNumber: async function (delivery) {\n      if (await delivery.get('deliverySetting.autoGenerateDeliveryNumber')) {\n        let randomDeliveryNumber;\n        const response = await this.get('apolloApiService').callApolloApi(this.get('apolloApiService').APOLLO_API.PLANNING.GENERATE_RANDOM_DELIVERY_NUMBER, null, null);\n\n        if (response.ok) {\n          const json = await response.json();\n          randomDeliveryNumber = json.deliveryNumber;\n        } else {\n          randomDeliveryNumber = window.crypto.randomUUID();\n        }\n\n        if (!randomDeliveryNumber) {\n          randomDeliveryNumber = '0000000-' + (Math.random() + 1).toString(36).substring(9) + '-' + (Math.random() + 1).toString(36).substring(9) + '-' + (Math.random() + 1).toString(36).substring(9) + '-' + delivery.get('transportType.id');\n        }\n\n        delivery.set('deliveryNumber', randomDeliveryNumber);\n      }\n    },\n    createSimplePackaging: function (delivery) {\n      if (delivery.get('id') || !delivery.get('deliverySetting.showSimplePackagingSection')) {\n        return;\n      }\n\n      this.get('store').peekAll('packageTypeTransportType').filter(i => i.get('transportType.id') === delivery.get('transportType.id')).forEach(type => {\n        const deliveryPackaging = this.get('store').createRecord('deliveryPackaging', {\n          loadStep: this.get('delivery.loadStep'),\n          unloadStep: this.get('delivery.unloadStep'),\n          packageType: type.get('packageType'),\n          enabled: true,\n          required: type.get('required'),\n          quantity: 0\n        });\n        delivery.get('packaging').addObject(deliveryPackaging);\n      });\n    },\n    findCustomFieldPairs: function (definitions) {\n      const pairs = [];\n\n      for (let i = 0; i < definitions.get('length'); i++) {\n        const definition = definitions.objectAt(i);\n        const value = this.store.createRecord('deliveryCustomFieldValue', {\n          definition\n        });\n        pairs[i] = {\n          value,\n          definition\n        };\n      }\n\n      return pairs;\n    },\n\n    handleDeliveryCustomFields(delivery, customFieldsPairs) {\n      const deliveryCustomFields = delivery.get('deliveryCustomFieldValues');\n      customFieldsPairs.forEach(pair => {\n        let deliveryCf = deliveryCustomFields.filterBy('definition.id', pair.definition.get('id')).get('firstObject');\n\n        if (!deliveryCf) {\n          deliveryCf = this.store.createRecord('delivery-custom-field-value', {\n            definition: pair.definition,\n            delivery\n          });\n          deliveryCustomFields.pushObject(deliveryCf);\n        }\n\n        if (pair.definition.isSelectType) {\n          deliveryCf.set('option', pair.value.get('option'));\n        } else {\n          deliveryCf.set('value', pair.value.value);\n        }\n      });\n    },\n\n    reloadDeliveries: async function (transport) {\n      return transport.get('deliveries').then(deliveries => {\n        deliveries.forEach(d => {\n          d.get('packaging').then(packaging => {\n            packaging.forEach(p => {\n              p.reload();\n            });\n          });\n        });\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/drag-and-drop-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    dragOver(event, element) {\n      event.stopPropagation();\n      const elementClassList = element.classList;\n\n      if (!elementClassList.contains('documents-dragover-zone')) {\n        elementClassList.add('documents-dragover-zone');\n      }\n    },\n\n    dragLeave(event, element) {\n      event.stopPropagation();\n      const elementClassList = element.classList;\n      elementClassList.remove('documents-dragover-zone');\n    },\n\n    drop(event, element) {\n      const elementClassList = element.classList;\n\n      if (elementClassList.contains('documents-dragover-zone')) {\n        elementClassList.remove('documents-dragover-zone');\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/drag-coordinator\", [\"exports\", \"ember-drag-drop/services/drag-coordinator\"], function (_exports, _dragCoordinator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _dragCoordinator.default;\n  _exports.default = _default;\n});","define(\"apollo/services/ember-data/record-manager\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n   * Service for managing Ember Data records in the application.\n   * Provides utilities for record lifecycle operations.\n   */\n  var _default = Ember.Service.extend({\n    store: Ember.inject.service(),\n\n    /**\n     * Removes newly created (unsaved) records of a specific model type from the store.\n     * This is specifically for records with the isNew flag, which need to be destroyed\n     * rather than just unloaded.\n     *\n     * @param {String} modelName - The name of the model to clean up (e.g., 'step', 'timeWindow')\n     * @param {Function} [filterFn=()=>true] - Optional filter function to determine which new records to remove\n     * @returns {Number} The number of records that were removed\n     *\n     * @example\n     * // Remove all newly created step records\n     * this.recordManager.removeNewRecords('step');\n     *\n     * @example\n     * // Remove newly created steps associated with a specific transport\n     * this.recordManager.removeNewRecords('step', step =>\n     *   step.transport && step.transport.id === transportId\n     * );\n     */\n    removeNewRecords(modelName, filterFn = () => true) {\n      const records = this.store.peekAll(modelName).filter(record => record.isNew).filter(filterFn);\n      const count = records.length;\n      records.forEach(record => {\n        record.deleteRecord();\n      });\n      return count;\n    },\n\n    /**\n     * Clears a relationship on a record.\n     * Works with both hasMany and belongsTo relationships.\n     *\n     * @param {DS.Model} record - The record with the relationship\n     * @param {String} relationshipName - The name of the relationship to clear\n     *\n     * @example\n     * // Clear the steps relationship on a transport\n     * this.recordManager.clearRelationship(transport, 'steps');\n     */\n    clearRelationship(record, relationshipName) {\n      if (record[relationshipName] && typeof record[relationshipName].clear === 'function') {\n        record[relationshipName].clear();\n      }\n    },\n\n    /**\n     * Adds records to a relationship.\n     * Handles both hasMany and belongsTo relationships.\n     *\n     * @param {DS.Model} parentRecord - The parent record\n     * @param {String} relationshipName - The name of the relationship\n     * @param {DS.Model|Array} records - Record or array of records to add\n     *\n     * @example\n     * // Add multiple steps to a transport\n     * this.recordManager.addToRelationship(transport, 'steps', stepRecords);\n     *\n     * @example\n     * // Set a single timeWindow on a step\n     * this.recordManager.addToRelationship(step, 'timeWindow', timeWindowRecord);\n     */\n    addToRelationship(parentRecord, relationshipName, records) {\n      if (!records) return;\n\n      if (Array.isArray(records)) {\n        if (parentRecord[relationshipName] && typeof parentRecord[relationshipName].pushObjects === 'function') {\n          parentRecord[relationshipName].pushObjects(records);\n        }\n      } else {\n        if (parentRecord[relationshipName] && typeof parentRecord[relationshipName].pushObject === 'function') {\n          parentRecord[relationshipName].pushObject(records);\n        }\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/ember-data/simple-model-mapper\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n   * Service for mapping properties between models or objects.\n   * Handles both Ember objects and plain JavaScript objects.\n   */\n  var _default = Ember.Service.extend({\n    /**\n     * Maps properties from source to target using a property map.\n     * Handles both Ember objects and plain JavaScript objects.\n     *\n     * @param {Object} source - Source object or Ember object\n     * @param {Object} target - Target object or Ember object\n     * @param {Object} propertyMap - Mapping of target properties to source properties\n     * @returns {Object} The updated target object\n     *\n     * @example\n     * // Map properties from route to transport\n     * this.simpleModelMapper.mapProperties(route, transport, {\n     *   'name': 'name',\n     *   'description': 'description',\n     *   'targetStatus': 'sourceStatus'\n     * });\n     */\n    mapProperties(source, target, propertyMap) {\n      if (!source || !target || !propertyMap) {\n        return target;\n      }\n\n      Object.entries(propertyMap).forEach(([targetProp, sourceProp]) => {\n        const value = this.getPropertyValue(source, sourceProp);\n\n        if (value !== undefined) {\n          if (typeof target.set === 'function') {\n            // Ember object\n            target.set(targetProp, value);\n          } else {\n            // Plain JavaScript object\n            target[targetProp] = value;\n          }\n        }\n      });\n      return target;\n    },\n\n    /**\n     * Gets a property value.\n     * Handles both Ember objects and plain JavaScript objects.\n     * Does not work with nested properties (e.g. step.idx)\n     * @param {Object} obj - The object to get property from\n     * @param {String} prop - Property name\n     * @returns {*} The property value or undefined\n     *\n     * @example\n     * // Get a property step of obj Object\n     * const value = this.simpleModelMapper.getPropertyValue(obj, 'step');\n     */\n    getPropertyValue(obj, prop) {\n      if (!obj || !prop) return undefined;\n      return obj[prop];\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/enum-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    incoterms: Ember.A(['DAP', 'FCA', 'CFR', 'CIF', 'CIP', 'CPT', 'DAF', 'DDP', 'DDU', 'DEQ', 'DES', 'EXW', 'FAS', 'FOB', 'DAT']),\n    indexQuantityTypeAliases: Ember.A(['PALLETS_WEIGHT', 'PALLETS_COUNT', 'CARTONS_COUNT'])\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/error-service\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    scrollToFirstError(containerSelector = \"#main-modal\", errorClass = \".has-error\") {\n      //Dajemy opóźnienie, żeby błędy zdążyły się oznaczyć w formularzu\n      setTimeout(() => {\n        const container = (0, _jquery.default)(containerSelector);\n        const errorFields = (0, _jquery.default)(errorClass).not(\".panel-title\");\n\n        if (errorFields.length === 0) {\n          return;\n        }\n\n        const errorField = errorFields.first(); // jeśli pole znajduje się w zwiniętym panelu - rozwijamy go\n\n        const parentPanel = errorField.parents(\".panel\");\n\n        if (parentPanel.length) {\n          const panel = parentPanel.find(\".panel-collapse\");\n          panel.collapse('show');\n        }\n\n        container.animate({\n          scrollTop: errorField.offset().top - container.offset().top + container.scrollTop()\n        }, \"slow\");\n      }, 100);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/fresh-widget\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    loadWidget() {\n      try {\n        const integrationEnabled = _environment.default.APP.integrations.freshWidget;\n\n        if (!integrationEnabled) {\n          return console.log(`Integracja z Fresh Widget jest wyłączona.`);\n        }\n\n        if (typeof FreshWidget === 'undefined') {\n          return console.log(`Nie mamy dostępu do wtyczki FreshWidget, przerywamy inicjację.`);\n        }\n\n        console.log(`Inicjujemy wtyczkę Fresh Widget...`);\n        FreshWidget.init(\"\", {\n          \"queryString\": \"&widgetType=popup&formTitle=Wsparcie+techniczne&submitTitle=Wy%C5%9Blij&submitThanks=Dzi%C4%99kujemy+za+zg%C5%82oszenie&captcha=yes&searchArea=no\",\n          \"utf8\": \"✓\",\n          \"widgetType\": \"popup\",\n          \"buttonType\": \"text\",\n          \"buttonText\": \"Support\",\n          \"buttonColor\": \"white\",\n          \"buttonBg\": \"#f57004\",\n          \"alignment\": \"2\",\n          \"offset\": \"80%\",\n          \"submitThanks\": \"Dziękujemy za zgłoszenie\",\n          \"formHeight\": \"550px\",\n          \"captcha\": \"yes\",\n          \"url\": \"https://logintegra.freshdesk.com\",\n          \"loadOnEvent\": \"immediate\"\n        });\n      } catch (e) {\n        console.error(e);\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/grouping-log-service\", [\"exports\", \"apollo/utils/objects/groupedLog\"], function (_exports, _groupedLog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    session: Ember.inject.service('session'),\n    sessionAccount: Ember.inject.service('session-account'),\n\n    groupLogs(logs) {\n      const groupedLogs = [];\n      logs.forEach(log => {\n        const newGroupedLog = this.createGroupedLog(log);\n        const matchingGroupedLog = groupedLogs.find(gl => gl.isMatch(newGroupedLog));\n\n        if (matchingGroupedLog) {\n          matchingGroupedLog.get('changes').push(log);\n        } else {\n          groupedLogs.push(newGroupedLog);\n        }\n      });\n      return groupedLogs;\n    },\n\n    createGroupedLog: function (log) {\n      return _groupedLog.default.create({\n        dateCreated: log.get('dateCreated'),\n        actor: log.get('actor'),\n        persistedObjectVersion: log.get('persistedObjectVersion'),\n        transportId: log.get('transportId'),\n        customFieldDefinitionId: log.get('customFieldDefinitionId'),\n        userActivityTransportLabel: log.get('userActivityTransportLabel'),\n        eventLabel: log.get('eventLabel'),\n        className: log.get('className'),\n        persistedObjectId: log.get('persistedObjectId'),\n        eventName: log.get('eventName'),\n        changes: [log]\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/gus-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    ajaxService: Ember.inject.service('ajax-service'),\n    // TODO Rozwikłać i zastąpić przez apolloApiService\n    verifyNip: async function (ibanSymbol, nip) {\n      if (!nip) {\n        return null;\n      }\n\n      const preparedNip = this.prepareNip(nip, ibanSymbol);\n      const response = await this.get('ajaxService').send(`/gus/verify?nip=${preparedNip}&ibanSymbol=${ibanSymbol}`);\n\n      if (response.error) {\n        throw new Error(response.error);\n      }\n\n      return response || null;\n    },\n    prepareNip: function (nip, ibanSymbol) {\n      const preparedNip = nip.toUpperCase().trim();\n\n      if (preparedNip.startsWith(ibanSymbol)) {\n        return preparedNip.replace(ibanSymbol, '');\n      }\n\n      return preparedNip;\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/indexes-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    store: Ember.inject.service(),\n    addIndexToTransport: function (transport, isEnabled) {\n      const newIndex = this.get('store').createRecord('index', {\n        transport,\n        enabled: isEnabled\n      });\n      transport.get('transportType.indexQuantityTypes').forEach(qt => {\n        this.get('store').createRecord('indexQuantity', {\n          indexQuantityType: qt,\n          index: newIndex\n        });\n      });\n\n      if (transport.get('contractors.length') === 1) {\n        newIndex.set('step', transport.get('contractorSteps.firstObject'));\n      }\n\n      transport.get('indexes').addObject(newIndex);\n      return newIndex;\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/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(\"apollo/services/language-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    findProperLanguageVersion: function (localVersion, englishVersion) {\n      const companyLanguage = this.get('sessionAccount').getSettingValue(\"LOCAL_PRINCIPAL_LANGUAGE\") || \"pl\";\n      const browserLanguage = this.get('intl.locale')[0];\n      const isLocalLanguage = companyLanguage === browserLanguage;\n      const isEnglish = [companyLanguage, browserLanguage].some(l => l === 'en');\n\n      if (isLocalLanguage && !isEnglish) {\n        return localVersion;\n      } else {\n        return englishVersion;\n      }\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/language/ui-language-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service(),\n    configService: Ember.inject.service(),\n    localeTimezoneHolder: Ember.inject.service('date.locale-timezone-holder-service'),\n    availableUILanguages: Object.freeze(['cs', 'de', 'es', 'en'\n    /* en-GB? */\n    , 'it', 'pl', 'tr']),\n    defaultUILanguage: Ember.computed(function () {\n      return this.get('configService').get('DEFAULT_UI_LANGUAGE', 'en');\n    }),\n    useLocalTranslations: Ember.computed(function () {\n      return this.get('configService').get('useLocalTranslations');\n    }),\n    translationsUrl: Ember.computed(function () {\n      return this.get('configService').get('translationsUrl', 'https://translations.logintegra.eu');\n    }),\n    _localeChangeUnsubscribe: null,\n\n    async initialize() {\n      // Set UI language\n      const preferredUILanguage = this._getUserPreferredUILanguage();\n\n      await this._setUILanguage(preferredUILanguage);\n      this._localeChangeUnsubscribe = this.get('localeTimezoneHolder').onLocaleChange(this._handleLocaleChange.bind(this));\n    },\n\n    isUILanguageSupported(langCode) {\n      return this.get('availableUILanguages').includes(langCode);\n    },\n\n    /**\n     * @private\n     */\n    _getUserPreferredUILanguage() {\n      const locale = this.get('localeTimezoneHolder').locale;\n\n      const localeNoRegion = this._parseToLangWithoutRegion(locale); // We do not distinguish British English from American English\n\n\n      if (localeNoRegion && this.isUILanguageSupported(localeNoRegion)) {\n        return localeNoRegion;\n      } // Safely fallback to English\n\n\n      return 'en';\n    },\n\n    /**\n     * @private\n     */\n    _parseToLangWithoutRegion(locale) {\n      return locale.split('-')[0];\n    },\n\n    /**\n     * Handle locale changes from the localeTimezone service\n     * @param {string} locale - New locale\n     * @private\n     */\n    _handleLocaleChange(locale) {\n      this._setUILanguage(this._parseToLangWithoutRegion(locale));\n    },\n\n    /**\n     * @private\n     */\n    async _setUILanguage(langCode) {\n      // Ensure we have a valid language\n      const language = this.isUILanguageSupported(langCode) ? langCode : this.get('defaultUILanguage');\n\n      try {\n        // Load translations for the language\n        await this._loadTranslations(language); // Set up Intl with the language and English as fallback for UI translation\n\n        const locales = [language, this.get('defaultUILanguage')];\n        this.get('intl').setLocale(locales);\n\n        if (typeof moment !== 'undefined') {\n          moment.locale(language || this.get('defaultUILanguage'));\n        }\n\n        console.debug(`UI Language set to: ${language}`);\n        return language;\n      } catch (error) {\n        console.error(`Failed to set UI language ${language}:`, error);\n        return this._setUILanguage(this.get('defaultUILanguage'));\n      }\n    },\n\n    async _loadTranslations(language) {\n      try {\n        // First load English as fallback if not already loaded and language isn't English\n        if (language !== 'en') {\n          await this._loadLanguageTranslations('en');\n        } // Then load the requested language\n\n\n        await this._loadLanguageTranslations(language);\n      } catch (error) {\n        console.error(`Failed to load translations for ${language}:`, error); // Add empty translations to prevent errors\n\n        this.get('intl').addTranslations(language, {});\n      }\n    },\n\n    async _loadLanguageTranslations(language) {\n      // Determine source based on configuration\n      const localTranslationsFolderName = 'translations';\n      const source = this.get('useLocalTranslations') ? localTranslationsFolderName : this.get('translationsUrl');\n\n      try {\n        const response = await fetch(`${source}/${language}.json`);\n\n        if (response.ok) {\n          const translations = await response.json();\n          this.get('intl').addTranslations(language, translations);\n          console.debug(`Loaded translations for ${language} from ${source}`);\n        } else {\n          console.warn(`No translations found for ${language} at ${source}`);\n          this.get('intl').addTranslations(language, {});\n        }\n      } catch (error) {\n        console.error(`Error loading translations for ${language} from ${source}:`, error);\n        this.get('intl').addTranslations(language, {});\n      }\n    },\n\n    willDestroy() {\n      this._super.willDestroy();\n\n      if (this._localeChangeUnsubscribe) {\n        this._localeChangeUnsubscribe();\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/modal-dialog\", [\"exports\", \"apollo/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function computedFromConfig(prop) {\n    return Ember.computed(function () {\n      return _environment.default['ember-modal-dialog'] && _environment.default['ember-modal-dialog'][prop];\n    });\n  }\n\n  var _default = Ember.Service.extend({\n    hasEmberTether: computedFromConfig('hasEmberTether'),\n    hasLiquidWormhole: computedFromConfig('hasLiquidWormhole'),\n    hasLiquidTether: computedFromConfig('hasLiquidTether'),\n    destinationElementId: null // injected by initializer\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/modal-service\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    MODALS: Object.freeze({\n      DELIVERIES: {\n        CREATE: 'planning.modals.create',\n        CREATE_DELIVERY_FROM_TRANSPORT: 'planning.modals.create-from-transport',\n        ADD_TRANSPORT: 'components.planning.modals.add-transport',\n        EDIT_INVOICE: 'delivery.modals.edit-invoice'\n      },\n      SURCHARGE_DEFINITION: {\n        FORM: 'surcharge-definitions.modals.form'\n      },\n      TRUCK_TYPE: {\n        FORM: 'truck-types.modals.form'\n      },\n      DELIVERY_PACKAGING: {\n        FORM: 'components.transport.delivery-section.delivery-packaging-form'\n      },\n      TRANSPORT: {\n        DETACH_ALL_DELIVERIES: 'components.transport.detach-all-deliveries',\n        CREATE_TRANSPORT: 'transports.modals.create-transport',\n        SURCHARGES_FORM: 'components.transport.surcharges-section.modal'\n      },\n      TRANSACTION_UNIT_AMOUNT_TYPE: {\n        FORM: 'transaction-unit-amount-types.modals.form'\n      }\n    }),\n\n    showModal(modalName, model, outletName = 'main-modal') {\n      const app = Ember.getOwner(this).lookup('route:application');\n      console.debug(`Pokazujemy modal ${modalName}, ${outletName}...`);\n      app.render(modalName, {\n        into: 'application',\n        outlet: outletName,\n        model\n      });\n    },\n\n    hideModal(outletName = 'main-modal') {\n      console.debug(`Ukrywamy i usuwamy modal #${outletName} (application)...`);\n      (0, _jquery.default)(`#${outletName}`).modal('hide');\n      (0, _jquery.default)('.modal-backdrop').remove();\n    },\n\n    refreshModel() {\n      const app = Ember.getOwner(this).lookup('route:application');\n      app.send('refreshModel');\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/moment\", [\"exports\", \"ember-moment/services/moment\", \"apollo/config/environment\"], function (_exports, _moment, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    get\n  } = Ember;\n\n  var _default = _moment.default.extend({\n    defaultFormat: get(_environment.default, 'moment.outputFormat')\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/multi-archive-tracker-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    currentTransports: Ember.A([]),\n    sessionAccount: Ember.inject.service('session-account'),\n\n    addTransport(transport) {\n      this.currentTransports.pushObject(transport);\n    },\n\n    removeTransport(transport) {\n      this.currentTransports.removeObject(transport);\n    },\n\n    findExisting(transport) {\n      return this.currentTransports.find(relation => {\n        return relation.get('id') === transport.get('id');\n      });\n    },\n\n    getTransportsThatCantBeArchived() {\n      const transportsThatCantBeArchived = Ember.A([]);\n\n      if (!this.currentTransports.length < 1) {\n        return transportsThatCantBeArchived;\n      }\n\n      this.currentTransports.forEach(transport => {\n        if (!transport.actionCanBePerformed('DELETE_TRANSPORT')) {\n          transportsThatCantBeArchived.pushObject(transport);\n        }\n      });\n      return transportsThatCantBeArchived;\n    },\n\n    clearTransportsList() {\n      const alias = this.currentTransports.get('firstObject').get('transportType.alias');\n      this.set('currentTransports', Ember.A([]));\n      this.transitionToRoute('transports.index', alias);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/operator-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    getTranslation: function (isAir) {\n      if (!isAir) {\n        return this.intl.t('operator.label.air');\n      }\n\n      return this.intl.t('operator.label.sea');\n    },\n    getAirOperators: function () {\n      return this.store.query('operator', {\n        type: 'AIR'\n      });\n    },\n    getSeaOperators: function () {\n      return this.store.query('operator', {\n        type: 'SEA'\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/polling/notification-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    websocketService: Ember.inject.service('websocket'),\n    sessionAccount: Ember.inject.service('session-account'),\n    sentNotificationService: Ember.inject.service(),\n    store: Ember.inject.service(),\n\n    useSockets(webSocketApi) {\n      console.debug('Subscribing for notifications...');\n      const userId = this.get('sessionAccount.currentUser.id');\n      webSocketApi.subscribe('/topic/notify/' + userId, payload => {\n        const responseBody = JSON.parse(payload.body);\n        this.store.pushPayload({\n          'sentNotification': responseBody\n        });\n        this.sentNotificationService.addToTotalItems(1);\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/polling/planning-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    store: Ember.inject.service(),\n    websocket: Ember.inject.service('websocket'),\n\n    useSockets(socketApi, model) {\n      const transportTypeId = model.transportType.id;\n      socketApi.subscribe('/topic/planning/update', () => {\n        this.store.query('transport', {\n          planning: true\n        }).then(ts => {\n          Ember.set(model, 'transports', ts);\n        });\n        this.store.query('delivery', {\n          transportTypeId\n        }).then(ds => {\n          Ember.set(model, 'deliveries', ds);\n        });\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/polling/schedule-service\", [\"exports\", \"apollo/mixins/schedule-mixin\", \"apollo/mixins/persistence-mixin\"], function (_exports, _scheduleMixin, _persistenceMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend(_scheduleMixin.default, _persistenceMixin.default, {\n    store: Ember.inject.service(),\n    websocketService: Ember.inject.service('websocket'),\n    // TODO: Zastąpić przez apolloApiApollo\n    ajaxService: Ember.inject.service('ajax-service'),\n\n    useSockets(socketApi, warehouseId, context) {\n      const schedule = context;\n      const self = this;\n      schedule.setWindows();\n      socketApi.subscribe(`/topic/schedule/update/${warehouseId}`, message => {\n        // TODO Refaktor\n        const timeWindowId = JSON.parse(message.body); // Jeśli tego nie zrobimy to obiekt warehouse w ScheduleMixin będzie undefined i metoda setPalletSummary rzuci błąd\n        // ogólnie do przerobienia jak będziemy dalej chcieli używać websocketów\n\n        const warehouse = self.get('store').peekRecord('warehouse', warehouseId);\n        self.set('warehouse', warehouse);\n        const cachedWindow = self.get('store').peekRecord('time-window', timeWindowId);\n\n        if (cachedWindow && cachedWindow.isDeleted) {\n          // A-9667\n          // W momencie usuwania blokady próba pobrania modelu z backendu przez findRecord wywalała błąd:\n          // Attempted to handle event 'loadingData' on <time-window> while in state root.deleted.inFlight\n          // Dlatego przed zrobieniem findRecord sprawdzamy, czy obiekt który chcemy pobrać istnieje już w store,\n          // i jeśli istnieje i jest przeznaczony do usuniecia, przerywamy operacje.\n          return;\n        }\n\n        self.get('store').findRecord('time-window', timeWindowId, {\n          reload: true\n        }).then(window => {\n          if (!window.get('isBlocked')) {\n            schedule.get('shownDays').forEach(day => {\n              this.setPalletSummary(day);\n              this.setNumberOfWindows(day);\n            });\n          }\n\n          const openTransportId = schedule.get('openTransportId');\n\n          if (window.get('transport.id')) {\n            console.debug(`Refreshing window ${window.get('logString')} for transport ${window.get('transport').get('logString')}..`);\n          } else {\n            console.debug(`Refreshing blockade window ${window.get('logString')}..`);\n          }\n\n          const deleted = window.get('deleted');\n\n          if (deleted) {\n            schedule.get('windows').removeObject(window);\n            console.log(`Removed window #${window.id}.`);\n          } else if (!window.get('isSaving')) {\n            window.setProperties({\n              start: moment(window.get('data.start')).toDate(),\n              stop: moment(window.get('data.stop')).toDate(),\n              ramp: schedule.store.peekRecord('ramp', window.get('ramp.id'))\n            });\n            window.get('step').then(function (step) {\n              if (step) {\n                const transportIdToFetch = window.get('relatedTransport.id') ? window.get('relatedTransport.id') : window.get('transport.id');\n                self.get('store').findRecord('transport', transportIdToFetch).then(function (transport) {\n                  const dirtyCustomFieldOptions = openTransportId ? self.getPreviousCustomFieldValuesMap(transport.get('id')) : [];\n                  transport.reload().then(function (reloadedTransport) {\n                    console.debug(`Unloading checkpoints from transport ${window.get('transport.id')}..`);\n                    self.unloadDeletedRecords('transport', window.get('transport.id'), 'checkpoint');\n                    transport.get('indexes').forEach(index => {\n                      if (index.get('id') && index.get('currentState.stateName') !== 'root.loading') {\n                        index.reload();\n                      }\n                    });\n\n                    if (dirtyCustomFieldOptions && openTransportId === transport.get('id')) {\n                      self.markDirtyCustomFieldValues(transport, dirtyCustomFieldOptions, reloadedTransport.get('customFields'));\n                    }\n\n                    console.debug(`Odświeżyliśmy okno czasowe:: #${window.id} / ${moment(window.get('start')).format('DD.MM.YYYY HH:mm')}`); // Dane wyświetlane w oknach (awizacja, indeksy) wysyłane są z serwera\n                    // w mapie okna, musimy wymusić odświeżenie danych w komponencie okna\n                    // dopiero po otrzymaniu aktualnych danych o transporcie.\n\n                    window.set('lastUpdated', new Date());\n                    self.replaceTimeWindow(window);\n                  });\n                });\n              } else {\n                schedule.replaceTimeWindow(window);\n              }\n            });\n          }\n        });\n      });\n    },\n\n    usePolling(params, context) {\n      const warehouseId = params.warehouseId;\n      const currentRampsIds = params.currentRampsIds;\n      const schedule = context;\n      const self = this;\n\n      try {\n        const lastPollFormatted = moment(schedule.get('lastPoll')).format();\n        this.get('ajaxService').send(`/warehouses/${warehouseId}/updates`, 'GET', {\n          lastPoll: lastPollFormatted,\n          start: moment(schedule.get('scheduleStartDate')).format(),\n          stop: moment(schedule.get('scheduleEndDate')).format()\n        }).then(json => {\n          if (json.timeWindowIds.length) {\n            const warehouse = self.get('store').peekRecord('warehouse', warehouseId);\n            self.set('warehouse', warehouse);\n            schedule.get('shownDays').forEach(day => {\n              self.setPalletSummary(day);\n              self.setNumberOfWindows(day);\n            });\n          }\n\n          const openTransportId = schedule.get('openTransportId');\n          json.timeWindowIds.forEach(function (windowId) {\n            self.get('store').findRecord('timeWindow', windowId, {\n              reload: true\n            }).then(function (window) {\n              if (!currentRampsIds.includes(window.get('ramp.id').toString())) {\n                return;\n              }\n\n              if (window.get('transport.id')) {\n                console.debug(`Refreshing window ${window.get('logString')} for transport ${window.get('transport').get('logString')}..`);\n              } else {\n                console.debug(`Refreshing blockade window ${window.get('logString')}..`);\n              }\n\n              const deleted = window.get('deleted');\n\n              if (deleted) {\n                schedule.get('windows').removeObject(window);\n                console.log(`Removed window #${window.id}.`);\n              } else if (!window.get('isSaving')) {\n                window.setProperties({\n                  start: moment(window.get('data.start')).toDate(),\n                  stop: moment(window.get('data.stop')).toDate(),\n                  ramp: schedule.store.peekRecord('ramp', window.get('ramp.id'))\n                });\n                window.get('step').then(function (step) {\n                  if (step) {\n                    const transportIdToFetch = window.get('relatedTransport.id') ? window.get('relatedTransport.id') : window.get('transport.id');\n                    self.get('store').findRecord('transport', transportIdToFetch).then(function (transport) {\n                      const dirtyCustomFieldOptions = openTransportId ? self.getPreviousCustomFieldValuesMap(transport.get('id')) : [];\n                      transport.reload().then(function (reloadedTransport) {\n                        console.debug(`Unloading checkpoints from transport ${window.get('transport.id')}..`);\n                        self.unloadDeletedRecords('transport', window.get('transport.id'), 'checkpoint');\n                        transport.get('indexes').forEach(index => {\n                          if (index.get('id') && index.get('currentState.stateName') !== 'root.loading') {\n                            index.reload();\n                          }\n                        });\n\n                        if (dirtyCustomFieldOptions && openTransportId === transport.get('id')) {\n                          self.markDirtyCustomFieldValues(transport, dirtyCustomFieldOptions, reloadedTransport.get('customFields'));\n                        }\n\n                        console.debug(`Odświeżyliśmy okno czasowe:: #${window.id} / ${moment(window.get('start')).format('DD.MM.YYYY HH:mm')}`); // Dane wyświetlane w oknach (awizacja, indeksy) wysyłane są z serwera\n                        // w mapie okna, musimy wymusić odświeżenie danych w komponencie okna\n                        // dopiero po otrzymaniu aktualnych danych o transporcie.\n\n                        window.set('lastUpdated', new Date());\n                        self.replaceTimeWindow(window);\n                      });\n                    });\n                  } else {\n                    self.replaceTimeWindow(window);\n                  }\n                });\n              }\n            });\n          });\n          const pollTime = json.pollTime;\n          schedule.set('lastPoll', pollTime);\n        });\n      } catch (e) {\n        console.error(e);\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/port-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    getAirPorts: function () {\n      return this.store.query('port', {\n        portType: 'AIR'\n      });\n    },\n    getSeaPorts: function () {\n      return this.store.query('port', {\n        portType: 'SEA'\n      });\n    },\n    getTranslation: function (isSeaAuction, type) {\n      if (isSeaAuction) {\n        return this.get('intl').t('offer.' + type + 'SeaPort');\n      }\n\n      return this.get('intl').t('offer.' + type + 'AirPort');\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/rounding-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const TWO_DECIMAL_PLACES = 2;\n\n  var _default = Ember.Service.extend({\n    roundToDecimals(value, decimalPlaces) {\n      if (value === null || value === undefined) {\n        return '';\n      }\n\n      return parseFloat(value).toFixed(decimalPlaces);\n    },\n\n    roundToTwoDecimals(value) {\n      return this.roundToDecimals(value, TWO_DECIMAL_PLACES);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/route-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    store: Ember.inject.service(),\n    truckTypeService: Ember.inject.service('truck-type-service'),\n\n    async getAvailableRoutes(transportType) {\n      return await this.store.query('route', {\n        transportTypeId: transportType.id\n      });\n    },\n\n    async createTransportFromRoute(route) {\n      const transport = this.get('store').createRecord('transport', {\n        transportType: route.get('transportType'),\n        routeTemplate: route\n      });\n      await this.truckTypeService.setTruckTypes(transport);\n\n      this._createAdvice(transport);\n\n      this._createSteps(transport);\n\n      this._createCustomFields(transport);\n\n      transport.createSerialTransport();\n      return transport;\n    },\n\n    _createAdvice(transport) {\n      const transportType = transport.get('transportType');\n\n      if (transportType.get('requiresTimeWindow') && !transportType.get('adviceSeparatedFromWindow') || transportType.get('adviceSavedWithTransport')) {\n        const advice = this.get('store').createRecord('advice', {\n          transport\n        });\n        transport.set('advice', advice);\n      }\n    },\n\n    _createSteps(transport) {\n      transport.get('routeTemplate').get('routeAddresses').forEach(ra => {\n        const ownedByPrincipal = !!ra.get('warehouse.id');\n        const step = this.get('store').createRecord('step', {\n          transport,\n          ownedByPrincipal,\n          shouldHaveContractor: !ownedByPrincipal,\n          stepTypeName: ra.get('stepType'),\n          idx: ra.get('idx'),\n          address: ra.get('address'),\n          orderInTransport: ra.get('idx'),\n          warehouse: ra.get('warehouse.id') ? ra.get('warehouse') : null\n        });\n\n        if (step.get('ownedByPrincipal')) {\n          step.setAdviceRestrictionDates();\n\n          if (transport.get('transportType.requiresArrivalAndDepartureDateInWarehouseStep')) {\n            step.setArrivalDate();\n          }\n        } else {\n          step.set('company', ra.get('company'));\n          step.setArrivalDate();\n        }\n\n        transport.get('steps').pushObject(step);\n      });\n    },\n\n    _createCustomFields(transport) {\n      transport.get('routeTemplate').get('routeCustomFields').forEach(rcf => {\n        const cf = this.get('store').createRecord('customFieldValue', {\n          transport,\n          definition: rcf.get('definition'),\n          value: rcf.get('value'),\n          createdFromRoute: true\n        });\n\n        if (rcf.get('option.id')) {\n          cf.set('option', rcf.get('option'));\n        }\n\n        transport.get('customFields').pushObject(cf);\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/route-transport-mapper-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    store: Ember.inject.service(),\n    recordManager: Ember.inject.service('ember-data.record-manager'),\n    simpleModelMapper: Ember.inject.service('ember-data.simple-model-mapper'),\n\n    /**\n     * Maps a route to a transport, creating necessary step records and custom field values.\n     * Transfers data from the route domain model to the transport domain model.\n     *\n     * @param {DS.Model} route - The source route\n     * @param {DS.Model} transport - The target transport\n     * @returns {DS.Model} The updated transport\n     *\n     * @example\n     * // Map route data to transport\n     * this.routeTransportMapper.mapRouteToTransport(route, transport);\n     */\n    mapRouteToTransport(route, transport) {\n      if (!route || !transport) {\n        return transport;\n      }\n\n      const transportCFs = transport.get('customFields').filter(cf => !cf.get('definition.includedInPriceList'));\n      this.recordManager.clearRelationship(transport, 'steps');\n      this.recordManager.clearRelationship(transport, 'customFields');\n      this.recordManager.clearRelationship(transport, 'customFieldPairs'); // to nie jest do końca ok ale inaczej nie mogę zmusić tego do przeliczenia wartości\n\n      this.recordManager.addToRelationship(transport, 'customFields', transportCFs);\n\n      if (route.routeAddresses && route.routeAddresses.length) {\n        const steps = this._mapRouteAddressesToSteps(route.routeAddresses, transport);\n\n        this.recordManager.addToRelationship(transport, 'steps', steps);\n      }\n\n      if (route.routeCustomFields && route.routeCustomFields.length) {\n        const customFields = this._mapCustomFields(route.routeCustomFields, transport);\n\n        this.recordManager.addToRelationship(transport, 'customFields', customFields);\n      }\n    },\n\n    /**\n     * Maps route addresses to step data objects.\n     *\n     * @private\n     * @param {DS.RecordArray} routeAddresses - The route addresses to map\n     * @param {DS.Model} transport - The transport to map the route addresses to\n     * @returns {DS.RecordArray} Step model objects\n     */\n    _mapRouteAddressesToSteps(routeAddresses, transport) {\n      const sortedAddressesByIdx = routeAddresses.sortBy('idx');\n      return sortedAddressesByIdx.map(routeAddress => {\n        const step = this.store.createRecord('step', {\n          transport\n        });\n        this.simpleModelMapper.mapProperties(routeAddress, step, {\n          'idx': 'idx',\n          'orderInTransport': 'idx',\n          'address': 'address',\n          'company': 'company',\n          'warehouse': 'warehouse'\n        });\n        step.set('stepTypeIdx', routeAddress.get('stepTypeIdx') + 1);\n        step.set('stepTypeName', this._mapStepType(routeAddress.stepType));\n\n        if (transport.get('transportType.adviceRestrictionInEveryStep')) {\n          step.setAdviceRestrictionDates();\n        }\n\n        if (transport.get('transportType.requiresArrivalAndDepartureDate')) {\n          step.setArrivalDate();\n        }\n\n        return step;\n      });\n    },\n\n    /**\n     * @private\n     * @param {String} routeStepType - The step type from route\n     * @returns {String} The corresponding transport step type\n     */\n    _mapStepType(routeStepType) {\n      const STEP_TYPES = {\n        'load': 'load',\n        'unload': 'unload'\n      };\n      return STEP_TYPES[routeStepType] || routeStepType;\n    },\n\n    /**\n     * @private\n     * @param {DS.RecordArray} routeCustomFields - The custom fields from a route\n     * @param {DS.Model} transport - The transport to map the custom fields to\n     * @returns {Array} The created custom field value records\n     *\n     * @example\n     * // Map custom fields from route to transport\n     * const customFieldValues = this.mapCustomFields(route.customFields, transport);\n     */\n    _mapCustomFields(routeCustomFields, transport) {\n      return routeCustomFields.map(routeCustomField => {\n        const customFieldValue = this.store.createRecord('customFieldValue', {\n          transport\n        });\n        this.simpleModelMapper.mapProperties(routeCustomField, customFieldValue, {\n          'value': 'value',\n          'definition': 'definition',\n          'option': 'option'\n        });\n        return customFieldValue;\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/scanner-input-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    LETTER_INPUT_TIMEOUT_MS: 200,\n    ENTER_KEY_CODE: 13,\n    BARCODE_LENGTH: 8,\n\n    verifyChecksum(value) {\n      if (!value || value.length < this.BARCODE_LENGTH) {\n        return false;\n      }\n\n      const checksumNumber = Number(value[7]);\n      const evens = Number(value[1]) + Number(value[3]) + Number(value[5]);\n      const odds = (Number(value[0]) + Number(value[2]) + Number(value[4]) + Number(value[6])) * 3;\n      const mod = (evens + odds) % 10;\n      let final = 10 - Number(mod);\n\n      if (final === 10) {\n        final = 0;\n      }\n\n      return Number(final) === Number(checksumNumber);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/schedule/warehouse-zone-transport-type-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    authorityCheckerService: Ember.inject.service('authority.authority-checker-service'),\n    principal: Ember.computed(function () {\n      return this.get('sessionAccount.principalCompany');\n    }),\n    transportTypesUserCanCreate: Ember.computed('principal', function () {\n      const availableTransportTypes = this.get('principal.transportTypesThatCanBeCreated');\n      return availableTransportTypes.filter(tt => {\n        return this.authorityCheckerService.findPositiveAuthorityRestrictionsByActionType('ROLE_CAN_CREATE_TRANSPORT_FROM_SCHEDULE', tt.get('id')).length > 0;\n      });\n    }),\n\n    /**\n     * Metoda sprawdza czy user może utworzyć transport na danej rampie,\n     * na podstawie warehouseZone przypisanego do rampy.\n     * @param rampId\n     * @returns transportTypes[]\n     */\n    transportTypesThatCanBeCreatedInWarehouseZone(rampId) {\n      const transportTypes = this.get('transportTypesUserCanCreate');\n      const clickedRampWarehouseZoneId = this.store.peekRecord('ramp', rampId).get('warehouseZone.id');\n      const warehouseZoneTransportTypesIds = this.store.peekAll('warehouseZoneTransportType').filterBy('warehouseZone.id', clickedRampWarehouseZoneId).map(wztt => wztt.get('transportType.id'));\n      return transportTypes.filter(tt => {\n        return warehouseZoneTransportTypesIds.includes(tt.get('id'));\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/sent-notification-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    store: Ember.inject.service(),\n    STATUS: Object.freeze({\n      READ: 'READ',\n      UNREAD: 'UNREAD'\n    }),\n    DEFAULT_PAGE_SIZE: Object.freeze(5),\n    totalItems: 0,\n    currentPage: 0,\n\n    loadNotifications(page = 0) {\n      console.log('Loading notifications...');\n      this.store.query('sentNotification', {\n        page,\n        limit: `${this.get('DEFAULT_PAGE_SIZE')}`\n      }).then(response => {\n        this.store.pushPayload(response);\n\n        this._setMetaDataFromResponse(response);\n      });\n    },\n\n    nextPage() {\n      return this.currentPage + 1;\n    },\n\n    _setMetaDataFromResponse(response) {\n      this.set('totalItems', response.meta.totalItems);\n      this.set('currentPage', response.meta.currentPage);\n    },\n\n    addToTotalItems(countToAdd) {\n      this.set('totalItems', this.totalItems + countToAdd);\n    },\n\n    subtractFromTotalItems(countToSubtract) {\n      this.set('totalItems', this.totalItems - countToSubtract);\n    },\n\n    markAsRead(notificationModel) {\n      notificationModel.set('status', this.STATUS.READ);\n      notificationModel.save().then(() => {\n        notificationModel.unloadRecord();\n        this.subtractFromTotalItems(1);\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/session-account\", [\"exports\", \"apollo/mixins/persistence-mixin\"], function (_exports, _persistenceMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend(_persistenceMixin.default, {\n    session: Ember.inject.service('session'),\n    store: Ember.inject.service(),\n    errors: Ember.A([]),\n    intl: Ember.inject.service(),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    websocketService: Ember.inject.service('websocket'),\n    // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects\n    authoritiesDependentOnPricingPlan: {},\n    localeTimezoneHolder: Ember.inject.service('date.locale-timezone-holder-service'),\n    // REFAKTOR: przenieść do ui-language-service?\n    _setSepcificTranslations: async function (translations) {\n      if (!translations) {\n        return;\n      }\n\n      const language = this.get('localeTimezoneHolder.locale');\n      this.intl.addTranslations(`${language}`, translations);\n    },\n\n    loadCurrentUser() {\n      const self = this;\n      const username = this.get('session.data.authenticated.username');\n      const token = this.get('session.data.authenticated.token');\n      this.set('token', token);\n\n      if (Ember.isEmpty(username)) {\n        return;\n      }\n\n      return new Ember.RSVP.Promise(async function (resolve, reject) {\n        try {\n          const request = await self.apolloApiService.callApolloApi(self.apolloApiService.APOLLO_API.PERSON.ACCOUNT_MAP, {\n            username,\n            lang: self.get('localeTimezoneHolder.locale')\n          });\n\n          if (request.ok) {\n            const response = await request.json();\n\n            if (Ember.isEmpty(response.user)) {\n              reject(new Error('No user provided in response.'));\n            }\n\n            await self._setSepcificTranslations(response.translations);\n            Ember.run.next(function () {\n              if (response.meta) {\n                self.get('session').set('backendVersion', response.meta.appVersion);\n              }\n\n              if (!self.get('store').hasRecordForId('user', response.user.id)) {\n                self.get('store').pushPayload(response);\n              }\n\n              const user = self.get('store').peekRecord('user', response.user.id);\n              user.set('availableLanguages', response.availableLanguages);\n              self.set('notificationTypes', response.notificationTypes);\n              self.set('authoritiesDependentOnPricingPlan', response.authoritiesDependentOnPricingPlan);\n              self.set('actionTypes', response.actionTypes);\n              self.set('pricingPlans', response.pricingPlans);\n              self.set('principalCompanyId', response.user.principalCompanyId);\n              self.set('resetPasswordIsDisabled', response.user.resetPasswordIsDisabled);\n              self.set('statuteAccepted', user.get('statuteAccepted'));\n              self.set('currentUser', user);\n              self.set('authorityRestrictions', self.get('store').peekAll('authority-restriction').filter(ar => {\n                return ar.get('roleGroup.id') === user.get('roleGroup.id') || ar.get('pricingPlan') === user.get('company.pricingPlan');\n              }));\n              self.get('store').peekAll('transportType').forEach(tt => {\n                const authorityRestrictions = self.getAllPositiveAuthorityRestrictionsForGivenTransportType(tt);\n                tt.set('authorityRestrictions', authorityRestrictions);\n              }); // Poniższy get służy załadowaniu ramp do sesji ember-data.\n              // Bez niego zdarzało się, że rampy dublowały się po wczytaniu szczegółów\n              // innego użytkownika (por. A-329, A-392).\n\n              user.get('ramps');\n              self.removeDuplicateRecords(user.get('roleGroup'), 'notifications');\n              self.removeDuplicateRecords(user, 'ramps');\n              const columnNames = user.get('tableColumns').map(c => {\n                return c.get('name');\n              });\n              self.set('columnNames', columnNames);\n              localStorage.removeItem('principalAlias');\n              const principalCompany = self.get('store').peekRecord('company', self.get('principalCompanyId'));\n\n              if (principalCompany) {\n                localStorage.setItem('principalAlias', principalCompany.get('alias'));\n              }\n\n              self.set('principalsWhereUserHasRole', self.get('store').peekAll('company').filter(company => response.principalsWhereUserHasRole.includes(Number(company.get('id')))));\n              localStorage.setItem('principalId', self.get('principalCompanyId'));\n              const partnershipType = self.get('store').peekAll('partnershipType').find(pt => Number(pt.get('id')) === response.company.partnershipType);\n              self.set('currentUser.company.partnershipType', partnershipType);\n              console.log(`User ${user.get('username')} logged-in.`);\n              resolve(user);\n            });\n          } else {\n            self.get('session').invalidate();\n          }\n        } catch (e) {\n          console.error(e);\n          self.get('session').invalidate();\n        }\n      });\n    },\n\n    isHTTPS: function () {\n      return location.protocol === 'https:';\n    },\n    currentCompany: Ember.computed('currentUser.company', function () {\n      return this.get('currentUser.company');\n    }),\n    principalCompany: Ember.computed('principalCompanyId', function () {\n      return this.get('store').peekRecord('company', this.get('principalCompanyId'));\n    }),\n    isPrincipal: Ember.computed('currentUser.isPrincipal', function () {\n      return this.get('currentUser').get('isPrincipal');\n    }),\n    hasRoleTransportTable: Ember.computed('currentUser.roles', function () {\n      return this.hasRole('ROLE_TRANSPORT_TABLE');\n    }),\n    isSuperUser: Ember.computed('currentUser.roleGroup.name', function () {\n      return this.get('currentUser.roleGroup.name') === 'SUPER_USER';\n    }),\n\n    hasAnyOfTheRoles(roles) {\n      const self = this;\n      let hasAnyOfTheRoles = false;\n      roles.forEach(function (role) {\n        if (self.hasRole(role)) {\n          hasAnyOfTheRoles = true;\n          return false;\n        }\n      });\n      return hasAnyOfTheRoles;\n    },\n\n    hasRole(name) {\n      if (!this.get('session').get('isAuthenticated')) {\n        return false;\n      }\n\n      return this.get('currentUser').get('roleNames').includes(name);\n    },\n\n    getSettingValue(name) {\n      const principalCompanyId = localStorage.getItem('principalId');\n      return this.get('store').peekAll('setting').filterBy('company.id', principalCompanyId).filterBy('name', name).get('firstObject.value');\n    },\n\n    getParameterValue(name) {\n      return this.get('store').peekAll('parameter').filterBy('name', name).get('firstObject.value');\n    },\n\n    getTransactionSetting(transportType) {\n      return this.get('store').peekAll('transaction-setting').filterBy('transportType.id', transportType.get('id')).get('firstObject');\n    },\n\n    getAuctionSetting(transportTypeId) {\n      const principalCompanyId = localStorage.getItem('principalId');\n      return this.get('store').peekAll('auction-setting').filterBy('company.id', principalCompanyId).filterBy('transportType.id', transportTypeId).get('firstObject');\n    },\n\n    getAppliesSetting() {\n      const principalCompanyId = localStorage.getItem('principalId');\n      return this.get('store').peekAll('applies-setting').filterBy('principalCompany.id', principalCompanyId).get('firstObject');\n    },\n\n    getProductSetting() {\n      const principalCompanyId = localStorage.getItem('principalId');\n      return this.get('store').peekAll('product-setting').filterBy('company.id', principalCompanyId).get('firstObject');\n    },\n\n    getIndexSetting(transportTypeId) {\n      if (!transportTypeId) {\n        return;\n      }\n\n      return this.get('store').peekAll('index-setting').filterBy('transportType.id', transportTypeId).get('firstObject');\n    },\n\n    getCourierSetting(transportTypeId) {\n      if (!transportTypeId) {\n        return;\n      }\n\n      return this.get('store').peekAll('courier-setting').filterBy('transportType.id', transportTypeId).get('firstObject');\n    },\n\n    getSquareSetting() {\n      const principalCompanyId = localStorage.getItem('principalId');\n      return this.get('store').peekAll('square-setting').find(ss => ss.get('company.id') === principalCompanyId);\n    },\n\n    getPackageTypeTransportTypeForTransportType(transportTypeId) {\n      return this.get('store').peekAll('packageTypeTransportType').filter(pttt => pttt.get('transportType.id') === transportTypeId);\n    },\n\n    getPackageTypeTransportType(packageTypeId, transportTypeId) {\n      return this.get('store').peekAll('packageTypeTransportType').find(pttt => pttt.get('transportType.id') === transportTypeId && pttt.get('packageType.id') === packageTypeId);\n    },\n\n    isGroupFilterEnabled() {\n      const setting = this.get('sessionAccount').getSettingValue('ROLES_WITH_ENABLED_USER_AND_GROUP_FILTER');\n      return setting ? setting.search(this.get('currentUser.roleGroup.name')) > -1 : false;\n    },\n\n    isGroupFilterEnabledForUser(user) {\n      const setting = this.get('sessionAccount').getSettingValue('ROLES_WITH_ENABLED_USER_AND_GROUP_FILTER');\n      return setting ? setting.search(user.get('roleGroup.name')) > -1 : false;\n    },\n\n    getAllPositiveAuthorityRestrictionsForGivenTransportType: function (transportType) {\n      const assetIds = transportType.get('connectedAssetIds').map(id => Number(id));\n      return this.get('authorityRestrictions').filter(ar => assetIds.includes(ar.get('assetId')) && ar.get('authorityRange') !== 'BLOCKED' && (!ar.get('pricingPlan') || ar.get('pricingPlan') === this.get('currentUser.company.pricingPlan')));\n    },\n\n    // TYLKO POWIĄZANE Z TYPEM TRANSPORTU\n    getPositiveAuthorityRestrictionsByTransportTypeId(transportTypeId) {\n      return this.get('authorityRestrictions').filter(ar => ar.get('assetId') === Number(transportTypeId) && ar.get('authorityRange') !== 'BLOCKED' && (!ar.get('pricingPlan') || ar.get('pricingPlan') === this.get('currentUser.company.pricingPlan')));\n    },\n\n    canAccessAnyTransportType: Ember.computed('currentUser.roles', function () {\n      return this.hasAuthorityAtAll('ACCESS_TRANSPORT');\n    }),\n    hasAuthorityAtAll: function (actionName) {\n      const authorityRestrictions = this.get('authorityRestrictions');\n      return authorityRestrictions.some(ar => {\n        const authority = this.get('currentUser.roles').find(a => a && a.get('id') === ar.get('authority.id'));\n        return authority.get('name') === actionName && ar.get('authorityRange') !== 'BLOCKED' && (!ar.get('pricingPlan') || ar.get('pricingPlan') === this.get('currentUser.company.pricingPlan'));\n      });\n    },\n    hasAuthorityInTransportType: function (actionName, transportTypeId) {\n      return this.getPositiveAuthorityRestrictionsByTransportTypeId(Number(transportTypeId)).find(ar => ar.get('name') === actionName);\n    },\n    hasAuthorityInTransportTypeByAlias: function (actionName, transportTypeAlias) {\n      const transportType = this.get('store').peekAll('transportType').filterBy('alias', transportTypeAlias)[0];\n\n      if (!transportType) {\n        console.debug('Nie znaleziono typu transportu :: ' + transportTypeAlias);\n        return false;\n      }\n\n      return this.hasAuthorityInTransportType(actionName, transportType.get('id'));\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/session\", [\"exports\", \"ember-simple-auth/services/session\"], function (_exports, _session) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _session.default;\n  _exports.default = _default;\n});","define(\"apollo/services/surcharge-value-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    saveSurcharges(surcharges) {\n      const savePromises = surcharges.map(s => {\n        return s.save();\n      });\n      return Promise.all(savePromises);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/text-measurer\", [\"exports\", \"ember-text-measurer/services/text-measurer\"], function (_exports, _textMeasurer) {\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 _textMeasurer.default;\n    }\n  });\n});","define(\"apollo/services/time-window-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    store: Ember.inject.service(),\n\n    getFirstPossibleWindowStart(step, transport, selectedDate) {\n      const warehouseId = step.get('warehouse.id');\n      const self = this;\n      return new Promise(function (resolve) {\n        const data = {\n          transportCommand: transport.serialize()\n        };\n        data.warehouse = {\n          id: warehouseId\n        };\n\n        if (selectedDate) {\n          data.selectedDate = selectedDate;\n        }\n\n        if (step.get('minAdviceDate')) {\n          data.minDate = moment(step.get('minAdviceDate')).format();\n          data.maxDate = moment(step.get('maxAdviceDate')).format();\n        }\n\n        const jsonBody = JSON.stringify(data);\n        const path = self.get('apolloApiService').APOLLO_API.TRANSPORTS.FIRST_POSSIBLE_START;\n        self.get('apolloApiService').callApolloApi(path, null, {\n          body: jsonBody\n        }).then(function (response) {\n          return response.json();\n        }).then(data => {\n          resolve(data);\n        });\n      });\n    },\n\n    saveWindow(ramp, company, start, stop, userGroup) {\n      const state = company || userGroup ? 'state-dedicated' : 'state-disabled';\n      const startAsDate = start instanceof moment ? start.toDate() : start;\n      const stopAsDate = stop instanceof moment ? stop.toDate() : stop;\n      const windowData = {\n        ramp,\n        company,\n        start: startAsDate,\n        stop: stopAsDate,\n        state,\n        userGroup,\n        initialStart: startAsDate\n      };\n      const window = this.store.createRecord('timeWindow', windowData);\n      return window.save();\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/translation-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    intl: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    getTranslation: function (settingClass, labelName, transportType) {\n      const setting = this.getSetting(settingClass, transportType);\n      const translationKey = !setting.get('object') ? setting.get('defaultTranslationKey') : setting.get('object.translationKey');\n      return this.get('intl').t(`${setting.get('classKey')}.${translationKey}.${labelName}`);\n    },\n    getSetting: function (settingClass, transportType) {\n      let settingObject, defaultTranslationKey;\n\n      switch (settingClass) {\n        case 'auction':\n          {\n            settingObject = this.get('sessionAccount').getAuctionSetting(transportType.get('id'));\n            defaultTranslationKey = 'AUCTION';\n            break;\n          }\n\n        case 'index':\n          {\n            settingObject = this.get('sessionAccount').getIndexSetting(transportType.get('id'));\n            defaultTranslationKey = 'INDEX';\n            break;\n          }\n\n        case 'courier':\n          {\n            settingObject = this.get('sessionAccount').getCourierSetting(transportType.get('id'));\n            defaultTranslationKey = 'COURIER_PACKAGE';\n            break;\n          }\n\n        case 'products':\n        case 'product':\n          {\n            settingObject = this.get('sessionAccount').getProductSetting();\n            defaultTranslationKey = 'INDEX';\n            break;\n          }\n\n        case 'square':\n          {\n            settingObject = this.get('sessionAccount').getSquareSetting();\n            defaultTranslationKey = 'SQUARE';\n            break;\n          }\n\n        default:\n          settingObject = {};\n          defaultTranslationKey = '';\n          settingClass = '';\n          break;\n      }\n\n      return Ember.Object.create({\n        object: settingObject,\n        classKey: settingClass,\n        defaultTranslationKey: defaultTranslationKey\n      });\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/transport-copy-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    addressUnloadTimeService: Ember.inject.service('address-unload-time-service'),\n    truckTypeService: Ember.inject.service('truck-type-service'),\n\n    copyTransport(originalTransport) {\n      const self = this;\n      const transportType = originalTransport.get('transportType');\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        if (!originalTransport || !originalTransport.copy) {\n          reject();\n        }\n\n        originalTransport.copy(true, {\n          ignoreAttributes: ['advice', 'carrierCompany', 'steps', 'checkpoints', 'internalIndex', 'erpIdentifier', 'altIdentifier', 'auctions', 'timeWindows', 'indexes', 'transaction', 'files', 'periodicTransport', 'customFields', 'carrierCompanyChooser', 'discrepancyReports', 'originalTransportId', 'notes', 'courierPricings', 'courierOrder', 'courierInvoice', 'courierOrderError', 'emailAdvices', 'goodsValue', 'goodsValueCurrency', 'incoterms', 'weights', 'relatedTo', 'relatedToTransports', 'masterTransports', 'hasToWaitRelations', 'relatedHasToWaitForTransports', 'relatedHasToWaitForNotCreatedTransports', 'masterHasToWaitForTransports', 'combinedMasterTransport', 'isRelatedTransportInTransportCombining', 'isMasterTransportInTransportCombining', 'isRelatedTransportInHasToWaitFor', 'isMasterTransportInHasToWaitFor', 'allCombinedTransports', 'transportRelationIdentifier', 'amountOfCover', 'transportPackages', 'serialTransportActive', 'serialTransport', 'truckType', 'truckTypes', 'maxSegmentLdm', 'maxSegmentWeight']\n        }).then(transportCopy => {\n          transportCopy.set('showCreateAdviceButton', false);\n          transportCopy.set('isCopy', true);\n          transportCopy.set('archived', false);\n          transportCopy.set('dateOfArchiving', null);\n          transportCopy.set('deleted', false);\n          transportCopy.set('dateOfDeletion', null);\n          transportCopy.set('originalTransportId', originalTransport.get('internalIndex'));\n\n          transportCopy._createAmountOfCover();\n\n          transportCopy.createSerialTransport();\n\n          self._handleAdviceCopy(originalTransport, transportCopy, transportType);\n\n          self.copySteps(originalTransport, transportCopy);\n          self.copyCustomFields(originalTransport, transportCopy);\n          self.copyTransportPackages(originalTransport, transportCopy);\n          self.truckTypeService.setTruckTypes(transportCopy);\n          transportCopy.set('creator', self.get('sessionAccount').get('currentUser'));\n          transportCopy.set('periodicTransport', self.get('store').createRecord('periodicTransport', {\n            frequency: 'DAILY',\n            startDate: moment().startOf('day').toDate()\n          }));\n          const comp = self.get('sessionAccount.currentUser.company');\n\n          if (comp.get('partnershipType.name') === 'CARRIER' || comp.get('partnershipType.name') === 'OPERATOR') {\n            transportCopy.set('carrierCompany', comp);\n          }\n\n          resolve(transportCopy);\n        });\n      });\n    },\n\n    _createNewAdvice(originalTransport, transportCopy) {\n      const advice = this.get('store').createRecord('advice', {\n        transport: transportCopy\n      });\n      transportCopy.set('advice', advice);\n    },\n\n    _copyAdvice(originalTransport, transportCopy) {\n      if (!originalTransport.get('advice.id')) {\n        return;\n      }\n\n      originalTransport.get('advice').then(advice => advice.copy(true, {\n        ignoreAttributes: ['transport']\n      }).then(adviceCopy => {\n        adviceCopy.set('transport', transportCopy);\n        transportCopy.set('advice', adviceCopy);\n      }));\n    },\n\n    _handleAdviceCopy(originalTransport, transportCopy, transportType) {\n      if (transportType.get('shouldCopyAdviceOnTransportCopy')) {\n        this._copyAdvice(originalTransport, transportCopy, transportType);\n\n        return;\n      }\n\n      if (originalTransport.get('transportType.adviceSavedWithTransport')) {\n        this._createNewAdvice(originalTransport, transportCopy);\n      }\n    },\n\n    copySteps(originalTransport, transportCopy) {\n      const self = this;\n      const defaultMinAdviceDate = moment().startOf('day');\n      const defaultMaxAdviceDate = moment().startOf('day').add(1, 'day');\n      const indexes = originalTransport.get('indexes');\n      originalTransport.get('steps').forEach(s => {\n        const stepCopyPromise = s.copy(true, {\n          ignoreAttributes: ['address', 'transport', 'timeWindow', 'minAdviceDate', 'maxAdviceDate', 'arrivalDate', 'stepWarehouseLocations', 'segmentLdm', 'segmentPayload']\n        });\n        stepCopyPromise.then(async stepCopy => {\n          stepCopy.setProperties({\n            transport: transportCopy,\n            ownedByPrincipal: stepCopy.get('isInWarehouse'),\n            address: await s.get('address')\n          });\n          transportCopy.get('steps').addObject(stepCopy);\n\n          if (stepCopy.get('isInWarehouse')) {\n            if (s.get('minAdviceDate') || s.get('maxAdviceDate')) {\n              const defaultMinHour = s.get('minAdviceDate') ? s.get('minAdviceDate').getHours() : 0;\n              const defaultMaxHour = s.get('maxAdviceDate') ? s.get('maxAdviceDate').getHours() : 0;\n              stepCopy.setProperties({\n                minAdviceDate: defaultMinAdviceDate.add(defaultMinHour, 'hours').toDate(),\n                maxAdviceDate: defaultMaxAdviceDate.add(defaultMaxHour, 'hours').toDate()\n              });\n            }\n          } else {\n            const tt = await stepCopy.get('transport.transportType');\n            const arrivalDate = await this.get('addressUnloadTimeService').findArrivalDate(stepCopy.get('address'), tt);\n            stepCopy.setProperties({\n              arrivalDate\n            });\n          }\n\n          const indexesForStep = indexes.filterBy('step.id', s.get('id'));\n          self.copyIndexes(indexesForStep, transportCopy, stepCopy);\n          const stepPackageTypes = s.get('stepPackageType');\n\n          if (stepPackageTypes) {\n            self.copyStepPackageType(stepPackageTypes, stepCopy);\n          }\n        });\n        transportCopy.notifyPropertyChange('showContractorSection');\n      });\n    },\n\n    copyIndexes(indexesForStep, transportCopy, stepCopy) {\n      indexesForStep.forEach(index => {\n        const indexCopyPromise = index.copy(true, {\n          ignoreAttributes: ['transport', 'step', 'quantities']\n        });\n        indexCopyPromise.then(indexCopy => {\n          indexCopy.setProperties({\n            transport: transportCopy,\n            step: stepCopy\n          });\n          index.get('quantities').forEach(iq => {\n            const quantityCopyPromise = iq.copy(true, {\n              ignoreAttributes: ['index']\n            });\n            quantityCopyPromise.then(quantityCopy => {\n              quantityCopy.setProperties({\n                index: indexCopy\n              });\n            });\n          });\n        });\n      });\n    },\n\n    copyStepPackageType(stepPackageTypes, stepCopy) {\n      stepPackageTypes.forEach(spt => {\n        const sptPromise = spt.copy(true, {\n          ignoreAttributes: ['step']\n        });\n        sptPromise.then(sptCopy => {\n          sptCopy.setProperties({\n            step: stepCopy\n          });\n        });\n      });\n    },\n\n    copyCustomFields(originalTransport, transportCopy) {\n      originalTransport.get('customFields').forEach(cf => {\n        if (cf.get('definition.visibleDuringTransportCreation')) {\n          cf.copy(true, {\n            ignoreAttributes: ['id', 'transport']\n          }).then(cfCopy => {\n            cfCopy.setProperties({\n              transport: transportCopy\n            });\n          });\n        }\n      });\n    },\n\n    copyTransportPackages(originalTransport, transportCopy) {\n      originalTransport.get('transportPackages').filterBy('id').forEach(p => {\n        p.copy(true, {\n          ignoreAttributes: ['transport']\n        }).then(np => {\n          np.set('transport', transportCopy);\n          transportCopy.get('transportPackages').pushObject(np);\n        });\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/transport-packaging-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    store: Ember.inject.service(),\n\n    delete(transportPackaging) {\n      try {\n        return transportPackaging.destroyRecord().then(() => {\n          this.store.unloadRecord(transportPackaging);\n          return true;\n        });\n      } catch (e) {\n        console.error(e);\n        return false;\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/transport-relations/relation-sequence-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n\n    async getHasToWaitForNextIdentifier() {\n      const path = this.apolloApiService.APOLLO_API.TRANSPORT_TRANSPORT_RELATIONS.GET_HAS_TO_WAIT_FOR_IDENTIFIER;\n      const response = await this.apolloApiService.callApolloApi(path);\n\n      if (response.ok) {\n        const data = await response.json();\n        return data.identifier;\n      } else {\n        return null;\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/transport-relations/relations-combiner\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  class TransportCombiningOverweight extends Error {\n    constructor(...params) {\n      super(...params);\n\n      if (Error.captureStackTrace) {\n        Error.captureStackTrace(this, TransportCombiningOverweight);\n      }\n\n      this.name = 'TransportCombiningOverweight';\n      this.date = new Date();\n    }\n\n  }\n\n  var _default = Ember.Service.extend({\n    ajaxService: Ember.inject.service('ajax-service'),\n    apolloApiService: Ember.inject.service('api.apollo-api-service'),\n    relationsTracker: Ember.inject.service('transport-relations.relations-tracker'),\n    store: Ember.inject.service(),\n    router: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    timeWindowService: Ember.inject.service('time-window-service'),\n    actionProgressToast: Ember.inject.service('action-progress-service'),\n    relationSequenceService: Ember.inject.service('transport-relations.relation-sequence-service'),\n    combinedTransports: Ember.A([]),\n    combinedTransportsLabel: Ember.A([]),\n    combiningSuccess: null,\n    isOverweight: function (relation) {\n      const maxWeight = relation.relation.maxTotalWeight;\n\n      if (!maxWeight) {\n        return false;\n      }\n\n      let totalWeight = 0;\n      const masters = Ember.A(relation.masters.slice());\n      const slaves = Ember.A(relation.slaves.slice());\n      const allTransports = masters.concat(slaves);\n      allTransports.forEach(transport => {\n        transport.get('unloadSteps').forEach(step => {\n          if (!step || !step.get('weight')) {\n            return;\n          }\n\n          totalWeight += step.get('weight');\n        });\n      });\n      return totalWeight > maxWeight;\n    },\n    _transportWithHighestNumOfWindows: function (relation) {\n      // eslint-disable-next-line no-useless-call\n      return [].concat.apply([], [relation.masters, relation.slaves]).sortBy('stepsWithWarehouse.length').get('lastObject');\n    },\n    _handleTransportCombining: async function (relation) {\n      const self = this;\n\n      if (this._combinedTransportsHasAdviceAlready(relation)) {\n        if (!confirm(this.intl.t('transport.relations.combineClearingAlert'))) {\n          console.debug('Użytkownik przerwał operacje łączenia');\n          return;\n        }\n      }\n\n      try {\n        await this._removeAdvicesAndTimeWindows(relation);\n        await self.decombine(relation);\n        await self._saveTransportCombining(relation);\n        await self._handleAutoAdviceWhenCombined(relation);\n      } catch (error) {\n        console.error(error);\n      }\n    },\n    _handleAutoAdviceWhenCombined: function (relation) {\n      if (!relation.relation.get('autoAdviceWhenCombined')) {\n        return;\n      }\n\n      this._handleCreatingTimeWindow(relation);\n    },\n    _saveTransportCombining: async function (selectedRelation) {\n      const self = this;\n      const slaveTransports = selectedRelation.slaves;\n      const masterTransports = selectedRelation.masters;\n      const transports = slaveTransports.concat(masterTransports);\n      const relationType = selectedRelation.relation;\n\n      if (!transports || !relationType) {\n        throw new Error('Błąd podczas łaczenia transportów, lista transportów ' + ':: ' + transports + ' :: jest pusta lub relacja ' + ':: ' + relationType + ' :: nie istnieje.');\n      }\n\n      const slaveTransportType = slaveTransports.get('firstObject.transportType');\n      const masterTransportType = masterTransports.get('firstObject.transportType');\n\n      self._prepareCombinedTransportsLabel(transports);\n\n      self.actionProgressToast.showLoadingToast(this.get('intl').t('notificationToast.transportCombining.loading'));\n\n      try {\n        const path = this.get('apolloApiService').APOLLO_API.TRANSPORT_TRANSPORT_RELATIONS.SAVE_TRANSPORT_COMBINING;\n        const payload = JSON.stringify(self._prepareCombiningPayload(relationType, transports));\n        const response = await this.get('apolloApiService').callApolloApi(path, null, {\n          body: payload\n        });\n\n        if (response.ok) {\n          const data = await response.json();\n          this.get('store').pushPayload(data.transportTransportRelations);\n          this.set('combiningSuccess', true);\n        } else {\n          console.debug(response);\n          const error = await response.json();\n          console.error(error.errors);\n          self.set('combiningSuccess', false);\n          throw new Error(error);\n        }\n      } finally {\n        this._refreshAfterTransportCombining(masterTransportType, slaveTransportType, transports).then(() => {\n          this._showCombiningResultToast();\n        });\n      }\n    },\n    _handleHasToWaitFor: async function (relation) {\n      const masterTransports = relation.masters;\n      const masterTransportType = masterTransports.get('firstObject.transportType');\n      const slaveTransportType = relation.slaves.get('firstObject.transportType');\n      const relationIdentifier = await this.relationSequenceService.getHasToWaitForNextIdentifier();\n\n      if (!relationIdentifier) {\n        return;\n      }\n\n      masterTransports.forEach(master => {\n        if (!master) {\n          return;\n        }\n\n        const otherTransports = relation.slaves;\n        const relationType = relation.relation;\n\n        if (master && otherTransports) {\n          otherTransports.forEach(relatedTransport => {\n            const transportTransportRelation = this.get('store').createRecord('transportTransportRelation', {\n              transportRelation: relationType,\n              masterTransport: master,\n              relatedTransport,\n              alias: relationType.get('alias'),\n              relationIdentifier\n            });\n            transportTransportRelation.save().then(() => {\n              relatedTransport.reload();\n            }).catch(response => {\n              console.debug(response);\n              console.error(response.errors);\n            });\n          });\n          master.reload();\n        }\n      });\n\n      this._refreshAfterTransportCombining(masterTransportType, slaveTransportType, this._getAllTransports(relation));\n    },\n    _refreshAfterTransportCombining: function (masterTransportType, slaveTransportType, transports) {\n      return new Promise(function (resolve) {\n        masterTransportType.set('transportsTabVisited', false);\n        masterTransportType.set('forcedPollRequestTime', new Date().getTime());\n        slaveTransportType.set('transportsTabVisited', false);\n        slaveTransportType.set('forcedPollRequestTime', new Date().getTime());\n        transports.forEach(t => {\n          t.reload();\n        });\n        resolve();\n      });\n    },\n\n    combine(relation) {\n      try {\n        if (this._noRelations(relation)) {\n          console.warn('Brak transportów w modelu relacji');\n          this.router.transitionTo('transports.index', localStorage.getItem('LastVisitedTransportType'));\n        }\n\n        if (this.isOverweight(relation)) {\n          throw new TransportCombiningOverweight();\n        }\n\n        if (relation.relation.get('alias') === 'HAS_TO_WAIT_FOR') {\n          this._handleHasToWaitFor(relation);\n\n          this.relationsTracker.clear();\n          return;\n        }\n\n        if (relation.relation.get('alias') === 'TRANSPORT_COMBINING') {\n          this._handleTransportCombining(relation);\n\n          this.relationsTracker.clear();\n          return;\n        }\n      } catch (e) {\n        console.error('Błąd podczas tworzenia relacji :: ' + e);\n\n        if (e instanceof TransportCombiningOverweight) {\n          const maxWieghtTranslate = this.get('intl').t('transport.relations.maxWeight') + relation.relation.maxTotalWeight + 'kg';\n          this.actionProgressToast.showErrorToast(this.get('intl').t('transport.relations.overweight'), maxWieghtTranslate);\n        } else {\n          this.actionProgressToast.showErrorToast(this.get('intl').t('notificationToast.transportCombining.error'));\n        }\n      }\n    },\n\n    decombineAllRelatedTransports(transport) {\n      if (transport.get('relatedTo.length') < 1) {\n        return;\n      }\n\n      const relation = {\n        masters: [transport],\n        slaves: []\n      };\n      this.decombine(relation);\n    },\n\n    async decombine(relation) {\n      try {\n        const transportId = this._getAllTransports(relation).find(transport => transport.get('isCombinedTransport')).get('id');\n\n        const path = this.get('apolloApiService').APOLLO_API.TRANSPORT_TRANSPORT_RELATIONS.DELETE_ALL_COMBINED_RELATIONS;\n        const response = await this.get('apolloApiService').callApolloApi(path, {\n          id: transportId\n        });\n\n        if (response.status === 204) {\n          return;\n        }\n\n        if (!response.ok) {\n          const error = await response.json();\n          console.error('Błąd podczas próby rozłączania transportów. ' + error.errors);\n        }\n\n        console.log(`Usuneliśmy wszystkie relacje combining transportu :: ${transportId}`);\n        console.debug(response);\n      } catch (error) {\n        console.error(error);\n      }\n    },\n\n    _handleCreatingTimeWindow(relation) {\n      this._transportWithHighestNumOfWindows(relation).reload().then(transport => {\n        const stepsWithWarehouse = transport.get('stepsWithWarehouse');\n        const step = stepsWithWarehouse && stepsWithWarehouse.get('length') > 0 ? stepsWithWarehouse.get('firstObject') : transport.get('steps.firstObject');\n\n        this._goToWarehouse(step);\n      });\n    },\n\n    _goToWarehouse(step) {\n      const adviceButton = $('.advice-button-' + step.get('transport.id'));\n      adviceButton.button('loading');\n\n      if (!step.get('isInWarehouse')) {\n        this.openCreateAdviceModal(step.get('transport'));\n        adviceButton.button('reset');\n        return;\n      }\n\n      const warehouseId = step.get('warehouse.id');\n      const transport = this.get('store').peekRecord('transport', step.get('transport.id'));\n      this.timeWindowService.getFirstPossibleWindowStart(step, transport).then(response => {\n        const firstPossibleStart = response.firstPossibleStart;\n\n        if (!firstPossibleStart) {\n          alert(response.error);\n          adviceButton.button('reset');\n          return;\n        }\n\n        const dateString = moment(firstPossibleStart).format('YYYY-MM-DD');\n        this.router.transitionTo('warehouses.combined-schedule', warehouseId, dateString, '1', step.get('id'));\n        adviceButton.button('reset');\n      });\n    },\n\n    _combinedTransportsHasAdviceAlready(relation) {\n      const transports = this._getAllTransports(relation);\n\n      if (!transports || transports.length < 1) {\n        return;\n      }\n\n      return transports.any(t => t.get('hasAdvice'));\n    },\n\n    async _removeAdvicesAndTimeWindows(relation) {\n      const transports = this._getAllTransports(relation);\n\n      if (!transports) {\n        return new Error('Nie znaleziono transportow :: ' + transports);\n      }\n\n      if (!relation.relation.get('autoAdviceWhenCombined')) {\n        // Transporty nie mają flagi auto advice, nie usuwamy okien\n        return Promise.resolve();\n      }\n\n      const self = this;\n      const transportWithMaster = transports.find(t => {\n        return t.get('isCombinedTransport');\n      });\n      const response = await this.get('apolloApiService').callApolloApi(this.get('apolloApiService').APOLLO_API.TRANSPORT_TRANSPORT_RELATIONS.CLEAR_ADVICES_AND_TWS, null, {\n        body: JSON.stringify(self._prepareCombiningPayload(relation.relation, transports))\n      });\n\n      if (response.ok) {\n        transports.forEach(t => {\n          t.get('timeWindows').forEach(tw => {\n            t.get('timeWindows').removeObject(tw);\n            tw.unloadRecord();\n          });\n        });\n\n        if (transportWithMaster) {\n          transportWithMaster.get('masterTransports.firstObject.timeWindows').forEach(tw => {\n            console.debug('Unlaoding tw for master transport' + tw.id);\n            transportWithMaster.get('masterTransports.firstObject.timeWindows').removeObject(tw);\n            tw.unloadRecord();\n          });\n        }\n      } else {\n        const error = await response.json();\n        throw new Error(error.errors);\n      }\n    },\n\n    _getAllTransports(relation) {\n      return relation.masters.concat(relation.slaves).slice();\n    },\n\n    _prepareCombiningPayload(relationType, transports) {\n      return {\n        transportRelation: relationType.get('id'),\n        relatedTransports: transports.map(transport => transport.get('id'))\n      };\n    },\n\n    _prepareCombinedTransportsLabel(transports) {\n      this.set('combinedTransports', Ember.A([]));\n      transports.forEach(t => {\n        this.get('combinedTransports').pushObject(t);\n      });\n      this.set('combinedTransportsLabel', this.get('combinedTransports').getEach('erpIdentifier').join(', '));\n    },\n\n    _showCombiningResultToast() {\n      const isCombiningTransports = this.get('combinedTransports').length > 0;\n\n      if (this.get('combiningSuccess') && isCombiningTransports) {\n        this.actionProgressToast.showSuccessToast(this.get('intl').t('notificationToast.transportCombining.success') + this.get('combinedTransportsLabel'));\n      } else if (!this.get('combiningSuccess') && isCombiningTransports) {\n        this.actionProgressToast.showErrorToast(this.get('intl').t('notificationToast.transportCombining.error'));\n      }\n\n      this.set('combiningSuccess', null);\n    },\n\n    _noRelations(relation) {\n      return (relation.masters.length === 0 || relation.masters.every(t => {\n        return t === null || t === undefined;\n      })) && (relation.slaves.length === 0 || relation.slaves.every(t => {\n        return t === null || t === undefined;\n      }));\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/transport-relations/relations-tracker\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    currentTransports: Ember.A([]),\n\n    addRelation(transport) {\n      this.currentTransports.pushObject(transport);\n    },\n\n    removeRelation(transport) {\n      this.currentTransports.removeObject(transport);\n    },\n\n    findExisting(transport) {\n      return this.currentTransports.find(relation => {\n        return relation.get('id') === transport.get('id');\n      });\n    },\n\n    clear() {\n      while (this.currentTransports.length > 0) {\n        this.currentTransports.pop();\n      }\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/transport-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    store: Ember.inject.service(),\n    unloadTransports: function (transportType) {\n      this.get('store').peekAll('transport').filterBy('transportType.id', transportType.get('id')).forEach(t => {\n        t.unloadRecord();\n      });\n    },\n\n    handleUpdatedTransportPackages(transport) {\n      if (!transport.get('transportPackages.length')) {\n        return;\n      }\n\n      transport.get('transportPackages').then(pck => {\n        const pckCopy = pck.slice(0);\n        pckCopy.forEach(pck => {\n          if (pck !== undefined && !pck.get('id')) {\n            console.debug(`Unloading redundant transport packages for transport ${transport.id}..`);\n            transport.get('transportPackages').removeObject(pck);\n            pck.unloadRecord();\n          } else {\n            pck.reload();\n          }\n        });\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/transport-type-settings-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    store: Ember.inject.service(),\n\n    async getDeliverySettings(transportType) {\n      const transportTypeId = transportType.get('id');\n\n      if (!transportTypeId) {\n        return;\n      }\n\n      return await this.get('store').queryRecord('delivery-setting', {\n        transportTypeId\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/truck-type-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    store: Ember.inject.service(),\n    recordManager: Ember.inject.service('ember-data.record-manager'),\n\n    /**\n     * Set available truck types for given transport with visible truck types,\n     * if there is only one truck type also set it as selected truck type\n     *\n     * @param transport - The target transport\n     *\n     */\n    setTruckTypes: async function (transport) {\n      if (!transport.get('transportType.isTruckTypeVisible')) {\n        return;\n      }\n\n      const transportTypeId = transport.get('transportType.id');\n      const queryParams = transport.get('transportType.priceListSetting.truckTypeRouteOfferRestriction') ? {\n        transportTypeId,\n        routeTemplateId: transport.get('routeTemplate.id')\n      } : {\n        transportTypeId,\n        transportId: transport.id\n      };\n      const defaultTruckTypes = await this.store.query('truckType', queryParams);\n      transport.set('truckTypes', defaultTruckTypes);\n\n      if (defaultTruckTypes && defaultTruckTypes.length === 1) {\n        transport.set('truckType', defaultTruckTypes.get('firstObject'));\n      }\n    },\n\n    /**\n     * Clears relations for available truckTypes and selected truckType\n     *\n     * @param transport - The target transport\n     * @returns The updated transport\n     *\n     */\n    clearTruckTypes: function (transport) {\n      this.recordManager.clearRelationship(transport, 'truckTypes');\n      transport.set('truckTypes', Ember.A([]));\n      this.recordManager.clearRelationship(transport, 'truckType');\n      transport.set('truckType', null);\n      return transport;\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/user-access-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    store: Ember.inject.service(),\n    sessionAccount: Ember.inject.service('session-account'),\n    canAccess: function (requestedUserId, generalAccess, myAccountAccess) {\n      const currentUserId = this.get('sessionAccount.currentUser.id');\n      const isInMyAccount = currentUserId === requestedUserId;\n      const properRole = isInMyAccount ? myAccountAccess : generalAccess;\n      return properRole ? this.get('sessionAccount').hasRole(properRole) : isInMyAccount;\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/uuid-service\", [\"exports\", \"uuid\"], function (_exports, _uuid) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    uuid: function () {\n      if (this._isBrowserCryptoAvailable()) {\n        return window.crypto.randomUUID();\n      } else {\n        return (0, _uuid.v4)();\n      }\n    },\n    _isBrowserCryptoAvailable: function () {\n      return typeof window.crypto.randomUUID === 'function';\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/validation-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    isPositiveNumber: function (value) {\n      if (Ember.isEmpty(value)) {\n        return true;\n      }\n\n      return value >= 0;\n    },\n    isPositiveInteger: function (value) {\n      if (Ember.isEmpty(value)) {\n        return true;\n      }\n\n      return Number.isInteger(Number(value)) && value >= 0;\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/websocket-api\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Object.extend({\n    subscriptions: null,\n    client: null,\n    isConnected: Ember.computed('client.connected', function () {\n      return this.client ? this.client.connected : false;\n    }),\n\n    init() {\n      this._super(...arguments);\n\n      this.subscriptions = {};\n      (true && !(!Ember.isNone(this.client)) && Ember.assert('Websocket client must be provided', !Ember.isNone(this.client)));\n    },\n\n    willDestroy() {\n      this._super(...arguments);\n\n      this._cleanupSubscriptions();\n    },\n\n    /**\n     * Unsubscribe from a specific topic\n     * @param {string} topic - The endpoint to unsubscribe from\n     * @param {Object} [headers={}] - Optional headers for unsubscription @see https://www.npmjs.com/package/webstomp-client\n     * @returns {boolean} - Success status of unsubscription\n     */\n    unsubscribe(topic, headers = {}) {\n      try {\n        const subscription = this.subscriptions[topic];\n\n        if (!subscription) {\n          return false;\n        }\n\n        subscription.unsubscribe(headers);\n        delete this.subscriptions[topic];\n        return true;\n      } catch (error) {\n        this._handleError('unsubscription', error, topic);\n\n        return false;\n      }\n    },\n\n    /**\n     * Unsubscribe from multiple topics matching a pattern\n     * @param {string|RegExp} pattern - Pattern to match topics against\n     * @param {Object} [headers={}] - Optional headers for unsubscription @see https://www.npmjs.com/package/webstomp-client\n     * @returns {Array} - Array of successfully unsubscribed topics\n     */\n    unsubscribeAny(pattern, headers = {}) {\n      const regex = pattern instanceof RegExp ? pattern : new RegExp(pattern);\n      const matchingTopics = Object.keys(this.subscriptions).filter(topic => regex.test(topic));\n      return matchingTopics.filter(topic => this.unsubscribe(topic, headers));\n    },\n\n    /**\n     * Subscribe to a WebSocket topic\n     * @param {string} topic - The endpoint to subscribe to\n     * @param {Function} callback - Callback function to handle incoming messages\n     * @param {Object} [headers={}] - Optional headers for the subscription @see https://www.npmjs.com/package/webstomp-client\n     * @returns {Object|null} - Subscription object if successful, null otherwise\n     */\n    subscribe(topic, callback, headers = {}) {\n      try {\n        if (!this._validateSubscription(topic, callback)) {\n          return null;\n        }\n\n        const subscription = this.client.subscribe(topic, message => this._handleMessage(callback, message), headers);\n        this.subscriptions[topic] = subscription;\n        return subscription;\n      } catch (error) {\n        this._handleError('subscription', error, topic);\n\n        return null;\n      }\n    },\n\n    /**\n     * Send a message to a specific destination\n     * @param {string} destination - Target endpoint\n     * @param {string|Object} message - Message to send\n     * @param {Object} [headers={}] - Optional headers for the message @see https://www.npmjs.com/package/webstomp-client\n     * @returns {boolean} - Success status of sending the message\n     */\n    send(destination, message, headers = {}) {\n      try {\n        if (!this._validateConnection('send message')) {\n          return false;\n        }\n\n        const formattedMessage = this._formatMessage(message);\n\n        this.client.send(destination, formattedMessage, headers);\n        return true;\n      } catch (error) {\n        this._handleError('message sending', error, destination);\n\n        return false;\n      }\n    },\n\n    /**\n     * Disconnect the WebSocket connection\n     * @returns {boolean} - Success status of disconnection\n     */\n    disconnect() {\n      try {\n        if (!this._validateConnection('disconnect')) {\n          return false;\n        }\n\n        this._cleanupSubscriptions();\n\n        this.client.disconnect();\n        return true;\n      } catch (error) {\n        this._handleError('disconnection', error);\n\n        return false;\n      }\n    },\n\n    _handleMessage(callback, message) {\n      try {\n        callback.call(this, message);\n      } catch (error) {\n        this._handleError('message handling', error);\n      }\n    },\n\n    _validateConnection(operation) {\n      if (!this.isConnected) {\n        console.warn(`Cannot ${operation}: WebSocket connection is not open`);\n        return false;\n      }\n\n      return true;\n    },\n\n    _validateSubscription(topic, callback) {\n      if (!this._validateConnection('subscribe')) {\n        return false;\n      }\n\n      if (this.subscriptions[topic]) {\n        console.warn(`Topic ${topic} is already subscribed`);\n        return false;\n      }\n\n      if (typeof callback !== 'function') {\n        console.error('Callback must be a function');\n        return false;\n      }\n\n      return true;\n    },\n\n    _formatMessage(message) {\n      return typeof message === 'string' ? message : JSON.stringify(message);\n    },\n\n    _cleanupSubscriptions() {\n      Object.keys(this.subscriptions).forEach(topic => {\n        this.unsubscribe(topic);\n      });\n    },\n\n    _handleError(operation, error, context = '') {\n      const contextInfo = context ? ` for ${context}` : '';\n      console.error(`WebSocket ${operation} failed${contextInfo}:`, error);\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/websocket\", [\"exports\", \"apollo/config/environment\", \"apollo/services/websocket-api\"], function (_exports, _environment, _websocketApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const WEBSOCKET_STATES = {\n    DISCONNECTED: 'DISCONNECTED',\n    CONNECTED: 'CONNECTED',\n    FAILED: 'FAILED'\n  };\n\n  var _default = Ember.Service.extend({\n    sessionAccount: Ember.inject.service(),\n    webstompConnection: null,\n    websocketApi: null,\n    connectionState: WEBSOCKET_STATES.DISCONNECTED,\n    isWebSocketsEnabled: Ember.computed('sessionAccount.settings.USE_WEBSOCKETS', function () {\n      return this.sessionAccount.getSettingValue('USE_WEBSOCKETS') === 'true';\n    }),\n\n    /**\n     * Should be called as soon as user logs in\n     * @param user\n     * @returns {null}\n     */\n    async initializeSocketFor(user) {\n      if (!this._validateConnectionPrerequisites(user)) {\n        console.debug('Websocket connection could not be established!');\n        return;\n      }\n\n      const webstompClient = this._createWebstompClient();\n\n      const [ok, err] = await this._establishConnection(webstompClient, user);\n\n      if (ok) {\n        console.log('Websocket success');\n        this.set('webstompConnection', webstompClient);\n      }\n\n      if (err) {\n        console.log('Websocket error!', err);\n      }\n    },\n\n    /**\n     * @returns {WebsocketApi|null}\n     */\n    getSocketApi() {\n      if (this._shouldReturnExistingSocket()) {\n        return this.websocketApi;\n      }\n\n      const webstompClient = this.get('webstompConnection');\n\n      if (!webstompClient) {\n        return null;\n      }\n\n      if (this.websocketApi) {\n        this.websocketApi.set('client', webstompClient);\n        return this.websocketApi;\n      }\n\n      if (webstompClient.connected) {\n        return this._createNewSocketApi(webstompClient);\n      } else {\n        return null;\n      }\n    },\n\n    _createNewSocketApi(webstompClient) {\n      const websocketApi = _websocketApi.default.create({\n        client: webstompClient\n      });\n\n      this.set('websocketApi', websocketApi);\n      return websocketApi;\n    },\n\n    _createWebstompClient() {\n      const sockInstance = this._createSockJSInstance();\n\n      return webstomp.over(sockInstance, {\n        debug: _environment.default.stompDebug,\n        protocols: webstomp.VERSIONS.supportedProtocols(),\n        heartbeat: false\n      });\n    },\n\n    _shouldReturnExistingSocket() {\n      return this.websocketApi && this.connectionState === WEBSOCKET_STATES.CONNECTED;\n    },\n\n    _validateConnectionPrerequisites(currentUser) {\n      if (!currentUser) {\n        console.error('Websocket connection failed, user is not logged in');\n        return false;\n      }\n\n      if (!this.isWebSocketsEnabled) {\n        console.error('Websocket connection failed, websockets are disabled');\n        return false;\n      }\n\n      return true;\n    },\n\n    _createSockJSInstance() {\n      return new SockJS(_environment.default.stompURL, null, {\n        transports: ['websocket'] // W naszej wersji Springa(5.2.21) jest bug, który uniemożliwia korzystanie z transportu typu `xhr-streaming`\n        // oraz `xhr-polling` dla SockJS. Omijamy tego bug'a konfigurując SockJS w taki sposób, aby korzystał wyłącznie\n        // z protokołu websocket.\n        // https://github.com/sockjs/sockjs-client/issues/308\n        // https://github.com/spring-projects/spring-framework/commit/f004bb1b64cd9f39d58adc181607a1d5f3034b29\n\n      });\n    },\n\n    _establishConnection(webstompInstance, user) {\n      const credentials = {\n        username: user.username,\n        token: user.sessionAccount.token\n      };\n      return new Promise((resolve, reject) => {\n        webstompInstance.connect(credentials, () => {\n          this._handleSuccessfulConnection();\n\n          resolve([true, null]);\n        }, err => {\n          console.error('Websocket connection could not be established', err);\n          this.set('connectionState', WEBSOCKET_STATES.FAILED);\n          resolve([false, err]);\n        });\n      });\n    },\n\n    _handleSuccessfulConnection() {\n      this.setProperties({\n        connectionState: WEBSOCKET_STATES.CONNECTED\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/services/weight-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Service.extend({\n    sessionAccount: Ember.inject.service('session-account'),\n    weightApiService: Ember.inject.service('api.weight-api-service'),\n    store: Ember.inject.service(),\n    intl: Ember.inject.service(),\n\n    async automaticWeighing(checkpoint) {\n      const self = this;\n      const parsedReadOut = await this.fetchAndParseWeight();\n\n      if (!parsedReadOut) {\n        alert(self.get('intl').t('transport.weightSection.errors.cannotGetWeight'));\n      } // próbujemy zapisać nawet z błędem przy parsowaniu parsedReadOut, uruchamia mechanizm sychronizujący wagę (synchronizeWeights)\n\n\n      await this.saveNewWeight(checkpoint, parsedReadOut);\n    },\n\n    async fetchAndParseWeight() {\n      try {\n        const fetchResponse = await this.weightApiService.fetchWeight();\n        const parsedReadOut = this.weightApiService.parseFetchedWeight(fetchResponse);\n        const readOutInKilos = parsedReadOut * 1000;\n        return readOutInKilos;\n      } catch (e) {\n        console.error(e);\n        return null;\n      }\n    },\n\n    async saveOverweightNote(checkpoint) {\n      return this.get('store').createRecord('note', {\n        transport: checkpoint.get('transport'),\n        creator: this.get('sessionAccount').get('currentUser'),\n        note: this.get('intl').t('transport.weightSection.overweightNote'),\n        createdAt: new Date(),\n        autoGenerated: true\n      }).save();\n    },\n\n    async saveNewWeight(checkpoint, parsedReadOut) {\n      const self = this;\n      const currentWeight = checkpoint.get('currentWeight');\n\n      if (currentWeight) {\n        currentWeight.set('enabled', false);\n      }\n\n      const weightObject = self.store.createRecord('weight', {\n        task: checkpoint.get('task'),\n        warehouse: checkpoint.get('step.warehouse'),\n        transport: checkpoint.get('transport'),\n        enabled: true,\n        readOut: parsedReadOut,\n        dateCreated: new Date(),\n        confirmator: self.get('sessionAccount.currentUser')\n      });\n      return await weightObject.save().then(() => {\n        console.debug('Zapisaliśmy wagę: ' + weightObject.get('readOut'));\n        checkpoint.get('transport').then(transport => {\n          transport.get('weights').reload();\n        });\n        return true;\n      }).catch(response => {\n        console.debug(`Serwer zwrócił błąd ${response} - zapisujemy wagę w localStorage..`);\n        const key = 'weight_'.concat(weightObject.get('task.id'), '_', weightObject.get('transport.id'));\n        localStorage[key] = JSON.stringify(weightObject);\n\n        if (currentWeight) {\n          currentWeight.set('enabled', false);\n        }\n\n        checkpoint.set('hasUnsynchronizedWeight', true); // TODO Refaktor - rozłączyć zależność z metodą synchronizeWeights przez usunięcie weightSynchronizingActivated\n\n        if (!self.get('weightSynchronizingActivated')) {\n          self.set('weightSynchronizingActivated', true);\n          return Ember.run.later(self, function () {\n            self.synchronizeWeights();\n          }, self.get('interval'));\n        }\n\n        return false;\n      });\n    },\n\n    synchronizeWeights() {\n      const weightKeys = [];\n      const weightObjects = [];\n      const self = this;\n\n      for (let i = 0; i < localStorage.length; i++) {\n        const key = localStorage.key(i);\n\n        if (key.startsWith('weight')) {\n          weightKeys.pushObject(key);\n          weightObjects.pushObject(localStorage[key]);\n        }\n      }\n\n      if (weightObjects.length === 0) {\n        return;\n      }\n\n      this.weightApiService.callSynchronizeWeights(weightObjects).then(() => {\n        console.debug('Zsynchronizowaliśmy wagi');\n        weightObjects.forEach(weightString => {\n          const weight = JSON.parse(weightString);\n          self.store.findRecord('transport', weight.transport).then(transport => {\n            transport.get('weights').reload();\n            transport.get('checkpoints').filterBy('hasUnsynchronizedWeight').forEach(checkpoint => {\n              checkpoint.set('hasUnsychronizedWeight', false);\n            });\n            transport.get('weights').filter(w => !w.get('id')).forEach(w => {\n              w.destroyRecord();\n            });\n          });\n        });\n        weightKeys.forEach(key => {\n          localStorage.removeItem(key);\n        }); // TODO Refaktor - rozłączyć zależność z metodą saveNewWeight przez usunięcie weightSynchronizingActivated\n\n        self.set('weightSynchronizingActivated', false);\n      }).catch(response => {\n        console.debug('Nie udało się przesłać wagi - planujemy następną próbę');\n        return Ember.run.later(this, function () {\n          this.synchronizeWeights();\n        }, 10000);\n      });\n    }\n\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/session-stores/application\", [\"exports\", \"ember-simple-auth/session-stores/adaptive\"], function (_exports, _adaptive) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _adaptive.default.extend();\n\n  _exports.default = _default;\n});","define(\"apollo/templates/application\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"k3o4nPw6\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tt\\\",\\\"principalCompany\\\"],\\\"statements\\\":[[7,\\\"main\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"session\\\",\\\"isAuthenticated\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"sessionAccount\\\",\\\"currentUser\\\"]],[27,\\\"not\\\",[[23,[\\\"sessionAccount\\\",\\\"passwordExpired\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"hdMode\\\"]],true],null],\\\"hd-mode\\\"],null]]]],[9],[0,\\\"\\\\n                \\\"],[7,\\\"nav\\\"],[11,\\\"class\\\",\\\"navbar navbar-default navbar-fixed-top hidden-in-hd-mode\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container-fluid\\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"navbar-header\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"logoOnNavBar\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[21,\\\"hyperlinkToLogoOnNavbar\\\"]],[9],[0,\\\"\\\\n                                    \\\"],[7,\\\"img\\\"],[11,\\\"class\\\",\\\"navbar-brand\\\"],[12,\\\"src\\\",[21,\\\"logoOnNavBar\\\"]],[9],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"\\\"],[11,\\\"class\\\",\\\"navbar-brand\\\"],[9],[0,\\\"\\\\n                                    LOGINTEGRA\\\\n                                \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"afterLogin\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                            \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"navbar-toggle navbar-right\\\"],[11,\\\"data-toggle\\\",\\\"collapse\\\"],[11,\\\"data-target\\\",\\\"#navbar\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"sr-only\\\"],[9],[0,\\\"Toggle navigation\\\"],[10],[0,\\\"\\\\n                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"icon-bar\\\"],[9],[10],[0,\\\"\\\\n                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"icon-bar\\\"],[9],[10],[0,\\\"\\\\n                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"icon-bar\\\"],[9],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"navbar\\\"],[11,\\\"class\\\",\\\"navbar-collapse collapse\\\"],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"nav navbar-nav left-menu\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_ANNOUNCEMENTS_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"ANNOUNCEMENTS_TAB\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"announcements\\\",[27,\\\"query-params\\\",null,[[\\\"max\\\",\\\"page\\\"],[10,1]]]],null]]]],[9],[0,\\\"\\\\n                                            \\\"],[1,[27,\\\"t\\\",[\\\"tabs.announcements\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"unreadAnnouncementsCount\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"badge count-badge\\\"],[11,\\\"data-toggle\\\",\\\"popover\\\"],[11,\\\"data-placement\\\",\\\"left\\\"],[11,\\\"data-content\\\",\\\"\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[1,[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"unreadAnnouncementsCount\\\"]],false],[0,\\\"\\\\n                                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                        \\\"],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_TRANSPORT_TABLE\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null],[23,[\\\"transportTypeModeToRedirectTo\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"TRANSPORT_TAB\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"transports.index\\\",[23,[\\\"transportTypeModeToRedirectTo\\\"]],[27,\\\"query-params\\\",null,[[\\\"query\\\"],[[26]]]]],null]]]],[9],[0,\\\"\\\\n                                            \\\"],[1,[21,\\\"transportsTabLabel\\\"],false],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"transportTypeAvailableInArchive\\\"]],[27,\\\"is-in-list\\\",[\\\"ROLE_ARCHIVE_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"ARCHIVE_TAB\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"transports.archive\\\",[23,[\\\"transportTypeAvailableInArchive\\\",\\\"id\\\"]],[27,\\\"query-params\\\",null,[[\\\"page\\\"],[1]]]],null]]]],[9],[0,\\\"\\\\n                                            \\\"],[1,[27,\\\"t\\\",[\\\"tabs.archive\\\"],null],false],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"defaultWarehouse\\\",\\\"id\\\"]],[27,\\\"is-in-list\\\",[\\\"ROLE_WAREHOUSE_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"WAREHOUSE_TAB\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"warehouses.schedule\\\",[23,[\\\"defaultWarehouse\\\",\\\"id\\\"]],[27,\\\"moment-format\\\",[[23,[\\\"warehouseDate\\\"]],\\\"YYYY-MM-DD\\\"],null],[23,[\\\"numberOfDaysInSchedule\\\"]]],null]]]],[9],[0,\\\"\\\\n                                            \\\"],[1,[27,\\\"t\\\",[\\\"tabs.schedule\\\"],null],false],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"responsiveView\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_PRODUCTS_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"PRODUCTS_TAB\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"products.index\\\"],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"products\\\",\\\"label\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_COMPANIES_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"COMPANIES_TAB\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"companies\\\"],null]]]],[9],[0,\\\"\\\\n                                                \\\"],[1,[27,\\\"t\\\",[\\\"tabs.companies\\\"],null],false],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_OWN_COMPANY_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"OWN_COMPANY_TAB\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"companies.show\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"company\\\",\\\"id\\\"]]],null]]]],[9],[0,\\\"\\\\n                                                \\\"],[1,[27,\\\"t\\\",[\\\"common.company\\\"],null],false],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n                                    \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_USERS_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"USERS_TAB\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"users.index\\\",[27,\\\"query-params\\\",null,[[\\\"max\\\",\\\"page\\\"],[10,1]]]],null]]]],[9],[0,\\\"\\\\n                                                \\\"],[1,[27,\\\"t\\\",[\\\"tabs.users\\\"],null],false],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_STATISTICS_REPORT_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"STATISTICS_REPORT_TAB\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"statistics-report.index\\\"],null]]]],[9],[0,\\\"\\\\n                                                \\\"],[1,[27,\\\"t\\\",[\\\"tabs.report\\\"],null],false],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_CAN_CREATE_FILE_SETS\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"FILES_TAB\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"files.index\\\"],null]]]],[9],[0,\\\"\\\\n                                                \\\"],[1,[27,\\\"t\\\",[\\\"tabs.files\\\"],null],false],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_MODE_OF_TRANSPORTATION_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"MODE_OF_TRANSPORTATION_TAB\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"mode-of-transportation.index\\\"],null]]]],[9],[0,\\\"\\\\n                                                \\\"],[1,[27,\\\"t\\\",[\\\"tabs.modeOfTransportation\\\"],null],false],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_CARRIERS_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"CARRIERS_TAB\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"carriers.index\\\"],null]]]],[9],[0,\\\"\\\\n                                                \\\"],[1,[27,\\\"t\\\",[\\\"tabs.carriers\\\"],null],false],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_PLANNING_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"PLANNING_TAB\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"planning.index\\\",[23,[\\\"transportTypeModeForPlanning\\\"]]],null]]]],[9],[0,\\\"\\\\n                                                \\\"],[1,[27,\\\"t\\\",[\\\"tabs.planning\\\"],null],false],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_PRICE_LIST_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"PRICE_LIST_TAB\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"price-list.index\\\",[23,[\\\"transportTypeModeForPriceList\\\"]],[27,\\\"query-params\\\",null,[[\\\"max\\\",\\\"page\\\"],[[23,[\\\"maxRowsInPriceListTable\\\"]],1]]]],null]]]],[9],[0,\\\"\\\\n                                                \\\"],[1,[27,\\\"t\\\",[\\\"tabs.priceLists\\\"],null],false],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_CLASSIFICATION_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"CLASSIFICATION_TAB\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"classification-resources.index\\\"],null]]]],[9],[0,\\\"\\\\n                                                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"classificationTab\\\"]]],false],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_QUEUE_STATUS_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"QUEUE_STATUS_TAB\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"queue-status\\\"],null]]]],[9],[0,\\\"\\\\n                                                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"queueStatusTab\\\"]]],false],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_QUEUES_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"ROLE_QUEUES_TAB\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"queues.index\\\"],null]]]],[9],[0,\\\"\\\\n                                                \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"queuesTab\\\"]]],false],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_SETTINGS_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"SETTINGS_TAB\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"settings\\\"],null]]]],[9],[0,\\\"\\\\n                                                \\\"],[1,[27,\\\"t\\\",[\\\"tabs.settings\\\"],null],false],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_INVITATIONS_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"INVITATIONS_TAB\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"invitations\\\"],null]]]],[9],[0,\\\"\\\\n                                                \\\"],[1,[27,\\\"t\\\",[\\\"tabs.invitations\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"waitingInvitationsCount\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                                                    \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"badge count-badge\\\"],[11,\\\"data-toggle\\\",\\\"popover\\\"],[11,\\\"data-placement\\\",\\\"left\\\"],[11,\\\"data-content\\\",\\\"\\\"],[9],[0,\\\"\\\\n                                                        \\\"],[1,[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"waitingInvitationsCount\\\"]],false],[0,\\\"\\\\n                                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_SUPER_USER\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"SUPER_USER_TAB\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"super-admin.index\\\"],null]]]],[9],[0,\\\"\\\\n                                                \\\"],[1,[27,\\\"fa-icon\\\",[\\\"bomb\\\"],null],false],[0,\\\"\\\\n                                                \\\"],[1,[27,\\\"t\\\",[\\\"tabs.superAdmin\\\"],null],false],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                                    \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                                        \\\"],[1,[21,\\\"temporary-account-alert\\\"],false],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"dropdown\\\"],[11,\\\"data-tab-name\\\",\\\"MORE_DROPDOWN\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[11,\\\"data-toggle\\\",\\\"dropdown\\\"],[11,\\\"role\\\",\\\"button\\\"],[11,\\\"aria-haspopup\\\",\\\"true\\\"],[11,\\\"aria-expanded\\\",\\\"false\\\"],[9],[0,\\\"\\\\n                                            \\\"],[1,[27,\\\"t\\\",[\\\"common.more\\\"],null],false],[0,\\\"\\\\n                                            \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"caret\\\"],[9],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n                                        \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"dropdown-menu\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_PRODUCTS_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"PRODUCTS_TAB\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"products.index\\\"],null,{\\\"statements\\\":[[0,\\\"                                                        \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"products\\\",\\\"label\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_COMPANIES_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"COMPANIES_TAB\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"companies\\\"],null]]]],[9],[0,\\\"\\\\n                                                        \\\"],[1,[27,\\\"t\\\",[\\\"tabs.companies\\\"],null],false],[0,\\\"\\\\n                                                    \\\"],[10],[0,\\\"\\\\n                                                \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_OWN_COMPANY_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"OWN_COMPANY_TAB\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"companies.show\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"company\\\",\\\"id\\\"]]],null]]]],[9],[0,\\\"\\\\n                                                        \\\"],[1,[27,\\\"t\\\",[\\\"common.company\\\"],null],false],[0,\\\"\\\\n                                                    \\\"],[10],[0,\\\"\\\\n                                                \\\"],[10],[0,\\\"\\\\n                                            \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_USERS_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"USERS_TAB\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"users.index\\\",[27,\\\"query-params\\\",null,[[\\\"max\\\",\\\"page\\\"],[10,1]]]],null]]]],[9],[0,\\\"\\\\n                                                        \\\"],[1,[27,\\\"t\\\",[\\\"tabs.users\\\"],null],false],[0,\\\"\\\\n                                                    \\\"],[10],[0,\\\"\\\\n                                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_STATISTICS_REPORT_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"STATISTICS_REPORT_TAB\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"statistics-report.index\\\"],null]]]],[9],[0,\\\"\\\\n                                                        \\\"],[1,[27,\\\"t\\\",[\\\"tabs.report\\\"],null],false],[0,\\\"\\\\n                                                    \\\"],[10],[0,\\\"\\\\n                                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_CAN_CREATE_FILE_SETS\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"FILES_TAB\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"files.index\\\"],null]]]],[9],[0,\\\"\\\\n                                                        \\\"],[1,[27,\\\"t\\\",[\\\"tabs.files\\\"],null],false],[0,\\\"\\\\n                                                    \\\"],[10],[0,\\\"\\\\n                                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_MODE_OF_TRANSPORTATION_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"MODE_OF_TRANSPORTATION_TAB\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"mode-of-transportation.index\\\"],null]]]],[9],[0,\\\"\\\\n                                                        \\\"],[1,[27,\\\"t\\\",[\\\"tabs.modeOfTransportation\\\"],null],false],[0,\\\"\\\\n                                                    \\\"],[10],[0,\\\"\\\\n                                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_CARRIERS_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"CARRIERS_TAB\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"carriers.index\\\"],null]]]],[9],[0,\\\"\\\\n                                                        \\\"],[1,[27,\\\"t\\\",[\\\"tabs.carriers\\\"],null],false],[0,\\\"\\\\n                                                    \\\"],[10],[0,\\\"\\\\n                                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_PLANNING_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"PLANNING_TAB\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"planning.index\\\",[23,[\\\"transportTypeModeForPlanning\\\"]]],null]]]],[9],[0,\\\"\\\\n                                                        \\\"],[1,[27,\\\"t\\\",[\\\"tabs.planning\\\"],null],false],[0,\\\"\\\\n                                                    \\\"],[10],[0,\\\"\\\\n                                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_PRICE_LIST_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"PRICE_LIST_TAB\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"price-list.index\\\",[23,[\\\"transportTypeModeForPriceList\\\"]],[27,\\\"query-params\\\",null,[[\\\"max\\\",\\\"page\\\"],[[23,[\\\"maxRowsInPriceListTable\\\"]],1]]]],null]]]],[9],[0,\\\"\\\\n                                                        \\\"],[1,[27,\\\"t\\\",[\\\"tabs.priceLists\\\"],null],false],[0,\\\"\\\\n                                                    \\\"],[10],[0,\\\"\\\\n                                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_CLASSIFICATION_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"CLASSIFICATION_TAB\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"classification-resources.index\\\"],null]]]],[9],[0,\\\"\\\\n                                                        \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"classificationTab\\\"]]],false],[0,\\\"\\\\n                                                    \\\"],[10],[0,\\\"\\\\n                                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_QUEUE_STATUS_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"QUEUE_STATUS_TAB\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"queue-status\\\"],null]]]],[9],[0,\\\"\\\\n                                                        \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"queueStatusTab\\\"]]],false],[0,\\\"\\\\n                                                    \\\"],[10],[0,\\\"\\\\n                                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_QUEUES_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"ROLE_QUEUES_TAB\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"queues.index\\\"],null]]]],[9],[0,\\\"\\\\n                                                        \\\"],[1,[27,\\\"setting-translation\\\",null,[[\\\"settingClass\\\",\\\"labelName\\\"],[\\\"square\\\",\\\"queuesTab\\\"]]],false],[0,\\\"\\\\n                                                    \\\"],[10],[0,\\\"\\\\n                                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_SETTINGS_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"SETTINGS_TAB\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"settings\\\"],null]]]],[9],[0,\\\"\\\\n                                                        \\\"],[1,[27,\\\"t\\\",[\\\"tabs.settings\\\"],null],false],[0,\\\"\\\\n                                                    \\\"],[10],[0,\\\"\\\\n                                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_INVITATIONS_TAB\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"INVITATIONS_TAB\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"invitations\\\"],null]]]],[9],[0,\\\"\\\\n                                                        \\\"],[1,[27,\\\"t\\\",[\\\"tabs.invitations\\\"],null],false],[0,\\\"\\\\n                                                    \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"waitingInvitationsCount\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                                                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"badge count-badge\\\"],[11,\\\"data-toggle\\\",\\\"popover\\\"],[11,\\\"data-placement\\\",\\\"left\\\"],[11,\\\"data-content\\\",\\\"\\\"],[9],[0,\\\"\\\\n                                                            \\\"],[1,[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"waitingInvitationsCount\\\"]],false],[0,\\\"\\\\n                                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"is-in-list\\\",[\\\"ROLE_SUPER_USER\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"roleNames\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[11,\\\"data-tab-name\\\",\\\"SUPER_USER_TAB\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"super-admin.index\\\"],null]]]],[9],[0,\\\"\\\\n                                                        \\\"],[1,[27,\\\"fa-icon\\\",[\\\"bomb\\\"],null],false],[0,\\\"\\\\n                                                        \\\"],[1,[27,\\\"t\\\",[\\\"tabs.superAdmin\\\"],null],false],[0,\\\"\\\\n                                                    \\\"],[10],[0,\\\"\\\\n                                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                                            \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                                                \\\"],[1,[21,\\\"temporary-account-alert\\\"],false],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                            \\\"],[10],[0,\\\"\\\\n                            \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"nav navbar-nav navbar-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showPrincipalSwitch\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"dropdown\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[11,\\\"class\\\",\\\"dropdown-toggle\\\"],[11,\\\"id\\\",\\\"drop1\\\"],[11,\\\"data-toggle\\\",\\\"dropdown\\\"],[11,\\\"role\\\",\\\"button\\\"],[11,\\\"aria-haspopup\\\",\\\"true\\\"],[11,\\\"aria-expanded\\\",\\\"false\\\"],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"b\\\"],[9],[1,[23,[\\\"principal\\\",\\\"shortName\\\"]],false],[10],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"caret\\\"],[9],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n\\\\n                                        \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"dropdown-menu\\\"],[11,\\\"aria-labelledby\\\",\\\"drop1\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"sessionAccount\\\",\\\"principalsWhereUserHasRole\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                                                    \\\"],[7,\\\"a\\\"],[12,\\\"class\\\",[28,[\\\"clickable\\\\n                                                            \\\",[27,\\\"if\\\",[[22,2,[\\\"isCurrentPrincipal\\\"]],\\\"active\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[22,2,[\\\"isCurrentPrincipal\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                                            >\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                                                        \\\"],[1,[22,2,[\\\"shortName\\\"]],false],[0,\\\"\\\\n                                                    \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"changePrincipalSpace\\\",[22,2,[]]]],[10],[0,\\\"\\\\n                                                \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n                                            \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"help-block\\\"],[9],[0,\\\"\\\\n                                                \\\"],[1,[27,\\\"t\\\",[\\\"help.changePrincipalSpaceInfo\\\"],null],false],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[11,\\\"role\\\",\\\"button\\\"],[11,\\\"class\\\",\\\"bold\\\"],[9],[0,\\\"\\\\n                                            \\\"],[1,[23,[\\\"sessionAccount\\\",\\\"currentCompany\\\",\\\"partnershipWithPrincipal\\\",\\\"principalCompany\\\",\\\"shortName\\\"]],false],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,[\\\"canPlanTransports\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"li\\\"],[12,\\\"class\\\",[28,[[27,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"principal\\\",\\\"transportTypesThatCanBeCreated\\\",\\\"length\\\"]],1],null],\\\"dropdown\\\"],null]]]],[11,\\\"data-field-name\\\",\\\"PLAN_TRANSPORTS\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"principal\\\",\\\"transportTypesThatCanBeCreated\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"                                            \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[11,\\\"data-toggle\\\",\\\"dropdown\\\"],[11,\\\"role\\\",\\\"button\\\"],[11,\\\"aria-haspopup\\\",\\\"true\\\"],[11,\\\"aria-expanded\\\",\\\"false\\\"],[9],[0,\\\"\\\\n                                                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\"\\\\n                                                \\\"],[1,[27,\\\"t\\\",[\\\"common.plan\\\"],null],false],[0,\\\"\\\\n                                                \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"caret\\\"],[9],[10],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n                                            \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"dropdown-menu\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"principal\\\",\\\"transportTypesThatCanBeCreated\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"create-transport-button\\\",null,[[\\\"type\\\"],[[22,1,[]]]],{\\\"statements\\\":[[0,\\\"                                                        \\\"],[7,\\\"li\\\"],[12,\\\"data-field-name\\\",[28,[[22,1,[\\\"alias\\\"]]]]],[11,\\\"class\\\",\\\"add-transport-btn\\\"],[9],[0,\\\"\\\\n                                                            \\\"],[1,[22,1,[\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n                                                        \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"                                            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"create-transport-button\\\",null,[[\\\"type\\\"],[[23,[\\\"principal\\\",\\\"transportTypesThatCanBeCreated\\\",\\\"firstObject\\\"]]]],{\\\"statements\\\":[[0,\\\"                                                \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-plus\\\"],[9],[10],[0,\\\"\\\\n                                                \\\"],[1,[23,[\\\"principal\\\",\\\"transportTypesThatCanBeCreated\\\",\\\"firstObject\\\",\\\"nameInAppropriateLanguage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"                                    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                                \\\"],[7,\\\"li\\\"],[11,\\\"data-field-name\\\",\\\"NOTIFICATIONS_BELL\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[21,\\\"notification-bell\\\"],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                                \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"dropdown\\\"],[11,\\\"data-field-name\\\",\\\"MY_ACCOUNT\\\"],[9],[0,\\\"\\\\n                                    \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[11,\\\"data-toggle\\\",\\\"dropdown\\\"],[11,\\\"role\\\",\\\"button\\\"],[11,\\\"aria-haspopup\\\",\\\"true\\\"],[11,\\\"aria-expanded\\\",\\\"false\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"i\\\"],[11,\\\"class\\\",\\\"fa fa-user\\\"],[9],[10],[0,\\\"\\\\n                                        \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"caret\\\"],[9],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n                                    \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"dropdown-menu\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"li\\\"],[12,\\\"onclick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"collapseNavbar\\\"],null]],[9],[0,\\\"\\\\n                                            \\\"],[7,\\\"a\\\"],[12,\\\"href\\\",[28,[[27,\\\"href-to\\\",[\\\"users.edit\\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"id\\\"]]],null]]]],[9],[0,\\\"\\\\n                                                \\\"],[7,\\\"span\\\"],[12,\\\"title\\\",[28,[[27,\\\"t\\\",[\\\"user.myAccount\\\"],null],\\\": \\\",[23,[\\\"sessionAccount\\\",\\\"currentUser\\\",\\\"username\\\"]]]]],[9],[1,[27,\\\"t\\\",[\\\"user.myAccount\\\"],null],false],[10],[0,\\\"\\\\n                                            \\\"],[10],[0,\\\"\\\\n                                        \\\"],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                                \\\"],[7,\\\"li\\\"],[9],[7,\\\"a\\\"],[11,\\\"class\\\",\\\"clickable\\\"],[9],[0,\\\"\\\\n                                    \\\"],[1,[21,\\\"show-manuals\\\"],false],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                                \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n                                    \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"navbar-btn\\\"],[9],[0,\\\"\\\\n                                        \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[11,\\\"class\\\",\\\"btn btn-default\\\"],[11,\\\"role\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                                            \\\"],[1,[27,\\\"t\\\",[\\\"auth.logout\\\"],null],false],[0,\\\"\\\\n                                        \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"invalidateSession\\\"]],[10],[0,\\\"\\\\n                                    \\\"],[10],[0,\\\"\\\\n                                \\\"],[10],[0,\\\"\\\\n                            \\\"],[10],[0,\\\"\\\\n                        \\\"],[10],[0,\\\"\\\\n\\\\n                    \\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"upper-space hidden-in-hd-mode\\\"],[9],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"browserOld\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container alert alert-danger alert-dismissible old-browser-alert\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"close\\\"],[11,\\\"data-dismiss\\\",\\\"alert\\\"],[11,\\\"aria-label\\\",\\\"Close\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"×\\\"],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n                \\\"],[1,[27,\\\"t\\\",[\\\"common.oldBrowser\\\"],null],false],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"sessionAccount\\\",\\\"currentUser\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[21,\\\"transports/transports-table/action-progress-toast\\\"],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"outlet\\\",[\\\"main-modal\\\"],null],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"outlet\\\",[\\\"sub-modal\\\"],null],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[27,\\\"outlet\\\",[\\\"popup-dialog\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"row \\\",[27,\\\"unless\\\",[[23,[\\\"isAuthPage\\\"]],\\\"registration-page\\\",\\\"login-page\\\"],null]]]],[12,\\\"style\\\",[27,\\\"if\\\",[[23,[\\\"isAuthPage\\\"]],[23,[\\\"loginBackgroundStyle\\\"]]],null]],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"outlet\\\",[\\\"login\\\"],null],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"outlet\\\",[\\\"unauthenticated\\\"],null],false],[0,\\\"\\\\n            \\\"],[1,[27,\\\"outlet\\\",[\\\"reset-password\\\"],null],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"unless\\\",[[23,[\\\"printView\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"sessionAccount\\\",\\\"currentUser\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"footer-resize responsive-main-hide\\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center footer-image\\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"img\\\"],[12,\\\"src\\\",[21,\\\"footer\\\"]],[9],[10],[0,\\\"\\\\n                \\\"],[10],[0,\\\"\\\\n            \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"printView\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"footer\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-left no-wrap\\\"],[9],[0,\\\"\\\\n            \\\"],[1,[27,\\\"fa-icon\\\",[\\\"copyright\\\"],null],false],[0,\\\" \\\"],[1,[21,\\\"currentYear\\\"],false],[0,\\\" Logintegra sp. z o.o. \\\"],[1,[27,\\\"t\\\",[\\\"common.allRightsReserved\\\"],null],false],[0,\\\".\\\\n        \\\"],[10],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"pull-right\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"img\\\"],[11,\\\"class\\\",\\\"logintegra-logo-footer\\\"],[11,\\\"src\\\",\\\"/assets/images/logintegra-logo-new.png\\\"],[9],[10],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"common.appVersion\\\"],null],false],[0,\\\" \\\"],[1,[23,[\\\"session\\\",\\\"backendVersion\\\"]],false],[0,\\\" / \\\"],[1,[21,\\\"app-version\\\"],false],[0,\\\"\\\\n        \\\"],[10],[0,\\\"\\\\n    \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/templates/application.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/templates/components/draggable-object-target\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"yzxpoO6D\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"enableClicking\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[9],[0,\\\"\\\\n    \\\"],[14,1],[0,\\\"\\\\n  \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"acceptForDrop\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/templates/components/draggable-object-target.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/templates/components/draggable-object\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"IfzWd8r3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"enableClicking\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"#\\\"],[9],[0,\\\"\\\\n    \\\"],[14,1],[0,\\\"\\\\n  \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"selectForDrag\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/templates/components/draggable-object.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/templates/components/object-bin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"D8QOi6kr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"obj\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"draggable-object-target\\\",null,[[\\\"action\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"handleObjectDropped\\\"],null]]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"object-bin-title\\\"],[9],[1,[21,\\\"name\\\"],false],[10],[0,\\\"\\\\n  \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\"]]],null,{\\\"statements\\\":[[4,\\\"draggable-object\\\",null,[[\\\"action\\\",\\\"content\\\"],[\\\"handleObjectDragged\\\",[22,1,[]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[14,2,[[22,1,[]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/templates/components/object-bin.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/templates/components/sortable-objects\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"mgVk8e36\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[14,1]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/templates/components/sortable-objects.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/templates/users/loading\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.HTMLBars.template({\n    \"id\": \"5B0aWtdx\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"container padding-top-big text-center\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/images/ajax-loader.gif\\\"],[9],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"apollo/templates/users/loading.hbs\"\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/themes/bootstrap3\", [\"exports\", \"ember-models-table/themes/bootstrap3\"], function (_exports, _bootstrap) {\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 _bootstrap.default;\n    }\n  });\n});","define(\"apollo/themes/bootstrap4\", [\"exports\", \"ember-models-table/themes/bootstrap4\"], function (_exports, _bootstrap) {\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 _bootstrap.default;\n    }\n  });\n});","define(\"apollo/themes/default\", [\"exports\", \"ember-models-table/themes/default\"], function (_exports, _default) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _default.default;\n    }\n  });\n});","define(\"apollo/themes/ember-bootstrap-v3\", [\"exports\", \"ember-models-table/themes/ember-bootstrap-v3\"], function (_exports, _emberBootstrapV) {\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 _emberBootstrapV.default;\n    }\n  });\n});","define(\"apollo/themes/ember-bootstrap-v4\", [\"exports\", \"ember-models-table/themes/ember-bootstrap-v4\"], function (_exports, _emberBootstrapV) {\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 _emberBootstrapV.default;\n    }\n  });\n});","define(\"apollo/themes/ember-semanticui\", [\"exports\", \"ember-models-table/themes/ember-semanticui\"], function (_exports, _emberSemanticui) {\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 _emberSemanticui.default;\n    }\n  });\n});","define(\"apollo/themes/semanticui\", [\"exports\", \"ember-models-table/themes/ember-semanticui\"], function (_exports, _emberSemanticui) {\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 _emberSemanticui.default;\n    }\n  });\n});","define(\"apollo/transforms/json\", [\"exports\", \"ember-data-change-tracker/transforms/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(\"apollo/transforms/list\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Transform.extend({\n    deserialize: function (serialized) {\n      if (serialized) {\n        return serialized.split(\",\");\n      }\n\n      return [];\n    },\n    serialize: function (deserialized) {\n      if (deserialized) {\n        return deserialized.join(\",\");\n      }\n\n      return null;\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/transforms/object\", [\"exports\", \"ember-data-change-tracker/transforms/object\"], function (_exports, _object) {\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 _object.default;\n    }\n  });\n});","define(\"apollo/transforms/raw\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = _emberData.default.Transform.extend({\n    deserialize: function (serialized) {\n      return serialized;\n    },\n    serialize: function (deserialized) {\n      return deserialized;\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/utils/date-formatter\", [\"exports\", \"apollo/utils/objects/Result\"], function (_exports, _Result) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n   * DateFormatter - A utility wrapper for Intl.DateTimeFormat\n   * Provides standardized date formatting functions for the application\n   * Uses the Result pattern to handle success and error cases\n   */\n  class DateFormatter {\n    /**\n     * @param {string} locale - The locale to use for formatting (e.g., 'en-US', 'fr-FR')\n     * @param {string} timeZone - The timezone to use for formatting (e.g., 'UTC', 'America/New_York')\n     */\n    constructor(locale = 'en-US', timeZone = 'UTC') {\n      this.locale = locale;\n      this.timeZone = timeZone;\n    }\n    /**\n     * Safely format a date with error handling using the Result pattern\n     * @param {Date|number|string} date - The date to format\n     * @param {Object} options - Intl.DateTimeFormat options\n     * @returns {Result<string>} A result containing the formatted date or an error\n     * @private\n     */\n\n\n    _formatWithResult(date, options) {\n      try {\n        const dateObj = new Date(date);\n\n        if (isNaN(dateObj.getTime())) {\n          return _Result.default.err('Invalid Date');\n        }\n\n        const formatted = new Intl.DateTimeFormat(this.locale, options).format(dateObj);\n        return _Result.default.ok(formatted);\n      } catch (err) {\n        console.warn('Date formatting error: ', err);\n        return _Result.default.err('Date Formatting Error');\n      }\n    }\n    /**\n     * Format a date to full date and time (e.g., \"January 1, 2023, 3:00:00 PM\")\n     * @param {Date|number|string} date - The date to format\n     * @returns {Result<string>} Formatted date and time string\n     */\n\n\n    formatFullDateTime(date) {\n      const options = {\n        timeZone: this.timeZone,\n        dateStyle: 'full',\n        timeStyle: 'long'\n      };\n      return this._formatWithResult(date, options);\n    }\n    /**\n     * Format a date to full date only (e.g., \"Monday, January 1, 2023\")\n     * @param {Date|number|string} date - The date to format\n     * @returns {Result<string>} Formatted date string\n     */\n\n\n    formatFullDate(date) {\n      const options = {\n        timeZone: this.timeZone,\n        dateStyle: 'full'\n      };\n      return this._formatWithResult(date, options);\n    }\n    /**\n     * Format a date to medium date only (e.g., \"Jan 1, 2023\")\n     * @param {Date|number|string} date - The date to format\n     * @returns {Result<string>} Formatted date string\n     */\n\n\n    formatMediumDate(date) {\n      const options = {\n        timeZone: this.timeZone,\n        dateStyle: 'medium'\n      };\n      return this._formatWithResult(date, options);\n    }\n    /**\n     * Format a date to short date only (e.g., \"01/01/2023\")\n     * @param {Date|number|string} date - The date to format\n     * @returns {Result<string>} Formatted date string\n     */\n\n\n    formatShortDate(date) {\n      const options = {\n        timeZone: this.timeZone,\n        year: 'numeric',\n        day: '2-digit',\n        month: '2-digit'\n      };\n      return this._formatWithResult(date, options);\n    }\n    /**\n     * Format a date to a default date time format (e.g., \"18.03.2023, 15:15 CET\")\n     * @param {Date|number|string} date - The date to format\n     * @returns {Result<string>} Formatted date string\n     */\n\n\n    formatDefaultDateTime(date) {\n      const options = {\n        timeZone: this.timeZone,\n        year: 'numeric',\n        day: '2-digit',\n        month: '2-digit',\n        hour: '2-digit',\n        minute: '2-digit',\n        timeZoneName: 'short'\n      };\n      return this._formatWithResult(date, options);\n    }\n    /**\n     * Format a date to full time only (e.g., \"3:00:00 PM\")\n     * @param {Date|number|string} date - The date to format\n     * @returns {Result<string>} Formatted time string\n     */\n\n\n    formatFullTime(date) {\n      const options = {\n        timeZone: this.timeZone,\n        timeStyle: 'long'\n      };\n      return this._formatWithResult(date, options);\n    }\n    /**\n     * Format a date to short time only (e.g., \"3:00 PM\")\n     * @param {Date|number|string} date - The date to format\n     * @returns {Result} Formatted time string\n     */\n\n\n    formatShortTime(date) {\n      const options = {\n        timeZone: this.timeZone,\n        timeStyle: 'short'\n      };\n      return this._formatWithResult(date, options);\n    }\n    /**\n     * Custom format with specific options\n     * @param {Date|number|string} date - The date to format\n     * @param {Object} options - Intl.DateTimeFormat options\n     * @returns {Result<string>} Formatted date string\n     */\n\n\n    formatCustom(date, options = {}) {\n      const defaultOptions = {\n        timeZone: this.timeZone\n      };\n      const mergedOptions = { ...defaultOptions,\n        ...options\n      };\n      return this._formatWithResult(date, mergedOptions);\n    }\n\n  }\n\n  _exports.default = DateFormatter;\n});","define(\"apollo/utils/fmt\", [\"exports\", \"ember-models-table/utils/fmt\"], function (_exports, _fmt) {\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 _fmt.default;\n    }\n  });\n});","define(\"apollo/utils/functions/add-leading-zeros\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.addLeadingZeroes = addLeadingZeroes;\n\n  /**\n   * Adds zeroes (\"0\") to a given number.\n   *\n   * @example\n   * const a = 9\n   * const b = addLeadingZeroes (a, 3)\n   * console.log(b)\n   * > 009\n   *\n   * @param number\n   * @param targetLength\n   * @returns {string}\n   */\n  function addLeadingZeroes(number, targetLength) {\n    const sign = number < 0 ? '-' : '';\n    return sign + Math.abs(number).toString().padStart(targetLength, '0');\n  }\n});","define(\"apollo/utils/functions/date/add-hours\", [\"exports\", \"apollo/utils/functions/date/add-milliseconds\", \"apollo/utils/functions/date/constants\"], function (_exports, _addMilliseconds, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.addHours = addHours;\n\n  /**\n   *\n   * @param {Date} date\n   * @param {number} hours\n   * @returns {Date}\n   * @pure\n   */\n  function addHours(date, hours) {\n    return (0, _addMilliseconds.addMilliseconds)(date, hours * _constants.msInHours);\n  }\n});","define(\"apollo/utils/functions/date/add-milliseconds\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.addMilliseconds = addMilliseconds;\n\n  /**\n   *\n   * @param {Date} date - The original date\n   * @param {number} ms - The number of milliseconds to add\n   * @returns {Date} - A new date with the milliseconds added\n   * @pure\n   */\n  function addMilliseconds(date, ms) {\n    return new Date(+date + ms);\n  }\n});","define(\"apollo/utils/functions/date/add-minutes\", [\"exports\", \"apollo/utils/functions/date/constants\", \"apollo/utils/functions/date/add-milliseconds\"], function (_exports, _constants, _addMilliseconds) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.addMinutes = addMinutes;\n\n  /**\n   * @param {Date} date\n   * @param {number} mins\n   * @returns {Date}\n   * @pure\n   */\n  function addMinutes(date, mins) {\n    return (0, _addMilliseconds.addMilliseconds)(date, mins * _constants.msInMinutes);\n  }\n});","define(\"apollo/utils/functions/date/add-seconds\", [\"exports\", \"apollo/utils/functions/date/add-milliseconds\", \"apollo/utils/functions/date/constants\"], function (_exports, _addMilliseconds, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.addSeconds = addSeconds;\n\n  /**\n   *\n   * @param {Date} date\n   * @param {number} seconds\n   * @returns {Date}\n   * @pure\n   */\n  function addSeconds(date, seconds) {\n    return (0, _addMilliseconds.addMilliseconds)(date, seconds * _constants.msInSeconds);\n  }\n});","define(\"apollo/utils/functions/date/constants\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.msInHours = _exports.msInMinutes = _exports.msInSeconds = void 0;\n  const msInSeconds = 1000;\n  _exports.msInSeconds = msInSeconds;\n  const msInMinutes = 60000;\n  _exports.msInMinutes = msInMinutes;\n  const msInHours = 3600000;\n  _exports.msInHours = msInHours;\n});","define(\"apollo/utils/functions/date/get-offset-relative-to\", [\"exports\", \"apollo/utils/functions/date/get-offset\"], function (_exports, _getOffset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getOffsetRelativeTo = getOffsetRelativeTo;\n\n  /**\n   * @description Calculates the absolute time difference in minutes between two timezones.\n   *\n   * @param {string} timeZone - IANA timezone string for the first timezone (e.g., \"America/New_York\")\n   * @param {string} secondTimeZone - IANA timezone string for the second timezone (e.g., \"Asia/Tokyo\")\n   * @returns {number} The absolute difference in minutes between the two timezones\n   *\n   * @example\n   * // Get time difference between New York and Tokyo\n   * const difference = getOffsetRelativeTo('America/New_York', 'Asia/Tokyo');\n   * console.log(`The difference between New York and Tokyo is ${difference} minutes`);\n   * /=> \"The difference between New York and Tokyo is 840 minutes\"\n   *\n   * @example\n   * // Get time difference between London and Paris\n   * const europeDiff = getOffsetRelativeTo('Europe/London', 'Europe/Paris');\n   * console.log(`The difference between London and Paris is ${europeDiff} minutes`);\n   * /=> \"The relative offset between London and Paris is -60 minutes\"\n   */\n  function getOffsetRelativeTo(timeZone, secondTimeZone) {\n    return (0, _getOffset.getOffset)(timeZone) - (0, _getOffset.getOffset)(secondTimeZone);\n  }\n});","define(\"apollo/utils/functions/date/get-offset\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getOffset = getOffset;\n\n  /**\n   * @description Gets the timezone offset in minutes for a specific timezone\n   * relative to UTC. This function handles millisecond precision by normalizing\n   * timestamps to avoid rounding errors.\n   *\n   * @param {string} ianaTimeZoneName - IANA timezone string (e.g., \"America/New_York\", \"Europe/London\", \"Europe/Warsaw\")\n   * @param {Date} [date=new Date()] - Optional date to get the offset for (you may use it when dealing with past or future dates)\n   * @returns {number} Timezone offset in minutes (positive values indicate behind UTC, negative values indicate ahead of UTC)\n   *\n   * @example\n   * // Get timezone offset for New York\n   * const nyOffset = getOffset('America/New_York')\n   * console.log(`New York timezone offset: ${nyOffset} minutes`)\n   * /=> \"New York timezone offset: 300 minutes\" (during EDT)\n   *\n   * @example\n   * // Get timezone offset for Tokyo at a specific date\n   * const specificDate = new Date('2023-01-15T12:00:00Z')\n   * const tokyoOffset = getOffset('Asia/Tokyo', specificDate)\n   * console.log(`Tokyo timezone offset: ${tokyoOffset} minutes`)\n   * /=> \"Tokyo timezone offset: -540 minutes\"\n   */\n  function getOffset(ianaTimeZoneName, date = new Date()) {\n    // Format the date in the target timezone\n    const options = {\n      timeZone: ianaTimeZoneName,\n      year: 'numeric',\n      month: 'numeric',\n      day: 'numeric',\n      hour: 'numeric',\n      minute: 'numeric',\n      second: 'numeric',\n      hour12: false // Get formatted parts in the target timezone\n\n    };\n    const formatter = new Intl.DateTimeFormat('en-US', options);\n    const parts = formatter.formatToParts(date); // Extract the parts we need to recreate the date\n\n    const mappedParts = parts.reduce((acc, part) => {\n      if (part.type !== 'literal') {\n        acc[part.type] = part.value;\n      }\n\n      return acc;\n    }, {}); // Create a UTC timestamp for the local time in the target timezone\n    // This represents what time it is in UTC when it's the specified local time in the target timezone\n\n    const asUTCDate = Date.UTC(mappedParts.year, mappedParts.month - 1, // Month is 0-based in JS Date\n    mappedParts.day, mappedParts.hour, mappedParts.minute, mappedParts.second, 0); // Get the timestamp of the input date\n\n    let dateTimestamp = +date;\n    const utcDateTimestamp = +asUTCDate;\n    const msReminder = dateTimestamp % 1000; // Adjust the timestamp to remove milliseconds to mitigate any round errors\n\n    dateTimestamp -= msReminder >= 0 ? msReminder : 1000 + msReminder;\n    return (dateTimestamp - utcDateTimestamp) / 60000;\n  }\n});","define(\"apollo/utils/functions/date/get-timezone-abbreviation\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getTimezoneAbbreviation = getTimezoneAbbreviation;\n\n  /**\n   * @description Gets the timezone abbreviation (e.g., EST, PST, GMT) for a specific timezone at a given date.\n   *\n   * @param {string} timeZone - IANA timezone string (e.g., \"America/New_York\", \"Europe/London\")\n   * @param {Date} [date=new Date()] - Optional date to get the abbreviation for (can be useful for past or future dates)\n   * @returns {string} The timezone abbreviation\n   *\n   * @example\n   * // Get timezone abbreviation for New York\n   * const nyAbbr = getTimezoneAbbreviation('America/New_York');\n   * console.log(`New York timezone abbreviation: ${nyAbbr}`);\n   * /=> \"New York timezone abbreviation: EST\" (or EDT during daylight saving)\n   *\n   * @example\n   * // Get timezone abbreviation for London in summer\n   * const summerDate = new Date('2023-07-15T12:00:00Z');\n   * const londonAbbr = getTimezoneAbbreviation('Europe/London', summerDate);\n   * console.log(`London timezone abbreviation in July: ${londonAbbr}`);\n   * /=> \"London timezone abbreviation in July: BST\"\n   */\n  function getTimezoneAbbreviation(timeZone, date = new Date()) {\n    try {\n      // Format the date with the timezone and include the timezone name in the format\n      const formatter = new Intl.DateTimeFormat('en-US', {\n        timeZone,\n        timeZoneName: 'short'\n      });\n      const formatted = formatter.format(date); // Extract the abbreviation from the formatted string\n      // The format will be something like \"3/24/2025, GMT+1\" or \"3/24/2025, EDT\"\n\n      return formatted.split(', ')[1];\n    } catch (error) {\n      console.error(`Error getting timezone abbreviation: ${error.message}`);\n      return 'Error getting timezone abbreviation';\n    }\n  }\n});","define(\"apollo/utils/functions/date/is-valid-iana-zone\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isValidIanaZone = isValidIanaZone;\n\n  /**\n   * Validates if a string is a valid IANA timezone identifier.\n   * @see IANA time zone database {@link https://www.iana.org/time-zones}\n   * @param {string} timeZone - The timezone string to validate (e.g., \"America/New_York\", \"Europe/London\")\n   * @returns {boolean} True if the timezone is valid, false otherwise\n   *\n   * @example\n   * isValidIanaZone(\"Europe/Warsaw\")\n   * /=> true\n   *\n   * @example\n   * isValidIanaZone(\"Mordor\")\n   * /=> false\n   *\n   * @example\n   * isValidIanaZone(null)\n   * /=> false\n   */\n  function isValidIanaZone(timeZone) {\n    if (!timeZone) {\n      return false;\n    }\n\n    try {\n      new Intl.DateTimeFormat('en-US', {\n        timeZone\n      }).format();\n      return true;\n    } catch (e) {\n      return false;\n    }\n  }\n});","define(\"apollo/utils/functions/generate-time-objects\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.generateTimeObjects = generateTimeObjects;\n\n  /**\n   * @description Creates time objects at intervals between start and end hours.\n   * Used in the schedule component to generate the time grid for displaying time-windows.\n   *\n   * @param {Object} options - Configuration options\n   * @param {Number} options.scheduleStartHour - Schedule starting hour (0-23)\n   * @param {Number} options.scheduleEndHour - Schedule ending hour (0-23)\n   * @param {Number} options.intervalMinutes - Interval in minutes between time objects (e.g., 15, 30, 60)\n   * @param {Number} [options.hourOffset=0] - Optional offset in hours to apply (can be negative) for timezone adjustments\n   * @return {Array} Array of time objects with hour and minute properties, each with a formattedTime computed property\n   *\n   * @example\n   * // Generate time slots from 9am to 5pm at 30-minute intervals\n   * const timeSlots = generateTimeObjects({\n   *   scheduleStartHour: 9,\n   *   scheduleEndHour: 17,\n   *   intervalMinutes: 30\n   * });\n   *\n   * @example\n   * // With timezone offset (e.g., -2 hours adjustment)\n   * const timeSlotsWithOffset = generateTimeObjects({\n   *   scheduleStartHour: 9,\n   *   scheduleEndHour: 17,\n   *   intervalMinutes: 15,\n   *   minutesOffset: -120 // -2 hours in minutes\n   * });\n   */\n  function generateTimeObjects({\n    scheduleStartHour,\n    scheduleEndHour,\n    intervalMinutes,\n    minutesOffset = 0\n  }) {\n    // Create the time object definition\n    const TimeObject = Ember.Object.extend({\n      hour: null,\n      minutes: null,\n      dayOffset: 0,\n      // Track day change: 0 = same day, -1 = previous day, 1 = next day\n      // Add a formatted time property for convenience\n      formattedTime: Ember.computed('hour', 'minutes', function () {\n        return `${this.hour}:${this.minutes}`;\n      })\n    }); // Create start and end dates using native Date API\n\n    const createTimeWithHour = hours => {\n      const date = new Date();\n      const offsetHours = Math.floor(minutesOffset / 60);\n      const offsetMinutesReminder = minutesOffset % 60;\n      date.setHours(hours + offsetHours, offsetMinutesReminder, 0, 0); // Set hour with minute-precision offset\n\n      return date;\n    };\n\n    const start = createTimeWithHour(scheduleStartHour);\n    const end = createTimeWithHour(scheduleEndHour); // Calculate total minutes and steps\n\n    const totalMinutes = (end - start) / (60 * 1000); // Convert ms to minutes\n\n    const numberOfSteps = Math.floor(totalMinutes / intervalMinutes);\n    const referenceDate = new Date();\n    referenceDate.setHours(0, 0, 0, 0);\n    return Array.from({\n      length: numberOfSteps\n    }, (_, i) => {\n      // Clone the start date and add the appropriate number of minutes\n      const currentTime = new Date(start.getTime() + i * intervalMinutes * 60 * 1000); // Format hours and minutes with padStart for consistent 2-digit format\n\n      const hour = String(currentTime.getHours()).padStart(2, '0');\n      const minutes = String(currentTime.getMinutes()).padStart(2, '0');\n      const daysDifference = Math.floor((currentTime - referenceDate) / (24 * 60 * 60 * 1000));\n      return TimeObject.create({\n        hour,\n        minutes,\n        dayOffset: daysDifference\n      });\n    });\n  }\n});","define(\"apollo/utils/functions/get-warehouse-start-stop\", [\"exports\", \"apollo/utils/functions/date/get-offset-relative-to\", \"apollo/utils/functions/date/add-minutes\", \"apollo/utils/functions/date/add-hours\", \"apollo/utils/functions/date/add-milliseconds\"], function (_exports, _getOffsetRelativeTo, _addMinutes, _addHours, _addMilliseconds) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getWarehouseStartStop = getWarehouseStartStop;\n\n  /**\n   * Calculates the start and stop times for a warehouse on a given day\n   * based on its timezone and working hours.\n   *\n   * @param {DS.Model} warehouse - Warehouse object with timezone and work hours\n   * @param {string} warehouse.timeZone - Timezone identifier for the warehouse (e.g., 'America/New_York')\n   * @param {number} warehouse.workStartHour - Hour when work starts (0-24)\n   * @param {number} warehouse.workEndHour - Hour when work ends (0-24)\n   * @param {Date} day - Date object representing the day for which to calculate hours\n   * @param {string} userTimezone - IANA timezone identifier for the user's local timezone\n   * @returns {Date[]} Array containing start and stop Date objects in user's timezone\n   *\n   * @example\n   * // Get working hours for NYC warehouse from user in Los Angeles\n   * const warehouse = {\n   *   timeZone: 'America/New_York',\n   *   workStartHour: 9,\n   *   workEndHour: 17\n   * };\n   * const day = new Date('2025-04-16T00:00:00.000Z');\n   * const userTimezone = 'America/Los_Angeles';\n   * const [start, stop] = getWarehouseStartStop(warehouse, day, localeTimezoneHolder.timeZone);\n   */\n  function getWarehouseStartStop(warehouse, day, userTimezone) {\n    const timezone = warehouse.timeZone;\n    const workStartHour = warehouse.workStartHour;\n    const workEndHour = warehouse.workEndHour;\n    const start = new Date(day);\n    const stop = new Date(day);\n    const relativeTzOffset = (0, _getOffsetRelativeTo.getOffsetRelativeTo)(timezone, userTimezone);\n    const tzAdjustedStart = (0, _addHours.addHours)((0, _addMinutes.addMinutes)(start, relativeTzOffset), workStartHour);\n    let tzAdjustedStop = (0, _addHours.addHours)((0, _addMinutes.addMinutes)(stop, relativeTzOffset), workEndHour); // If warehouse is working 24 hours (startHour: 0, stopHour: 24)\n    // then set the stop time to the end of the day (23:59:59.999)\n\n    if (workStartHour === 0 && workEndHour === 24) {\n      tzAdjustedStop = (0, _addMilliseconds.addMilliseconds)(tzAdjustedStop, -1);\n    }\n\n    return [tzAdjustedStart, tzAdjustedStop];\n  }\n});","define(\"apollo/utils/intl/missing-message\", [\"exports\", \"ember-intl/utils/missing-message\"], function (_exports, _missingMessage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _missingMessage.default;\n    }\n  });\n});","define(\"apollo/utils/objects/AggregatedAuthority\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getGroupedAuthorities = getGroupedAuthorities;\n  _exports.default = void 0;\n  const AggregatedAuthority = Ember.Object.extend({\n    authorityId: null,\n    authorityName: null,\n    roleGroupId: null,\n    authorityRestrictionRange: null,\n    authorityRestrictionId: null,\n    authorityRestrictionExplanation: null,\n\n    fromResponse(response) {\n      this.authorityId = response.authorityId;\n      this.authorityName = response.authorityName;\n      this.roleGroupId = response.roleGroupId;\n      this.authorityRestrictionId = response.authorityRestrictionId;\n      this.authorityRestrictionRange = response.authorityRestrictionRange;\n      this.authorityRestrictionExplanation = response.authorityRestrictionExplanation ? response.authorityRestrictionExplanation.toUpperCase() : null;\n      return this;\n    },\n\n    toRequest(roleGroupId, authorityId, authorityRestrictionId) {\n      this.roleGroupId = roleGroupId;\n      this.authorityId = authorityId;\n      this.authorityRestrictionId = authorityRestrictionId;\n      return this;\n    },\n\n    compare(b) {\n      return Object.entries(this).toString() === Object.entries(b).toString();\n    }\n\n  });\n  /**\n   *\n   * @param {Array<{@link AggregatedAuthority}>} aggregatedAuthorities\n   * @returns {Object} groupedByAuthorityNameAndRange\n   * @returns {Object} groupedByAuthorityNameAndRange.AUTHORITY_NAME\n   * @returns {string} groupedByAuthorityNameAndRange['AUTHORITY_NAME']['AUTHORITY_RESTRICTION_RANGE']\n   * @returns {Array<{@link AggregatedAuthority}>} groupedByAuthorityNameAndRange['AUTHORITY_NAME']['AUTHORITY_RESTRICTION_RANGE'][0]\n   */\n\n  function getGroupedAuthorities(aggregatedAuthorities) {\n    const groupedByAuthorityNameAndRange = Object.groupBy(aggregatedAuthorities, ({\n      authorityName\n    }) => authorityName);\n\n    for (const prop in groupedByAuthorityNameAndRange) {\n      groupedByAuthorityNameAndRange[prop] = Object.groupBy(groupedByAuthorityNameAndRange[prop], ({\n        authorityRestrictionRange,\n        authorityRestrictionExplanation\n      }) => {\n        if (authorityRestrictionRange === 'CHECKPOINT_BASED') {\n          return `${authorityRestrictionRange}_${authorityRestrictionExplanation.replaceAll(' ', '_').replaceAll('.', '')}`;\n        }\n\n        return authorityRestrictionRange;\n      });\n    }\n\n    return groupedByAuthorityNameAndRange;\n  }\n\n  var _default = AggregatedAuthority;\n  _exports.default = _default;\n});","define(\"apollo/utils/objects/ArchiveTableFilters\", [\"exports\", \"apollo/utils/objects/Filter\"], function (_exports, _Filter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  class ArchiveTableFilters {\n    constructor(transportType, currentUser, customFields) {\n      return new Ember.A([new _Filter.default().setName('IDENTIFIER').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('t.internal_index').build(), new _Filter.default().setName('PERIODIC_TRANSPORT_INTERNAL_INDEX').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('t.periodic_transport_internal_index').build(), new _Filter.default().setName('ERP_IDENTIFIER').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('t.erp_identifier').build(), new _Filter.default().setName('TRANSPORT_RELATION').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('transport_relation').build(), new _Filter.default().setName('ALT_IDENTIFIER').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('t.alt_identifier').build(), new _Filter.default().setName('ROUTE_ID').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('route.id').build(), new _Filter.default().setName('ROUTE_NAME').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('route.name').build(), new _Filter.default().setName('INDEX_PRODUCTS').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('p.name').build(), new _Filter.default().setName('STORAGE_ZONE').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('wz.name').setClass('responsive-hide-lvl2').build(), new _Filter.default().setName('RAMP').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('load_r.name unload_r.name').setClass('responsive-hide-lvl2').build(), new _Filter.default().setName('LOCATION').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('location.name_pl location.name_en').setClass('responsive-hide-lvl2').build(), new _Filter.default().setName('DOCUMENT_IDENTIFIER').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('unload_s.document_identifier').setClass('responsive-hide-lvl3').build(), new _Filter.default().setName('CONTRACTOR_SHORT_NAME').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('load_partnership.contractor_short_name unload_partnership.contractor_short_name').setClass('responsive-hide-lvl3').build(), new _Filter.default().setName('CONTRACTOR_FULL_NAME').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('load_comp.name unload_comp.name').setClass('responsive-hide-lvl3').build(), new _Filter.default().setName('SERVICE_COMPANY_SHORT_NAME').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('service_company_partnership.contractor_short_name').setClass('responsive-hide-lvl3').build(), new _Filter.default().setName('TRANSPORT_SUPERVISOR').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('transportSupervisor.name').setSelectType().setSelectOptionsType('transportSupervisor').build(), new _Filter.default().setName('CREATION_DATE').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('t.date_created').setDateType().build(), new _Filter.default().setName('LOAD_WAREHOUSE').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('load_w.name').setClass('responsive-hide-lvl2').build(), new _Filter.default().setName('LOAD_TIME_WINDOW').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('time_window_load').setDateRangeType().build(), new _Filter.default().setName('LOAD_PLACE').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('load_partnership.contractor_short_name load_address.recipient load_address.street load_address.postal load_address.city load_c.iban_symbol load_w.name load_warehouse_address.street load_warehouse_address.postal load_warehouse_address.city load_warehouse_country.iban_symbol').setClass('responsive-hide-lvl1').build(), new _Filter.default().setName('LOAD_COUNTRY').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('load_c.iban_symbol').setClass('responsive-hide-lvl1').build(), new _Filter.default().setName('LOAD_CITY').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('load_address.city').setClass('responsive-hide-lvl1').build(), new _Filter.default().setName('SUM_LOAD_QUANTITY').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('spt_load.quantity').setClass('responsive-hide-lvl1').build(), new _Filter.default().setName('LOAD_QUANTITY').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('spt_load.quantity').setClass('responsive-hide-lvl1').build(), new _Filter.default().setName('LOAD_PACKAGES_QUANTITY').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('spt_load.quantity').setClass('responsive-hide-lvl1').build(), new _Filter.default().setName('UNLOAD_WAREHOUSE').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('unload_w.name').setClass('responsive-hide-lvl2').build(), new _Filter.default().setName('UNLOAD_TIME_WINDOW').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('time_window_unload').setDateRangeType().build(), new _Filter.default().setName('UNLOAD_PLACE').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('unload_partnership.contractor_short_name unload_address.recipient unload_address.street unload_address.postal unload_address.city unload_c.iban_symbol unload_w.name unload_warehouse_address.street unload_warehouse_address.postal unload_warehouse_address.city unload_warehouse_country.iban_symbol').setClass('responsive-hide-lvl1').build(), new _Filter.default().setName('SUM_UNLOAD_QUANTITY').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('spt_unload.quantity').setClass('responsive-hide-lvl1').build(), new _Filter.default().setName('UNLOAD_QUANTITY').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('spt_unload.quantity').setClass('responsive-hide-lvl1').build(), new _Filter.default().setName('UNLOAD_PACKAGES_QUANTITY').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('spt_unload.quantity').shouldNotBeRendered().setClass('responsive-hide-lvl1').build(), new _Filter.default().setName('UNLOAD_COUNTRY').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('unload_c.iban_symbol').setClass('responsive-hide-lvl1').build(), new _Filter.default().setName('UNLOAD_CITY').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('unload_address.city').setClass('responsive-hide-lvl1').build(), new _Filter.default().setName('ARRIVAL_DATE').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('unload_s.arrival_date').setDateType().build(), new _Filter.default().setName('PRICE').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).shouldNotBeRendered().build(), new _Filter.default().setName('UNIT_AMOUNT_TYPE').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('tuat.name').setClass('responsive-hide-lvl1').build(), new _Filter.default().setName('CARRIER').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('carrier_partnership.contractor_short_name').setSelectType().setSelectOptionsType('carrierCompany').setUseArchive().build(), new _Filter.default().setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setName('SURCHARGE_WITHOUT_CONFIRMATION').setKeys('has_unaccepted_surcharges').setSelectType().setSelectOptionsType('hasUnacceptedSurcharges').build(), new _Filter.default().setName('ADVICE').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('a.car_registration_number a.trailer_registration_number').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('VEHICLE_TRUCK_TYPE').shouldNotBeRendered().build(), new _Filter.default().setName('MANUAL_NOTIFICATION').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).shouldNotBeRendered().build(), new _Filter.default().setName('WORKER').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('worker.name').build(), new _Filter.default().setName('WORKER_PHONE').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('worker.phone_number').setClass('responsive-main-hide').build(), new _Filter.default().setName('EMAIL_ADVICE').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).shouldNotBeRendered().setClass('responsive-hide-lvl1').build(), new _Filter.default().setName('EMAIL_ADVICE_EMAIL_ADDRESS').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).shouldNotBeRendered().setClass('responsive-hide-lvl1').build(), new _Filter.default().setName('INDEX_DOCUMENT_NUMBER').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('i.document_number').build(), new _Filter.default().setName('INDEX_TRANSPORT_NUMBER').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('i.transport_number').build(), new _Filter.default().setName('DRIVER').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('a.driver_name').setClass('responsive-main-hide').build(), new _Filter.default().setName('DRIVER_PHONE').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('a.driver_mobile_phone_number').setClass('responsive-main-hide').build(), new _Filter.default().setName('DRIVER_IDENTIFIER').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('a.driver_id').setClass('responsive-main-hide').build(), new _Filter.default().setName('CAR').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('a.car_registration_number').setClass('responsive-hide-lvl3').build(), new _Filter.default().setName('TRAILER').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('a.trailer_registration_number').setClass('responsive-hide-lvl2').build(), new _Filter.default().setName('INVOICE').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('trans.invoice_number').setSelectType().setSelectOptionsType('invoice').setClass('responsive-hide-lvl1').build(), new _Filter.default().setName('TOTAL_WEIGHT').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).shouldNotBeRendered().setClass('responsive-hide-lvl2').build(), new _Filter.default().setName('TRUCK_TYPE').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('truck_type.truck_type_name truck_type.truck_type_name_en').setClass('responsive-hide-lvl2').build(), // CUSTOM_FIELDS\n      customFields.map(cfd => new _Filter.default().setName(`${cfd.englishName}`).setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys(`cfd_${cfd.id}`).setCustomFieldType().setClass('responsive-hide-lvl2 column-name-cf-width').build()), new _Filter.default().setName('REQUIRES_INSPECTION').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('t.requires_inspection').build(), new _Filter.default().setName('INSPECTION').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).shouldNotBeRendered().build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('DELIVERY_NUMBER').shouldNotBeRendered().build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('DELIVERY_NETTO_WEIGHT').shouldNotBeRendered().build(), new _Filter.default().setName('DELIVERY_INCOTERMS').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('delivery.incoterms').setClass('responsive-hide-lvl2').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('DELIVERY_INVOICE').shouldNotBeRendered().build(), new _Filter.default().setName('STATUS').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setKeys('task.stage_name').setSelectType().setSelectOptionsType('checkpoint').setUseArchive().setClass('responsive-hide-lvl4').build(), // KOLUMNY DLA OCHRONY\n      ...transportType.get('workflow.sortedTasks').map(task => currentUser.get('roleGroup.isGuard') && task.get('canBeConfirmedByGuard') ? new _Filter.default().setName(`${task.checkpointNameEn}`).setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).setClass('responsive-hide-lvl4').build() : null), new _Filter.default().setName('TRANSPORT_DESCRIPTION').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).shouldNotBeRendered().setClass('responsive-hide-lvl1').build(), new _Filter.default().setName('NOTES').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).shouldNotBeRendered().setClass('responsive-hide-lvl1').build(), new _Filter.default().setName('DOCUMENTS').setNamePrefix(`ARCHIVE_${transportType.get('name')}_`).shouldNotBeRendered().setClass('responsive-hide-lvl1').build()]);\n    }\n\n  }\n\n  var _default = ArchiveTableFilters;\n  _exports.default = _default;\n});","define(\"apollo/utils/objects/Filter\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  class FilterBuilder {\n    // eslint-disable-next-line no-useless-constructor\n    constructor() {}\n\n    setSelectType() {\n      this.type = 'select';\n      return this;\n    }\n\n    setDateType() {\n      this.type = 'date';\n      return this;\n    }\n\n    setDateRangeType() {\n      this.type = 'date-range';\n      return this;\n    }\n\n    setCustomFieldType() {\n      this.type = 'custom-field';\n      return this;\n    }\n\n    setUseArchive() {\n      this.useArchive = true;\n      return this;\n    }\n\n    setName(name) {\n      this.name = name;\n      return this;\n    }\n\n    setNamePrefix(prefix) {\n      this.prefix = prefix;\n      return this;\n    }\n\n    setValue(value) {\n      this.value = value;\n      return this;\n    }\n\n    setKeys(keys) {\n      this.keys = keys;\n      return this;\n    }\n\n    setSelectOptionsType(selectOptionsType) {\n      this.selectOptionsType = selectOptionsType;\n      return this;\n    }\n\n    shouldNotBeRendered() {\n      this.shouldBeRendered = false;\n      return this;\n    }\n\n    setClass(cssClass) {\n      this.cssClass = cssClass;\n      return this;\n    }\n\n    build() {\n      return Filter.create({\n        prefix: this.prefix !== undefined ? this.prefix : '',\n        name: this.name !== undefined ? this.name : '',\n        keys: this.keys,\n        type: this.type,\n        selectOptionsType: this.selectOptionsType,\n        useArchive: this.useArchive !== undefined ? this.useArchive : false,\n        shouldBeRendered: this.shouldBeRendered !== undefined ? this.shouldBeRendered : true,\n        cssClass: this.cssClass !== undefined ? this.cssClass : ''\n      });\n    }\n\n  }\n\n  const Filter = Ember.Object.extend({\n    /*\n        Nazwa filtra. Domyślnie pusty string.\n    */\n    name: '',\n\n    /*\n        Prefiks do nazwy filtra. Domyślnie pusty string.\n    */\n    prefix: '',\n\n    /*\n        Pełna nazwa filtra - prefix + name.\n    */\n    fullName: Ember.computed(function () {\n      return this.get('prefix') + this.get('name');\n    }),\n\n    /*\n        Dodatkowe klasy css.\n    */\n    cssClass: '',\n\n    /*\n        Obecna wartość filtra.\n    */\n    value: Ember.computed({\n      get() {\n        if (this.get('cacheable')) {\n          return this.get('cachedValue');\n        }\n\n        return null;\n      },\n\n      set(key, value) {\n        if (this.get('cacheable')) {\n          this.set('cachedValue', value);\n        }\n\n        return value;\n      }\n\n    }),\n\n    /*\n        Klucze wykorzystywane na serwerze do filtrowania transportów.\n    */\n    keys: null,\n\n    /*\n        Typ filtra:\n            - custom-field\n            - select\n            - date\n    */\n    type: Ember.computed({\n      get() {\n        if (this.get('cacheable')) {\n          return this.get('cachedType');\n        }\n\n        return null;\n      },\n\n      set(key, value) {\n        if (this.get('cacheable')) {\n          this.set('cachedType', value);\n        }\n\n        return value;\n      }\n\n    }),\n\n    /*\n        Określa czy wartość filtra zostanie zapisana w pamięci lokalnej przeglądarki użytkownika.\n        Domyślnie `true`.\n    */\n    cacheable: Ember.computed({\n      get() {\n        if (localStorage.getItem('cacheFilters') === 'false') {\n          return false;\n        }\n\n        return true;\n      },\n\n      set(key, value) {\n        return value;\n      }\n\n    }),\n\n    /*\n        W przypadku typu filtra `select` ta zmienna określa to, jakie wartości powinny być wyświetlone na liście wyboru filtra.\n    */\n    selectOptionsType: null,\n\n    /*\n        Określa czy przekazujemy `archive` jako parametr do komponentu filter.\n        Domyślnie `false`.\n        UWAGA: Nie do końca rozumiem, do czego służy parametr `archive`,\n        ale bez niego nie działają selecty (nie wyświetlamy listy wartości).\n    */\n    useArchive: false,\n\n    /*\n        Określa czy wyświetlamy pole filtra. W przypadku `false` w miejsce filtra wpisujemy &nbsp.\n        Domyślnie `true`.\n    */\n    shouldBeRendered: true,\n    cachedValue: Ember.computed({\n      get() {\n        const dataType = localStorage.getItem(this.get('fullName') + '_TYPE');\n        const value = localStorage.getItem(this.get('fullName'));\n\n        if (dataType === 'date-range' && value) {\n          // localStorage obsługuje tylko stringi, więc trzeba wartość z cache przerobić na array\n          // data-range zawsze ma dwie wartości, nawet jeśli wybierzemy dwa razy tę samą datę.\n          return value.split(',').map(timestamp => Number(timestamp));\n        }\n\n        if (dataType === 'date' && value) {\n          return Number(value);\n        }\n\n        return value;\n      },\n\n      set(key, value) {\n        if (value == null || value === '') {\n          return localStorage.removeItem(this.get('fullName'));\n        }\n\n        return localStorage.setItem(this.get('fullName'), value);\n      }\n\n    }),\n    cachedType: Ember.computed({\n      get() {\n        return localStorage.getItem(this.get('fullName') + '_TYPE');\n      },\n\n      set(key, value) {\n        if (value == null || value === '') {\n          return localStorage.removeItem(this.get('fullName') + '_TYPE');\n        }\n\n        return localStorage.setItem(this.get('fullName') + '_TYPE', value);\n      }\n\n    })\n  });\n  var _default = FilterBuilder;\n  _exports.default = _default;\n});","define(\"apollo/utils/objects/Result\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /**\n   * Follows the \"Result\" pattern to handle success and error cases.\n   */\n  class Result {\n    static ok(value) {\n      return new Result(value, null);\n    }\n\n    static err(error) {\n      return new Result(null, error);\n    }\n\n    constructor(value, error) {\n      this.value = value;\n      this.error = error;\n    }\n\n    ok() {\n      return this.error === null;\n    }\n\n    err() {\n      return !this.ok();\n    }\n\n    valueOr(fallback) {\n      return this.ok() ? this.value : fallback;\n    }\n\n  }\n\n  _exports.default = Result;\n});","define(\"apollo/utils/objects/TransportsTableFilters\", [\"exports\", \"apollo/utils/objects/Filter\"], function (_exports, _Filter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  class TransportsTableFilters {\n    constructor(transportType, currentUser, customFields) {\n      return new Ember.A([new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('IDENTIFIER').setKeys('t.internal_index').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('DELIVERY_NUMBER').setKeys('delivery.delivery_number').setClass('responsive-hide-lvl2').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('PERIODIC_TRANSPORT_INTERNAL_INDEX').setKeys('t.periodic_transport_internal_index').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('ERP_IDENTIFIER').setKeys('t.erp_identifier').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('ALT_IDENTIFIER').setKeys('t.alt_identifier').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('ROUTE_ID').setKeys('route.id').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('ROUTE_NAME').setKeys('route.name').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('TRANSPORT_RELATION').setKeys('transport_relation').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('INDEX_PRODUCTS').setKeys('p.name').setClass('responsive-hide-lvl1').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('STORAGE_ZONE').setKeys('wz.name').setClass('responsive-hide-lvl2').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('RAMP').setKeys('load_r.name unload_r.name').setClass('responsive-hide-lvl2').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('LOCATION').setKeys('location.name_pl location.name_en').setClass('responsive-hide-lvl2').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('DOCUMENT_IDENTIFIER').setKeys('unload_s.document_identifier').setClass('responsive-hide-lvl3').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('CONTRACTOR_SHORT_NAME').setKeys('load_partnership.contractor_short_name unload_partnership.contractor_short_name').setClass('responsive-hide-lvl3').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('CONTRACTOR_FULL_NAME').setKeys('load_comp.name unload_comp.name').setClass('responsive-hide-lvl3').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('SERVICE_COMPANY_SHORT_NAME').setKeys('service_company_partnership.contractor_short_name').setClass('responsive-hide-lvl3').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('TRANSPORT_SUPERVISOR').setKeys('transport_supervisor.name').setSelectType().setSelectOptionsType('transportSupervisor').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('CREATION_DATE').setKeys('t.date_created').setDateType().build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('LOAD_WAREHOUSE').setKeys('load_w.name').setClass('responsive-hide-lvl2').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('LOAD_TIME_WINDOW').setKeys('time_window_load').setDateRangeType().build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('LOAD_PLACE').setKeys('load_partnership.contractor_short_name load_address.recipient load_address.street load_address.postal load_address.city load_c.iban_symbol load_w.name load_warehouse_address.street load_warehouse_address.postal load_warehouse_address.city load_warehouse_country.iban_symbol').setClass('responsive-hide-lvl1').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('LOAD_COUNTRY').setKeys('load_c.iban_symbol').setClass('responsive-hide-lvl1').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('LOAD_CITY').setKeys('load_address.city').setClass('responsive-hide-lvl1').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('SUM_LOAD_QUANTITY').setKeys('sum_quantity_load').setClass('responsive-hide-lvl1').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('LOAD_QUANTITY').setKeys('spt_load.quantity').shouldNotBeRendered().setClass('responsive-hide-lvl1').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('LOAD_PACKAGES_QUANTITY').setKeys('spt_load.quantity').shouldNotBeRendered().setClass('responsive-hide-lvl1').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('UNLOAD_WAREHOUSE').setKeys('unload_w.name').setClass('responsive-hide-lvl2').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('UNLOAD_TIME_WINDOW').setKeys('time_window_unload').setDateRangeType().build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('UNLOAD_PLACE').setKeys('unload_partnership.contractor_short_name unload_address.recipient unload_address.street unload_address.postal unload_address.city unload_c.iban_symbol unload_w.name unload_warehouse_address.street unload_warehouse_address.postal unload_warehouse_address.city unload_warehouse_country.iban_symbol').setClass('responsive-hide-lvl1').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('SUM_UNLOAD_QUANTITY').setKeys('sum_quantity_unload').setClass('responsive-hide-lvl1').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('UNLOAD_QUANTITY').setKeys('spt_unload.quantity').shouldNotBeRendered().setClass('responsive-hide-lvl1').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('UNLOAD_PACKAGES_QUANTITY').setKeys('spt_unload.quantity').shouldNotBeRendered().setClass('responsive-hide-lvl1').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('UNLOAD_COUNTRY').setKeys('unload_c.iban_symbol').setClass('responsive-hide-lvl1').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('UNLOAD_CITY').setKeys('unload_address.city').setClass('responsive-hide-lvl1').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('ARRIVAL_DATE').setKeys('unload_s.arrival_date').setDateType().build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('PRICE').shouldNotBeRendered().build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('UNIT_AMOUNT_TYPE').setKeys('tuat.name').setClass('responsive-hide-lvl1').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('CARRIER').setKeys('carrier_partnership.contractor_short_name').setSelectType().setSelectOptionsType('carrierCompany').setUseArchive().build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('SURCHARGE_WITHOUT_CONFIRMATION').setKeys('has_unaccepted_surcharges').setSelectType().setSelectOptionsType('hasUnacceptedSurcharges').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('ADVICE').setKeys('a.car_registration_number a.trailer_registration_number').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('VEHICLE_TRUCK_TYPE').shouldNotBeRendered().build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('MANUAL_NOTIFICATION').shouldNotBeRendered().build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('WORKER').setKeys('worker.name').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('WORKER_PHONE').setKeys('worker.phone_number').setClass('responsive-main-hide').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('EMAIL_ADVICE').shouldNotBeRendered().setClass('responsive-hide-lvl1').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('EMAIL_ADVICE_EMAIL_ADDRESS').shouldNotBeRendered().setClass('responsive-hide-lvl1').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('INDEX_DOCUMENT_NUMBER').setKeys('i.document_number').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('INDEX_TRANSPORT_NUMBER').setKeys('i.transport_number').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('DRIVER').setKeys('a.driver_name master_advice.driver_name').setClass('responsive-main-hide').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('DRIVER_PHONE').setKeys('a.driver_mobile_phone_number master_advice.driver_mobile_phone_number').setClass('responsive-main-hide').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('DRIVER_IDENTIFIER').setKeys('a.driver_id').setClass('responsive-main-hide').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('CAR').setKeys('a.car_registration_number master_advice.car_registration_number').setClass('responsive-hide-lvl3').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('TRAILER').setKeys('a.trailer_registration_number master_advice.trailer_registration_number').setClass('responsive-hide-lvl2').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('INVOICE').setKeys('trans.invoice_number').setSelectType().setSelectOptionsType('invoice').setClass('responsive-hide-lvl1').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('TRANSPORT_DESCRIPTION').shouldNotBeRendered().setClass('responsive-hide-lvl1').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('TOTAL_WEIGHT').shouldNotBeRendered().setClass('responsive-hide-lvl2').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('TRUCK_TYPE').setKeys('truck_type.truck_type_name truck_type.truck_type_name_en').setClass('responsive-hide-lvl2').build(), // CUSTOM_FIELDS\n      ...customFields.map(cfd => new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName(`${cfd.englishName}`).setKeys(`cfd_${cfd.id}`).setCustomFieldType().setClass('responsive-hide-lvl2 column-name-cf-width').build()), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('REQUIRES_INSPECTION').setKeys('t.requires_inspection').setSelectType().setSelectOptionsType('requiresInspection').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('INSPECTION').shouldNotBeRendered().build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('DELIVERY_NETTO_WEIGHT').shouldNotBeRendered().build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('DELIVERY_INCOTERMS').setKeys('delivery.incoterms').setClass('responsive-hide-lvl2').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('DELIVERY_INVOICE').shouldNotBeRendered().build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('STATUS').setKeys('task.stage_name').setSelectType().setSelectOptionsType('checkpoint').setUseArchive().setClass('responsive-hide-lvl4').build(), // KOLUMNY DLA OCHRONY\n      ...transportType.get('workflow.sortedTasks').map(task => currentUser.get('roleGroup.isGuard') && task.get('canBeConfirmedByGuard') ? new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName(`${task.checkpointNameEn}`).setClass('responsive-hide-lvl4').build() : null), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('NOTES').shouldNotBeRendered().setClass('responsive-hide-lvl1').build(), new _Filter.default().setNamePrefix(`${transportType.get('name')}_`).setName('DOCUMENTS').shouldNotBeRendered().setClass('responsive-hide-lvl1').build()]);\n    }\n\n  }\n\n  var _default = TransportsTableFilters;\n  _exports.default = _default;\n});","define(\"apollo/utils/objects/groupedLog\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  var _default = Ember.Object.extend({\n    dateCreated: '',\n    actor: '',\n    userActivityTransportLabel: '',\n    eventLabel: '',\n    changes: Ember.A([]),\n    classNamesNotToGroup: Ember.A(['Checkpoint', 'File', 'TransportTransportRelation', 'ARTR']),\n    keyIdentifier: Ember.computed('actor', 'eventLabel', 'className', function () {\n      let objectId = this.get('transportId') || this.get('persistedObjectId');\n\n      if (this.get('className') === 'EmailAdvice') {\n        objectId = this.get('persistedObjectId');\n      }\n\n      return `${this.get('actor')}-${this.get('eventLabel')}-${this.get('className')}-${objectId}-${this.get('customFieldDefinitionId')}`;\n    }),\n    isMatch: function (otherLog) {\n      // To samo zdarzenie - jeśli ta sama osoba, ten sam typ i:\n      // - dotyczy tej samej wersji obiektu (jeśli dysponujemy ta informacją),\n      // - zostało wykonane w odstępie max 3 sekund (jeśli nie mamy wersji obiektu)\n      if (this.get('classNamesNotToGroup').includes(otherLog.get('className'))) {\n        return;\n      }\n\n      return this.get('keyIdentifier') === otherLog.get('keyIdentifier') && (!Ember.isEmpty(this.get('persistedObjectVersion')) && this.get('persistedObjectVersion') === otherLog.get('persistedObjectVersion') && this.get('eventName') === otherLog.get('eventName') || Ember.isEmpty(this.get('persistedObjectVersion')) && Math.abs(moment(this.get('dateCreated')).diff(moment(otherLog.get('dateCreated')), 'seconds')) < 3);\n    }\n  });\n\n  _exports.default = _default;\n});","define(\"apollo/utils/parsers/numberParsers\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getParsableNumber = getParsableNumber;\n  _exports.default = void 0;\n\n  function getParsableNumber(n) {\n    if (!n || !n.trim() || !/^[0-9,. ]*$/.test(n)) {\n      return n;\n    }\n\n    while (n.indexOf('.') === 0) {\n      // Jeśli kropki są na początku, to na bank są tam błędnie i je wywalamy\n      n = n.replace(/\\./, '');\n    }\n\n    while (n.indexOf(',') === 0) {\n      // Jeśli przecinki są na początku, to na bank są tam błędnie i je wywalamy\n      n = n.replace(/,/, '');\n    }\n\n    const numberOfDots = n.split('.').length - 1;\n    const numberOfCommas = n.split(',').length - 1;\n\n    if (numberOfDots > 1 && numberOfCommas > 1) {\n      console.log(`We don't know what to do whit this number: ${n}.`);\n      return n;\n    }\n\n    const indexOfLastComma = n.lastIndexOf(',');\n    const indexOfLastDot = n.lastIndexOf('.');\n    let parsableNumber = n.replace(/\\s/g, '');\n\n    if (indexOfLastDot < 0 && indexOfLastComma < 0) {\n      // Wyrażenie powinno już być poprawne.\n      return n;\n    } else if (indexOfLastDot >= 0 && indexOfLastComma < 0) {\n      // Występują tylko \".\" - jeśli jest tylko jedna, to pewnie jest separatorem dzięsiętnym\n      // i nie musimy już zmieniać wprowadzonego numeru; w przeciwnym razie znak ten rozdziela pewnie tysiące,\n      // więc trzeba go usunąć.\n      if (numberOfDots > 1) {\n        parsableNumber = parsableNumber.replace(/\\./g, '');\n      }\n    } else if (indexOfLastComma >= 0 && indexOfLastDot < 0) {\n      // Występują tylko \",\" - jeśli jest tylko jeden, to pewnie jest separatorem dzięsiętnym\n      // i trzeba go zmienić na kropkę; w przeciwnym razie znak ten rozdziela pewnie tysiące,\n      // więc trzeba go usunąć.\n      if (numberOfCommas === 1) {\n        parsableNumber = parsableNumber.replace(',', '.');\n      } else if (numberOfCommas > 1) {\n        parsableNumber = parsableNumber.replace(/,/g, '');\n      }\n    } else if (indexOfLastComma > indexOfLastDot) {\n      // Znak \",\" jest ostatni, więc przyjmujemy, że jest separatorem dziesiętnym; usuwamy więc wszystkie \".\",\n      // które służyły rozdzielaniu tysięcy.\n      parsableNumber = parsableNumber.replace(/\\./g, '').replace(',', '.');\n    } else {\n      // Znak \".\" jest ostatni, więc przyjmujemy, że jest separatorem dziesiętnym; usuwamy więc wszystkie \",\",\n      // które służyły rozdzielaniu tysięcy.\n      parsableNumber = parsableNumber.replace(/,/g, '');\n    }\n\n    if (n !== parsableNumber) {\n      console.debug(`We guessed that ${n} was meant to be ${parsableNumber}.`);\n    }\n\n    return parsableNumber;\n  }\n\n  var _default = {\n    getParsableNumber\n  };\n  _exports.default = _default;\n});","define(\"apollo/utils/validators/regex-helper\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  /*\n      JavaScript używa silnika regex, w którym nie działają Unicode Categories (https://www.regular-expressions.info/unicode.html),\n      wiec nie można użyc `\\p{L}` żeby akceptować wszystkie litery z wszystkich alfabetów. Poniższe rozwiązanie zostało zrobione na podstawie:\n      https://www.npmjs.com/package/js-regex-pl\n   */\n  function pL() {\n    return 'A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u08A0-\\u08B4\\u08B6-\\u08BD\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FEF\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7BF\\uA7C2-\\uA7C6\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB67\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC';\n  }\n\n  var _default = {\n    pL\n  };\n  _exports.default = _default;\n});","define(\"apollo/utils/validators/registration-number-validator\", [\"exports\", \"apollo/utils/validators/regex-helper\"], function (_exports, _regexHelper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function validate(value) {\n    const pL = _regexHelper.default.pL();\n\n    const regex = '^[$' + pL + '0-9 _.,;&/-]{4,50}$';\n    return new RegExp(`${regex}`).test(value);\n  }\n\n  var _default = {\n    validate\n  };\n  _exports.default = _default;\n});","define(\"apollo/utils/validators/step-dates-validator\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function arrivalDateBlank(step, transportType, value) {\n    const requiresArrivalAndDepartureDateInWarehouseStep = transportType.get('requiresArrivalAndDepartureDateInWarehouseStep');\n    const requiresArrivalAndDepartureDateInCarrierStep = transportType.get('requiresArrivalAndDepartureDate');\n    const stepInWarehouse = step.get('belongsToWarehouse'); // Walidacja obowiązuje tylko gdy w formularzu sa widoczne stepy\n\n    if (!transportType.get('hasVisibleSteps')) {\n      return true;\n    } // Typ transportu posiada dwa ustawienia na obligatoryjność zakresu w stepie,\n    // jedno odnośi się do stepu magazynowego (requiresArrivalAndDepartureDateInWarehouseStep),\n    // a drugie do stepu kontrahenta(requiresArrivalAndDepartureDate).\n    // Walidacja na pole ArrivalDate nie obowiązuje, jeśli\n    // flaga requiresArrivalAndDepartureDate = true\n    // i step nie jest magazynowy\n\n\n    if (requiresArrivalAndDepartureDateInCarrierStep && !stepInWarehouse) {\n      return true;\n    } // Walidacja na pole ArrivalDate nie obowiązuje jeśli\n    // flaga requiresArrivalAndDepartureDateInWarehouseStep = true\n    // i jest magazynowy\n\n\n    if (requiresArrivalAndDepartureDateInWarehouseStep && stepInWarehouse) {\n      return true;\n    } // pole jest wymagane tylko dla stepów które nie mają magazynu, podczas tworzenia transpotru mówi o tym zmienna ownedByPrincipal\n\n\n    return !(!stepInWarehouse && !value);\n  }\n\n  function arrivalDateInPast(step, transportType, value) {\n    // validacja obowiązuje tylko gdy w formularzu sa widoczne stepy\n    if (!transportType.get('hasVisibleSteps')) {\n      return true;\n    } // walidacja obowiązuje tylko wtedy, gdy pryncypał ma ją ustawioną\n\n\n    if (step.get('sessionAccount').getSettingValue('CAN_ARRIVAL_DATE_BE_IN_THE_PAST') === 'true') {\n      return true;\n    } // pole jest wymagane tylko dla stepów które nie mają magazynu, podczas tworzenia transpotru mówi o tym zmienna ownedByPrincipal\n\n\n    if (!step.get('belongsToWarehouse') && _getChangedAttributes(step).arrivalDate !== undefined) {\n      return value >= new Date();\n    }\n\n    return true;\n  }\n\n  function minAdviceDateBlank(step, transportType, value) {\n    if (!transportType.get('requiresAdviceDateRestrictions') || !step.get('isInWarehouse')) {\n      return true;\n    }\n\n    return !!value;\n  }\n\n  function minAdviceDateAfterWindowStart(step, value) {\n    if (!value || !step.get('timeWindow.id')) {\n      return true;\n    }\n\n    return value <= step.get('timeWindow.start');\n  }\n\n  function minAdviceDateOutsideOfInterval(step, value) {\n    if (!value || !step.get('warehouse.id')) {\n      return true;\n    }\n\n    if (step.get('transport.isRelatedTransportInTransportCombining')) {\n      return true;\n    }\n\n    const windowInterval = step.get('warehouse.timeWindowOffsetInterval');\n    const selectedMinutes = parseInt(moment(value).format('mm'));\n    return selectedMinutes % windowInterval === 0;\n  }\n\n  function minAdviceDateWorkingHours(step, value) {\n    if (!value || !step.get('warehouse.id')) {\n      return true;\n    }\n\n    const workStartHour = step.get('warehouse.workStartHour');\n    const workEndHour = step.get('warehouse.workEndHour');\n    const workStartOnMaxDateDay = moment(value).startOf('day').add(workStartHour, 'hours').toDate();\n    const workEndOnMaxDateDay = moment(value).startOf('day').add(workEndHour, 'hours').toDate();\n    const dateValue = new Date(value);\n    return dateValue >= workStartOnMaxDateDay && dateValue <= workEndOnMaxDateDay;\n  }\n\n  function maxAdviceDateBlank(step, transportType, value) {\n    if (!transportType.get('requiresAdviceDateRestrictions') || !step.get('isInWarehouse')) {\n      return true;\n    }\n\n    return !!value;\n  }\n\n  function maxAdviceDateEarly(step, value) {\n    if (!value || !step.get('minAdviceDate')) {\n      return true;\n    }\n\n    return new Date(value) >= new Date(step.get('minAdviceDate'));\n  }\n\n  function maxAdviceDateInPast(step, transportType, value) {\n    // Wymóg podania daty \"do\" w przyszłości powinien obowiązywać tylko\n    // do czasu wybrania okna czasowego - później walidacja zakresu będzie\n    // związana z wybranym oknem.\n    if (!value || step.get('timeWindow.id')) {\n      return true;\n    }\n\n    if (step.get('isLoad') && _getChangedAttributes(step).maxAdviceDate !== undefined) {\n      const oldMaxAdviceDateValue = moment(_getChangedAttributes(step).maxAdviceDate.get(0)).format('DD/MM/YYYY HH:mm');\n      const newMaxAdviceDateValue = moment(_getChangedAttributes(step).maxAdviceDate.get(1)).format('DD/MM/YYYY HH:mm');\n\n      if (oldMaxAdviceDateValue === newMaxAdviceDateValue) {\n        return true;\n      }\n    }\n\n    if (_getChangedAttributes(step).maxAdviceDate === undefined) {\n      return true;\n    }\n\n    return new Date(value) > new Date();\n  }\n\n  function maxAdviceDateWorkHours(step, value) {\n    if (!value || !step.get('minAdviceDate') || !step.get('warehouse.id')) {\n      return true;\n    }\n\n    const workStartHour = step.get('warehouse.workStartHour');\n    const workEndHour = step.get('warehouse.workEndHour');\n    const validatedValue = moment(value).add(-1, 'seconds');\n    const workStartOnMaxDateDay = moment(validatedValue).startOf('day').add(workStartHour, 'hours').toDate();\n    const workEndOnMaxDateDay = moment(validatedValue).startOf('day').add(workEndHour, 'hours').toDate();\n    return validatedValue >= workStartOnMaxDateDay && validatedValue <= workEndOnMaxDateDay;\n  }\n\n  function maxAdviceDateBeforeWindowStep(step, value) {\n    if (!value || !step.get('timeWindow.id')) {\n      return true;\n    }\n\n    return value >= step.get('timeWindow.stop');\n  }\n\n  function maxAdviceDateOutsideInterval(step, value) {\n    if (!value || !step.get('warehouse.id')) {\n      return true;\n    }\n\n    if (step.get('transport.isRelatedTransportInTransportCombining')) {\n      return true;\n    }\n\n    const windowInterval = step.get('warehouse.timeWindowOffsetInterval');\n    const selectedMinutes = parseInt(moment(value).format('mm'));\n    return selectedMinutes % windowInterval === 0;\n  }\n\n  function _getChangedAttributes(step) {\n    let changedAttributes;\n\n    try {\n      changedAttributes = step.content.changedAttributes();\n    } catch (e) {\n      changedAttributes = step.changedAttributes();\n    }\n\n    return changedAttributes;\n  }\n\n  var _default = {\n    arrivalDateBlank,\n    arrivalDateInPast,\n    minAdviceDateBlank,\n    minAdviceDateOutsideOfInterval,\n    minAdviceDateAfterWindowStart,\n    minAdviceDateWorkingHours,\n    maxAdviceDateBlank,\n    maxAdviceDateOutsideInterval,\n    maxAdviceDateInPast,\n    maxAdviceDateEarly,\n    maxAdviceDateWorkHours,\n    maxAdviceDateBeforeWindowStep\n  };\n  _exports.default = _default;\n});","define(\"apollo/utils/validators/windowFitsToScheduleValidator\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n\n  function validate(windowCurrentTime, currentWindowOffset, workStartHour) {\n    /**\n     * @param  {Date} windowCurrentTime    Początek lub koniec okna czasowego. Czas musi być podany dla zegara 24-godzinnego.\n     * @param  {number} currentWindowOffset  Obecna wartość siatki harmonogramu podana w minutach.\n     * @param  {number} workStartHour        Godzina rozpoczęcia pracy magazynu (również 24-godzinny zegar).\n     *\n     * @return {Boolean}                     Czy okno pasuje do aktualnej siatki harmonogramu.\n     *\n     * Metoda sprawdza, czy stawiane okno czasowe pasuje do aktualnej siatki harmonogramu.\n     *\n     * Przykład:\n     * Mamy siatkę 45-minutową w magazynie 24-godzinnym i próbujemy postawić okno na godzinę 3:15.\n     * Sprawdzamy więc, czy wyrażenie `((windowCurrentTime.getHours() * 60 + windowCurrentTime.getMinutes()) - 0 * 60) / currentWindowOffset`\n     * jest liczbą całkowitą: (3*60 + 15) / 45 ~= 4.3.\n     * Wyrażenie (3*60 + 15) nie jest podzielne przez minimalny dopuszczalny rozmiar okna (45), więc okno nie może\n     * zaczynać się o godzinie 3:15, wówczas metoda zwróci False.\n     */\n    const windowCurrentTimeHourInMinutes = windowCurrentTime.getHours() * 60;\n    const windowCurrentTimeMinutes = windowCurrentTime.getMinutes();\n    const windowCurrentTimeInMinutes = windowCurrentTimeHourInMinutes + windowCurrentTimeMinutes;\n    const warehouseWorkStartHourInMinutes = workStartHour * 60;\n    return Number.isInteger((windowCurrentTimeInMinutes - warehouseWorkStartHourInMinutes) / currentWindowOffset);\n  }\n\n  var _default = {\n    validate: validate\n  };\n  _exports.default = _default;\n});","\n","define('apollo/config/environment', [], function() {\n  var prefix = 'apollo';\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(\"apollo/app\")[\"default\"].create({\"defaultLocale\":\"en\",\"integrations\":{\"site24\":false,\"site24Key\":\"607fce9b9b58084a1132e5140f226e8a\",\"site24Address\":\"//static.site24x7rum.eu/beacon/site24x7rum-min.js?appKey=\",\"freshWidget\":false},\"name\":\"apollo\",\"version\":\"4.88.0+02cfa34e\",\"validatorDefaultLocale\":\"en\"});\n          }\n        \n"],"names":[],"mappings":"AAAA;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;;ACxCA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;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;;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;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;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;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;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;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1TA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;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;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;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;;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;;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;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;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;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;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;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;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;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;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;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACtFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;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;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;;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;;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;;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;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;AClDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACtLA;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;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;;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;;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;AACA;AACA;AACA;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;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9HA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACjCA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACfA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACt9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;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;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;;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;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC1BA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;AC9CA;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;;ACjQA;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;;AChSA;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;;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;;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;;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;;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;;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;AChBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;AC7BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACvEA;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;;ACnQA;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;;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;;AC7BA;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;;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;;ACvCA;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;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC7BA;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;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;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;;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;;ACzCA;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;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;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;;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;;ACpIA;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;;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;;AClMA;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;;ACrGA;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;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC3FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;AACA;AACA;AACA;AACA;AACA;;ACzCA;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;;ACjFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC/JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;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;;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;;AC1DA;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;;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;;ACpFA;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;;ACpEA;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;;AC5EA;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;;ACxGA;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;;ACvEA;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;;ACxIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;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;;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;;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;;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;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;;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;;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;;AC3FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpFA;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;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACjCA;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;;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;AACA;AACA;AACA;AACA;AACA;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;;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;;AClEA;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;;AC7GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACpDA;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;;ACVA;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;;ACjCA;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;;ACVA;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;;ACnFA;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;;ACjIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzDA;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;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClCA;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;;ACtEA;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;;AC5CA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3LA;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;;AClEA;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;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACxFA;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;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACxCA;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;;AC5BA;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;;AC7BA;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;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7PA;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;;AC1PA;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;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;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;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACjCA;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;;AClCA;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;;ACVA;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;;ACvFA;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;;AChDA;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;;ACVA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;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;;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;;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;;ACjEA;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;;AC1BA;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;;ACVA;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;;ACjDA;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;;ACrCA;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;;ACvIA;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;;AChFA;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;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;ACxCA;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;;ACZA;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;;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;;ACnIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;AChGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/DA;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;;ACxEA;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;;ACnCA;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;;AC7BA;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;;ACpCA;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;;ACvEA;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;;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;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;;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;;AClDA;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;;ACnDA;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;;ACvJA;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;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;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;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;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;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1FA;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;;ACvFA;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;;AC9FA;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;;AC1FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACjCA;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;;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;;AChGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACxJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;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;;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;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;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;;AC5DA;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;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;;AC5DA;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;;ACjDA;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;;ACtDA;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;;AC5KA;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;;AC1CA;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;;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;;ACxEA;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;;ACzCA;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;;AC3EA;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;;AC9EA;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;;ACrCA;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;;ACnDA;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;;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;;ACxCA;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;;ACxDA;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;;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;;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;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;AACA;AACA;AACA;AACA;AACA;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;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;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;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC/DA;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;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;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;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;;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;;AC1BA;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;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;;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;;ACtCA;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;;ACpHA;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;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvHA;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;;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;;AClGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;AC1BA;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;;ACtBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClkBA;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;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;AClDA;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;;AChDA;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;;ACtDA;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;;ACvEA;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;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;;AC3EA;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;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;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;;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;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;AC7CA;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;;ACvCA;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;;ACxCA;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;;AC9GA;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;;ACpHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACvEA;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;;AC7BA;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;;AChGA;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;;AC1HA;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;;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;;ACjFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AClCA;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;;AChHA;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;;AChHA;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;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACjTA;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;;ACpCA;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;;AChFA;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;;AC1HA;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;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACnDA;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;;ACxFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACnEA;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;;AC/PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACxCA;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;;ACnCA;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;;AC1CA;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;;ACzLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACjGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;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;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC91BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;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;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1xBA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACVA;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;;AC5BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC9HA;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;;ACrCA;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;;AC/DA;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;;ACrEA;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;;AC1CA;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;;ACvEA;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;;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;;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;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;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;;ACpCA;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;;ACVA;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;;AClEA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC3DA;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;;AC/FA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;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;;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;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC7HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;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;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;AC7DA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACrDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACxCA;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;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;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;;AC1EA;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;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;;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;;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;;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;;AC3BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AClDA;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;;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;;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;;ACrCA;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;;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;;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACpLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/EA;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;;AC/JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnEA;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;;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;;AC5CA;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;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;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;;ACtCA;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;;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;;AChEA;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;;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;;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;;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;;ACzCA;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;;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;;AC/GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;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;;ACVA;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;;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;;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;;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;;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;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChQA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3VA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;AClCA;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;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;;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;;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;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;AClCA;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;;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;;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;;ACxFA;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;;AC7BA;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;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;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;;ACjGA;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;;AChCA;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;;AChHA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC1DA;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;;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;;ACpDA;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;;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;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;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;;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;;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;;ACrDA;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;;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;;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;;ACnIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;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;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;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;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;;ACnBA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;AChBA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC7GA;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;;AC1CA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;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;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;;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;;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;;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;;ACxCA;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;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;;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;;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;;ACxEA;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;;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;;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;;AChCA;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;;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;;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;;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;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9vBA;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;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;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;;ACjGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;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;;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;;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;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;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;;AC7OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACzEA;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;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC3BA;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;;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;;AChDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;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;;AC7BA;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;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;ACvIA;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;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;AC9QA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;AC7CA;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;;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;;ACxCA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzCA;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;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;AC/CA;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;;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;;AC7CA;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;;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;;ACrCA;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;;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;;AChDA;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;;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;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACtGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;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;AACA;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;;AC9CA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1oCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACzCA;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;;ACjQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACpEA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpqDA;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;;ACtIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5EA;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;;AC7HA;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;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACrNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACxOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;AC9CA;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;;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;;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;;ACzEA;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;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;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;;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;;ACrCA;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;;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;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;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACxCA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC3BA;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;;AC7CA;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;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;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;;AC1OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5gDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9UA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtEA;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;;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;;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;;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;;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;;ACnDA;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;;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;;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;;ACzJA;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;;AChBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/aA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9YA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1iBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;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;;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;;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;;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;;AC1CA;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;;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;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AClCA;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;;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;;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;;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;;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;;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;;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;;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;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClJA;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;;AC1DA;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;;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;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;;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACRA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACzMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;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;;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;;ACxDA;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;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACnJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACVA;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;;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;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5KA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AClPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;","file":"apollo.js"}